Is there any function to calculate the SLOPE of a line cinnects two points?

Forums ProRealTime English forum ProBuilder support Is there any function to calculate the SLOPE of a line cinnects two points?

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • #92695

    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!

    #92702

    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.

    #92707
Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login