I am writing a script that calculates the angle of the trend and for the calculations to coincide with my chart, I use the same "Lock price to bar ratio" setting f