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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    70 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X