Here’s a screen shot, I’ve just set up using Market Replay. It show’s a m2 chart and if you look at the large green candle at 14:38 as an area of interest …
There are 3 indicators shown:
• a Simple MA, 20
• Smoothed Wilder MA 5
• Smoothed Wilder MA 7
If I was a coder this I would calculate the value of the indicator, then determine if it was a higher/lower value compared to the previous candle, then colour the line as appropriate.
What we are seeing is that the lines don’t connect, there are gaps, and the slope often shows the wrong colour. Often there are two different values for each line.
The 14:38 candle I mentioned shows 6 different values for the indicators (SMA20, SMMA 5 & SMMA 7).
Have fun, I’d help if I could but I’m an Accountant not a coder.