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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #92695 quote
    thomas2004ch
    Participant
    Average

    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 quote
    Vonasi
    Moderator
    Master

    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 quote
    robertogozzi
    Moderator
    Master
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

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


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by robertogozzi
6 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/02/2019
Status: Active
Attachments: No files
Logo Logo
Loading...