Good!
I'm new to MQL4 programming and mql5 and I liked to obtain values for purchase / sale of the EURUSD. I wanted to show these values in the graph window EURUSD currency.
Is this possible?
I tried obtrer values using the following code:
MarketInfo double price = ("EURUSD", Bid);
double priceask MarketInfo = ("EURUSD", Ask);
However I put an alert and the values obtained but the bid and ask were the same what I think should not be right?
- Instant notifications and alerts in MetaTrader 5
- MQL5 Wizard: Development of trading robots for MetaTrader 5
- Flexible MetaTrader 5 trading system with all order types
Leudasdf:
Good!
I'm new to MQL4 programming and mql5 and I liked to obtain values for purchase / sale of the EURUSD. I wanted to show these values in the graph window EURUSD currency.
Is this possible?
I tried obtrer values using the following code:
MarketInfo double price = ("EURUSD", Bid);
double priceask MarketInfo = ("EURUSD", Ask);
However I put an alert and the values obtained but the bid and ask were the same what I think should not be right?
Great !
Hi Leudasdf,
MarketInfo in MQL5 (click here) is a little bit different than MQL4. In your case, try to use MarketInfo's SymbolInfoDouble() (click here) or SymbolInfoTick() (click here). There are some example if you click around over there.

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