커뮤니티

갭매매시

프로필 이미지
큰바위얼굴
2015-10-26 14:02:22
133
글번호 91684
답변완료
Input : shortPeriod(1), longPeriod(20) ; Var : value(0); value = OSCP(shortPeriod, longPeriod); # 매수/매도청산 If CrossUP(value, 0) and c > O Then { Buy(); Exitshort(); } 위수식에서 시가가갭2p이상 상승시에만 and c > O 이적용안함 즉 시가가갭2p이상상승시에만 음봉이라도 종가매수 # 매도/매수청산 If CrossDown(value,0) and C < O 위수식에서시가가 갭-2 이하 하락시에만 and c > O 이적용안함 즉시가가 갭-2p이하하락시에만 양봉이라도 종가매수 Then { Sell(); Exitlong(); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-10-26 18:15:56

안녕하세요 예스스탁입니다. Input : shortPeriod(1), longPeriod(20) ; Var : value(0); value = OSCP(shortPeriod, longPeriod); If CrossUP(value, 0) and ((dayopen < DayClose(1)+2 and c > O) Or (dayopen >= DayClose(1)+2)) Then { Buy(); } If CrossDown(value, 0) and ((dayopen > DayClose(1)-2 and c < O) Or (dayopen <= DayClose(1)-2)) Then { sell(); } 즐거운 하루되세요 > 큰바위얼굴 님이 쓴 글입니다. > 제목 : 갭매매시 > Input : shortPeriod(1), longPeriod(20) ; Var : value(0); value = OSCP(shortPeriod, longPeriod); # 매수/매도청산 If CrossUP(value, 0) and c > O Then { Buy(); Exitshort(); } 위수식에서 시가가갭2p이상 상승시에만 and c > O 이적용안함 즉 시가가갭2p이상상승시에만 음봉이라도 종가매수 # 매도/매수청산 If CrossDown(value,0) and C < O 위수식에서시가가 갭-2 이하 하락시에만 and c > O 이적용안함 즉시가가 갭-2p이하하락시에만 양봉이라도 종가매수 Then { Sell(); Exitlong(); }