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.htmBertrandNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rhyminkevin, Today, 04:58 PM
|
4 responses
52 views
0 likes
|
Last Post
by dp8282
Today, 06:13 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
5 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
7 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
50 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
Comment