Margin Ratio

Open positions’ liquidation is based on their margin ratio. The formula for margin ratio is:
M{ratio} = M{int} + R*M{maintain}, where M{ratio} be margin ratio, M{int} be initial margin requirement, R be risk level, and M{maintain} be maintenance margin requirement.