To arrange the trading history automatically, please right click within the Account History tab of the MetaTrader 4 platform and select AutoArange, or press the A key.