taylor_o

regress

Library "regress"
produces the slope (beta), y-intercept (alpha) and coefficient of determination for a linear regression

regress(x, y, len) regress: computes alpha, beta, and r^2 for a linear regression of y on x
  Parameters:
    x: the explaining (independent) variable
    y: the dependent variable
    len: use the most recent "len" values of x and y
  Returns: : alpha is the x-intercept, beta is the slope, an r2 is the coefficient of determination

Note: the chart does not show anything, use the return values to compute model values in your own application, if you wish.
ספריית Pine

ברוח TradingView אמיתית, המחבר פרסם את קוד Pine זה כספריית קוד פתוח כך שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומים אחרים בקוד פתוח, אך השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בספרייה זו?

העתק את השורה הבאה והדבק אותה בסקריפט שלך.