How to calculate the correlation coefficient?

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

    From this URL I can use draw the Linear-Regression on a stock. But I wonder how to calculate its ‘correlation coefficient’? My purpose is to scan stocks with higher ‘correlation coefficient’ or smaller valatility.

    It seems there is no function called Correlation by ProRealCode?

    #72406 quote
    thomas2004ch
    Participant
    Average
    #72412 quote
    Nicolas
    Keymaster
    Master

    You can try to use the R-squared instruction, it measures the error rate of the linear regression on selected price.

    immo_vienna thanked this post
    #72437 quote
    thomas2004ch
    Participant
    Average

    Hi Nicolas,

    Many thanks. But as I use the LinearRegression-Indicator posted in your URL above, I failt to see the lines for stock EHC. Why?

    #72443 quote
    Nicolas
    Keymaster
    Master

    I don’t know. Do you have sufficient data for the chosen period of the channel? Did you change the percentage to test different settings?

    #72461 quote
    thomas2004ch
    Participant
    Average

    Ok, I change the length from 100 to 20, then I can see it.

    immo_vienna thanked this post
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

How to calculate the correlation coefficient?


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by thomas2004ch
7 years, 8 months ago.

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