In order to manage this task an EA (Expert Advisor) is necessary, because, MT4 natively does not maintain Ask data or Time Frames below the 1 minute (M1), it therefore requires one to build/maintain a separate price-tick data base on your PC.
In addition to that, a VPS* would make sure in case your local PC/MT4 goes offline that upon re-connection this EA is able to automatically download any missing tick history data direct-and instantly from this VPS backup.
*VPS stands for: Virtual Private Server, on there, you will have the very same MT4 instance running as you have on your local PC and by a click of a mouse button you can download any missed tick history data whilst your local PC/MT4 was offline, like this, your lower Time Frame Charts (any TF below the M1) are once again complete and will have no missing data/candles.
EDIT: Please note, for the latest up-to-date version of this EA / Installation Guide please go to: post #34. IMPORTANT: You need to download, install/replace both of the attached files: the .dll and the .ex4 , they always come in a pair and both of them need installing/updating respectively!