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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
581 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
338 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
552 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment