It is possible to code the beta(cov(x,,y)/var(y))? variance and covariance

Forums ProRealTime English forum ProBuilder support It is possible to code the beta(cov(x,,y)/var(y))? variance and covariance

  • This topic has 6 replies, 4 voices, and was last updated 1 year ago by avatarJS.
Viewing 7 posts - 1 through 7 (of 7 total)
  • #152990

    I can´t how to create the beta indicator cause within the indicator i don´t know how to get  the var of the marekt  and also how to get the cov (stock,market).

     

    Thx

    #153090

    You are talking about Covariance and Variance of a data serie:

     

     

    #153092

    Variance indicator formula:

     

    #219339

    How is it possible to translate this instruction from Pine script, as there is only one period (length) and not 2 like in the above script for Variance ?

    #219340

    standard deviation is simply obtained by calculating the square root of the variance, is it possible to calculate more quickly and simply the Variance with std squared

    Thanks

    #219342

    Sorry, i don”t understand why my reply appears like they did…

    As STD is simply obtained by calculating the square root of the variance, is it possible to calculate more quickly and simply the Variance with std squared ?

    #219344
    JS

    Hi,

    That’s right, the variance can be found by squaring the standard deviation…

    Variance= Square(Std[x](Close))

    1 user thanked author for this post.
Viewing 7 posts - 1 through 7 (of 7 total)

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