[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MISSING DATA IN EASYLANGUAGE



PureBytes Links

Trading Reference Links

>>Program: Tradestation 4.0 Build 19.6 >> >>I am experiencing an unexplainable data loss with VOLUME when coding in >EasyLanguage. The VOLUME field is returning ZERO many times, while the >DATE, TIME, H/L/O/C are all correct. I am using the following indicator on >a 1-volume-bar chart: >> >>Plot1(CLOSE,"CL"); >>IF TIME > 1021 AND TIME < 1023 THEN BEGIN >> PRINT("TIME ",T:4:0," CLOSE ",C:3:3," VOLUME ",VOLUME:8:0); >>{ PRINT(FILE("C:\DEBUG.TXT"),"TIME ",T:4:0," CLOSE ",C:3:3," >VOLUME ",VOLUME:8:0);} >>END; >> >>Here is the data from the Server: >>"Date", "Time", "Close", "Volume" >>02/04/98, 10:22, 18.375000, 2000 >>02/04/98, 10:22, 18.312000, 500 >>02/04/98, 10:22, 18.375000, 2900 >>02/04/98, 10:22, 18.312000, 1000 >>02/04/98, 10:22, 18.375000, 800 >>02/04/98, 10:22, 18.375000, 500 >>02/04/98, 10:22, 18.375000, 1000 >>02/04/98, 10:22, 18.312000, 1000 >>02/04/98, 10:22, 18.343000, 400 >>02/04/98, 10:22, 18.437000, 1000 >>02/04/98, 10:22, 18.500000, 500 >>02/04/98, 10:22, 18.375000, 500 >>02/04/98, 10:22, 18.375000, 1000 >>02/04/98, 10:22, 18.250000, 500 >>02/04/98, 10:22, 18.437000, 1000 >>02/04/98, 10:22, 18.500000, 200 >>02/04/98, 10:22, 18.500000, 1000 >>02/04/98, 10:22, 18.500000, 1000 >>02/04/98, 10:22, 18.500000, 300 >> >>Here is the result from the indicator: >>TIME 1022 CLOSE 18.375 VOLUME 2000 >>TIME 1022 CLOSE 18.312 VOLUME 0 >>TIME 1022 CLOSE 18.375 VOLUME 2900 >>TIME 1022 CLOSE 18.312 VOLUME 0 >>TIME 1022 CLOSE 18.375 VOLUME 800 >>TIME 1022 CLOSE 18.375 VOLUME 500 >>TIME 1022 CLOSE 18.375 VOLUME 1000 >>TIME 1022 CLOSE 18.312 VOLUME 0 >>TIME 1022 CLOSE 18.343 VOLUME 400 >>TIME 1022 CLOSE 18.437 VOLUME 1000 >>TIME 1022 CLOSE 18.500 VOLUME 500 >>TIME 1022 CLOSE 18.375 VOLUME 0 >>TIME 1022 CLOSE 18.375 VOLUME 0 >>TIME 1022 CLOSE 18.250 VOLUME 0 >>TIME 1022 CLOSE 18.437 VOLUME 1000 >>TIME 1022 CLOSE 18.500 VOLUME 200 >>TIME 1022 CLOSE 18.500 VOLUME 1000 >>TIME 1022 CLOSE 18.500 VOLUME 1000 >>TIME 1022 CLOSE 18.500 VOLUME 300 >> >>As you can see, 6 out of 18 datapoints have VOLUME=0! This occurs >regardless of the stock, date, or time chosen. >>-What is wrong? >>-What do I do to fix this? >> >>Also, another discrepancy: >>I have datapoints in the Server File timestamped 9:29am, as well as 5:02pm >which are not included in the end-of-day data such as H/L/O/C. >>-Where does the timestamp for each datapoint originate? >>-Does it come from my computer's system clock, or is it sent by Signal? >>-Why do these early/late datapoints arrive? >>-Do I have to screen them out of every EasyLanguage program I write to >"logically" get the server data to match the end-of-day numbers? >>



********************************************* Have a nice Day Jim Kerwin Atlanta,Georgia **********************************************