And here is this version
While the above version is using the built in ema for calculation, this version is using my type of calculation. And since the built in ema is adding a new instance of ema for each new period used, it is actually a sort of a macd of nnn emas. This version is a completely different story. You might call it an "adaptive indicator to the extremes.
Both are having exactly the same values up to the current bar and both are going to repaint/recalculate the future values. Except that this version is having the "future" values of macd much closer to any future macd value (that will be obvious even after a couple of minutes of using them).
But since both are going to repaint do not use any of the versions for "future" signals (the signals marked by the colored zone in this indicator). The first version was posted to show how it is done. This version is posted to try to make the "future" prediction a bit less random. Enjoy