No matter whether you buy or sell via your forex account, you must maintain margin. The amount of margin is calculated based on the open price of a forex contract. For all positions you hold and all pending orders you place to open a position, you always need to maintain sufficient margin.