• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add Target method

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

    Add Target method

    Is there a NinjaScript method that executes the function of adding a target to an active atm strategy, just like you can do on the SuperDOM? (+Target / -Target functionality) I would like to execute this from an indicator on my chart. Thanks.
    Last edited by martyn73; 11-17-2019, 02:38 PM.

    #2
    Hi martyn73, thanks for your post.

    The template for the ATM defines the targets an ATM will have. One would need to change the ATM strategy template to do this. After an ATM entry order is created with ATMStrategyCreate you can use any of the management methods on this page:

    https://ninjatrader.com/support/help...stoptarget.htm

    This can certainly be done with stop and target orders/entry orders generated by the strategy itself. There is an example on making an ATM-like strategy here:

    https://ninjatrader.com/support/help...and_onexec.htm
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Chris, trying to wrap my brain around what you are trying to say here. When I look at any of the Atm Strategy methods I don't see how I could "split" a target into two replicating the +Target functionality. For example using AtmStrategyChangeStopTarget() I can only move an entire lot. Since I can't specify the quantity, I can not move a portion of that lot. Which would simulate the split functionality. Are you saying this is just not possible? How is it done from the SuperDom, is there a NinjaScript method?

      Regarding your second comment, I understand this could be done when not using Atm Strategies, and create my own Atm-like version. But I want to apply this functionality to Atm Strategies only. Really just replicating what you can do on the SuperDOM, but providing that option on the chart.

      Comment


        #4
        Hi martyn73, thanks for your reply.

        There are no methods to change a certain target through ATM strategy management functions. The Account class has many order management methods, so this will be the best tool to use for order entry from an indicator.

        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by faisamtrader, Today, 10:31 AM
        1 response
        16 views
        0 likes
        Last Post NinjaTrader_Tyler  
        Started by ChazJ, Today, 09:48 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by maxie, Today, 10:01 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Melissa  
        Started by Bionian, Today, 09:36 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by tomd, Today, 09:48 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_Ariana  
        Working...
        X