Opening price of candle on 15min time frame

#1
Hi,

I'm trying to get the Open price of stock using AFL code on 15min time frame.

My AFL code is as below.

Code:
TimeFrameSet(in15Minute);
o = TimeFrameGetPrice("open", in15Minute, 0);
_Trace( "Open  price: " + o);
It gives me open price of most recent candle on daily time frame and not the open price on 15min time frame for the most recent candle?

Why it is not considering time frame which I've set?

Regards,
 

Similar threads