[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 309
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
if this and that, then it's "equal to".
If it is equal to "True" then the order opens.
If I write if this and that, the order opens. will this solve the problem?
Actually the expression looks like this: if(a>b || (a<=b && c>d)). If the truth check is performed from left to right, the expression a<=b will be superfluous from the viewpoint of speeding up the program. The question was exactly whether it is from left to right or vice versa, or differently in different cases.
Special arrow codes that accurately indicate the price and time. Can be the following values:
Special arrow codes cannot be used in custom indicators when setting the arrow value for lines with DRAW_ARROW style.
Thank you for your help
Please advise what is the reason, EA does not open orders, writes error 133
Actually the expression looks like this: if(a>b || (a<=b && c>d)). If the truth check is performed from left to right, the expression a<=b will be superfluous from the viewpoint of speeding up the program. The question was whether it is from left to right or vice versa, or differently in different cases.
The expression a<=b cannot become superfluous because it is an element of conjunction. A conjunction is true only in one case, when all its conjuncts are true. If at least 1 of them is false, the whole conjunction is false. In your case, if atom a>b is false, the if() condition will hold when the expression ( a<=b && c>d) is true (the conjunction). And it will be true only if a<=b is true andc>d is true.
The expression a<=b cannot become superfluous
It is unnecessary. Draw a truth table.
Yeah, right, I missed it. You don't need the truth table here either. If expression a>b is false, then expression a<=b will always be true. So the formula a>b || (a<=b && c>d) will take a form: a>b || (1 && c>d). Applying the rule of exclusion of truth from conjunction we arrive at the final form: a>b || c>d.
But I won't remove my previous explanations - let a person understand it - it will come in handy more than once.
Yeah, that's right, I missed it. You don't need the truth table here either. If expression a>b is false, expression a<=b will always be true. So the formula a>b || (a<=b && c>d) will look like this: a>b || (1 && c>d). Applying the rule of exclusion of truth from conjunction we arrive at the final form: a>b || c>d.
But I won't remove my previous explanations, though - let the man understand it - it will come in handy more than once.
is it not easier to write that the truth is always true except a<=b && c<d ?
I don't understand the question. Write the full formula.
Afternoon. My advisor, gives 20-40% a year of the deposit is normal or a waste of time.