Announcement

Collapse
No announcement yet.

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.

    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.

        Comment

        Latest Posts

        Collapse

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