Bull candle time WRONG OUTPUT (included exploration use&check it)

#1
Just a thought:


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

Code:
Code:
bull= C>O;
Filter=bull;
dt = DateTime();
AddColumn( dt, "Date", formatDateTime );
AddColumn( bull, "Signal", formatChar );
[​IMG]


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

exploration should show candle time of 15min. bull candle
(default backtest setting 1min.)


Code:
Code:
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 = fifteenn ;
AddColumn( dt, "Date", formatDateTime );
 
Last edited: