I have a script which does write 1000 candelsticks into a .hst file, my problem is when i change in my code the for loop to make only 1 run then i have also just 1 candelstick in my .hst file saved, so it looks like he overwwrite everything in the .hst file.
And i have just a easy question, how ust i write it to make it just update the .hst file instead of deleting all other candelsticks which are saved in the file?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I have a script which does write 1000 candelsticks into a .hst file, my problem is when i change in my code the for loop to make only 1 run then i have also just 1 candelstick in my .hst file saved, so it looks like he overwwrite everything in the .hst file.
And i have just a easy question, how ust i write it to make it just update the .hst file instead of deleting all other candelsticks which are saved in the file?
Here is my code: