Forum

MT5 extremely high margin (Equity 1000.00, Margin: 109188.00, FreeMargin: -108188.00)

Hello there, I just started learning mql and wanted to backtest a strategy from a ebook: https://github.com/rafaelfvcs/Introduction-to-MetaTrader5-and-MQL5---book/blob/master/MA_CROS_RSI.mq5 But unfortunately in my backtest I have extremely high margin / low free margin: calculated account state