Bull candle time WRONG OUTPUT (use exploration and see it)

We try to compare 1 min .  and 15 min. candle close

Of course we're not going to change setting, it's default 1 minute.

Now if we do exploration, it gives wrong output for 15 min.

We only looking for bull candle close time.

For 1 min. working fine as default settings is 1 min.

Use Code below and see in amibroker

bull= C>O;

Filter=bull;

dt = DateTime();

AddColumn( dt, "Date", formatDateTime );

AddColumn( bull, "Signal", formatChar );

FOR 15 MINUTE , IT GIVES WRONG OUTPUT, USE BELOW CODE  AND SEE BY YOURSELF

Plot( C, "Close", ParamColor( "Color", colorDefault ), styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );

expandmode = expandfirst;

TF = in15Minute;

TimeFrameSet( TF );

dt = DateTime();

bull = C>O;

TimeFrameRestore();

fifteen = TimeFrameExpand( dt, TF, expandmode );

fifteenn = TimeFrameExpand( bull, TF, expandmode );

printf( "`15 Minute candle timeframe: " + DateTimeToStr( SelectedValue( fifteen ) ));

Filter = bull;

AddColumn( dt, "Date", formatDateTime );

your query is not clear, the output or display of the candles and values based on the datafeeds which you are using in amibroker, also your conditions or not mentioned/ not clear in above AFL code,