Calculate the volume to close from losing trades to reduce one's overall losses when in a hedged position in forex