I don't know if this is simple or difficult, so here you go;
I would like to write the date, time, and OHLC data available in BarsArray[0] to a text file from a strategy.
For example, if I run a strategy on ES 03-10, 5 minute chart, 10 days loaded, the strategy would write 10 days of 5 min OHLC data with timestamps to a text file. It does not need to append the data.
My endgame is to use that data in Excel, Matlab, etc. The flexability of using BarsArray[0] data over raw tick data export would be very handy.
I've looked at the SampleFileReadWrite code but hit a wall once I need anything earlier than bar[0] "days loaded" bars back.
Can you offer any tips or suggestions?
EDIT: Attached NT7 strat outputs what I want to the Output Window it seems. Next step is to get it to write to a file. Is there a better way to do this?
Thanks!

Comment