- the exponential average 5 (close) > the triangular average 8 (close)
- close > triangular average 8 but close of the previous candle < triangular average 8
achat = 0 vente = 0 // INDICATEURS EMA5 = ExponentialAverage(close) TMA8 = TriangularAverage(close) // ACHAT ca1 = close < TMA8 and close > TMA8 ca2 = EMA5 > TMA8 IF ca1 and ca2 THEN achat = 1 ENDIF // VENTE cv1 = close > TMA8 and close < TMA8 cv2 = EMA5 < TMA8 IF cv1 and cv2 THEN vente = -1 ENDIF return achat as "ACHAT", vente as "VENTE"
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 :