Rsi for 1 minute/5 min chart coding

All I want to do is get the current rsi value for a 1/5 min chart.I want to run this as a explorer.I have written the current code in AFL

TimeFrameSet( in1Minute);
r=RSI(15)
Filter =r>0
AddColumn(r,"RSI",1.1);
TimeFrameRestore();

This gives me the RSI for daily chart and not for 1 min RSI value.Any idea why?

Please note that you can only compress data from shorter interval to longer interval. So when working with 1-minute data you can compress to 2, 3, 4, 5, 6, …N-minute data. But when working with 15 minute data you can not get 1-minute data bars. In a similar way if you have only EOD data you can not access intraday time frames.

Regards

Vivith

www.neotradeanalytics.com

(Authorized vendor of NSE supporting realtime data for Amibroker,metastock and ninjatrader)