equivalents to Bid and Ask

 

MQL4 has Bid and Ask.  Are there equivalents in MQL5?  I can’t get Bid() or Ask() to work in MQL5. I don’t understand what “selected by Name method” means.  Code examples would be very helpful.

 
darkmatter:

MQL4 has Bid and Ask.  Are there equivalents in MQL5?  I can’t get Bid() or Ask() to work in MQL5. I don’t understand what “selected by Name method” means.  Code examples would be very helpful.

double Ask = SymbolInfoDouble(_Symbol,SYMBOL_ASK); 

 

Regards, 

 
och:

double Ask = SymbolInfoDouble(_Symbol,SYMBOL_ASK); 

 

Regards,


Thanks for your help


Reason: