If I use standard NT export option, the format of the text file is not understandable by metastock.
So I created a simple strategy to export data from each bar in the right format
Print(Instrument.FullName+",5,"+Time[0]+","+Open[0]+","+High[0]+","+Low[0]+","+Close[0]);
ES 12-12,5,11/29/2012 12:55:00 AM,1406.5,1406.75,1406.5,1406.75
The problem is, I need to split Time[0] into 2 parts:
1) date in YYYYMMDD format, followed by
2) time in HHMMSS format.
The result should look like
ES 12-12,5,20121129,125500,1406.5,1406.75,1406.5,1406.75
How do I exctract those separately from Time[0] ?
Comment