Forex Engulfing – 3 bars count
Forums › ProRealTime Deutsch forum › ProOrder Support › Forex Engulfing – 3 bars count
- This topic has 3 replies, 2 voices, and was last updated 7 years ago by Nicolas.
-
-
03/20/2017 at 4:49 PM #29202
Hi All
I was playing with Nicolas’s bar counting strategy when I cam across some good results for the EURUSD.
Strategy:
EURUSD
1 Hour time frame
Count 3 bars in a direction
Trade in opposite direction
Exit on engulfing candle in opposite direction.Its very simple but can definately be optimized to increase the amount of winning trades.
I tried to check for 3 bars then a reversal signal like a engulfing signal or harami but got no trades.Any changes/improvements would be greatly appreciated.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950// timeframe: h1// instrument: FX// pairs: EURUSDDEFPARAM CumulateOrders = FALSE//Need to to implement Muray math levelsSize = 1 //position sizeStopLoss = 20 //stoploss in points//TakeProfit = 10 //takeprofit in pointsXcandlesticks = 3 //consecutive bullish or bearish candlesticks to open a new position//InverseTrading = 0 //(0=false ; 1=true) trade in the same direction of the candlesticks pattern or not//CumulateOrder = 0 //(0=false ; 1=true) cumulate or not a new trade if the current candlestick is in the same trend as the pattern// ------------//detecting patternsbearpattern = summation[Xcandlesticks](close<open)=Xcandlesticksbullishpattern = summation[Xcandlesticks](close>open)=XcandlesticksBullishEngulfing= OPEN[1] > CLOSE[1] AND CLOSE > OPEN AND CLOSE[1] >= OPEN AND CLOSE >= OPEN[1]bearishengulfing = CLOSE[1] > OPEN[1] AND OPEN > CLOSE AND OPEN[1] >= CLOSE AND OPEN >= CLOSE[1]//bullishharami = close[1]< open[1] and close > open AND close < open[1] AND open > close[1]//bearishharami = close[1]> open[1] and close < open AND close > open[1] AND open < close[1]buysignal = bearpatternsellsignal = bullishpattern// Conditions to enter long positionsIF NOT LongOnMarket AND buysignal THENBUY Size CONTRACTS AT MARKETENDIF// Conditions to exit long positionsIf LongOnMarket AND bearishengulfing THENSELL AT MARKETENDIF// Conditions to enter short positionsIF NOT ShortOnMarket AND sellsignal THENSELLSHORT Size CONTRACTS AT MARKETENDIF// Conditions to exit short positionsIF ShortOnMarket AND BullishEngulfing THENEXITSHORT AT MARKETENDIFset stop ploss StopLoss// Stops and targets : Enter your protection stops and profit targets here03/20/2017 at 4:52 PM #29205Hi Stanton, thanks for sharing your new strategy.
Seems interesting but I think you did not included the spread into your backtests. I get very different results and a loosing strategy, sorry mate. That’s why I moved your post from the library pending review list to a new forum topic instead.03/20/2017 at 8:33 PM #2923203/20/2017 at 10:02 PM #29241 -
AuthorPosts