Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Closing orders via drawing object

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

    Closing orders via drawing object

    Is there an easier way to close orders via a drawing object? For example, if I want to close an order (which uses an ATM ) once price touches/crosses a trend channel's parallel line, or midline... it seems I can't do this as there are no options when looking through the conditions under alerts. There's only the trendline itself. So I'd presume the workaround to accomplish this would be to use a separate line or ray and then go through the alert menu again so when price crosses the ray I can submit an action. But there is no option to submit a closing order it seems within the actions. Shouldn't "flatten" be an option? The issue that arises if I just submit an order matching my current position quantity is the ATM OCO orders still remain active once the order is closed. Anything I can do here? Thanks.

    #2
    Hi augustfay, thanks for writing in.

    This level of automation would need to be done with a NinjaScript Strategy. The Alerts menu does allow order entry and you can use an ATM with that entry but for further automation you would need to use a strategy enabled on the instrument. All of our tools and educational resources for NinjaScript are here:



    Best regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    181 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    334 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    258 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    358 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    187 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X