cTrader calculates margins in hedged positions based on the direction of trade at its highest volume.