private int lastPBar = 0;
private int thisPBar = 0;
if (CurrentBar ==0)
return;
if(PU[0] < PU[1])
{
if(PU[0] == 100000)
lastPBar = 0;
else
{
lastPBar = thisPBar;
}
thisPBar = CurrentBar;
Draw.Text(this,"PUp"+CurrentBar.ToString(), true,"P", 0,
Low[0]-LabelOffset*TickSize,0, Brushes.Green, trifont,
TextAlignment.Center, Brushes.Transparent,
Brushes.Transparent, 1);
if(lastPBar >0)
RemoveDrawObject("PUp"+ (CurrentBar-lastPBar));
}
Thanks,

Comment