private int cntr = 0;
protected override void Initialize()
{
CalculateOnBarClose = true;
Add(PeriodType.Range, 4); // BarsInProgress index = 1
}
protected override void OnBarUpdate()
{
if (BarsInProgress == 1 )
{
if (CurrentBar < 1) return;
cntr ++;
}
//--------------------------------
if (BarsInProgress == 0)
{
if (CurrentBar < 1 ) return;
DrawText("cntr"+CurrentBar, cntr.ToString(),0,High[0],Color.Black);
}
}
I have no idea why this works with everything except Renko...
Thanks...........
Comment