A margin call is not good. That your trades are closed is then the least of your worries! grin

Delete your lines with "Margin" and "Capital", they are the reason of the margin call. Your trade signal is also wrong. Begin with the tutorial, there is also a workshop where you learn what "Margin" and "Capital" are and how to use them.