Announcement

Collapse
No announcement yet.

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 op1031, Yesterday, 05:16 PM
      1 response
      7 views
      0 likes
      Last Post NT-Roland  
      Started by sinpeople, Today, 07:20 AM
      1 response
      3 views
      0 likes
      Last Post NT-Roland  
      Started by Frank1000, Today, 03:05 AM
      1 response
      7 views
      0 likes
      Last Post NT-Roland  
      Started by ntdev, Today, 01:14 AM
      4 responses
      16 views
      0 likes
      Last Post ntdev
      by ntdev
       
      Started by ct, Today, 02:22 AM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Jason  
      Working...
      X