My strategy uses two indicators: RSI14 (shift2 =
rsi2) and SMA100 (shift1 = sma1, shift2 = sma2, shift3 =
sma3).
If ( rsi2 > 70, sma1 < sma2, sma2 < sma3, candle2close > sma2 ) or
( rsi2 > 70, sma1 > sma2, sma2 > sma3, opensell = true) assign
openbuy = true,
opensell = false and when
(rsi2 < 50, openbuy = true, candle1close > candle2open, candle2close <
candle2open, candle1close >
sma1)
close SELL if is open and then open BUY.
If ( rsi2 < 30, sma1 > sma2, sma2 > sma3, candle2close < sma2 ) or (
rsi2 < 30, sma1 < sma2, sma2 < sma3, openbuy = true) assign opensell
=
true,
openbuy = false and when
( rsi2 > 50,
opensell = true, candle1close < candle2open, candle2close >
candle2open, candle1close < sma1)
close BUY if is open and then open SELL. Instrument = EURJPY,
SL = 50, trailing stop = sma1 - 40 pips for BUY, sma1+40 pips for
SELL, TP = 150, TF = 5 mins, lot = 10 M