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

 

 __

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
 

Please edit your message and use SRC button.

 
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.

Reason: