How to close the chart after the last trade closes?

 

The Topic about says it: How can I get an EA to close the chart it is on after the last trade on it closes ?

Thanks for any and all assistance.

 
Simulate a Ctrl + F4 keypress ?
 

See #define's for known commands that can be used for PostMessageA() - MQL4 forum

#define MT4_WMCMD_57602 57602 /* close the current chart */

 
Thanks folks, I'll give these a try.
Reason: