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 AaronKoRn, Today, 09:49 PM
|
0 responses
6 views
0 likes
|
Last Post
by AaronKoRn
Today, 09:49 PM
|
||
Started by carnitron, Today, 08:42 PM
|
0 responses
9 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
10 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,976 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
Comment