Considering that IDrawObjects is not used in NT8, converting the following few lines from NT7 to NT8 present a challenge to non-programmers. I could not find any documentation or code breaking information on how to deal with IDraw related codes.
Would a kind sole please provide some insight and/or suggest a translation to NT8 for the following script?
foreach(IDrawObject o in DrawObjects)
{
if(o.Tag.Contains("supZone") || o.Tag.Contains("demZone"))
{
if(o.DrawType == DrawType.Rectangle)
{
IRectangle rec = (IRectangle)o;
rec.EndBarsAgo = 0;
}
if(o.DrawType == DrawType.Line)
{
ILine lin = (ILine)o;
lin.EndBarsAgo = 0;
}
if(o.DrawType == DrawType.Text)
{
IText txt = (IText)o;
txt.BarsAgo = 0;
}
}
}

Comment