I have a dynamic rectangle drawn on the chart.
The idea is to have a candle (body or wick) entering in the rectangle and to draw an arrow on the bar fulfilling this condition.
I have the dynamic rectangle on the chart and I can retrieve the low and the high of the rectangle, represented by the Anchor.Price.
Here is my code:
foreach(DrawingTool draw in DrawObjects.ToList())
{
if(draw is DrawingTools.Rectangle)
{
if(draw.Tag == "tag2")
{
if(Low[0] < temp.StartAnchor.Price) // temp.StartAnchor.Price is the low of the rectangle.
{
Draw.ArrowUp(this, "ArrowUp"+CurrentBar, true, Time[0], Low[0] , Brushes.Blue);
}
}
}
}
I would appreciate any help!
Thanks in advance!

Comment