커뮤니티

피봇시스템 작성 부탁드립니다.

프로필 이미지
harpring
2006-03-29 19:36:05
1021
글번호 9685
답변완료
시가형성후 가장 가까운 두개의 피봇,지지,저항선이 나오면 5분봉종가로 윗선을 돌파하면 매수 준비 후 그 다음봉도 윗선 돌파유지시 매수 및 매도청산 아랫선을 돌파하면 매도 준비 후 그 다음봉도 아래선 돌파유지시 매도 및 매수청산 손절매는 0.6pt (두 라인의 중앙 이탈 시 손절 식도 부탁드립니다) 동일방향매매횟수는 2번으로 제한 , 종가청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2006-03-30 16:42:29

안녕하세요 예스스탁입니다. 문의하신 식은 다음과 같습니다. Var : value(0),R1(0),R2(0),S1(0),S2(0),Bcnt(0),Scnt(0); value = (preDayHigh()+preDayLow()+preDayClose())/3; R1 = 2*value-preDayLow(); R2 = value+preDayHigh()-preDayLow(); S1 = 2*value-preDayHigh(); S2 = value-preDayHigh()+preDayLow(); if date != date[1] then{ Bcnt = 0; Scnt = 0; } setstoploss(0.6,pointstop); setstopendofday(1500); if dayopen() >= S2 and dayopen() < S1 then{ if accumn(iff(C > S1,1,0),2) == 2 and Bcnt < 2 then{ buy(); Bcnt = Bcnt +1; } if accumn(iff(c < S2,1,0),2) == 2 then exitlong(); if accumn(iff(c < S2,1,0),2) == 2 and Scnt < 2 then{ sell(); Scnt = Scnt +1; } if accumn(iff(C > S1,1,0),2) == 2 then exitshort(); } if dayopen() >= S1 and dayopen() < value then{ if accumn(iff(C > value,1,0),2) == 2 and Bcnt < 2 then{ buy(); Bcnt = Bcnt +1; } if accumn(iff(c < S1,1,0),2) == 2 then exitlong(); if accumn(iff(c < S1,1,0),2) == 2 and Scnt < 2 then{ sell(); Scnt = Scnt +1; } if accumn(iff(C > value,1,0),2) == 2 then exitshort(); } if dayopen() >= value and dayopen() < R1 then{ if accumn(iff(C > R1,1,0),2) == 2 and Bcnt < 2 then{ buy(); Bcnt = Bcnt +1; } if accumn(iff(c < value,1,0),2) == 2 then exitlong(); if accumn(iff(c < value,1,0),2) == 2 and Scnt < 2 then{ sell(); Scnt = Scnt +1; } if accumn(iff(C > R1,1,0),2) == 2 then exitshort(); } if dayopen() >= R1 and dayopen() < R2 then{ if accumn(iff(C > R2,1,0),2) == 2 and Bcnt < 2 then{ buy(); Bcnt = Bcnt +1; } if accumn(iff(c < R1,1,0),2) == 2 then exitlong(); if accumn(iff(c < R1,1,0),2) == 2 and Scnt < 2 then{ sell(); Scnt = Scnt +1; } if accumn(iff(C > R2,1,0),2) == 2 then exitshort(); } 즐거운 하루되세요 > harpring 님이 쓴 글입니다. > 제목 : 피봇시스템 작성 부탁드립니다. > 시가형성후 가장 가까운 두개의 피봇,지지,저항선이 나오면 5분봉종가로 윗선을 돌파하면 매수 준비 후 그 다음봉도 윗선 돌파유지시 매수 및 매도청산 아랫선을 돌파하면 매도 준비 후 그 다음봉도 아래선 돌파유지시 매도 및 매수청산 손절매는 0.6pt (두 라인의 중앙 이탈 시 손절 식도 부탁드립니다) 동일방향매매횟수는 2번으로 제한 , 종가청산