Is it possible to raise event every x milliseconds?

 

Hi guys!

Is it possible to automatically  raise event every x milliseconds?

I want my EA to run every x milliseconds and not every tick, therefore i thought maybe i can raise event every x milliseconds .

 

 
mike_s:

Hi guys!

Is it possible to automatically  raise event every x milliseconds?

I want my EA to run every x milliseconds and not every tick, therefore i thought maybe i can raise event every x milliseconds .

 

You can perform certain actions under the following conditions:

1. With the new tick - OnTick()

2. At regular intervals (not less than one second) - OnTimer()

3. After the commission of certain trading operations -  OnTrade()

4. When generating events BookEvent - OnBookEvent()

5. When generating events ChartEvent - OnChartEvent(). Actions on the chart or obtained by EventChartCustom()

Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Trade Operation Types
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Trade Operation Types - Documentation on MQL5
 
Interesting:

You can perform certain actions under the following conditions:

1. With the new tick - OnTick()

2. At regular intervals (not less than one second) - OnTimer()

3. After the commission of certain trading operations -  OnTrade()

4. When generating events BookEvent - OnBookEvent()

5. When generating events ChartEvent - OnChartEvent(). Actions on the chart or obtained by EventChartCustom()

Thanks Vladimir.

The onTimer is the closest to what i need, i'll test if the results are better this way.