Margate, Fl.
Experience: Advanced
Platform: SierraCharts
Trading: Futures
Posts: 28 since Jun 2009
Thanks Given: 5
Thanks Received: 5
|
I'm auto-drawing ellipses, I have:
s_UseTool EllipseTool;
EllipseTool.AddMethod = UTAM_ADD_OR_ADJUST;
and when the tool gets drawn I set:
int uid = rand();
EllipseTool.LineNumber = uid;
The Ellipse drawing starts and then a couple of bars later, when certain parameters are met, I want to "close" the Ellipse.
How do I call *that* particular Ellipse?
I have this, and works about 90%:
if (sc.LineExists(sc.ChartNumber, uid)
{
blah;
}
several "ellipses" are drawn and closed as expected, however one seems to be hanging from the beginning of the chart to the current index. Which leads me to believe the code has missed this particular LineNumber, or something. Which then leads me to believe that I need more control and how to call each generated Ellipse. Any ideas?
|