Export ticks per second to CSV - MT5

 

Hey Guys,

I`d like to know  how export ticks per second and save in csv file. 

Run in backtest and take according the time that I put. ( 1 year for example ). 

Thank you so much