Skip to content

Commit

Permalink
Update and rename cpi.py to CommercialProxiesIndex.py
Browse files Browse the repository at this point in the history
  • Loading branch information
geovedi authored Nov 8, 2023
1 parent 0fcdc88 commit e830726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indicators/cpi.py → indicators/CommercialProxiesIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)

0 comments on commit e830726

Please sign in to comment.