Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AtmStrategyChangeStopTarget()?

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

    AtmStrategyChangeStopTarget()?

    Please help. I don't quite understand this method.

    Can we set both stop loss and profit target with this method. Do we call it multiple times to set stop loss and target prices?

    Also what is "orderName" in that method. For example, if set to "Target2", does that mean we are changing the 2nd target in the ATM (if a 2nd target exists).

    Thanks!
    Last edited by stevenev1; 04-30-2021, 08:06 PM.

    #2
    Yes you set both the PT and SL with this method.
    orderName is either "STOP1" or "TARGET1" which correlates with a single SL/PT atm strategy

    There is a SampleAtmStrategy that comes with the software that is very helpful. I use a lot of the sample as a nice backbone for some of my strategies, just have to change the atm strategy name after you've created it in the chart trader area on a chart

    Hope this helps!

    Comment


      #3
      Originally posted by MisterGee View Post
      Yes you set both the PT and SL with this method.
      orderName is either "STOP1" or "TARGET1" which correlates with a single SL/PT atm strategy

      There is a SampleAtmStrategy that comes with the software that is very helpful. I use a lot of the sample as a nice backbone for some of my strategies, just have to change the atm strategy name after you've created it in the chart trader area on a chart

      Hope this helps!
      Thanks, MisterGee,
      Yes, I saw the sample ATM strategy which is very comprehensive and nicely done. I am still a bit confused. If we have a two step target, do we set "Target1" and "Target2"?

      Comment


        #4
        I cannot give you a confident answer on that one! Sorry! Hopefully a NT support staff can weigh in soon.

        Comment


          #5
          Hello stevenev1,

          Yes, AtmStrategyChangeStopTarget() would be called multiple times for each stop or target you would like to modify the price of.

          Changing the price of a stop or target would not stop the Atm template from performing its steps with Breakeven or Auto trail. If you move the stop, and then the next step of a trail triggers, it will move the stop to the price originally calculated by the Atm template, undoing your changes.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          104 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          52 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          34 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          38 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          74 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X