Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using AtmStrategyChangeStopTarget before strategy is active

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

    Using AtmStrategyChangeStopTarget before strategy is active

    I want to create an ATM strategy and modify its STOP1 and TARGET1 imediately so all i need to use is a single template and my code can customise the stop and targets.

    When i use AtmStrategyChangeStopTarget right after AtmStrategyCreate (and before entry has been filled) i do not get the desired effect when the entry is filled as it uses the params from origianl template. Should i assume these methods only work when an ATM is live? Or is this an oversight?

    #2
    Correct, will only work once live and the entry has been filled and the stop and targets have been submitted.
    RayNinjaTrader Customer Service

    Comment


      #3
      It would be really powerful if we could modify beforehand like i want to. What are the chances of having that implemented?

      Comment


        #4
        I will add this to our list for future consideration.
        RayNinjaTrader Customer Service

        Comment


          #5
          5 years later... just wondering what became of this. Does AtmStrategyChangeStopTarget() now change the stop or target in the ATM strategy before the entry order is filled?

          This should be clarified in the documentation.

          -Alex

          Comment


            #6
            Hi Alex, the ATM would only be created once the entry order reports filled - so the exit brackets would be sent, then you could use AtmStrategyChangeStopTarget() on those.

            Comment


              #7
              OK. I guess this is still under future consideration then.

              Having written my own framework to simulate ATM strategies in backtest, it was a simple thing to have AtmStrategyChangeStopTarget() adjust the stop and target of an already-created ATM strategy before the entry order is filled. I had assumed this was the case with "live" ATM strategies, but if not, then the documentation should clarify this point (and I'll have to remove that feature from my framework).

              There are times when the stop and target would be determined dynamically by price action (say, the target is the high of the previous bar and the stop is the low of the last 5 bars), in which case the fixed stop and target of the ATM strategy is impractical. It is also impractical to have to track the entry fill just for the purpose of adjusting the exit bracket, instead of setting the exit bracket immediately after calling AtmStrategyCreate().

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              649 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              573 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              576 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X