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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    54 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    34 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    57 views
    0 likes
    Last Post PaulMohn  
    Working...
    X