How to get historical trades

 
Can somebody explain me how to bring the historical trades?
Even that the command OrderSelect(cnt, SELECT_BY_POS, MODE_HISTORY) should work, how can get the list, because the command OrderTotal() only returns market and pending orders, and not historical orders
 
first: use HistoryTotal function not OrdersTotal
second: terminal-account history tab-context menu-last 3 months
 
Big thanks to you Slawa for your expedite answer ... you are in the point... I was looking for HistoryTotal function !