ulisses gomes:
But I`m geting this error 'Ask' - function not defined !
The code is This
Please can someone tell me how you define Ask as a FUNCTION?
Please use the code button (Alt + S) when posting code. I have edited your post this time.
Your posted code will not produce this error, so it must be elsewhere in your code.
I will move this to the MQL4 sub forum.
Ask/Bid are builtin variables in MT4 but not MT5.
Hi, I am getting this error:
'Ask' - undeclared identifier MOV1.mq5 50 36
How can I solve it?
please help me.
please help me.
ulisses gomes:Please can someone tell me how you define Ask as a FUNCTION?
You can't. Ask is a predefined variable, not a function. Your posted code is not the problem. Post the lines where the error occurs. Yashar Seyyedin #: As discussed above: Ask/Bid are builtin variables in MT4 but not MT5.
This is the MT4 forum and OPs question was MT4.
You need to define Ask in MQL5:
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
Hello There I
I am new to coding ! I`ve been developing my EA
But I`m geting this error 'Ask' - function not defined !
The code is This
Please can someone tell me how you define Ask as a FUNCTION?
Regards