Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

draw dot draw ellipse issue

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

    draw dot draw ellipse issue

    I am trying to draw a dot or an ellipse but it wont show on the screen

    this is all i have on onbarupdate

    DrawEllipse("tag1", true, 5, Close[5], 0, Close[0], Color.Blue, Color.Blue, 5);
    DrawDot("tag2", true, 0, Low[0] - TickSize, Color.Red);


    nothing shows up on the chart.

    no live connection just the chart being loaded

    #2
    Hello,
    Thank you for your post.

    This is happening because there are not enough bars contained in the data series you are accessing. The correct way to structure your OnBarUpdate() would be like this:

    if (CurrentBar<5)
    return;
    DrawEllipse("tag1", true, 5, Close[5], 0, Close[0], Color.Blue, Color.Blue, 5);
    DrawDot("tag2", true, 0, Low[0] - TickSize, Color.Red);

    This will check how many bars we have seen (CurrentBar) and to exit the OnBarUpdate() method if an insufficient number of bars has been seen.

    You may reference the following forum tips page for more information on how to ensure that enough bars have been seen.


    If you have any further questions please let me know.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      thank you I it was like you said an index issue

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      566 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X