I have been working on a drawing tool. In that effort I have found 2 issues that I think are bugs. I modified the NinjaTrader @shapes drawing tool to include a few debug lines. See NinjaScript output panel for details.
Issue #1: Draw a shape (rectangle). Then change the bar period (i.e. switch from 5 min to 15 min bars). While the new bars are "loading", the rectangle will disappear. This is because the Anchor point X value is set to -0.5. While loading the new bars, I can still change the zoom scale of the panel and indicators and bars work normally. Once the new bars load, the panel updates, drawn shapes and indicators update to the new bars. The issue is that the X value is set to -0.5 (off the left side of the panel) during the loading process. From the instant the bar period is changed. The X value should be defined based on the Anchor.Time value and its associated X value on the panel. If this was done, the Triangle, Rectangle and Ellipse shapes would not disappear while loading the new bar period.
Issue #2: This issue is related to Issue Home and is intermittent (not consistent). When doing Market Replay, I found that the occasionally (don't know how to reproduce), the Start/End Anchor X value become negative (i.e. -1000 or other similar large negative number).
I have traced both these issues back to the ChartAnchor dataPoint sent into the OnMouseDown, OnMouseMove & OnMouseUp methods.
Any comments, help would be greatly appreciated.
Thanks,
JeffCO
Comment