i am playing dumping info to a csv file and i am wondering several things:
//--- dumping file handler
// Writing file headers
//-- Close file
string date = TimeToStr(Time);
// Writing values
1. Duplicate last bar of the historical.
2. Wrong data dumping using  index.
Last data on history is: 2014.08.25
Sample. Close dumps the right data.
1. Can't give you an answer, you didn't post the code . .. just an small snippet in your first post. If you have the historical data why dump it to CSV ? just copy it and be done . . .
2. Close is Bid, Close is never correct unless by chance . . . the correct close for Close is Close once bar 0 has closed and become bar 1.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.