Moving average AND 3 soldiers / 3 crows

Category: Indicators By: Doctrading Created: April 11, 2016, 6:25 PM
April 11, 2016, 6:25 PM
Indicators
0 Comments

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"

Download
Filename: MM-3-soldats-corbeaux.itf
Downloads: 93
Doctrading Master
Hello, I'm Marc. Nice to meet you.
Author’s Profile

Comments

Logo Logo
Loading...