![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
Shit... The terminal comes with so many examples... ...so many examples... SymbolInfoSample.mq5 script, for example
There are two functions
__FILE__ - it gives only file name
MQL5_PROGRAM_PATH - it gives the path to the resulting ex5 file
Question - how do I know where in the mqh-file it is located?
In MetaEditor, the "List of functions in file" button opens the list. If you scroll down, it ends at P and does not move any further (black triangle pointing down becomes inactive), although there are classes at R as well. Please correct.
I don't know if it's a bug or if I've found a trick. The following code works, but gives a warning expression is not boolean
I don't know if it is a bug or a trick. The following code works but generates the expression is not boolean warning
Why shouldn't the code work?
The only thing is that the if operand is not converted to a bool, this is what the compiler warns about, but otherwise everything is correct.
a,b,c, by the way, can be not initialized at all, since they are explicitly assigned in the if.
3 assign to a, assign a to b, assign b to c and then check if it is true and then write Print().
I don't know if it's a bug or if I've found a trick. The following code works, but gives a warning expression is not boolean
It's probably like this.
Then tell me how to write this expression so it doesn't swear.
Then tell me how to write this expression so it doesn't swear.
In the first post you are doing assignment operations, multiple cascading assignment is acceptable. Here you are trying to do a multiple comparison.
SZ since you have two comparison results in your output they should be separated by && or other boolean operator.
Then tell me how to write this expression so it doesn't swear.
I suggest the following.
Nikolay is ahead of you :)
Urain:
SZY since you have two comparison results in your output, they should be separated by && or other boolean operator.