I know I can get all drawing objects from the chart like this:
foreach (DrawingTool draw in DrawObjects.ToList())
{
if (draw is DrawingTools.MyDrawingTools.LongPosition)
{
LongPosition longPos = draw as LongPosition;
Print(longPos.AnchorMidLeft.Price);
}
}
Here are examples that don't work:
var longPos = new DrawingTools.MyDrawingTools.LongPosition(); longPos.AnchorMidLeft.Price = 1234; DrawObjects.Add(longPos); //doesn't work
Draw.LongPosition(...) //doesn't work

Comment