Strict MACD divergence: when the file draws a line

A line after three checks. Not an order.
Direct answer
This file draws a line on price and a line on DIF when three closed-bar checks all pass. It does not place an order. It does not name the next candle.
The MetaTrader 5 file on this page is macd_color_divergence.ex5. It needs an account. It does not place an order.
The three checks, and the pair of lows this page uses, are already written: three checks before a divergence line. This page does not repeat that proof.
The histogram colors that sit under those lines are the same four-color MACD: what the pane is.
What the file draws
The file is an indicator in its own window. With the defaults used on the linked note, it waits until three checks pass, then it draws. A pair that fails any check gets no line.
The line is not known at the second pivot. That pivot still needs five closed bars on its right. Calling the line at the second low is early.
Screenshot
One capture of one pair. Other pairs on the same download are not this page.

This is not a live MetaTrader sitting with a product name in the status bar. Do not read a 04:00 bar on another chart as this line.
On the desk
BarionQuant Desktop does not import this MetaTrader file. An account that unlocks the download on this page does not install the file into Desktop. Desktop is a local practice desk. It is not a broker.
We ship Windows today. No Mac build. No browser replay.
Same brand name, two different products: script versus desktop.
Who should skip
Skip this page if you want a script that places orders, or a line that is always a reversal.
Skip it if you came for the three checks. That is the other note.
Next step
Download the Windows build if you want a local desk. Read why a finished chart still lies before you treat a drawn line as known in real time.
For study and simulated practice only. This is not investment advice.
Educational content. BarionQuant is not a broker and does not provide investment advice or trade signals. Past practice results do not predict future outcomes.