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.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Coding a Stop Loss that acts like ATM
Collapse
X
-
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.Tags: None
-
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
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
557 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment