TradeMUX SDK Documentation
1.0
TradeMUX SDK Documentation
|
bool EventSetMillisecondTimer | ( | int | milliseconds | ) |
The function indicates to the client terminal that timer events should be generated at intervals less than one second for this Expert Advisor or indicator.
milliseconds | Number of milliseconds defining the frequency of timer events. |
Note: This feature is designed for the cases when high-resolution timer is required. In other words, timer events should be received more frequently than once per second. If a conventional timer with the period of several seconds is enough for you, use EventSetTimer(). Usually, this function should be called from OnInit() function or in class constructor. To handle events coming from the timer, an Expert Advisor or an indicator should have OnTimer() function. Each Expert Advisor and each indicator work with its own timer receiving events solely from this timer. During application shutdown, the timer is forcibly destroyed in case it has been created but has not been disabled by EventKillTimer() function. Only one timer can be launched for each program.