I came across a strange behavior of a horizontal line which seems to persist from one instrument chart to another.
Steps to reproduce:
1) load a chart and load an instrument, e.g. EURJPY
2) add an indicator so that you can go into VS break mode easily (I suggest using the GomLabelHorizLines indicator from this forum, as it will also display the price label from the first instrument on the chart of the next instrument)
3) create a horizontal line, name the tag e.g. "Entry" and remember the price level the line is at
4) within the same chart tab, load another instrument, e.g. USDJPY
5) if you added the GomLabelHorizLines indicator, you can already see that, although the line itself is removed from the chart, the label of the Enter horizontal line from the previous instrument is still there at the price level you set it at in step 3 above
6) Add a new horizontal line and set its tag to "Enter", making sure it is at a different price level than the horizontal line from the previous instrument
7) go into break mode in Visual Studio anywhere in the OnBarUpdate of any indicator
8) check the price level of the Enter horizontal line is not at the value where the line actually lies, but at the value of the line you had created for the previous instrument.
In the drawing objects collection (in both the UI dialog box and memory when checking in VS), there is only one "Enter" horizontal line, but it has the wrong price associated with it.
When I select Remove all drawing objects in the UI, the phantom line does not get removed when in the second instrument, but I have to reload the instrument the original Enter horizontal line was created in and remove it there.
This is actually a major roadblock for me, so I would be grateful if you could confirm this is a bug and provide me with some workaround or even better with information when this can be fixed.
I am using Ninja Trader 8.0.6.0 64-bit (Standard) for Interactive Brokers.
Many thanks,
Libor
EDIT: Although the behavior described above is still there, I found a different approach to achieving my goal so this bug is no more a major problem for me.
Comment