STAT_MIN_MARGINLEVEL

 

I'm a little bit stuck with the function TesterStatistics(STAT_MIN_MARGINLEVEL). The documentation says the function returns "Minimum value of the margin level". What this exactly mean?

I thought that the value is the minimum margin level but it seems to me it's not true.

If I run a backtest where just one trade (0.01 lots) is opened (required margin is for example 200) and the initial deposit is set to 1000, then the function returns the expected 500 (not exactly 500).

But if I run a backtest where two trades (0.01 and 0.01 lots) are simultaneously opened (then the required margin should be 400). The initial deposit is the same (1000). I would expect the function to returns something about 250 but it returns something about 500 again.

I'll appreciate it when someone explains it to me.

Thank in advance

Reason: