MT5 with option of jurik macd center line fixation
When the Jurik MACD line crosses zero, the ZigZag swing of the finished segment is fixed and a new leg starts. The highest high of a positive segment becomes the top, and the lowest low of a negative segment becomes the bottom. The candle colours follow from that. This is the same code path your existing MACD centre-line fixation uses, so the leg and candle behaviour matches it exactly.