StreamWriter (and/or ReadWrite File) - Hire a Consultant or Programmer | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Hire a Consultant or Programmer

StreamWriter (and/or ReadWrite File)
Started:May 17th, 2016 (02:10 PM) by Patkum101 Views / Replies:73 / 0
Last Reply:May 17th, 2016 (02:10 PM) Attachments:1

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

StreamWriter (and/or ReadWrite File)

Old May 17th, 2016, 02:10 PM   #1 (permalink)
Elite Member
Plano TX
Futures Experience: Beginner
Platform: NinjaTrader
Favorite Futures: Futures
Posts: 6 since Jan 2013
Thanks: 4 given, 3 received

StreamWriter (and/or ReadWrite File)


For a fixed fee, I seek help to modify the NinjaTrader 7 general StreamWriter file/script (as attached) that would allow me to write and save bar-by-bar data of the desired time series(indicators). The format of the file/script should have clear segments that shows and allows me to Edit the file/script to:

i) Define/add/remove ANY private labels of any chosen indicator to be used in a 'string' format
double emaiT = EMA(14)[0]; (Calculate on Bar Close = TRUE)
double emaiiT = EMA(??)[0]; (Calculate on Bar Close = TRUE)
double stochdiT= Stochastics(7, 14, 30).D[0]; (Calculate on Bar Close = TRUE)
string onbarclosetrue = emaiT + "," + emaiiT + "," + stochdiT;

string barprice = Open[0] + "," + High[0] + "," + Low[0] + "," + Close[0]; (Calculate on Bar Close = TRUE)
etc, etc

ii) (define private labels for indicators) where the Data can be/is set to either:
a) Calculate on Bar Close = True, and
b) Calculate on Bar Close = False >> BUT in this case, to ONLY write to the file when the bar closes (eg possibly using if (FirstTickOfBar) to determine that a bar has closed (ie NOT for every tick by tick))
double emaiF = EMA(14)[0]; (Calculate on Bar Close = FALSE)
double emaiiF = EMA(??)[0]; (Calculate on Bar Close = FALSE)
double stochdiF= Stochastics(7, 14, 30).D[0]; (Calculate on Bar Close = FALSE)
string onbarclosefalse = emaiF + "," + emaiiF + "," + stochdiF; (Calculate on Bar Close = FALSE)

[>> IN SUMMARY - the script must allow for writing and saving data for where the indicator is set for BOTH Bar Close = True &/OR False]

iii) write & save the bar-by-bar data in the order preferred.
sw.WriteLine(thetime + "," + barprice + " " + onbarclosetrue + " " + onbarclosefalse);

Once the data is saved (in CSV format), i intend to either email the file or export it to excel.

Please advise of your cost for this.


Paid Services Forum: Hire a Consultant or Programmer

In this subforum only the thread starter may post replies to this thread. To contact or reply to user "Patkum101", please send a Private Message.

Important threads to read regarding this Paid Services subforum:

- Do you really need to pay for it?
- Protect yourself
- Do research before hiring
- How to pay for services
- Rating a transaction after it is completed
- Disclaimer: Services here are not endorsed by

Attached Files
Register to download File Type: cs SampleStreamWriter.cs (7.3 KB, 3 views)
Reply With Quote
The following user says Thank You to Patkum101 for this post:

Reply > Futures Trading, News, Charts and Platforms > Hire a Consultant or Programmer > StreamWriter (and/or ReadWrite File)

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with file access jeffmum NinjaTrader 1 February 6th, 2016 01:33 AM
xml file ness1g NinjaTrader 4 November 21st, 2011 01:25 PM
CS file greatsky NinjaTrader 6 December 23rd, 2010 10:27 AM
StreamWriter and System IO Aggro... MXASJ NinjaTrader Programming 5 December 2nd, 2010 05:56 AM

All times are GMT -4. The time now is 11:09 AM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-27 in 0.06 seconds with 20 queries on phoenix via your IP