Download MetaTrader 5

GetTickCount Function

To add comments, please log in or register
Mohammad Habibzadeh
454
Mohammad Habibzadeh  

Hello ,

 

I need to know how does GetTickCount function behave in Strategy Tester if we using it to deciding on the trades?

 

Thank you 

Alain Verleyen
Moderator
31184
Alain Verleyen  
habibzadeh:

Hello ,

 

I need to know how does GetTickCount function behave in Strategy Tester if we using it to deciding on the trades?

 

Thank you 

It's not a good idea. Use a timer.
Mohammad Habibzadeh
454
Mohammad Habibzadeh  

Hello Angevoyageur ,

 Thank you for the reply , Is it possible to define OnTimer function in the class not in the expert?

Does OnTimer works as expected in tester?

 

Regards 

Alain Verleyen
Moderator
31184
Alain Verleyen  
habibzadeh:

Hello Angevoyageur ,

 Thank you for the reply , Is it possible to define OnTimer function in the class not in the expert?

Does OnTimer works as expected in tester?

 

Regards 

Please read the documentation : https://www.mql5.com/en/docs/basis/function/events#ontimer

See also this topic All (not yet) about Strategy Tester, Optimization and Cloud



Documentation on MQL5: Language Basics / Functions / Event Handling Functions
Documentation on MQL5: Language Basics / Functions / Event Handling Functions
  • www.mql5.com
Language Basics / Functions / Event Handling Functions - Documentation on MQL5
To add comments, please log in or register