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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
26 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
182 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
335 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
260 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment