Mladen, I forgot to ask could you please check this indy you made for me. The MTF moving average doesn't appear in the higher timeframes.For example, the 5 minute MTF 200 moving average (light blue line) won't display on the 15 minute chart.Please take a look when you can.
Why don't you use the averages indicator (just as one example of a correctly coded multi time frame average)?
That indicator is using the mtf logic that was used somewhere in 2005 and 2006. If I fix it, it will be nothing like that indicator (since we have changed the logic of multi time frame indicators by 180 degrees)
That indicator recalculates/repaints (as it is explained here : https://www.mql5.com/en/forum/181241 )
As long as the centered TMA is used it will recalculate and changing centered TMA to TMA (which does not recalculate) will not give results that you expect (they will be very different). Anyway attaching a version with a choice (to use the non-recalculating TMA too), so you can decide (no arrows in it, check the non-recalculating mode first)
Whoever patched the "no repaints" to that indicator is lying. That is exactly the same indicator as you posted earlier (different name of course) except that it has arrows. Ie: it repaints up to HalfBars back to the past.
What exactly are you expecting from the averages you are looking for?