커뮤니티
조건검색식
2012-10-14 20:20:24
296
글번호 55595
안녕하세요, 주식 검색기 질문좀 드리겠습니다.
1. 전일상한가 대상으로
2. Pivot 지표의 조건은 → 시가>2차저항 이며(피봇분봉이 아니라 피봇으로만)
3. 선행스팬1 조건값 2,2 / 기준선의 조건값 26을 기준으로
4. 선행스팬1 < 기준선 인 종목검색식을 부탁드리겠습니다.
답변 1
예스스탁 예스스탁 답변
2012-10-15 10:07:01
안녕하세요
예스스탁입니다.
선행스팬1의 조건값 2,2 가 어떤 것을 의미하시는지 모르겟습니다.
선행스팬1은 전환서과 기준선의 중간값이므로
아래 계산식 참고하셔서 의도와 맞게 수정하시기 바랍니다.
var : 상한가(0), UpLimit(0);
var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0);
Var : Pivot(0),Resist1(0),Resist2(0),support1(0),support2(0);
Var : 전환선(0), 기준선(0),후행스팬(0),선행스팬1(0),선행스팬2(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;
}
}
Pivot = (DayHigh(1)+DayLow(1)+DayClose(1))/3;
Resist1 = 2*Pivot-DayLow(1);
Resist2 = Pivot+DayHigh(1)-DayLow(1);
support1 = 2*Pivot-DayHigh(1);
support2 = Pivot-DayHigh(1)+DayLow(1);
전환선 = (highest(H,9)+lowest(L,9))/2;
기준선 = (highest(H,26)+lowest(L,26))/2;
후행스팬 = C;
선행스팬1 = (전환선+기준선)/2;
선행스팬2 = (highest(H,52)+lowest(L,52))/2;
if H[1] >= 상한가[1] and
O > Resist2 and
선행스팬1[25] < 기준선 then
find(1);
즐거운 하루되세요
> 해피포인트 님이 쓴 글입니다.
> 제목 : 조건검색식
> 안녕하세요, 주식 검색기 질문좀 드리겠습니다.
1. 전일상한가 대상으로
2. Pivot 지표의 조건은 → 시가>2차저항 이며(피봇분봉이 아니라 피봇으로만)
3. 선행스팬1 조건값 2,2 / 기준선의 조건값 26을 기준으로
4. 선행스팬1 < 기준선 인 종목검색식을 부탁드리겠습니다.
다음글
이전글