I have a custom script that I run in strategy analyzer which exports the datetime, OHLC of each day bar. It simply waits for each bar close and then writes them all to a file. Frequently after running the script, the resulting file will be missing a day or two---such as today. Even after verifying in the historical data manager that days up through 4/24 had been downloaded, it refused to print out any bar past 4/22. Like I said above, I see this error frequently and usually restarting fixes it, but today it persisted and I missed my trade window. Please let me know what I can do to prevent this happening again.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Day bar data downloaded but not used in analyzer
Collapse
X
-
Day bar data downloaded but not used in analyzer
This is a problem I've been having for a long time. Usually I can restart the program and it will fix itself, but today it has completely failed.
I have a custom script that I run in strategy analyzer which exports the datetime, OHLC of each day bar. It simply waits for each bar close and then writes them all to a file. Frequently after running the script, the resulting file will be missing a day or two---such as today. Even after verifying in the historical data manager that days up through 4/24 had been downloaded, it refused to print out any bar past 4/22. Like I said above, I see this error frequently and usually restarting fixes it, but today it persisted and I missed my trade window. Please let me know what I can do to prevent this happening again.Tags: None
-
Hello Konoakapen,
A good place to start would be to add a print to your code that prints the data to the output window as well.
For today's date to be included, the script will need to be running with Calculate on bar close set to False.
May I confirm that the script is able to print today's time?
Print(Time[0]);Chelsea B.NinjaTrader Customer Service
-
The print is being done after the market closes, so today's bar is available. Like I said, I checked in Historical Data Manager and the bar for today is there.
The code does work, it's just that some days it stops working. I've run the same script on multiple computers, the same issue occasionally appears. Since restarting Ninjatrader usually fixes the issue, it seems like it could be a bug in the platform. Any chance you've heard of anyone else with this issue?
Comment
-
Hello Konoakapen,
I have not heard of other traders having this issue.
My question is, what prints, when the data is not writing to file correctly?
Is the data you are writing to file printing to the output window?
When the code stops working does it still print today's time?
Well placed prints will tell you where the script is breaking down.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johnMoss, 03-04-2024, 01:53 PM
|
3 responses
46 views
0 likes
|
Last Post
by AndyM
Today, 06:13 PM
|
||
Started by algospoke, Today, 06:01 PM
|
0 responses
8 views
0 likes
|
Last Post
by algospoke
Today, 06:01 PM
|
||
Started by cre8able, Today, 05:53 PM
|
0 responses
9 views
0 likes
|
Last Post
by cre8able
Today, 05:53 PM
|
||
Started by Wessel, 03-23-2024, 02:37 PM
|
3 responses
24 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
32 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
Comment