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 !
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
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" |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials