Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing object attached to indicator

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

    Drawing object attached to indicator

    Not sure if this is correct are for my question. Can a drawing object be attached to an indicator so it moves with the indicator?
    Attached Files

    #2
    Hello JTizz,

    Thanks for your question.

    If the indicator draws a drawing object, the object will be attached to that indicator.

    Objects that are drawn manually can be attached to an indicator by changing the Attached To property for in the Drawing Objects dialog. (Select Drawing Object > Right Click > Attach To > Your Indicator)

    Please let us know if you have any questions.
    Attached Files

    Comment


      #3
      This is what I did and the object does not move with the indicator.
      Attached Files

      Comment


        #4
        Hello JTizz,

        I have included a demonstration video explaining the behavior and how it can be used.



        Please let us know if you have any questions.

        Comment


          #5
          What i was looking for is the object moves with the indicator as the indicator moves. If the object is a square it moves as the ma moves.

          Comment


            #6
            Hello JTizz,

            This would be best done within the indicator code so when the indicator updates its plot, it also updates the drawing object.

            To get more familiar with using Drawing objects in NinjaScript, I suggest using the Strategy Builder to see how the syntax is generated by pressing the View Code button. The drawing object code can be implemented in an indicator the same as a strategy.

            Strategy Builder (How to draw on a chart) - https://ninjatrader.com/support/help...ToDrawOnAChart

            We look forward to assisting.

            Comment


              #7
              Not helpful at all...but thx

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              574 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              333 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
              553 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X