Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 5606
- Rating:
- Published:
- 2019.01.02 14:30
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
TriMAgen is a Triangular Moving Average generalized by J.Ehlers.
It has two input parameters:
- Period - calculation period
- Applied price - price used for calculations
Calculation:
TriMAgen = SUM / Len2
where:
SUM = sum of SMA(Applied price, Len1) within the Len2 range
Len1 = Floor((Period+1.0)/2)
Len2 = Ceil((Period+1.0)/2)
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/23109