I don't even call the Shcaff and pSchaff variables yet, because I'm still getting this "zero divide" error. I only have them in the expert as you see them above. Please let me know what I'm doing wrong here. I'd like to add the variables in, but can't seem to get it right.
I should also add that there are only 1100 bars in the backtest data and the CountBars variable is set to 5000 as can be seen in the iCustom function above.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
The parameters I am having problems with are here:
double Schaff = iCustom(NULL, PERIOD_H1, "Schaff Trend Cycle", 23, 50, 10.0, 5000, 1, 0);
double pSchaff = iCustom(NULL, PERIOD_H1, "Schaff Trend Cycle", 23, 50, 10.0, 5000, 1, 1);
I don't even call the Shcaff and pSchaff variables yet, because I'm still getting this "zero divide" error. I only have them in the expert as you see them above. Please let me know what I'm doing wrong here. I'd like to add the variables in, but can't seem to get it right.