I am some tick data that has the following format:
DateTime Price Size
2009-07-23 10:42:55.745 4103 2
2009-07-23 10:42:57.808 4102 2
2009-07-23 10:43:02.745 4103 4
2009-07-23 10:43:03.308 4102 2
2009-07-23 10:43:07.245 4102 40
2009-07-23 10:43:11.683 4102 10
2009-07-23 10:43:22.230 4103 2
2009-07-23 10:43:28.292 4102 10
2009-07-23 10:43:28.792 4103 2
2009-07-23 10:43:31.292 4103 4
2009-07-23 10:43:31.730 4103 10
2009-07-23 10:43:33.292 4103 6
2009-07-23 10:43:34.230 4103 2
2009-07-23 10:43:35.855 4103 10
2009-07-23 10:43:37.230 4102 2
2009-07-23 10:43:37.792 4103 60
2009-07-23 10:43:39.230 4103 2
2009-07-23 10:43:42.792 4103 10
2009-07-23 10:43:45.230 4102 4
2009-07-23 10:43:52.245 4102 4
2009-07-23 10:43:53.245 4103 4
2009-07-23 10:43:54.745 4102 6
2009-07-23 10:43:59.261 4102 12
2009-07-23 10:44:02.261 4102 2
2009-07-23 10:44:02.776 4102 4
2009-07-23 10:44:03.839 4102 2
2009-07-23 10:44:05.776 4102 40
2009-07-23 10:44:07.839 4102 6
2009-07-23 10:44:08.776 4102 2
2009-07-23 10:44:09.276 4102 14
As you can see, the time is there is millisecond value after the second value, can anyone tell me how to convert this format into the format that Ninjatrader recognize? Anything above 500 milliseconds is counted as next second, for example, 2009-07-23 10:44:08.776 convert to 2009-07-23 10:44:09, 2009-07-23 10:44:02.261 convert to 2009-07-23 10:44:02 ?
Thanks.
Comment