I'm trying to get my chart data downloaded into a csv via Streamwriter while avoiding duplication of data being written.
My idea for a solution is to read the time stamp of the last line of the csv file I am creating via Streamwriter, check the time of latest candle in my NT8 chart, and only add the data from the chart that follows what's already in the csv.
Currently, when I touch "F5" it will simply download everything in the chart and append it into my csv and there is often duplication as a result.
Would you possibly have any hints on how I can tell Streamwriter to be selective in what it adds to the csv?
Would appreciate any thoughts! Thank you!
Comment