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)
Your If statements are fine but they are not doing what you want them to do. I see what you are doing with the filter input switches. I would suggest cleaning up the If statement.
If Fx1 = 1 and O > H[1] then Fx1_V = true
else Fx1_V = false;
Warning, this provides a false even if O > H[1] when Fx1 = 0. Your final line to check whether all the values are true then do something. If one of the switches is off, it will make the value false and therefore never fill the final conditions.
The final error and what is causing the compile error is the FxL final output. You are establishing this as numeric but attempting to apply a bool to it.
I would suggest something like this to clean it up.