Attachment Portfolio1.mq5 added
the error leads to this computation
double PointValue = SymbolInfoDouble(correctedSymbol, SYMBOL_TRADE_TICK_VALUE) / SymbolInfoDouble(correctedSymbol, SYMBOL_TRADE_TICK_SIZE);
about the portfolio, where the problem with divide be zero, yes i have made this changes for these variables - so the user are not forced to put the exact subchart name from his broker and trading and backtesting should be run on the choosen market and TF. Exact the same i am doing with MQL4 code and there it works.
I am not a programmer, so maybe these changes on MQL5 doesnt work....
input string Subchart1Symbol = "NULL";
input int Subchart1Timeframe = NULL;
if i revert it back to
input string Subchart1Symbol = "EURUSD_M1_UTC2";
input int Subchart1Timeframe = 60;
...which are the "symbol" name which i imported from SQX to MT5, the problem is the same....zero divide error
The market closed error is very difficult to handle in MT5. I have added new checks but had to removed it as it causes problems on some brokers
but merged strategies dont work at all
and if i try to make a backtest on normal market from the broker, the error is the same...so there is no evidence that this error is due to the custom symbol
The EA must be able to get the ticksize of the symbol. Otherwise it's impossible for it to work properly.
What broker do you use and on what exact symbols does the ticksize problem happen?
Attachment Vystrizek.png added
Take a look at my settings
yes, it seems that in MT5 cant be used NULL as it was working in MT4
without them the backtest works
Status changed from New to Refused