How to create a function like OnTimer in a library file without freezing the processor (CPU)?

 
Hi,

How to create a function like OnTimer in a library file without freezing the processor (CPU)?

I will not use OnTimer() for each indicator to call my function "MyTimer()" because it work in the background in standalone mode.

In MyTimer() function, I would like to execute cyclically and very quickly various calls to several functions available in my C# DLL via Export function.

How can I do it?

Thank you in adavance for your help.

 
Fabiano:
Hi,

How to create a function like OnTimer in a library file without freezing the processor (CPU)?

I will not use OnTimer() for each indicator to call my function "MyTimer()" because it work in the background in standalone mode.

In MyTimer() function, I would like to execute cyclically and very quickly various calls to several functions available in my C# DLL via Export function.

How can I do it?

Thank you in adavance for your help.

Do you need the timer to go off more often than every millisecond? if not use:

EventSetMillisecondTimer(x);

where x is in milliseconds.

 
el_looto:

Do you need the timer to go off more often than every millisecond? if not use:

where x is in milliseconds.

Maybe I'm wrong, in the library file (#property library), you can't use OnTimer. So EventSetMillisecondTimer doesn't help me!
Reason: