Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How do you code the Auto Trailing Stop
Collapse
X
-
How do you code the Auto Trailing Stop
I can't fine an example of setting up or calling the Auto Trailing Stop function from code. Could you please point me in the right direction? Thanks.Tags: None
-
If you want to use a trailing stop you will want to use SetTrailStop(). If you are referencing the ATM strategy's trailing stop functionality you can only call ATM strategies from NinjaScript. You would need to just call an ATM strategy that has the trailing stop predefined the way you like it.
For SetTrailStop(): http://www.ninjatrader.com/support/h...ttrailstop.htm
For calling ATM strategies, there is a preinstalled strategy with your NT called SampleAtmStrategy.Josh P.NinjaTrader Customer Service
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
215 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
130 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
147 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
230 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
192 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment