drawing lines in the future
Posted: Wed Mar 09, 2016 10:02 am
Hi Guys,
I have read the 'Building Drawing Tools' in the helpfile.
I have a routine that calculates dates into the future and I want to be able to draw vertical lines at these dates.
Since the routine produces a DateTime for which there won't actually be a bar on the chart Date_to_Bar will return -1 and I can't see how to identify the x of the identified pixel corresponding to my date. I can't use hotspots because the script will generate the DateTimes.
I need something that mirrors the Price_to_Pixel function i.e. x-pixel = Date_to_Pixel(dateTime)
Also, amusingly, searching this BB for 'future', 'future' gets ignored because it's too common.
Any clues ??
Thanks
I have read the 'Building Drawing Tools' in the helpfile.
I have a routine that calculates dates into the future and I want to be able to draw vertical lines at these dates.
Since the routine produces a DateTime for which there won't actually be a bar on the chart Date_to_Bar will return -1 and I can't see how to identify the x of the identified pixel corresponding to my date. I can't use hotspots because the script will generate the DateTimes.
I need something that mirrors the Price_to_Pixel function i.e. x-pixel = Date_to_Pixel(dateTime)
Also, amusingly, searching this BB for 'future', 'future' gets ignored because it's too common.
Any clues ??
Thanks