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

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.
    Paul H.NinjaTrader Customer Service

    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.



        Paul H.NinjaTrader Customer Service

        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 geddyisodin, Yesterday, 05:20 AM
          8 responses
          51 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          10 responses
          36 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by DayTradingDEMON, Today, 09:28 AM
          4 responses
          24 views
          0 likes
          Last Post DayTradingDEMON  
          Started by George21, Today, 10:07 AM
          1 response
          17 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Started by Stanfillirenfro, Today, 07:23 AM
          9 responses
          25 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X