Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Implementing drawing tools on barsback

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

    Implementing drawing tools on barsback

    Hello,

    I'm trying to create an indicator to plot Draw.RegionHighlightY and it only gives me the drawing tool on the last condition bar only... The same happens with all drawing tools that require a tag... Is there a way to draw this historically on bars back?

    Thank you

    #2
    Hello KINGKODA,

    The tag name of a drawing object identifies the object. If the tag name is re-used the existing object is re-drawn using the new parameters.

    If a unique tag name is used, a new drawing object is made.

    From the help guide:
    "tag - A user defined unique id used to reference the draw object.
    For example, if you pass in a value of "myTag", each time this tag is used, the same draw object is modified. If unique tags are used each time, a new draw object will be created each time."

    Below is a public link to the help guide.


    Below is a link to a forum post with example code.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X