Download MetaTrader 5

OnTick (and start) function in EA does not work on Weekend

To add comments, please log in or register
Young Ho Seo
29875
Young Ho Seo  

Is this normal that OnTick (and start) function in EA does not work on weekend ?

OnTick (and start) works fine in Strategy tester but not in live mode.

I expected it to work at least once even it is weekend.

I am not sure if this is normal behaviour or particular to my own MetaTrader.

I checked OnInit and OnDeinit worked fine too in live mode. Only OnTick or start function does not work in live mode.

I appreciate your kind answer.

kypa
777
kypa  

Mine does it (not) too, so it should be normal.

"Workaround" for testing is a demo account from a broker offering cryptocurrencies 7 days per week. InstaForex for exampe, you can register the demo with bogus data directly form the platform.

Young Ho Seo
29875
Young Ho Seo  
kypa:

Mine does it (not) too, so it should be normal.

"Workaround" for testing is a demo account from a broker offering cryptocurrencies 7 days per week. InstaForex for exampe, you can register the demo with bogus data directly form the platform.

That is a good tip for people working hard for their EA on weekend. :)

whroeder1
17824
whroeder1  
Young Ho Seo: Only OnTick or start function does not work in live mode.
Of course not, if your market is closed, e.g. FX (weekends) and DAX (outside 09:00 and 17:45 Hours CET.) Tester or kypa's open cryptos.
Icham Aidibe
11354
Icham Aidibe  
whroeder1:
Of course not, if your market is closed, e.g. FX (weekends) and DAX (outside 09:00 and 17:45 Hours CET.) Tester or kypa's open cryptos.

What are kypa's open cryptos ? 

Anthony Garot
565
Anthony Garot  

Young Ho Seo:

I expected it to work at least once even it is weekend.

If you want an event to run on the weekend, use OnTimer().

whroeder1
17824
whroeder1  
Icham Aidibe: What are kypa's open cryptos ? 
Post #1
Icham Aidibe
11354
Icham Aidibe  
Ah yeah ! That's a nice workaround. But it seems to me InstaForex is 4 digit only ?!
To add comments, please log in or register