커뮤니티

수식 작성 부탁드립니다.

프로필 이미지
진짜원칙매매
2015-08-03 17:51:50
113
글번호 89112
답변완료
input : P1(2),P2(5),RSIP(5); var1 = wma(c,P1); var2 = wma(c,P2); var3 = RSI(RSIP); Condition1 = var1 > var2 and var3 >= 70; Condition2 = var1 < var2 and var3 <= 30; if Condition1 == true and Condition1[1] == false Then buy(); if Condition2 == true and Condition2[1] == false Then sell(); 위조건식에서 한가지 조건을 더 추가 하고 싶습니다. 매수조건:위매수조건만족+stochastics momentum index에서 plotno1선이 plotno2위에 있을때 매도조건:위매도조건만족+stochastics momentum index에서 plotno1선이 plotno2아래에 있을때 부탁드립니다.~~~~~
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-08-04 10:30:09

안녕하세요 예스스탁입니다. input : P1(2),P2(5),RSIP(5); input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2); var : StMomentum1(0),StMomentum2(0); var1 = wma(c,P1); var2 = wma(c,P2); var3 = RSI(RSIP); Condition1 = var1 > var2 and var3 >= 70; Condition2 = var1 < var2 and var3 <= 30; StMomentum1 = SMI(Period1,Period2,Period3); StMomentum2 = SMI(Length1,Length2,Length3); if Condition1 == true and Condition1[1] == false and StMomentum1 > StMomentum2 Then buy(); if Condition2 == true and Condition2[1] == false and StMomentum1 < StMomentum2 Then sell(); 즐거운 하루되세요. > 진짜원칙매매 님이 쓴 글입니다. > 제목 : 수식 작성 부탁드립니다. > input : P1(2),P2(5),RSIP(5); var1 = wma(c,P1); var2 = wma(c,P2); var3 = RSI(RSIP); Condition1 = var1 > var2 and var3 >= 70; Condition2 = var1 < var2 and var3 <= 30; if Condition1 == true and Condition1[1] == false Then buy(); if Condition2 == true and Condition2[1] == false Then sell(); 위조건식에서 한가지 조건을 더 추가 하고 싶습니다. 매수조건:위매수조건만족+stochastics momentum index에서 plotno1선이 plotno2위에 있을때 매도조건:위매도조건만족+stochastics momentum index에서 plotno1선이 plotno2아래에 있을때 부탁드립니다.~~~~~