5 Last rsi values

 

Hello

i got a question about indicators and shift.

Using a chart with a 15 min timeframe, i would like to retrieve,

- the last rsi value

- the 4 last TICK value for the rsi 15 min chart


For now i'm using that

for ( int i = 0 ; i < IND_RSI_MEM ; i++ )
{
   drsi[i] = iRSI(Symbol() , 0 , 14 , PRICE_CLOSE , i);
}

My question is, is i execute that at 10AM, wil i retrieve the value from

- 10AM , 9:45AM , 9:30 AM , 9:15AM , 9:AM

- 10AM , 9:59AM , 9:58AM , 9:57AM , 9:56AM


Thanks for your help

Nicolas

 
nicolas74:

Hello

i got a question about indicators and shift.

Using a chart with a 15 min timeframe, i would like to retrieve,

- the last rsi value

- the 4 last TICK value for the rsi 15 min chart


For now i'm using that

My question is, is i execute that at 10AM, wil i retrieve the value from

- 10AM , 9:45AM , 9:30 AM , 9:15AM , 9:AM

- 10AM , 9:59AM , 9:58AM , 9:57AM , 9:56AM

Yo will retrieve the following:

 

"a value that will change from tick to tick" , 9:45AM , 9:30 AM , 9:15AM , 9:AM 

the  10am bar is currently forming,  it's value will change until 10:15

 

thanks for the quick answer.

Any idea how to retrieve this values

- 10AM , 9:59AM , 9:58AM , 9:57AM , 9:56AM

==> for the rsi with 15 min timeframe ?

 
nicolas74:

thanks for the quick answer.

Any idea how to retrieve this values

- 10AM , 9:59AM , 9:58AM , 9:57AM , 9:56AM

==> for the rsi with 15 min timeframe ?

I just typed a reply and then deleted it . . .  I'm not 100% certain I understand what you are looking for . . .  do you mean RSI for M1 when your code is running on a M15 chart ?  or something else ?  if you mean RSI based on M15 bars for 1 minute increments . . .  then you are going to have to code this yourself by looking at the M1 data,  making your own M15 data and then applying RSI to that data. 

 

"if you mean RSI based on M15 bars for 1 minute increments"

==> yes that what i mean.

I'm gonna code it myself, by creating an history of the tick value i got


thanks

Nicolas

Reason: