Right click anywhere in the Chart window for the instrument you wish to place an alert on.
Hover the mouse over the Trading button, and then select Alert in the menu that opens to the right.
Once you have clicked on it, go to the Terminal window at the bottom of the platform, and click on the Alerts tab.
Find the Alert you just entered and double click on it.
In the window that opens, you can alter the Alert conditions to your requirements.
Alert of Margin Call and Stop Out
MT4 does not include any functionality to provide alerts when your margin level is close the stop out level.
Once your margin level reaches 20%, XM’s system will automatically close trades until the margin level is over 20%