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

Performance tips?

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

    Performance tips?

    For some reason my indicators are taking a very long time to load on my charts (> 2 minutes for 7 indicators on 45 days of 220-tick data). Are there peformance improvement guidelines out there for NinjaScript? Are there best practices that I could use to speed up the performance of my indicators? Or is this all just based on the limitations of my PC?
    Please help.

    #2
    trader2be, there are no standard guidelines on optimizing code, but you want to keep a sharp eye on recursive calculations in your indicators, those can add up in 7 indicators running on such long tick data histories. I suggest you isolate out by varying your setup (# of charts, indicators, data loaded) and then restesting.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Betrand,

      Could you give an example of what you mean by recursive calculations?

      Thanks

      Comment


        #4
        For example compare the traditional EMA to SMA formulas, the EMA would be recursive or self referecing as it needs a part of it's own previous bar's results for finding the new value.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by proptrade13, Today, 11:06 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by quantismo, 04-17-2024, 05:13 PM
        4 responses
        32 views
        0 likes
        Last Post quantismo  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        32 views
        0 likes
        Last Post love2code2trade  
        Started by cls71, Today, 04:45 AM
        2 responses
        10 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Started by kulwinder73, Today, 10:31 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Erick  
        Working...
        X