Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Coding a Stop Loss that acts like ATM

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

    Coding a Stop Loss that acts like ATM

    I have looked all over the forum for this, but I can't find exactly what I'm looking for. I've looked at the help page, but the example is not very extensive.

    Basically, I want to code a moving stop loss that works like the ATM. For example, when I get X number of ticks profit, move my stop loss to within Y number of current price. I wish there was a way to call an ATM that I have made using the wizard thing. Thanks for the help.

    #2
    Hello,
    Thank you for your post.
    You can call an ATM Strategy using NinjaScript. Please see the following link on ATM Strategy Methods,http://ninjatrader.com/support/helpG...gy_methods.htm

    I recommend reveiwing the code for the SampleATMStrategy as weell. To do this you will go to Tools> Utilities > Edit NinjaScript > Strategy > SampleATMStrategy> Press OK.

    If you save an ATM strategy with a Stop Strategy selected it will submit with the Stop strategy using the NinjaScript Strategy.
    If we can be of any other assistance please let us know.
    Cody B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    128 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    73 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    116 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    109 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    88 views
    0 likes
    Last Post CarlTrading  
    Working...
    X