what is the best method to keep
- for example the highest line (in row of lines) and
- the lowest line in row (of lines)
and delete the lines, when a higher high or lower low appears?
lines are drawn with DrawLine (...)
the points where the lines are drawn are defined by indicator.
using
ILine myLine = DrawLine(...);
if (null != prevLine && prevLine.StartY < myLine.StartY)
{RemoveDrawObject(prevLine); }
prevLine = myLine;
is working fine for one line.
turning it round for the other line, the indicator is compiling, but not drawing correctly.
any suggestions how this can be solved ?
any suggestions for another method to use ?
thx !
Comment