MQL4 Reference Chart Operations WindowHandle
WindowHandle
int WindowHandle(
string symbol,
int timeframe
); |
Parameters
symbol
[in] Symbol.
timeframe
[in] Timeframe. It can be any of Timeframe enumeration values. 0 means the current chart timeframe.
Returned value
Example:
int win_handle=WindowHandle("USDX",PERIOD_H1);
if(win_handle!=0)
Print("Window with USDX,H1 detected. Rates array will be copied immediately."); |
|