Hi guys, when I test the first part of the code I sometimes get zero divide errors. I'm aware this happens when a candlestick doesn't have any wicks. Looked online but couldn't find a clear solution.
I've attempted to create this function which would always return a value of a wick greater than 0 however I doubt this is correct or can be done. Would appreciate any help you could provide!
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 guys, when I test the first part of the code I sometimes get zero divide errors. I'm aware this happens when a candlestick doesn't have any wicks. Looked online but couldn't find a clear solution.
I've attempted to create this function which would always return a value of a wick greater than 0 however I doubt this is correct or can be done. Would appreciate any help you could provide!
Thanks for the help & Merry Christmas!