Can MT write the HST file to hard disk if need?

 
My MT just write the HST(history file) to hard disk while the MT quit. But some time the PC was hanged and the data were lost.

So can MT write the HST on-demand? or how can code the MQL to write the HST file to hard disk?


Thanks very much