Thanks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ATR Stops
Collapse
X
-
Hello Trader17,
Thanks for your inquiry.
This would be possible to hard code into an unlocked NinjaScript strategy, but this would not be possible in the Strategy Builder as the Strategy Builder has limited support for mathematical operations and there is not a way you could multiply the ATR by the TickSize and convert it for use for an ExitLimit or ExitStop order in the Strategy Builder.
Additionally, if you wanted to use SetProfitTarget() or SetStopLoss() to set an exit based on indicator values, you would have to unlock the code so the strategy can update the profit target and stop losses dynamically.
You may see the SetProfitTarget() and SetStopLoss() documentation for more information on hard coding dynamic profit targets and stop losses based on changing data.
SetProfitTarget() - https://ninjatrader.com/support/help...ofittarget.htm
SetStopLoss() - https://ninjatrader.com/support/help...etstoploss.htm
Please let us know if you have any questions.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
81 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
149 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
52 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
59 views
0 likes
|
Last Post
|

Comment