Download MetaTrader 5
To add comments, please log in or register
Use the Pocket to paste your content. It is convenient!
Paul
529
Paul 2015.08.04 18: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!
Keith Watford
Moderator
8007
Keith Watford 2015.08.04 19:06  
Yes
Paul
529
Paul 2015.08.04 19:36  
Well, I've tried this format, but only getting current value, from indicator ( ,0,0 ) with ( ,0,1 ).
Paul
529
Paul 2015.08.04 20: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!

/
To add comments, please log in or register