Guys need help in following afl plots no. below candle bar
Problem is it plots for current day
Is there any way plot on past data too with rest count for each day
Problem is it plots for current day
Is there any way plot on past data too with rest count for each day
_SECTION_BEGIN("Bar Count");
iBars = ParamToggle("BarCount","No|Yes",1);
if (iBars)
iBars = BarsSince( Day() != Ref( Day(), -1 ) );
for ( i = BarCount - ( LastValue( iBars ) + 0 ); i < BarCount; i=i+4 )
{
j = abs( ( LastValue( BarCount ) - 2 * i - ( LastValue( iBars - i ) ) - 2 ) );
PlotText( NumToStr( j, 1 ), i, L - L*0.001, colorBlack );
}
_SECTION_END();
iBars = ParamToggle("BarCount","No|Yes",1);
if (iBars)
iBars = BarsSince( Day() != Ref( Day(), -1 ) );
for ( i = BarCount - ( LastValue( iBars ) + 0 ); i < BarCount; i=i+4 )
{
j = abs( ( LastValue( BarCount ) - 2 * i - ( LastValue( iBars - i ) ) - 2 ) );
PlotText( NumToStr( j, 1 ), i, L - L*0.001, colorBlack );
}
_SECTION_END();