iCustom Question

Back to topics list To post a new topic, please log in or register
avatar
186
Yellowbeard 2015.08.04 20:50
 

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!
avatar
Moderator
3419
GumRai 2015.08.04 21:06 #
 
Yes
avatar
186
Yellowbeard 2015.08.04 21:36 #
 
Well, I've tried this format, but only getting current value, from indicator ( ,0,0 ) with ( ,0,1 ).
avatar
186
Yellowbeard 2015.08.04 22:00 #
 

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!

Back to topics list  

To add comments, please log in or register