Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 326
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
Use the button to insert code!
Strange because PriceBlizko1 is described in the line above
What, no one uses indicators from ClusterDelta?
Thank you))) I will now know))) I have indicated in what place gives an error at compilation
Strange because PriceBlizko1 is described in the line above
It is described exactly in the line above. It needs to be defined globally so that it is available to all units, not just the local(current) one
Doesn't anyone use indicators from ClusterDelta?
Read objects and take data from them:ObjectGetDouble
It is described exactly in the line above. It needs to be defined globally, so that it is available to all units, not just the local(current) one
Thank you)
Seems to have finished writing the EA, but an error pops up
')' - not all control paths return a value
What can it be related to. I tried to put return, the error changes
'return' - the function must return a value
Seems to have finished writing the EA, but an error pops up
')' - not all control paths return a value
What can it be related to. I tried putting return, the error changes
The 'return' - the function must return a value
Maybe the function mustreturn(0);
Maybe areturn(0) like this is needed;
AAAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH !!!! Thanks!!!
AAAAAAAA HOORAY!!!! Thank you!!!
Why "thank you"? The function should return a value. And you always return zero. If it is supposed to return nothing, its type should be void.
In mql4, mql5 an array is always passed to a function by reference only (& == ampersand)
First - in formal parameters of a function, there is an ampersand, and it indicates that it's not the array itself that is passed into the function, but a reference to it. And then - inside the function - you are already working with the reference, which means that you don't have to specify it again.
The tilde (~) precedes the name of the class destructor - the constructor and destructor have the same name as the class itself, but the destructor has ~.
Read this article about when to use references and when to use pointers.
Although, you still need to read the basics.
Thank you!