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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    546 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X