커뮤니티

문의드립니다

프로필 이미지
cjfdk
2023-02-14 18:04:30
1063
글번호 166298
답변완료
수고 많으십니다 3가지 신호를 하나로 묵는 수식을 부탁드립니다 1번 Input : shortPeriod(12), longPeriod(26), Period(9); value1 = MACD(shortPeriod, longPeriod); value2 = ema(value1, Period); # 매수/매도청산 If CrossUP(value1, value2) Then { Buy(); } # 매도/매수청산 If CrossDown(value1, value2) Then { Sell(); } 2번 input : sto1(48),sto2(12),sto3(12); var : stok(0),stod(0),t(0); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if stod > stod[1] Then t = 1; if stod < stod[1] Then t = -1; if t ==1 and t != t[1] Then Buy(); if t ==-1 and t != t[1] Then Sell(); 3번 input : signal(10); var1 = OBV; Var2 = Ema(var1,signal); if CrossUp(var1,Var2) Then Buy(); if CrossDown(var1,Var2) Then Sell(); 1번macd 2번스톡 3번obv입니다 1번 신호가 매수면 +1 매도면 -1 2번 신호가 매수면 +1 매도면 -1 3번 신호가 매수면 +1 매도면 -1 이렇게 각각 계산하여 3개 시스템의 합이 +1 이상이면 매수진입 매도청산 -1 이하이면 매도산진입 매수청산 이런 수식을 부탁드립니다 매번 힘든 수식 부탁드리는거 같아 죄솜하고 감사드립니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-02-15 13:05:54

안녕하세요 예스스탁입니다. Input : shortPeriod(12), longPeriod(26), Period(9); input : sto1(48),sto2(12),sto3(12); input : signal(10); var : stok(0),stod(0),t(0),value(0); value1 = MACD(shortPeriod, longPeriod); value2 = ema(value1, Period); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); var1 = OBV; Var2 = Ema(var1,signal); if stod > stod[1] Then t = 1; if stod < stod[1] Then t = -1; value = 0; If CrossUP(value1, value2) Then value = value+1; If CrossDown(value1, value2) Then value = value-1; if t ==1 and t != t[1] Then value = value+1; if t ==-1 and t != t[1] Then value = value-1; if CrossUp(var1,Var2) Then value = value+1; if CrossDown(var1,Var2) Then value = value-1; if value >= 1 Then Buy(); if value <= -1 Then Sell(); 즐거운 하루되세요 > cjfdk 님이 쓴 글입니다. > 제목 : 문의드립니다 > 수고 많으십니다 3가지 신호를 하나로 묵는 수식을 부탁드립니다 1번 Input : shortPeriod(12), longPeriod(26), Period(9); value1 = MACD(shortPeriod, longPeriod); value2 = ema(value1, Period); # 매수/매도청산 If CrossUP(value1, value2) Then { Buy(); } # 매도/매수청산 If CrossDown(value1, value2) Then { Sell(); } 2번 input : sto1(48),sto2(12),sto3(12); var : stok(0),stod(0),t(0); stok = StochasticsK(sto1,sto2); stod = StochasticsD(sto1,sto2,sto3); if stod > stod[1] Then t = 1; if stod < stod[1] Then t = -1; if t ==1 and t != t[1] Then Buy(); if t ==-1 and t != t[1] Then Sell(); 3번 input : signal(10); var1 = OBV; Var2 = Ema(var1,signal); if CrossUp(var1,Var2) Then Buy(); if CrossDown(var1,Var2) Then Sell(); 1번macd 2번스톡 3번obv입니다 1번 신호가 매수면 +1 매도면 -1 2번 신호가 매수면 +1 매도면 -1 3번 신호가 매수면 +1 매도면 -1 이렇게 각각 계산하여 3개 시스템의 합이 +1 이상이면 매수진입 매도청산 -1 이하이면 매도산진입 매수청산 이런 수식을 부탁드립니다 매번 힘든 수식 부탁드리는거 같아 죄솜하고 감사드립니다