Hi all,
Is there anyway to run the mql script or service on mt5 start (user open mt5)?
Thank!
Minh Truong Pham: Hi all, Is there anyway to run the mql script or service on mt5 start (user open mt5)? Thank!
Yes, if you setup a "service" (MQL program similar to a "script"), before you close MT5, it will then automatically start up next time you start MetaTrader.

Documentation on MQL5: MQL5 programs / Program Running
- www.mql5.com
Program Running - MQL5 programs - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Fernando Carreiro #:
Yes, if you setup a "service" (MQL program similar to a "script"), before you close MT5, it will then automatically start up next time you start MetaTrader.
Thank Fernando. You are my hero!
Yes, if you setup a "service" (MQL program similar to a "script"), before you close MT5, it will then automatically start up next time you start MetaTrader.
How do I schedule a service in MT5. I don't want it to be running always. For example the service should automatically run everyday Mon-Fri from 9:15 am to 3:30 pm?
anubhavmeena #:
How do I schedule a service in MT5. I don't want it to be running always. For example the service should automatically run everyday Mon-Fri from 9:15 am to 3:30 pm?
Code an infinite loop, eg while(true) and then within that use an if statement to only run the code during the appropriate time
How do I schedule a service in MT5. I don't want it to be running always. For example the service should automatically run everyday Mon-Fri from 9:15 am to 3:30 pm?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register