Margin requirement in FX trading associated to leverage, higher leverage has been chosen, lower margin requirement needed to open on position size, broker through trading platform mt4 automatically calculated margin requirement when trader open new order in the market. If you don't have enough margin, you can't open new order.