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 hit when too many line objects

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

    Performance hit when too many line objects

    Hi;
    I developed an indicator highlighting zones on my chart and use lines for top and bottom of zone. I have noticed a significant hit on performance when too many zones are placed on the chart. Is this related to the line object that I am using. If yes is there a better way drawing lines.

    Thanks
    Thomas

    #2
    Hi Thomas, how many unique objects do you create typically with this approach?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Usually 100 - 200 lines, which is not a problem, however depending on the timeframe I have run with up to 10000 lines, this is where performance goes down.

      Comment


        #4
        Thanks, yes at this level I would expect that - wouldn't it make sense than to limit the marking up to x sessions back for example, or do you need all this info for the current decisions?
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Yes that is what I am currently doing working with less data which makes the performance much better.

          The other annoying thing (but I can live with it) is that some zones have their start and end time far apart, which means I can see the line at the beginning and at the end, but when scrolling the chart the mid section is not visible. I know though that this is a limitation of lines and rectangles that have their anchor point too far of the chart.

          Thanks again for the quick responses
          Thomas

          Comment


            #6
            You're welcome - correct that's a known limitation of the rendering approach but on my dev team's list look into enhancing for our next major update, I add your thoughts into our feedback tracking as well on this item.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by helpwanted, Today, 03:06 AM
            1 response
            11 views
            0 likes
            Last Post sarafuenonly123  
            Started by Brevo, Today, 01:45 AM
            0 responses
            9 views
            0 likes
            Last Post Brevo
            by Brevo
             
            Started by aussugardefender, Today, 01:07 AM
            0 responses
            5 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            242 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Started by TraderG23, 12-08-2023, 07:56 AM
            9 responses
            387 views
            1 like
            Last Post Gavini
            by Gavini
             
            Working...
            X