maybe this Candle ID in Write to file block should be 1?