Thank You
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Auto Trail (ticks)
Collapse
X
-
Auto Trail (ticks)
I have ninja script strategy for an auto trail (sample price modification) and a seperate ninjascript strategy for a 10 EMA crossing a 20 EMA but my main problem has been trying to combine the 2 strategies together. Also is Sample Price Modification an auto trail or auto break even i havnt been able to tell based on some of the code?
Thank YouTags: None
-
RColtelli, welcome to our forums - the SamplePriceModification example shows how to move the stoploss by calling the SetStopLoss in OnBarUpdate() again with your new desired stop value, it would not include multiple steps to provide a trailing feature, this could be for example achieved by trailing alongside a MA value in your code. You can combine parts of this script with the other one you found providing the entry rules on a crossover. To first of all get more familiar with our NinjaScript, please check into our tutorials from the helpguide laying the basics : http://www.ninjatrader.com/support/h.../tutorials.htm
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
85 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
47 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
29 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
67 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment