Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 266
![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
Artyom good afternoon. My name is Daniel. My question is the following one. I have written my Expert Advisor in MQL4, to be more precise, rewritten from the video tutorial. Apparently there are some errors in it, but it will not compile well.
The compiler will display the errors specifying the line and position in the line. Please refer to them
Insert the text of the program using the SRC button above the text of your message - look, it is better!
You could also attach a file - then it would look in the MetaEditor immediately
The compiler will generate errors indicating the line and position in the line. Refer to them
Insert the text of the program using the SRC button above the text of your message - look, it's better!!!
You could also attach a file - then it would look in MetaEditor immediately
Sorry for the incorrect behavior, I stand corrected, I give you my word :) I'm exhausted absolutely....
I have marked lines with errors, file..... attached, please take a look, thank you in advance!
I apologize for the incorrect behavior, I will correct myself, I give you my word :) I'm completely exhausted ....
I have marked lines with errors, I have attached file....., please look it up, thanks in advance!
Is it so hard to see that ticet and tiket are different variables?
And you cannot see closing parenthesis without opening parenthesis too?
Thanks so much for your help!!! .... Fixed all the errors with one I can't figure out. I'm asking for your help. Where did I mess up again?
You have this block out of the body of the OnTick function, remove one bracket.
And then there will be one bracket missing.
The bracket above the selected line must be moved down, before the minus line.
} //+------------------------------------------------------------------+
And then there will be one bracket missing.
The bracket above the highlighted line must be moved down before the minus line.
Everything!!! .... Thank you very much. Compiled it. It works!
What's the payoff? Also this piece here with the empty function can be discarded. Try it...