Please am new to mql5
I want to run a simple mql5 program that will return the bid or ask price once OnTick() is called, but am getting compilation error once i compile my program
Errors such as 'MarketInfo' - undeclared identifier Test.mq5 34 27
',' - unexpected token Test.mq5 34 46
'EURUSD' - some operator expected Test.mq5 34 38
'MODE_BID' - semicolon expected Test.mq5 34 47
'MODE_BID' - undeclared identifier Test.mq5 34 47
'MODE_BID' - semicolon expected Test.mq5 34 47
'MODE_BID' - undeclared identifier Test.mq5 34 47
')' - unexpected token Test.mq5 34 55
6 errors, 0 warnings 7 1
My code
MarketInfo is something you have made up and not a function which is why you are getting errors
Use the correct function https://www.mql5.com/en/docs/marketinformation
try looking at SymbolInfoTick
MarketInfo is something you have made up and not a function which is why you are getting errors
Use the correct function https://www.mql5.com/en/docs/marketinformation
try looking at SymbolInfoTick
Thanks alot it work with your answer
I copied that code online
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Please am new to mql5
I want to run a simple mql5 program that will return the bid or ask price once OnTick() is called, but am getting compilation error once i compile my program
Errors such as 'MarketInfo' - undeclared identifier Test.mq5 34 27
',' - unexpected token Test.mq5 34 46
'EURUSD' - some operator expected Test.mq5 34 38
'MODE_BID' - semicolon expected Test.mq5 34 47
'MODE_BID' - undeclared identifier Test.mq5 34 47
'MODE_BID' - semicolon expected Test.mq5 34 47
'MODE_BID' - undeclared identifier Test.mq5 34 47
')' - unexpected token Test.mq5 34 55
6 errors, 0 warnings 7 1
My code