Download MetaTrader 5

what thing I must check before send request until this error not happen? failed prices for 0.00 [Invalid request]

To add comments, please log in or register
Ali Poormomen
1812
Ali Poormomen  

 __

Automated Trading and Strategy Testing
Automated Trading and Strategy Testing
  • www.mql5.com
MQL5: language of trade strategies built-in the MetaTrader 5 Trading Platform, allows writing your own trading robots, technical indicators, scripts and libraries of functions
Alain Verleyen
Moderator
32430
Alain Verleyen  
Alain Verleyen
Moderator
32430
Alain Verleyen  
ali poormomen:

when I run it
"EURGBP" is not open
This error happened

result1.retcode==10013

failed prices for  0.00 [Invalid request]

what thing I must check before send request until this error not happen?.

thanks 

What do you mean "not open" ?

Check your price before sending a request, SymbolInfoTick() is a function, if there is no quote it returns false, so don't send a request to that symbol in such case.

To add comments, please log in or register