Run script or service when mt5 start

 
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
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!
 
Minh Truong Pham #: Thank Fernando. You are my hero!
You are welcome!
 
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?