Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to attach a ATM stop to a drawing object or an indicator drawn line?

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

    How to attach a ATM stop to a drawing object or an indicator drawn line?

    Hi

    I can attach an ATM stop order to indicator e.g. an SMA, but could not attach it to a line which I drew under the price action - how would it be possible to draw a line on the chart to which I could attach an ATM stop order?

    (1) what is the property of an indicator which allows an ATM order to be attached to it?
    (1) would it be possible to make an indicator which draws a line to which an ATM stop order could be attached?

    TIA
    Suraj

    #2
    Hello Suraj,

    Thank you for your post.

    Indicator plots have an associated Series<double> associated with them that hold the values for each bar index of the series. This allows you to attach orders to the indicator because for each new bar, the price will be attached to the value in the indicator's Values series. For more information:A drawing object does not have associated value for each bar on the chart in the same way that an indicator plot does; it only has anchors for start/end points. For example, if you are using Draw.Line() (or you drew a line manually from the drawing tools menu on a chart) there is a StartAnchor and EndAnchor, but programmatically there are not values in-between to attach the order to:


    You may need to consider questions such as the following to determine if an indicator could plot the values you'd like the order to be attached to: What is the criteria that you use to draw the line? Is this something that could be calculated programmatically to create an indicator plot that would plot values similar to where your line would be drawn?

    Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    601 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    347 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    559 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    558 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X