Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT65 Strategy ATM question

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

    NT65 Strategy ATM question

    Hi,

    I have strategy that is working well with an ATM. It enters correctly on signal and the atm manages the trade as expected. Profit locked in by the ATM as expected.

    I was wondering.... is it possible to have the strategy use the ATM to enter the initial order with an ATM ( as usual, with my working code). The ATM would have a stop and no target. then i would like to control the stop my self within the strategy. first to scratch after 4 ticks and then BE after 10 ticks BUT THEN TRAIL with a moving average. I know how to handle the first 2 conditions in the ATM but not the trailing of the moving average.

    I could programmatically do so but that would mean a complete rewrite of the strategy manually controlling the entering and managing the stop. The logic is completely different than using the ATM Strategy method I am using currently and it would require a new learning curve as the logic is different from what i use now.

    So basically my question is:
    1) Can I use the ATM to place the initial stop and target but them manage the stop my self trailing as i described above? If so is there a sample in the references you would suggest i follow
    or
    2) Is it possible to control the stop with the ATM by using a moving average?

    Thank you for your patience

    Sammy

    #2
    Sammy, you can control the stops as you like with the AtmStrategyChangeStopTarget() method - http://www.ninjatrader-support.com/H...topTarget.html

    You can supply any custom calculated stop value to change the stop to, as such the trailing along an MA is possible for a NinjaScript strategy calling an ATM.

    Comment


      #3
      Thank you kindly this worked perfect.....
      Additionally I now have another question.
      Now that I can move the stop at will with the AtmStrategyChangeStopTarget() function,
      I would like to perform one other check for exit.

      My ATM is set to an 8 tick stop and 35 tick target ( which almost never will get hit ).
      During a trade many times price goes sideways for a time after going in my favour....
      the stop is trailing my average but i would like to try and take a more favourable exit than my stop if possible if price is going sideways for say 10 bars. If i use MIN(Low,10)[0] i can get the lowest low in that last 10 bars. I would like to change the ATM target from the 35 ticks to a few ticks higher than the low.

      I have tried the function:
      AtmStrategyChangeEntryOrder( lowestlowminusafewticks, 0, "orderIdValue");
      but it does not update the target.
      there are no messages in the log.
      I know the function is being called becuase i even tried to use the atmstrategyID rather than the orderid and a message appears in the log saying that orderID does not exist( rightly so).
      I have run out of ways to test it....

      Is it possible to change the target of the ATM after the order has been filled..... similiar to the changing of the stop?

      Thank you for your patience.

      Sammy

      Comment


        #4
        Sammy, please use the AtmStrategyChangeStopTarget() to change the value of your stops/targets with "TARGET1" for the order to change. It is 99% the same process as changing the stop, but you must specify the target instead of the stop.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X