Important is the used tag id for your draw method call in general, so if you reuse an older tag > it will just update the object for you - where as if a new unique tag is used a new object would be created.
I'm not sure which CalculateOnBarClose setting you use, but generally the FirstTickOfBar would be good to catch the opening / closing of the candle as event.
Comment