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,
I'm new to this forum, so apologise if I'm violating any rules.
I'm trying to re-create a Tradingview indicator on MQL and come across an issue when it comes to coloring the Histogram.
Tradingview logic I'm trying to copy:
My current MQL5 code which is not working:
For whatever reason, the loop doesn't let me compare to the previous value a second time?
The moment I take this line,
it works fine, but only gives me a 3 color solution.
Any ideas what I'm doing wrong or how I could fix it?
Many Thanks