exampleButton.Content = "Trend";
exampleButton.Background = Brushes.LavenderBlush;
exampleButton.Foreground = Brushes.Black;
bRegularTrend = true;
if(this.drawTrendList.Count > 0)
{
for(int x = 0; x< this.drawTrendList.Count; x++)
{
Print("in here");
Print(this.drawTrendList[x].TagTime);
RemoveDrawObject(this.drawTrendList[x].TagName);
if(this.drawTrendList[x].IsVerticalLine ==true)
{
Draw.VerticalLine(this,this.drawTrendList[x].TagName,this.drawTrendList[x].TagTime,PVLineColor,DashStyleHelper.Dash,NVLineWi dth,true);
Print(this.drawTrendList[x].TagTime);
}
}
}
the original loading this is the code
tagNumber = tagNumber +1;
Print(CurrentBar);
Print(Bars.GetTime(CurrentBar));
drawTrendList.Add(new TrendList(tagNumber.ToString(),Bars.GetTime(Curren tBar),dUpTrendOld -3*TickSize,true,false));
my results are the picture below
Comment