매수만 취소

This commit is contained in:
dosangyoon
2021-10-16 15:05:29 +09:00
parent 7e75b3fbd6
commit c1eb4c8fc8
2 changed files with 21 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ class RSI:
self.common = Common()
return
def apply(sefl, df, period=14):
def apply(sefl, df, period=10):
# df.diff를 통해 (기준일 종가 - 기준일 전일 종가)를 계산하여 0보다 크면 증가분을 감소했으면 0을 넣어줌
U = np.where(df.close.diff(1) > 0, df.close.diff(1), 0)