Hello everybody,
According to the request from of one of you, I post a new indicator code created for his request.
This indicator is useful for trend trading.
LONG entry rules :
– Lowest > Moving Average
– Pattern “3 soldiers”
SHORT entry rules :
– Highest < Moving Average
– Pattern “3 crows”
You are free to change at will the moving average. For example, I put a moving average of 20 periods with smoothing Wilder.
In the indicator code, you will find various possibilities of moving averages (simply change the second digit).
C U Soon !
indic = 0
REM Moyenne mobile
MM = average[20,3](close) // à paramétrer à souhait
// TYPES DE MOYENNES MOBILES :
//0=Simple
//1=Exponentielle
//2=Pondérée
//3=Wilder
//4=Triangulaire
//5=End Point
//6=Série Temporelle
REM 3 soldats
Soldat = (close > open AND close[1]>open[1] AND close[2]>open[2] AND close>close[1] AND close[1]>close[2] )
IF Soldat and low > MM THEN
indic=1
ENDIF
REM 3 corbeaux
Corbeau = (close < open AND close[1]<open[1] AND close[2]<open[2] AND close<close[1] AND close[1]<close[2] )
IF Corbeau and high < MM THEN
indic=-1
ENDIF
RETURN indic as "INDIC MM + 3 S/C"