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?
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.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.