protected override void OnBarUpdate()
{
if (DrawObjects["someTag"] != null && DrawObjects["someTag"].DrawType == DrawType.Line)
{
}
}
protected override void OnBarUpdate()
{
if (DrawObjects.Count == 3)
{
}
}
protected override void OnBarUpdate()
{
foreach (IDrawObject draw in DrawObjects)
{
if (draw.Tag.StartsWith("@") && draw is ILine)
{
ILine globalLine = (ILine) draw;
globalLine.Pen.Color = Color.Black;
Print("Start: " + globalLine.StartBarsAgo + " End: " + globalLine.EndBarsAgo);
}
else if (draw is ILine)
{
ILine drawnLine = (ILine) draw;
Print("Line Object: " + draw.Tag + " Manually Drawn: " + draw.UserDrawn);
}
}
}
|