Forum

how to improve test speed of mt5 strategy testing

whether OHLC, or everytick mode, the mt5 strategy testing is very slow than mt4. is there a good solution

How can I get the marginrequired in mt5

In MT4, we can call MarketInfo(Symbol(), MODE_MARGINREQUIRED) to get margin of 1 lots. In MT5, I try to get the value by SymbolInfoInteger(Symbol(),MarginInitial()), but it return value is 0. Who can tell me how to do it? I'm MT5 build 965 thanks