Is anybody know how to deal with the attached indicator? I'm trying to build an EA base on this indicator, but somehow the indicator's color and the indicator's buffer is inconsistent. I can't see it repaint though.
For better understanding, please look at the simple file written as an EA (without buy and sell code), and 2 screenshots below.
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.
Hi All,
Is anybody know how to deal with the attached indicator? I'm trying to build an EA base on this indicator, but somehow the indicator's color and the indicator's buffer is inconsistent. I can't see it repaint though.
For better understanding, please look at the simple file written as an EA (without buy and sell code), and 2 screenshots below.
Here is the "EA" code:
Below are screenshots from visual backtesting.
At the first screenshot, everything looks fine.
Then at a bar later, the indicator buffer looks reversed without reversing the color.
And this happen so many times, this almost frustating me (it's already actually LOL). Is anybody know how to deal with this kind of indicator?
I'm appreciating any help.
Thank you!