Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Merge branch 'fix_stc' of github.com:jamesyrose/finta into fix_stc
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesyrose committed Oct 20, 2020
2 parents 8335bb0 + dfe5830 commit aabdf38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion finta/finta.py
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,7 @@ def STC(

STOK = pd.Series((
(MACD - MACD.rolling(window=k_period).min())
/ (MACD.rolling(window=k_period).max() - MACD.rolling(window=k_period).min()),
/ (MACD.rolling(window=k_period).max() - MACD.rolling(window=k_period).min())
) * 100)

STOD = STOK.rolling(window=d_period).mean()
Expand Down

0 comments on commit aabdf38

Please sign in to comment.