In Finance, people usually assume the price follows a random walk or more precisely geometric Brownian motion. In 1988, Lo and MacKinlay came up with the variance ratio test to refute the random walk hypothesis and efficient market hypothesis. The variance ratio test is a simple test for market efficiency, autocorrelation, and whether price follows a random walk....
The Garch (General Autoregressive Conditional Heteroskedasticity) model is a non-linear time series model that uses past data to forecast future variance.
The Garch (1,1) formula is:
Garch = (gamma * Long Run Variance) + (alpha * Squared Lagged Returns) + (beta * Lagged Variance)
The gamma, alpha, and beta values are all weights used in the Garch calculations....
Pinescript requires many of its built-in functions to use a simple int as their period length, which entails the period length cannot vary during the script's execution. These functions allow using a series int or series float for their period length, which means it can vary on each bar.
The functions shared in this script include:
Rolling sum: ...
An idea I had today morning so I had to write. It seems to detect trends well. It has three phases like a semaphor, painting the chart bars of green, yellow or red.
=== Bar Color Meaning ===
Yellow: don't care
I think it can be useful!
Return the value of a simple moving average with a period within the range min to max such that the variance of the same period is the smallest available.
Since the smallest variance is often the one with the smallest period, a penalty setting is introduced, and allows the indicator to return moving averages values with higher periods more often, with higher...
These variables can be used in comparison with the implied volatility of options.
mathematical notation lowercase 'sigma'
mathematical notation lowercase 'sigma' squared
mathematical notation lowercase 'beta'
Yearly = 250 or 365
Quarterly = 50 or 90
Monthly = 20 or...
Portfolio Risk Metrics (Part I):
The beta coefficient can be interpreted as follows:
β =1 exactly as volatile as the market
β >1 more volatile than the market
β <1>0 less volatile than the market
β =0 uncorrelated to the market
β <0 negatively correlated to the market
excerpt from the Corporate Finance Institute
correlation coefficient 'ρxy'...
IDEA is to easily spot the length of a calm periods based on OBV.
Some says that after a longer OBV-calm (but not supercalm) period up or down rallies are somewhat more likely)
METHOD: variance of OBV
ADVISE: cannot be used on its own, just with others (RSI, CCI, Coppock, MACD etc.)
Period shall be adjusted to the market.
PERSONAL: I also use it to evaluate...