Beta
Rolling beta of a dependent series against an independent ("market") series over the last period aligned pairs: how much the first series moves per unit move of the second.
beta = Cov(a, b) / Var(b), with a the dependent series and b the independent one. e.g. BETA(asset.close, market.close, 60) — beta of 1.5 means the asset moves ~1.5× the market. Used for hedge ratios and market-neutral sizing.
Returns null until warmed up, and null when the independent series is flat (zero variance → beta undefined). O(period) per update.
Properties
Link copied to clipboard
True once the indicator has received at least warmupBars samples.
Link copied to clipboard
Number of inputs the indicator must observe before value returns non-null.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Latest computed value, or null until isReady is true.