I see what the problem is: the arrow buffer is written when you are well passed the divergence... It means the indicator is lagging and you never get divergence signal in first bar.
You have to read the buffer value when two bars passed.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Of course, but I ran all my tests in the Beck tests.
The same problem was identified at the following link for an indicator that uses the same logic:
https://www.mql5.com/en/forum/13342/page4#comment_39827391
I see what the problem is: the arrow buffer is written when you are well passed the divergence... It means the indicator is lagging and you never get divergence signal in first bar.
You have to read the buffer value when two bars passed.