private void CheckForLine()
{
found = false;
lineStop = 0;
foreach (DrawingTool draw in DrawObjects.ToList())
{
Print(draw.Tag);
if (draw.Tag.Contains("Line"))
{
entry = draw.Anchors.First().Price;
lineStop = draw.Anchors.Last().Price;
entryBar = CurrentBar - (int)draw.Anchors.First().SlotIndex;
found = true;
}
}
}
​
else if (State == State.Transition)
{
CheckForLine();
}
​
I draw the line, then Press F5 to reload the indicator. I can see the line on the chart and in the Drawing Objects dialog box, but the CheckForLine() method doesn't see it. But it does see the Period draw object.
Any idea why it doesn't see the line?

Comment