I am building an exploration where i have to get 15 min previous close bar value on a daily timeframe exploration .
my exploration is set on daily time frame .
I have tried
///code 1
prevbarclose = TimeFrameCompress(Ref(TimeFrameExpand(C,in15Minute,compresslast), -1), in15Minute, expandFirst);
also tried
// code2
TimeFrameSet(in15Minute);
Prevbarc= Ref(C,-1);
TimeFrameRestore();
As you eventually read and realized yourself:
If using time frame functions you have do it the other way around.
In your case: Getting Daily timeframe data (and 15 min data) from 15 minute analysis interval.
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.
If you want to output shorter interval value(s) (e.g. last value) on selected longer interval then store data of shorter interval to static variable when shorter interval is selected one.