커뮤니티

시스템식

프로필 이미지
회원
2012-06-17 13:25:23
411
글번호 52063
답변완료

첨부 이미지

1. 장중 상한가에 도달한 종목이 상한가에서 시초가를 이탈하면 매수하고 다시 상한가에 도달하면 매도하는 식 부탁드립니다. 2. 장시작후 주가가 오르다가 하락하면 고점을 장중 1차 고점으로 하고 주가가 하락하다가 오르면 그 저점을 장중 1차 저점을 하여, 장중 1차 저점을 이탈하면 매수, 장중 1차 고점을 돌파하면 매도하고 다시 생선된 장중의 2차 저점을 이탈하면 매수하고 장중1차 저점을 돌파하면 매도하는 수식 부탁드립니다. (참고:파일) 지표식, 검색식, 강조식도 함께 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-06-18 11:40:30

안녕하세요 예스스탁입니다. 1 var : 상한가(0), UpLimit(0); var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0); if date >= 19981207 then { if date < 20050328 && CodeCategory() == 2 then UpLimit = (BP[0] * 1.12); Else UpLimit = (BP[0] * 1.15); if CodeCategory() == 2 then { if date >= 20030721 then { up1 = int(UpLimit/100+0.00001)*100; up2 = int(UpLimit/100+0.00001)*100; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; } else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/10+0.00001)*10; } } Else { up1 = int(UpLimit/1000+0.00001)*1000; up2 = int(UpLimit/500+0.00001)*500; up3 = int(UpLimit/100+0.00001)*100; up4 = int(UpLimit/50+0.00001)*50; up5 = int(UpLimit/10+0.00001)*10; up6 = int(UpLimit/5+0.00001)*5; } if CodeCategory() == 1 || CodeCategory() == 2 then { If BP >= 500000 Then 상한가 = up1; Else If BP >= 100000 Then 상한가 = iff(up2>=500000, up1, up2); Else If BP >= 50000 Then 상한가 = iff(up3>=100000, up2, up3); Else If BP >= 10000 Then 상한가 = iff(up4>=50000, up3, up4); Else If BP >= 5000 Then 상한가 = iff(up5>=10000, up4, up5); Else 상한가 = iff(up6>=5000, up5, up6); } else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF 상한가 = up6; } } if dayhigh >= 상한가 and CrossDown(c,dayopen) Then buy(); if MarketPosition == 1 Then exitlong("bx",atlimit,상한가); 2. if dayindex == 0 Then{ var1 = H; var2 = L; Condition1 = false; Condition2 = false; } if dayindex >= 2 and H < H[1] and H[1] >= H[2] and H > var1 Then{ var1 = H[1]; Condition1 = true; } if dayindex >= 2 and L > L[1] and L[1] <= L[2] and L < var2 Then{ var2 = L[1]; Condition2 = true; } if Condition2 == true Then buy("b",Atlimit,var2-PriceScale); if Condition1 == true Then sell("s",atlimit,var1+PriceScale); 즐거운 하루되세요 > 악돌 님이 쓴 글입니다. > 제목 : 시스템식 > 1. 장중 상한가에 도달한 종목이 상한가에서 시초가를 이탈하면 매수하고 다시 상한가에 도달하면 매도하는 식 부탁드립니다. 2. 장시작후 주가가 오르다가 하락하면 고점을 장중 1차 고점으로 하고 주가가 하락하다가 오르면 그 저점을 장중 1차 저점을 하여, 장중 1차 저점을 이탈하면 매수, 장중 1차 고점을 돌파하면 매도하고 다시 생선된 장중의 2차 저점을 이탈하면 매수하고 장중1차 저점을 돌파하면 매도하는 수식 부탁드립니다. (참고:파일) 지표식, 검색식, 강조식도 함께 부탁드립니다.