OHLC¶
quantflow.ta.ohlc.OHLC
pydantic-model
¶
Bases: BaseModel
Aggregates OHLC data over a given period and serie
Optionally calculates the range-based variance estimators for the serie. Range-based estimator are called like that because they are calculated from the difference between the period high and low.
Fields:
-
serie(str) -
period(str | timedelta) -
index_column(str) -
parkinson_variance(bool) -
garman_klass_variance(bool) -
rogers_satchell_variance(bool) -
percent_variance(bool)
garman_klass_variance
pydantic-field
¶
add Garman Klass variance column
rogers_satchell_variance
pydantic-field
¶
add Rogers Satchell variance column
parkinson
¶
Adds parkinson variance column to the dataframe
This requires the serie high and low columns to be present
Source code in quantflow/ta/ohlc.py
garman_klass
¶
Adds Garman Klass variance estimator column to the dataframe
This requires the serie high and low columns to be present.
Source code in quantflow/ta/ohlc.py
rogers_satchell
¶
Adds Rogers Satchell variance estimator column to the dataframe
This requires the serie high and low columns to be present.