Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ATM Strategy Auto Break Even

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

    ATM Strategy Auto Break Even

    When referencing an ATM strategy with an auto break even condition, how do I reference the stop target for the break even order? I have already utilized the following example in my strategy to manage a 1 stop 1 target ATM strategy.

    Code:
    protected override void OnBarUpdate()
    {
        AtmStrategyChangeStopTarget(0, SMA(10)[0], "Stop1", "AtmIdValue");
        AtmStrategyChangeStopTarget(SMA(10)[0],0,  "Target1", "AtmIdValue");
    }
    What I would like to do is continue adjusting "Stop1" after I have moved the AutoBreakEven stop order to the break even price. Is this possible? Would I reference "Stop2" with the same method?

    Thanks!

    #2
    Hello MisterGee,

    Thanks for your post.

    There is only one stop order for the ATM (Stop1 in your example).

    A breakeven or a trailing stop is the same order, it is just the logic (breakeven or trailing) that moves the same stop order.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ntbone, Today, 02:30 PM
    0 responses
    4 views
    0 likes
    Last Post ntbone
    by ntbone
     
    Started by tuliomgui, Yesterday, 10:07 PM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Learner Trader, Today, 08:36 AM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by GeorgeW, Today, 03:15 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by timko, Today, 11:55 AM
    4 responses
    11 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Working...
    X