Download MetaTrader 5

CRON - like module for MT5 and MT4

To add comments, please log in or register
Do you keep a blog? Place a link to MQL5.community there and make money!
investeo
4098
investeo 2011.11.18 14:16 

Hi 

Before I start implementing my own it is worth to ask - is there any  cron - like module for MT4/MT5 that would serve as a time check for EA/Indicator?

 

http://en.wikipedia.org/wiki/Cron

 

For example: I would like to check something once every hour, 15 minutes etc. inside onTick()

I do not want to use timer https://www.mql5.com/en/docs/eventfunctions/eventsettimer but rather: 

1. Check time

2. Execute action every 15 minutes in an hour when first tick arrives eg. 10:00 10:15 10:30 10:45 every day monday-friday

cron - Wikipedia, the free encyclopedia
  • en.wikipedia.org
The software utility cron is a time-based job scheduler in Unix-like computer operating systems. People who set up and maintain software environments use cron to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration—though its...
investeo
4098
investeo 2011.11.18 15:23  

Forget it, I found a partial solution I need at codebase.

New bar event in EA - MQL4 Code Base
  • www.mql5.com
New bar event in EA - MQL4 Code Base: expert advisors for MetaTrader
To add comments, please log in or register