Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I am trying to convert some code from mq4 to Easylanguage which uses a "better" Heiken Ashi close value. The following code gives me a floating point error and I am not sure why? It plots but when a new tick comes in it gives me the error. This is with RC 9.0
Thanks in advance,
Alex
Can you help answer these questions from other members on NexusFi?
you will run into this error when the study attempts to divide by 0. In your case when High and Low are the same your code will try to divide by zero. This produces the error message.
You can overcome this by adding a check like this and a good practice would be to set an alternative result in case High = Low.
you will run into this error when the study attempts to divide by 0. In your case when High and Low are the same your code will try to divide by zero. This produces the error message.
You can overcome this by adding a check like this …