Maybe someone can give me a tip on how to solve the problem in the most elegant way ;-)
my current example in OnRender() looks like this:
int overlap = 0;
bool intersects = false;
int idx = 0;
foreach (StopLoss sl in chartTraderSL.ToArray())
{
if (chartTraderSL[0].Index == sl.Index)
goto draw;
intersects = sl.OrderLabelRectText.Intersects(chartTraderSL[idx].OrderLabelRectText);
idx++;
if (intersects)
overlap += 160;
draw:
DrawOrderLineSL(sl.Order, chartControl, chartScale, sl.Index, sl.OpenLoss, sl.TickValue, overlap);
}
Comment