Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Avoid/Optimize data check

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

    Avoid/Optimize data check

    Im coding an indicator to calculate individual currency strength.

    I need to add 28 instruments to be able to calculate the strength of the 8 majors.

    The problem is, each time I add the indicator, ninjatrader checks if data is present, I see "Loading data" in status bar for 28 pairs, even when the market is closed, so it takes some time to load.

    Is there a way to skip the data checking part?

    #2
    Hello dotnetfreak,

    Thank you for your note.

    You could add the following to ensure the indicator only processes on real-time data:
    Code:
    if(Historical)
    return;
    For information on Historical please visit the following link: http://www.ninjatrader.com/support/h...historical.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Thanks for your reply, however, I tried putting the line in my code and now it only displays the last bar.

      What I need is the inverse, I want to only look at historical data and not try to pull current data.

      I tried to set End date to a previous date in data series so it does not try to load new data and I still see the message loading data for each pair in Status bar.

      Comment


        #4
        dotnetfreak, so you're concerned about the loading time here? To minimize that you could add the pairs to a Market Analyzer window and ensure an indicator would be applied to historical bar data requests are triggered. When you now work with the same set of symbols on your chart > the loading times should be speeded up.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        331 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        549 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X