Skip to content

Commit

Permalink
fixed #12 since column was not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvaro Bartolome committed Jun 28, 2020
1 parent 8692ea9 commit 7447b75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trendet/identification.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,12 +523,12 @@ def identify_df_trends(df, column, window_size=5, identify='both'):

up_trend = {
'name': 'Up Trend',
'element': np.negative(df['Close'])
'element': np.negative(df[column])
}

down_trend = {
'name': 'Down Trend',
'element': df['Close']
'element': df[column]
}

if identify == 'both':
Expand Down

0 comments on commit 7447b75

Please sign in to comment.