Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Make Stop1 = 0 in ATM

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

    Make Stop1 = 0 in ATM

    My strategy uses some kind of ATM.

    1. For example, in the ATM settings, the Stop1 or Target1 level is not set.
    How can I use AtmStrategyChangeStopTarget () (or some other way) to set the stop level I need?

    2. For example, in the ATM settings, the Stop1 or Target1 level is set.
    How can I completely remove the stop level I need using AtmStrategyChangeStopTarget () (or some other way)?

    #2
    Hello webus,

    Thanks for your post.

    To use an ATM in a Ninjascript strategy you have to use an ATM template that is already configured. ATMs have a stop level although they do not need a profit target.

    The method AtmStrategyChangeStopTarget () https://ninjatrader.com/support/help...stoptarget.htm does allow you to dynamically change the stop and/or target of the existing ATM. The example in the help guide shows an example of tieing the stop level to a moving average.

    If you look at the code of the SampleATMstrategy in your NinjaTrader, it provides another example of using AtmStrategyChangeStopTarget () .

    I may not be understanding what you are asking or wanting to do, if so, please add further context to clarify.

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello webus,
      To use an ATM in a Ninjascript strategy you have to use an ATM template that is already configured. ATMs have a stop level although they do not need a profit target.
      I may not be understanding what you are asking or wanting to do, if so, please add further context to clarify.
      1. Can I set the TakeProfit level for ATM trade from the Strategy if there is no TakeProfit level in the ATM template?

      2. Can I remove StopLoss level for ATM trade from the Strategy and leave, for example, only TakeProfit level?
      Last edited by webus; 05-11-2020, 02:54 PM.

      Comment


        #4
        Hello webus,

        Thanks for your reply.

        1) No, you cannot add a profit target to an existing ATM template that does not have one.

        2) No, all ATMs require a stop loss level.



        Comment


          #5
          Hi NinjaTrader_PaulH,

          Originally posted by NinjaTrader_PaulH View Post
          Hello webus,

          Thanks for your reply.

          1) No, you cannot add a profit target to an existing ATM template that does not have one.

          2) No, all ATMs require a stop loss level.

          Thanks for your clarifications.



          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          22 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          120 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          63 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          45 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X