Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 giulyko00, Today, 12:03 PM
          0 responses
          3 views
          0 likes
          Last Post giulyko00  
          Started by AttiM, 02-14-2024, 05:20 PM
          12 responses
          213 views
          0 likes
          Last Post DrakeiJosh  
          Started by cre8able, 02-11-2023, 05:43 PM
          3 responses
          238 views
          0 likes
          Last Post rhubear
          by rhubear
           
          Started by frslvr, 04-11-2024, 07:26 AM
          8 responses
          117 views
          1 like
          Last Post NinjaTrader_BrandonH  
          Started by stafe, 04-15-2024, 08:34 PM
          10 responses
          47 views
          0 likes
          Last Post stafe
          by stafe
           
          Working...
          X