USDJPY 3candles and reversal strategy with ADX and VOL filter.

Category: Strategies By: Francesco78 Created: May 15, 2017, 2:13 PM
May 15, 2017, 2:13 PM
Strategies
40 Comments

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:

  • 3 consecutive bars of hte same colour
  • ADX > ADXmin
  • Vol > Volmin ( expressed in ATR )

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

 

Download
Filename: usdjpy3candlesreversion.itf
Downloads: 634
Download
Filename: wf_1.png
Downloads: 264
Francesco78 Master
Developer by day, aspiring writer by night. Still compiling my bio... Error 404: presentation not found.
Author’s Profile

Comments

Logo Logo
Loading...