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 CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        26 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        182 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        335 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        260 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X