As we have no idea what are buffers and what may be arrays ( and the size of arrays and variables) I can only guess that you are getting an array out or range critical error.
Do you not see anything in the experts log?
Hi Keith,
The only place I know to look for errors is the journal tab in the Metatrader terminal and I'm not seeing any issues there. Is there a better place to look for those types of errors?
I'm attaching the full file if you'd like to take a look at it.
Thanks again!
Files:

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Wondering if someone can shed some light on an issue I'm having in my OnCalculate() function. I'm trying to do three iterations of calculations when the function gets called, but I can't seem to get anything to happen in the third iteration. Everything works fine in the first two iterations, but if I put any code at all in the third iteration it doesn't seem to execute. Code looks like this:
If I move that line.....
slopeScaled[i] = 3;
.....up into the second iteration it will execute just fine, but putting it in the third iteration breaks it and I can't see why.
Any input would be appreciated. Thanks in advance!