커뮤니티

문의드립니다.

프로필 이미지
생생파생
2016-12-23 12:18:01
158
글번호 105239
답변완료
키움식 변환부탁드립니다. 1. A = valuewhen(1,crossup(RSI(Period),10),c); E=avg(c,MA1); F=avg(c,MA2); G=avg(c,MA3); 5000 c<a and crossup(RSI(Period),20) and barssince(crossup(RSI(Period),10))<20 and H < E-0.01 2. crossdown(RSI(Period),20) or crossdown(RSI(Period),10) 3. D= valuewhen(1,crossdown(RSI(Period),20),c); D<c and crossdown(RSI(Period),20) 4. crossup(RSI(Period),20) barssince(crossdown(RSI(Period),30))<20 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2016-12-23 15:21:40

안녕하세요 예스스탁입니다. 1.2,3,4번 문의가 모두 조건식으로만 되어 있습니다. buy와 sell같은 주문함수는 임의로 순서대로 추가한 부분입니다. 의도에 맞게 수정하셔야 합니다. input : Period(9), ma1(5),ma2(20),ma3(60); var : RSIV(0); var : AA(0),EE(0),FF(0),GG(0),AI(0),DD(0),DI(0); RSIV = RSI(Period); if crossup(RSIV,10) Then{ AA = C; AI = Index; } if CrossDown(RSIV,30) Then{ DD = C; Di = index; } EE = ma(c,MA1); FF = ma(c,MA2); GG = ma(c,MA3); #1 if C < AA and crossup(RSIV,20) and index <= AI+20 and H < EE-0.1 Then buy(); #2 if CrossDown(RSIV,20) or CrossDown(RSIV,10) Then exitlong(); #3 if DD < C and CrossDown(RSI(Period),20) Then Sell(); #4 if crossup(RSIV,20) and index <= DI+20 Then ExitShort(); 즐거운 하루되세요 > 생생파생 님이 쓴 글입니다. > 제목 : 문의드립니다. > 키움식 변환부탁드립니다. 1. A = valuewhen(1,crossup(RSI(Period),10),c); E=avg(c,MA1); F=avg(c,MA2); G=avg(c,MA3); 5000 c<a and crossup(RSI(Period),20) and barssince(crossup(RSI(Period),10))<20 and H < E-0.01 2. crossdown(RSI(Period),20) or crossdown(RSI(Period),10) 3. D= valuewhen(1,crossdown(RSI(Period),20),c); D<c and crossdown(RSI(Period),20) 4. crossup(RSI(Period),20) barssince(crossdown(RSI(Period),30))<20 감사합니다.