From e8307268743740bb431978a521aca92b379475c2 Mon Sep 17 00:00:00 2001 From: jim geovedi Date: Wed, 8 Nov 2023 02:31:45 +0000 Subject: [PATCH] Update and rename cpi.py to CommercialProxiesIndex.py --- indicators/{cpi.py => CommercialProxiesIndex.py} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename indicators/{cpi.py => CommercialProxiesIndex.py} (95%) diff --git a/indicators/cpi.py b/indicators/CommercialProxiesIndex.py similarity index 95% rename from indicators/cpi.py rename to indicators/CommercialProxiesIndex.py index d45fe93..b0d3607 100644 --- a/indicators/cpi.py +++ b/indicators/CommercialProxiesIndex.py @@ -2,7 +2,7 @@ import pandas as pd import talib -def CPI(dataframe, index_period=200, atr_period=40, smoothing=3): +def CommercialProxiesIndex(dataframe, index_period=200, atr_period=40, smoothing=3): """ Calculate the Commercial Proxies Index (CPI) for a given DataFrame. @@ -59,4 +59,4 @@ def CPI(dataframe, index_period=200, atr_period=40, smoothing=3): # Example usage: # df = pd.read_csv('path_to_your_csv_file.csv') -# df['CPI'] = CPI(df) +# df['CPI'] = CommercialProxiesIndex(df)