Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1770
![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
But why you need this array, I still don't understand...
The function will work without it.
But why you need this array, I still don't understand...
The function will work without it.
And there's no need for a loop here
And there's no need for a loop.
I did, but I wanted to understand why the array didn't work.
and by the way
ArraySize(Buffer,limit);
didn't help (
'ArraySize' - wrong parameters count
corrected without limit
array out of range in '_exp.mq4' (267,17)
ArrayResize, not ArraySize.
ArrayResize, not ArraySize.
I did, but wanted to understand why the array didn't work.
and by the way
didn't help (
'ArraySize' - wrong parameters count
corrected without limit
array out of range in '_exp.mq4' (267,17)
I noticed and corrected#17689 immediately afterwards. And you must have copied the uncorrected code.
And if you want to know why the array did not work, etc., see: Operations. See: Array operations .
I noticed and corrected#17689 immediately afterwards. And you must have copied the uncorrected code.Thank you, it's working!
You're welcome! Completed the message...
//+------------------------------------------------------------------+
I tried to write my own MA advisor, I have followed all the examples, but it keeps returning errors.
'ma1' - some operator expected trial by muving.mq4 47 21
'=' - ':' colon sign expected mq4 muving trial 47 24
'=' - operand expected muving.mq4 47 24
'ma1' - some operator expected muving.mq4 60 15
'=' - ':' colon sign expected muving.mq4 60 18
'=' - operand expected muving.mq4 60 18
Your order logic is wrong from the start. Find a simple EA on MA(e.g. CodeBase) and use it. Or you can modify it to suit your own idea. Regarding your code as a whole, everything is wrong there. Pay more attention to coding. Start with a simple one. Or, like I said, find a ready-made example.
Add code snippets using the special button at the top: