init
This commit is contained in:
@@ -17,7 +17,8 @@ class MACD:
|
|||||||
return
|
return
|
||||||
|
|
||||||
# macd 0선 위에서 매수를 한다. 0이하는 절대 처다보지 않는다.
|
# macd 0선 위에서 매수를 한다. 0이하는 절대 처다보지 않는다.
|
||||||
def apply(self, df, short=12, long=26, t=9):
|
# 장기 지수평균 (long): 26, 단기 지수평균 (short): 12, 시그널 (t): 9
|
||||||
|
def apply(self, df, short=5, long=20, t=2):
|
||||||
# 입력받은 값이 dataframe이라는 것을 정의해줌
|
# 입력받은 값이 dataframe이라는 것을 정의해줌
|
||||||
df = pd.DataFrame(df)
|
df = pd.DataFrame(df)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user