thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Auto Trailing Stoploss
Collapse
X
-
Hello cbsplanet,
Thank you for your post.
As this appears to be in relation to creating an automated strategy with NinjaScript, I've moved your post to a more appropriate forum.
A basic trailing stop can be added to your strategy using SetTrailStop:
SetTrailStop will begin trailing at a price you specify and will trail in the direction of profit by 1 tick for each tick in profit reached.
If you're wanting a more complex trailing action in a strategy you would want to use Exit orders and create logic to move the exit in a trailing fashion. I've attached a simple Strategy Builder example that demonstrates - you can unlock the code to view the logic if you're manually coding in the NinjaScript Editor window. You can test this with the Sim101 account to get an idea of how that functions.
While ATM strategies may be submitted from an automated strategy, it's generally simpler to use SetStopLoss/SetProfitTarget/SetTrailStop at first - using an ATM within a strategy would require advanced NinjaScript skill and cannot be done in the Strategy Builder. Further information regarding the use of ATMs in a strategy may be found in our help guide here:
Please let us know if we may be of further assistance to you.Attached Files
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
90 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
135 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
120 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment