Dear all
I have been playing around with the concept of reversal after n consecutive bullish or bearish bars and I found a quite nice result in the USD JPY 1 hr timeframe.
The strategy has 3 condition:
In attachment you find the results of a WF static analysis 70/30 with 3 variables.
Please feel free to comment, any constructive criticism will be greatly appreciated!
//USDJPY TF 1hr spread 1.5 pips
DEFPARAM CUMULATEORDERS = False
//DEFPARAM FLATBEFORE = 090000
//DEFPARAM FLATAFTER = 220000
//n = 3 // number of consecutive bars with the same colour
fastavperiod=5 /// period of fast moving average
slowavperiod=100// period of slow moving average
atrmin= 10 // take poistion only if there is enough vol
//adxval = 25 // take position only if there is a trend
//t = 7 // multiplier for exit strategy
volindic = averagetruerange[14]
fastav = average[fastavperiod](close)
slowav = average[slowavperiod](close)
cl = summation[n](close<open) = n
cs = summation[n](close>open) = n
volok = volindic > atrmin
ctrend = adx[14]>adxval
position = round(100/averagetruerange[14])
if cl and ctrend and fastav > slowav and volok then
buy position contract at market
endif
if cs and ctrend and fastav < slowav and volok then
sellshort position contract at market
endif
set target profit t*volindic
set stop ploss 2*t*volindic