I've written some code to plot certain events such as new months, years, dividend dates etc. on daily bars.
Problem: Using GetXByBarIndex on actual bars 'generally' works, however using GetXByTime usually plots a bar behind on daily bars.
I was also attempting to plot into the future and was pleasantly surprised when NT cooperated by plotting into the future using GetXByTime(), so I didn't have to rig up some dodgy calendar iteration and approximate x location.
However, that joy was short-lived, as I move the crosshairs across the chart, the axis date time label does quite a good job of showing future dates, but for some reason my lines do not align with these labels on the chart. The dates are correct, they are just not plotting where they should be.
I 'could' fix this myself but I'd rather have NT internals fixed if that is the problem.
Please observe the 2 images uploaded as I have tried to place as much detail as possible. There are subtle differences between the two.
****(Please note to avoid confusion the line Jan 19 is actually Feb 1st, it denotes the end of Jan. Also the time axis is showing Australian date format when I have communicated to you using US date format.)
Thank you.
Comment