I have just built a strategy that is performing relatively well, but from looking at the periods of drawdown I noticed one thing I could improve on, however I do not know how I would program this in ninjascript.
Basically my strategy is a counter trend strategy so it looses money when markets are trending hard. My strategy includes a stop loss and profit target. I would like my strategy to stop entering long trades after a long stop out, and stop entering short trades after a short stop.
In other words, if my strategy enters a long position, two things can happen. It can reverse and go short or it can get stopped out. If it gets stopped out and the trend continues lower, it will continue buying and buying until the trend reverses. I don't want that risk.
How would I program this?
Any help would be GREATLY appreciated!
Julian
Comment