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 mattdowns1234, Yesterday, 06:57 PM
          0 responses
          14 views
          0 likes
          Last Post mattdowns1234  
          Started by dgee949, Yesterday, 06:26 PM
          0 responses
          24 views
          0 likes
          Last Post dgee949
          by dgee949
           
          Started by dgee949, Yesterday, 05:58 PM
          0 responses
          30 views
          0 likes
          Last Post dgee949
          by dgee949
           
          Started by thepcmd, Yesterday, 05:14 PM
          0 responses
          34 views
          0 likes
          Last Post thepcmd
          by thepcmd
           
          Started by xmess777, Yesterday, 04:58 PM
          0 responses
          23 views
          0 likes
          Last Post xmess777  
          Working...
          X