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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        94 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        81 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        75 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Working...
        X