How to calculate the correlation coefficient?

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

    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
    thomas2004chthomas2004ch
    Participant
    Senior
    #72412 quote
    NicolasNicolas
    Keymaster
    Legend

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

    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
    NicolasNicolas
    Keymaster
    Legend

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

    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.
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

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 thomas2004chthomas2004ch
8 years, 3 months ago.

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