projectreaper ontimer.

Forex bot timer processing

OnTimer Forex Robot processing

 

Timer processing reduce asynchronized tick event lag from broker servers with multi currency trading(basket trading in my case)

 MQL4++ 
//Example of using Timer processing logic

//Global vars
extern int OnTimerProcessing=0;

int OnInit(){ //Bot Initialization
if(OnTimerProcessing>0)EventSetMillisecondTimer(OnTimerProcessing);//activation timer func for basket trading

}
void OnDeinit(const int reason){ //Deinitialization all parameters and functions
EventKillTimer(); //deinit timer

}
void OnTimer(){ //Timer function calls OnTick main calculations 
OnTick();
}

Stay in tune.✋

Bookmark and Share

MQLDev

RETAIL FOREX TRADER
CODER_

I don't accept broker's rules for trading - I making my own.

make your own automated strategies without programming skills
Donation for supporting free version of the trade manager and indicators


Last donators:
31. Haruto T. $15
30. Helen L. $45
29. Peter H. $180
...
Thank you guys!

Add comment

This blog is kept spam free by WP-SpamFree.

Enter Your EMAIL

fxULTIMATE EA license, purchasing, info.

Donation

Donation for supporting free version of the trade manager and indicators









Last donators:
31. Haruto T. $15
30. Helen L. $45
29. Peter H. $180

Thank you guys!