My strategy is planned for 15 min candle timeframe, but I want to capture first 3 minutes price of a candle and based on my condition enter on close of first 3 min close of a 15 min candle for early entry.
Can any expert help me please if this is possible to achieve.
You can't access data with a shorter interval (3m) than your base interval (15m). You would need to run your strategy on a 3m chart, and then use TimeFrameCompress() to create 15m bars for your indicators.
@dtm - you really need to READ the manualhttp://www.amibroker.com/guide/h_timeframe.htmlespecially text within ORANGE boxes. It is extremely important to read those orange boxes. The information given in them is essential.
If you are using TimeFrameSet, you don't need to (and should not) additionally call compress on Close array. Close is already compressed after TimeFrameSet
TimeFrameSet(in5Minute);
C_5MIn = TimeFrameCompress(C, in5Minute); // that is INCORRECT if you already called TimeFrameSet