So the line is rendering all ok and the angle is 45 degree. The calculation uses sin cos from the radian value
When i shift the x axis left or right OR hold left mouse down and adjust the bar widths - it adjusts the bars that were previously connected.
Im experimenting with my own PNF style bars not the ninja ones.
the Y is calculated chartScale.GetYByValue using this and then adjusting up or down with the pixel calculation.
Pixel wise i assume the X and Y are different scales ? so moving the x axis in one of the above 2 ways is having this effect
if i use just the standard line draw tool and do the same - it retains the Y points where the line connects. But this is not being drawn based on an angle
Is there a way to preserve the Y points of the bars drawing an angled line ? I have also tried the Y scale properties to see if fixed would work but that doesnt seem to help
and logarithmic is more for longer date range charts.
Any pointers on working with the scaling - i have been through the help on this and scaling but nothing seems to answer this ? otherwise it is going to be a case of subjectively aligning the bars with the angled line and having to adjust the X axis (and bar widths) as more live bars come into view.
update : looking at chart again as i scroll right and as history bars come into view i guess the max min on Y adjusts ie as lower & higher prices come into the chart render view - i presume this then adjusts the pixel range between price points ? Is there a way to calculate / retrieve the distance between the highest and lowest? From what i can see the price chart panel Y axis remains a fixed number of pixels?
thanks
Comment