Great indicator, thanks for sharing.
There may be an unintended feature.
Whe the ema changed to 5 it gives different readings as you change timeframes.
the indi doesn't care about the chart's TF.
You may have witnessed just a mt4 history refresh glitch -- it may take some time for mt4 to grab the needed history for all pairs and TF to get the correct (and then stable) MAs.
Once it shows decent values, it will keep them stable whatever pair or TF you load the indi on;
Switching the chart's TF where the indi is alerady loaded won't affect the printed results;
Same thing when changing the chart's pair (drag and drop the pair name from the "Market Watch" window to the chart) (in multi-pair mode of course).