MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Checkup  IsTradeContextBusy

 
bool IsTradeContextBusy( )
Returns TRUE if a thread for trading is occupied by another expert advisor, otherwise returns FALSE.
See also IsTradeAllowed().
Sample:
  if(IsTradeContextBusy()) Print("Trade context is busy. Please wait");