Download MetaTrader 5

OnTimer minimum interval is about 16ms, need more frequent way

To add comments, please log in or register
Deposit to your account via Visa QIWI Wallet
emred
35
emred 2016.01.17 00:55 

Hello,

My algorithm search the all available currency pair to open appropriate positions and its computation time is less than 1ms. 

I want to execute this algorithm in each millisecond.

I set "EventSetMillisecondTimer(1)" as 1 millisecond and logged OnTimer execution times.

But it can not be less than 16ms approximately.

What is the alternative ways to do this?

Best regards,

Emre 

Ex Ovo Omnia
3146
Ex Ovo Omnia 2016.01.17 08:13  
Using Sleep(1) instead of the timer.
emred
35
emred 2016.01.17 15:30  

Hello Ovo,

Thanks for your reply. 

Do you mean making infinite loop and waiting 1 ms between each iteration?

Ex Ovo Omnia
3146
Ex Ovo Omnia 2016.01.18 07:20  
emred:

Hello Ovo,

Thanks for your reply. 

Do you mean making infinite loop and waiting 1 ms between each iteration?

 Yes.

To add comments, please log in or register