I've noticed the following behaviour around Drawing Templates (not being able) to update existing drawing objects, that I'd like you to take a look at please.
Expected behaviour (using a non-drawing template) example:
Draw.Diamond (this, test, true, 0, High[0] + 5, Brushes.Blue);
* Results in the Test diamond object being blue.
Unexpected (drawing template) example:
Draw.Diamond (this, test, true, 0, High[0] + 5, false, "TestTemplate2");
* Results in the Test diamond object displaying as "TestTemplate 1" (when I was expecting it to be updated to be displayed as "TestTemplate2")
After testing a few different combinations (all with the diamond) this is a comprehensive example of the behaviours I've notice:
Draw.Diamond (this, test, true, 0, High[0] + 5, Brushes.Pink);
Draw.Diamond (this, test, true, 2, High[0] + 5, false, "TestTemplate2");
* Results in the Test diamond object displaying as Pink, but drawn at the 2 candles previous position of the last line involving the drawing template; so it seems at least some of this (last drawing template) line is being processed, just not applying the Template to the object.
Hopefully this is enough information for you to reproduce the behaviour I'm seeing (on 8.0.19.1 64-bit), and provide your assessment.
Thanks in advance,
El
Comment