invalid index buffer - help!

 
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



 
your index buffer is 66. Only 8 are allowed, 0-7
 
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
Reason: