![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
Igor's:
Need:
As far as I understand, this is a useless substitution, because using NULL substitutes the current chart symbol.
What don't you like? Or in this case you can only put one and the other is no good?!
Comment( NumberOfPositions(NULL, -1, Magic) );
in this case, we can put " " orSymbol() or _Symbolor 0, but not NULL
NULL in this case does not represent the current symbol
in this case, NULLmeans the current symbol
double res=iAC(NULL,0,1);
The compiler used to allow all sorts of liberties. Now it's stricter. Is it bad? You look through the code and you see such pearls, even if you wanted to compare them to a missing value...
This is the end of the lafa. Why? Simply because, in particular, they make claims against meta quotas for that shit-code downloaded by users from all sorts of dumpsters. Schoolchildren write it, and freeloaders use it, not knowing that it is a bomb.
Comment( NumberOfPositions(NULL, -1, Magic) );
in this case, we can put " " orSymbol() or _Symbolor 0, but not NULL
NULL in this case does not represent the current symbol
in this case, NULLmeans the current symbol
double res=iAC(NULL,0,1);
As far as I understand, this is a useless substitution, because using NULL substitutes the current chart symbol.
That's for sure!
No, not in that context.
If we were calling some built-in function that specifies a symbol, then yes, but here we are comparing with an order symbol, it cannot be NULL and will not give the truth when comparing NULL and OrderSymbol().
No, not in this context.
If we were calling some inline function specifying a symbol then yes, but here we are comparing with an order symbol, it cannot be NULL and will not give the truth when comparing NULL and OrderSymbol().
Igor is not a programmer to you?!
Why not? The programmer. I like his logic, but that's how I would write the order counting function: