Build Files directly to history folder

 

Hi,

I have a progam that converts stock daily data csv to .hst. It works fine thanks.

The source (csv) file and the destination (hst) file are both in the experts/files folder.

Then I have to manually copy the .hst file to the history folder every time to create an offline chart.

is there any way I can program this via MT4 thru 'fileopen' function, or OTHERWISE, any ideas ? File copy or transfer, maybe ???

This does not work

int hst_file = FileOpen( "C:\Program Files\Interbank FX Trader 4 DEMO1\history\" + hst_filename, FILE_BIN|FILE_WRITE);

 
FileOpenHistory()
Reason: