Dear Group Members and Tomasz,
I am intraday trader from India and in total 35 bars are plotted in 
my afl ( code given below) during the day.

please help me in coding the following afl so that second last bar( 
i.e 34th Bar) is not plotted and nor my afl takes 34th bars high or 
low values in the calculations.
 

_SECTION_BEGIN( "Heikin" );
Haclose = ( O + H + L + C ) / 4;
HaClose = ( O + H + L + C ) / 4;
HaOpen = AMA( Ref( HaClose,  -1 ),  0.5 );
HaHigh = Max( H,  Max( HaClose,  HaOpen ) );
HaLow = Min( L,  Min( HaClose,  HaOpen ) );
heikincolor = IIf( HaClose >= HaOpen, colorGreen, colorRed );
PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "", heikincolor, 
styleCandle + styleNoLabel + styleNoTitle );
_SECTION_END();

DailyH = TimeFrameExpand( TimeFrameCompress(HaClose, inDaily, 
compressHigh), inDaily, expandFirst);
DailyL = TimeFrameExpand( TimeFrameCompress(HaClose, inDaily, 
compressLow), inDaily, expandFirst);
Plot( Haclose, "haclose", colorBlue, styleDots );
Plot( DailyH , "dailyHigh", colorGreen, styleStaircase);
Plot( DailyL , "dailyLow", colorRed, styleStaircase);


// end 


i would be highly indebted

regards
bobby kular

Reply via email to