Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT 8.0.6 Bug Drawing Tools Dot

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

    NT 8.0.6 Bug Drawing Tools Dot

    There is a bug in NT 8.0.6 Drawing Tools. I have tested only the Dot tool.

    The issue is that the dot is displayed at the wrong location if a second bar series is added.

    Here are the test samples showing the code and results:
    1. Without AddDataSeries Dot displays correctly.
    Click image for larger version

Name:	170422a.png
Views:	1
Size:	115.2 KB
ID:	907495


    2. Introduce AddDataSeries 1 tick, Dot displays incorrectly.
    Click image for larger version

Name:	170422b.png
Views:	1
Size:	120.0 KB
ID:	907496
    Last edited by Camdo; 04-22-2017, 08:23 PM.

    #2
    Originally posted by Camdo View Post
    the dot is displayed at the wrong location if a second bar series is added.
    AddDataSeries 1 tick, Dot displays incorrectly.
    If you want the dot below the low of the primary data series, try this:
    Code:
    Draw.Dot(this, "tag1", true, 0, [B]Lows[0][0][/B] - TickSize, Brushes.Red) ;

    Comment


      #3
      Hello Camdo,

      In your code you are not checking to see which BarsInProgress is processing. This means that this code is run when both series trigger OnBarUpdate.

      This means each time it updates for the secondary series (the 1 tick series), the Low[0] will reference that ticks low not the low of the primary series.

      As tradesmart has mentioned, Low, Close, Open, High, etc will reflect the currently processing series and will not reflect the primary series.

      From the help guide:
      "An ISeries<double> type object. Accessing this property via an index value [int barsAgo] returns a double value representing the price of the referenced bar."

      I recommend that you add a BarsInProgress check


      And use the BarsInProgress index with the Lows for the series you are wanting.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      164 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      319 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      246 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      350 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X