Function calculate_typprice
Source pub fn calculate_typprice(df: &DataFrame) -> PolarsResult<Series>
Expand description
Calculates Typical Price
Formula: (High + Low + Close) / 3
§Arguments
df
- DataFrame containing the price data with high, low, and close columns
§Returns
Returns a PolarsResult containing the Typical Price Series