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 Jon17, Today, 04:33 PM
      0 responses
      1 view
      0 likes
      Last Post Jon17
      by Jon17
       
      Started by Javierw.ok, Today, 04:12 PM
      0 responses
      4 views
      0 likes
      Last Post Javierw.ok  
      Started by timmbbo, Today, 08:59 AM
      2 responses
      10 views
      0 likes
      Last Post bltdavid  
      Started by alifarahani, Today, 09:40 AM
      6 responses
      40 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Working...
      X