Get past value from Indicator

 
To get a previous value(s) from indicators do you use shfit and (if so) how?
 
mixtermind:
To get a previous value(s) from indicators do you use shfit and (if so) how?

The last one:

Buffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,0);

The previous one:

Buffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,1);

Cheers

 
So, 8 back would be ?
Buffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,8);
 
mixtermind:
So, 8 back would be ?

That is the 9. from the last one (last is 0).

 
Great, thanks ggekko !
 
Any idea how far back the 8th buffer would be on a 5-minute chart?
 
mixtermind wrote >>
Any idea how far back the 8th buffer would be on a 5-minute chart?

Hi Kenneth,

Bar 8 would be the 8th previous candle (9 if you count the current candle), which would span the 5-minute time beginning 8*5 minutes back + how ever many minutes you are into the current candle. So if the current candle just opened then bar 8 would open 40 minutes ago and close 35 minutes ago.

----

BTW, I just sent you a PM message about your EA. Don't know how often you check those so I though I'd let you know.

- Tovan