I want to calculate the slope of a line of two points. For example CLOSE[i] and CLOSE[i+n]. I see there is an indicator of “Linear Regression Slope”. But this for the whole range. The background of my question is: I want to compare the slope of two bottoms of CLOSE and that of their respondings MACD. I am not sure if there is a function to calculate the slope of a two-point-line?
Thanks!
It is not possible to calculate in degrees the angle of a slope as we have no value for x as it is just a number of bars over an unknown distance. We do however know a value for y as it can be measured in pips or MACD value. So the best you can do is give each slope a rating by dividing the number of pips by the number of candles.