init
This commit is contained in:
@@ -287,9 +287,7 @@ class BS:
|
||||
|
||||
# stochastic 계산
|
||||
stochastic_df = self.stochastic.apply(pd.DataFrame(STOCK))
|
||||
stochastic_df['fast_k'] = stochastic_df['fast_k'].fillna(float(stochastic_df['fast_k'].iloc[9]))
|
||||
stochastic_df['slow_k'] = stochastic_df['slow_k'].fillna(float(stochastic_df['slow_k'].iloc[14]))
|
||||
stochastic_df['slow_d'] = stochastic_df['slow_d'].fillna(float(stochastic_df['slow_d'].iloc[19]))
|
||||
stochastic_df = stochastic_df.fillna(100)
|
||||
fast_k = stochastic_df['fast_k'].values.tolist()
|
||||
slow_k = stochastic_df['slow_k'].values.tolist()
|
||||
slow_d = stochastic_df['slow_d'].values.tolist()
|
||||
|
||||
Reference in New Issue
Block a user