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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        177 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        332 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        254 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        356 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        184 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X