MQL4 - automated forex trading   /  

Forum

invalid index buffer - help!

Back to topics list To post a new topic, please log in or register

avatar
92
ququr 2006.10.19 03:58 
Getting an "invalid index buffer number in iCustom function" error in backest. The error appears in the journal (numerous times, apparantly every tick).


The custom indicator is NewTrend. The only call in the EA looks like this:
   H1Silver = iCustom(Symbol(),60,"NewTrend",5,66,0); 
   H1Gold =   iCustom(Symbol(),60,"NewTrend",5,66,1);


This exact same code works without errors in an indicator.

Any thoughts on what is going on?

Thanks!

--Matt



Break Through The Strategy Tester Limit On Testing Hedge EA

Break Through The Strategy Tester Limit On Testing Hedge EA

An idea of testing the hedge Expert Advisors using the strategy tester.


avatar
597
irusoh1 2006.10.19 04:36 
your index buffer is 66. Only 8 are allowed, 0-7

avatar
92
ququr 2006.10.19 07:26 
Thanks for the help irusoh1. Seems very obvious, but I missed it. Forgot to add the "shift" to the end of the parameters.

Appreciate the help!
-Matt
Back to topics list  

To add comments, please log in or register