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 waldoalvarez, Today, 07:53 AM
    0 responses
    2 views
    0 likes
    Last Post waldoalvarez  
    Started by sinpeople, 03-05-2021, 09:53 AM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_ThomasC  
    Started by subterfuge, Today, 07:34 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Heath  
    Started by Paul Penton, Today, 12:23 AM
    2 responses
    9 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by StockTrader88, 03-06-2021, 07:58 AM
    3 responses
    25 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Working...
    X