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 priceisking, Today, 11:44 AM
    0 responses
    2 views
    0 likes
    Last Post priceisking  
    Started by sinpeople, Today, 09:53 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by ErikY, Today, 10:19 AM
    4 responses
    8 views
    0 likes
    Last Post ErikY
    by ErikY
     
    Started by Wessel, Today, 10:31 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by rickr, Today, 10:19 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Spencer  
    Working...
    X