The main code looks like this although it could be better written:
for(int i = 0; i < BarsArray[0].Count; i++) { DateTime time = BarsArray[0].GetTime(i); double price = BarsArray[0].GetClose(i); long volume = BarsArray[0].GetVolume(i); string outstring = time.Year.ToString("D4") + time.Month.ToString("D2") + time.Day.ToString("D2") + " " + time.Hour.ToString("D2") + time.Minute.ToString("D2") + time.Second.ToString("D2") + ";" + price.ToString() + ";" + volume.ToString(); outputFile.WriteLine(outstring); }
20130708 235100;1460;1
20130708 235300;1460;1
20130708 235700;1460.75;5
20130709 000700;1461;4
20130709 000800;1461;2
20130709 001300;1460.25;2
But on tick data (1 tick) it looks like this:
20130708 220507;1459.5;1
20130708 220609;1459.25;1
20130708 220658;1459;1
20130709 070025;1471.5;1
20130709 070025;1471.5;1
20130709 070025;1471.5;1
The only parameter that was changed was from minute to tick, but the tick data starts today at 7:00 am and the minute data (which shows changes in the prices) has data at a little after midnight.
So the minute data looks continuous (more or less) and the tick data appears to have a big gap from 10:00PM yesterday to 7:00 AM today (CST) roughly.
Thanks,
Leroy
Comment