You have exactly all the conditions met when y = 1. They are not mutually exclusive.
Mutually exclusive are for example: y<0, y==0, y>0.
Ok, thanks all for your willingness to help me. Once again I will carefully read about combination if-else, not to litter posts here. About mutually exclusive, I guess it's like this: y<0, y==0, y>1.
In MQL5, you can select MA averaging method in external parameters using this: inputENUM_MA_METHOD ma_method=MODE_SMA. In this case, when testing the program, you can initially choose only between the averaging methods and nothing else will be written.
You have exactly all the conditions met when y = 1. They are not mutually exclusive.
Mutually exclusive are for example: y<0, y==0, y>0.
You have exactly all the conditions met when y = 1. They are not mutually exclusive.
Mutually exclusive are for example: y<0, y==0, y>0.
paladin80:
Да, switch я использую. На счёт взаимоисключаемости условий, я это явление понимаю так:
Those highlighted in red will never be executed.
Please help me, I don't understand what's wrong.
RSIi=iRSI(NULL,0,20,PRICE_OPEN,0);
if ( RSIi<52)
I add this condition, it reads in the optimizer, but when I run a test, the trade is not opened.
if ( RSIi>52)
but it works (-)
I want it to open deal if RSI is below 50
You need to look at what you have written next under this condition. There is probably an error there.
ugh, what a glitch=) I restarted the terminal and it all worked yyyy
In MQL5, you can select MA averaging method in external parameters using this: input ENUM_MA_METHOD ma_method=MODE_SMA. In this case, when testing the program, you can initially choose only between the averaging methods and nothing else will be written.
Question, is there such a record for MQL4?
Found this accidental typo in my code, but the compiler didn't give any errors.
Thank you!
Does the condition if(a <- b) {} make sense? (less_minus)
if ((a) < (-b)) so I guess.
There will be no warning, much less an error.