This is an averages indicator where you can use the timeframes available on mt5. Indicator besides mtf, has all the prices, you can filter price, the ma value, or both, and also has a double smooth option.
A histogram version is now available as well, here: MT4 Moving Averages with MT5 timeframes Histogram.
Timeframes available include:
Code: Select all
enum enTimeFrames
{
tf_cu = 0, // Current time frame
tf_m1 = 1, // 1 minute
tf_m2 = 2, // 2 minutes
tf_m3 = 3, // 3 minutes
tf_m4 = 4, // 4 minutes
tf_m5 = 5, // 5 minutes
tf_m6 = 6, // 6 minutes
tf_m10 = 10, // 10 minutes
tf_m12 = 12, // 12 minutes
tf_m15 = 15, // 15 minutes
tf_m20 = 20, // 20 minutes
tf_m30 = 30, // 30 minutes
tf_h1 = 60, // 1 hour
tf_h2 = 120, // 2 hours
tf_h3 = 180, // 3 hours
tf_h4 = 240, // 4 hours
tf_h6 = 360, // 6 hours
tf_h8 = 480, // 8 hours
tf_h12 = 720, // 12 hours
tf_d1 = 1440, // daily
tf_w1 = 10080, // weekly
tf_mn = 43200 // monthly
};