if((condition 1) && (condition 2) && (!MA_Filter || (MA_Filter && FastMA<=SlowMA))) { do this }It should be <= not =<
honest_knave:
It should be <= not =<
It should be <= not =<
Thanks but that did not solve the issue..
fabian waldo:
Thanks but that did not solve the issue..
Thanks but that did not solve the issue..
Did you look at the rest of the code I posted? You need to do that, or you could use a ternary operator.
fabian waldo: In other words I want to add another condition if (and only if) boolean statement on global level is true, otherwise just continue without..
fabian waldo: Thanks but that did not solve the issue.. |
|
honest_knave:
Did you look at the rest of the code I posted? You need to do that, or you could use a ternary operator.
Did you look at the rest of the code I posted? You need to do that, or you could use a ternary operator.
For some reason I missed that...
It works now, Thanks a lot for the help knave!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am trying to use a boolean statement within my signal paramenters -
in global variables I have 'USE MA' = True,
I need to insert nested if statement, but it keeps running with errors..
In other words I want to add another condition if (and only if) boolean statement on global level is true, otherwise just continue without..