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

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?