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)
Actually, the signal does not run OK since you have an execution error "Floating-point division by zero."
I think that the code runs OK on the specific instrument that you have manually tested, but the error comes from the implementation of the code on another instrument of the portfolio that you have not tested manually.
There should be somewhere in your code a division a/b with b = 0.
I suggest that, before each division, you add something like
in order to identify where the problem comes from.
Personally, before each division with a risk of null denominator, I add a test like:
I agree, you need to be on MC 7. Then you can troubleshoot from there.
I've had floating point div by zero errors before, I generally end up using a Math.Min equivalent (I can't recall the EL code right now), to make sure I am not dividing by zero.