Alpha and Beta for cryptocurrency. Custom input for other symbols.
(Created for Client) Alpha (Unique price action of asset) indicator for ALTcoins implementation, taking `BINANCE:BTCUSDT` as the market reference. Can be improved by adding more BTC charts from more sources, so as to get a unified chart of BTC for market representation. Set `alpha period` to a value, wherein you want to see the unique price action of the asset....
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...