iCustom Question

 

Can anyone show me the correct way to input a value from a previous period via iCustom?

For example, is the last value of the iCustom call, the shift from the current period?


double BuffA = iCustom(NULL,0,"Indicator",0,0); 
Should the call for a value of the previous candle / period be:
double BuffA = iCustom(NULL,0,"Indictor",0,1); 
Thanks!
 
Yes
 
Well, I've tried this format, but only getting current value, from indicator ( ,0,0 ) with ( ,0,1 ).
 

Sorry.  I found my problem.  Wasn't misuse of iCustom.  Got wires crossed when printing current and previous values.  Was printing same ( current ) value for both.


Thanks!

Reason: