antony23:
Yes, use the OnDeinit function and
check if the reason for deinitialization is REASON_CHARTCLOSE.
Hi,
is there an event handler or a something other to allow me exceuding some code when a chart is closed?
Thanks

Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
- www.mql5.com
//| Expert initialization function | //| Expert deinitialization function | //| Expert tick function | //| test1 |...

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
Hi,
is there an event handler or a something other to allow me exceuding some code when a chart is closed?
Thanks