Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AtmStrategyCreate()

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

    AtmStrategyCreate()

    NT7 Rocks!

    If anyone can help me to use this great feature...

    I have 1 stop loss and 2 profit targets for exiting and a stop strategy attached.

    My indicator tells me the stop loss and two profit targets in terms of price.

    How would I pass the information using AtmStrategyCreate(). I anticipate ending the strategy after AtmStrategyCreate() and managing the entry as days go by. *Avoiding having to enter the price info manually*

    Will NT remember the trade? Will it appear on my chart when reboot? Do you know how to pass 1 stop and 2 takes to AtmStrategyCreate() ?

    Thank you for taking the time to read this,
    Howie

    #2
    Howie, thanks for the kind words - you would need to call a predefined template with the AtmStrategyCreate() and then later change the stop / target values as per your indicator calcs with the AtmStrategyChangeStopTarget() -

    http://www.ninjatrader.com/support/h...stoptarget.htm
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Can I go Semi-Automatic? Would it make sense to create a NT Strategy that I can launch after the signal (so I may set my targets at pivot point prices)? Then Create would be at Market and I would ChangeStop to set my targets, then exit the NT
      .strategy?

      Would I then have the same control of the ATM as if I did it manually?

      Thanks again for the help,
      Howie

      Comment


        #4
        Howie, is your entry manually or from the NinjaScript strategy in this case?
        BertrandNinjaTrader Customer Service

        Comment


          #5
          The Idea is to have a NT Strategy that only initiates the ATM.

          If the ATM must continue running (i.e. for a trailing stop) would the ATM survive a reboot while trade is open?

          Thank you Bertrand

          Comment


            #6
            Yes, the ATM would persist a reboot / restart, however NT has to be running and connected live to be able to manage your OCO logic then.

            Unfortunately what you're seeking is not supported, you can call the AtmStrategyCreate() to programmatically enter the market with a NinjaScript strategy signal and then exit via a strategy defined in an ATM template.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              If I used ATMCREATE and passed Market, Stop Price, Take Price, myATMtemplate, etc) -- would it be the same as if i did it by clicking buy on a chart with myATMtemplate loaded?

              Thanks again for the attention Bertrand!

              Comment


                #8
                Correct, this would trigger an entry and then attach the selected ATM exit template to manage the resulting trade - which means you're entry comes from the NinjaScript strategy also.
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  Cool beans!

                  The strategy will invoke my ATMtemplate with my pivot point prices instead of integers. Just what I was looking for!

                  Two last questions..
                  1.
                  Do you know of any way to prompt for user approval before execution in NT7 strategy? If not, I can always have my indicator write the potential ATM info to file then pick it up in strategy should i copy it to an order folder I can VB the review part and change then copy to folder if I approve.

                  2. Is there a way to "Stop" (terminate) the NT Strategy from within the strategy?

                  Thanks a mill Bertrand

                  Comment


                    #10
                    1. Unfortunately NS strategies will not prompt the user. They are automated and will place the order without user confirmation.

                    2. You can "stop" the strategy through techniques like ones shown here: http://www.ninjatrader.com/support/f...ad.php?t=19289
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Atmcreate()

                      Josh,

                      This is so nice. Is there a way to set the first StopStrategy Profit Triger? Asking too much right?

                      Howie
                      Last edited by ohowie; 05-19-2010, 08:30 PM. Reason: Title

                      Comment


                        #12
                        Unfortunately not possible Howie, however if if triggered you could control the set stop value programmatically still and adjust as needed.
                        BertrandNinjaTrader Customer Service

                        Comment


                          #13
                          Atmcreate()

                          I see it is possible to adjust the stoploss and takeprofit after the ATMCREATE() as long as the same strategy is still running... but how can i change the trailing stoplosses set by the ATM template?

                          Thank you,
                          Howie
                          Last edited by ohowie; 05-20-2010, 07:08 AM. Reason: Title

                          Comment


                            #14
                            Howie, you can't programmatically influence template settings (edit the template). You call the setup template as a means to manage exits...then as the template is running you could change associated STOP1, STOP2, TARGET1 etc values via the mentioned method.
                            BertrandNinjaTrader Customer Service

                            Comment


                              #15
                              Bertrand,
                              Would you be so kind as to example me the proper syntax?

                              Atmcreated and running lets say has
                              assuming the stop strategy had ...

                              Limit
                              Stop
                              Stop1 Frequency1 and Trigger1 variables
                              Stop2 Frequency2 and Trigger2 variables

                              How would you change the 2nd set of trailing stop variabes?
                              Where could I find the proper parameter names for each stop?

                              Thanks again,
                              Howie

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by JTizz, Today, 01:20 PM
                              1 response
                              4 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by omermirza, Today, 12:39 PM
                              1 response
                              11 views
                              0 likes
                              Last Post NinjaTrader_Jim  
                              Started by mballagan, Today, 01:02 PM
                              1 response
                              5 views
                              0 likes
                              Last Post NinjaTrader_Kate  
                              Started by larkmail, Today, 12:30 PM
                              1 response
                              6 views
                              0 likes
                              Last Post NinjaTrader_Kate  
                              Started by Danila, Today, 11:08 AM
                              1 response
                              11 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Working...
                              X