Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Atm strategy/ stop priority

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

    Atm strategy/ stop priority

    Hi,

    Lets say i have a ATM strategy defined with 1 stop/ 1 target,
    attached there is a stop strategy ( see screenshot, per example)
    Now, this ATM is triggered by a Strategy, within this strategy I have a few conditions that call the "AtmStrategyChangeStopTarget" syntax so Stops are modified

    Can you please tell me how NT handles the Stop orders, does one Stop strategy have priority over the other ?
    If both strategies work independent of each other,
    can show me how to make sure a stop loss order will never be increased ( in case the AtmStrategyChangeStopTarget price would be worse then the existing stoploss)
    Attached Files

    #2
    Both would work in parallel thus if you want to control the price via your NinjaScript strategy, do not attach a stop strategy to the ATM strategy.
    RayNinjaTrader Customer Service

    Comment


      #3
      Ray,

      Thanks for the quick reply, as always

      I can see not attaching the stoploss order to the ATM Strategy would make thing easier,
      but 1 of the main reasons I choose to use the ATM option to submit stop/target orders is that my strategy would stay alive after a connection loss, so not attaching the stop/target orders to the ATM strategy is not an option for me therefore i need a logic in my strategy that prevents the stoploss to be modified worse then the existing one
      Is there a way to accomplish this ?

      Nico

      Comment


        #4
        An ATM strategy will always require a stop loss...That is different than a stop strategy which is basically a trailing stop/auto breakeven.
        RayNinjaTrader Customer Service

        Comment


          #5
          yes I know, sorry, my typo, I put it wrong in my previous post
          Should have said stop strategy instead of ......"not attaching the stoploss order "

          anyway, I need this Strategy attached, as I want the strategy to pick up and adjust orders after a connection loss

          Nico

          Comment


            #6
            I think you can try using GetAtmStrategyStopTargetOrderStatus(). The array it returns may have the average fill price be your stop price when it is in a working state. I have not confirmed this, but I think it is worth a shot.
            Josh P.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            663 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            376 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            110 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            575 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            580 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X