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
    thomas2004chthomas2004ch
    Participant
    Senior

    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
    VonasiVonasi
    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
    robertogozzirobertogozzi
    Moderator
    Legend
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
7 years, 7 months ago.

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