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

Efficiency

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

    Efficiency

    If given the choice of plotting a dot (data series) or drawing a dot (draw method) on every bar, which uses less memory and which is more cpu efficient? It would seem that if you had two different (alternating) color plots according to conditions, it would be be more efficient to use two different color draw objects instead of two different plots but if only using one of either, which would be the better choice? I hope the question isn't confusing.

    Dan
    eDanny
    NinjaTrader Ecosystem Vendor - Integrity Traders

    #2
    If you only had a small amount of dots then using DrawDot() to achieve your dots would be better as you don't need to store a whole DataSeries worth of values. If you wanted to have dots very commonly then a DataSeries may be the better choice, but then you won't have the ability to manually move the dots.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      DataSeries is far superior in efficiency both in terms of memory and performance.
      RayNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by elirion, Today, 09:32 PM
      0 responses
      5 views
      0 likes
      Last Post elirion
      by elirion
       
      Started by cre8able, Today, 09:15 PM
      1 response
      7 views
      0 likes
      Last Post bltdavid  
      Started by cummish, Today, 08:43 PM
      0 responses
      13 views
      0 likes
      Last Post cummish
      by cummish
       
      Started by Option Whisperer, Today, 07:58 PM
      4 responses
      21 views
      0 likes
      Last Post Option Whisperer  
      Started by ETFVoyageur, 05-07-2024, 07:05 PM
      13 responses
      87 views
      0 likes
      Last Post ETFVoyageur  
      Working...
      X