Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Day bar data downloaded but not used in analyzer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    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

    Comment


      #3
      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


        #4
        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 Harry, 05-02-2018, 01:54 PM
        10 responses
        3,203 views
        0 likes
        Last Post tharton3  
        Started by cre8able, Yesterday, 01:16 PM
        3 responses
        11 views
        0 likes
        Last Post cre8able  
        Started by ChartTourist, Today, 08:22 AM
        0 responses
        6 views
        0 likes
        Last Post ChartTourist  
        Started by LiamTwine, Today, 08:10 AM
        0 responses
        2 views
        0 likes
        Last Post LiamTwine  
        Started by Balage0922, Today, 07:38 AM
        0 responses
        5 views
        0 likes
        Last Post Balage0922  
        Working...
        X