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 giulyko00, 04-24-2024, 12:03 PM
      9 responses
      43 views
      0 likes
      Last Post giulyko00  
      Started by memonic, Yesterday, 01:23 PM
      2 responses
      24 views
      0 likes
      Last Post memonic
      by memonic
       
      Started by merc410, Today, 03:41 AM
      2 responses
      15 views
      0 likes
      Last Post merc410
      by merc410
       
      Started by sugalt, 04-30-2024, 04:02 AM
      2 responses
      13 views
      0 likes
      Last Post sugalt
      by sugalt
       
      Started by Ndakotan1313, 03-14-2024, 05:02 PM
      2 responses
      64 views
      0 likes
      Last Post blaise_code  
      Working...
      X