How to extract the specific candle date in intraday Time frame

Indian Exchange time is 9:15 to 3:30,
In Tradingview if we see 3Min intraday, we will only see only 9:15 to 3:27, Last 3min candle will not be visible.

Or other way is how to Extract the 3:25 to 3:27 candle OHLC of 3min intraday. So that I can use 3:27 candle Close date to trade

Intraday 3min time frame Strategy is like:
Todays open is above the yesterday's 3:27 candle close (i.e.. 3:25 to 3:27 candle close)

This is Amibroker forum. Not Trading View. Ask question related to Amibroker.

In amibroker above setup can be done with preference setting of intraday.

2 Likes

sir thanks for the reply,

How to extract 3Min (3:25 to 3:27) data OHLC in a 3min Time frame.
Indian Exchange time is from 9:15 to 03:30

Do you want to extract below selected candle OHLC.

Just put in editor

Filter = TimeNum() == 152700;
SetOption( "Nodefaultcolumns", True );
AddTextColumn( Name(), "Name", 1.2, colorDefault, colorDefault, 90 );
AddColumn( DateTime(), "Date", formatDateTime, colorDefault, colorDefault, 170 );
AddColumn( Open, "Open", 1.2);
AddColumn( High, "High", 1.2);
AddColumn( Low, "Low", 1.2);
AddColumn( Close, "Close", 1.2);
AddColumn( Volume, "Volume", 1.2);
AddColumn( OpenInt, "OpenInt", 1.2);

Analysis setup for explore

2 Likes

thank you very much, sir
if I have any doubts ill message you sir

Really @harshaa, was at THAT HARD to read the manual?
https://www.amibroker.com/guide/h_exploration.html

Do yourself a favor and START READING the Tutorial

2 Likes

:sweat_smile: :sweat_smile: :sweat_smile:
I will read.
thank you for your reply & advice.
I will do it sir.

how to extract yesterday's 15:27 close in 3min Time frame

Data is not showing. what is the mistake in coding

//previous day's 3min 15:27
PDC=TimeFrameGetPrice("C",in1Minute*3,-3);

AddTextColumn( Name(), "Name", 1.2, colorDefault, colorDefault, 90 );
AddColumn( DateTime(), "Date", formatDateTime, colorDefault, colorDefault, 170 );
AddColumn( PDC, "close",colorDefault,200);
SetOption( "Nodefaultcolumns", True );

To get data at specified date/time, use Lookup function AFL Function Reference - LOOKUP

BTW: you are doing pointless things, you remove default columns (Name and Date/Time) by calling SetOption and then you add the VERY SAME COLUMNS via AddColumn. That is utter nonsense.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.