Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 7421
- Rating:
- Published:
- 2018.12.18 19:09
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Triangular Moving Average Convergence/Divergence oscillator - MACD based on TriMA.
It has four inputs:
- Fast TriMA period - fast TriMA period
- Slow TriMA period - slow TriMA period
- Signal period - signal line period
- Applied price
Calculation:
TMACD = SMA(FastMA, PeriodFast) - SMA(SlowMA, PeriodSlow))
Signal = SMA(TMACD, Signal period)
where:
FastMA = SMA(Applied price, PeriodFast)
SlowMA = SMA(Applied price, PeriodSlow)
PeriodFast = Floor(Fast TriMA period/2)+1
PeriodSlow = Floor(Slow TriMA period/2)+1
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22612