Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 337
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
That's a strange feeling you have. Just showed you how to keep it simple - without any unnecessary variables.
So I'm tired and it's time for me to go get some rest - sleep, yeah.
Good afternoon! What is the function of the indicator window in the Expert Advisor?
Good afternoon! What functions in the Expert Advisor can you make the indicator window?
Call an empty indicator from the Expert Advisor.
Call out an empty indicator from the expert.
Thank you!
Find the code you need here
Hello! I took the function to determine the price of the last open Sell order
But when I paste it into my EA, I get a compile-time error in the 'sy' function's condition - unexpected token
=' - unexpected token 252 18
l-value required 1 1
implicit conversion from 'string' to 'number' 252 19
'=' - l-value required 252 18
'=' - expression of 'void' type is illegal 252 18
'op' - unexpected token 252 28
'=' - unexpected token 252 30
l-value required 1 1
'OP_SELL' - illegal operation use 252 31
possible loss of data due to type conversion 252 30
'=' - l-value required 252 30
'=' - expression of 'void' type is illegal 252 30
'mn' - unexpected token 252 44
'=' - unexpected token 252 46
l-value required 1 1
'1' - illegal operation use 252 48
Seems like everything should be correct!?? Please advise, I copied it and did not change anything.
Hello! I took the function to determine the price of the last open Sell order
But when I paste it into an EA, I get a compile-time error in the 'sy' function condition - unexpected token
=' - unexpected token 252 18
l-value required 1 1
implicit conversion from 'string' to 'number' 252 19
'=' - l-value required 252 18
'=' - expression of 'void' type is illegal 252 18
'op' - unexpected token 252 28
'=' - unexpected token 252 30
l-value required 1 1
'OP_SELL' - illegal operation use 252 31
possible loss of data due to type conversion 252 30
'=' - l-value required 252 30
'=' - expression of 'void' type is illegal 252 30
'mn' - unexpected token 252 44
'=' - unexpected token 252 46
l-value required 1 1
'1' - illegal operation use 252 48
Seems like everything should be correct!?? Please advise, I copied it and did not change anything.
I need to return the function type
I think everything should be correct!?? Please advise, I copied it anddidn't change anything.
And the header of the function, and didn't copy the function type
The function originally looks like this:
And the function header, and did not copy the function type
The function originally looks like this:
A function header, and have not copied the function type
The function originally looks like this:
Correct, the example also said. If I have understood correctly, you can select the order type, which I have done.
'PriceS' - function can be declared only in the global scope 252 10
I understood that the function must be global!
Translated the error in the translator it says
That's right, it was also written in the example. If I understood correctly it is possible to select the order type, which I did.
'PriceS' - function can be declared only in the global scope 252 10
I understood that the function must be global!
Translated the error in the translator says
Place the function outside the start function
And in the body of the start function, you call it like this:
3 parameter magik, comma separated, put your own or 0
Place the function outside the start function
In the body of the start function, you call it like this:
3 parameter magik, comma separated, put your own or 0
Thank you so much!!! As soon as I put the function outside the start function, all the errors disappeared!!!