Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Rapine Heihei, Today, 08:19 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 08:25 PM
        0 responses
        5 views
        0 likes
        Last Post Rapine Heihei  
        Started by f.saeidi, Today, 08:01 PM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by Rapine Heihei, Today, 07:51 PM
        0 responses
        6 views
        0 likes
        Last Post Rapine Heihei  
        Started by frslvr, 04-11-2024, 07:26 AM
        5 responses
        97 views
        1 like
        Last Post caryc123  
        Working...
        X