커뮤니티
검색식 문의
2016-11-29 13:56:20
138
글번호 104466
일일이 수고해 주심에 감사드립니다.
아래 검색식에서 주가가
1. 이평선을 돌파하는 개수에 따라 표식을 달리 하는 식과
예) 주가가 이평선 1개 돌파 표식
주가가 이평선 2개 돌파 표식
주가가 이평선 3개 돌파 표식
주가가 이평선 4개 돌파 표식
주가가 이평선 5개 돌파 표식
주가가 이평선 6개 돌파 표식
2. 그리고, 5~20% 양봉( body >= C[1]*0.05 and Body <= C[1]*0.20 )과 병행
하여 상한가 종목을 검색하고 상한가 봉을 표시하는 식
위 조건의 종목검색식, 검색식 작성을 부탁드립니다.
input : 이격1(90),이격2(120), 검색기간(60);
Var : Body(0),Highbody(0),Lowbody(0),value(0);
Body = Abs(C-O);
Highbody = MaxList(Open,Close);
Lowbody = MinList(Open,Close);
var1 = Disparity(60);
var2 = ma(c,5);
var3 = ma(c,10);
var4 = ma(c,20);
var5 = ma(c,33);
var6 = ma(c,60);
var7 = ma(c,120);
var8 = ma(v,60);
value1 = 0;
if crossup(c,var2) Then
value1 = value1+1;
if crossup(c,var3) Then
value1 = value1+1;
if crossup(c,var4) Then
value1 = value1+1;
if crossup(c,var5) Then
value1 = value1+1;
if crossup(c,var7) Then
value1 = value1+1;
if var1[1] >= 이격1 and var1[1] <= 이격2 and
C > var2 and
value1 >= 1 and
body >= C[1]*0.05 and Body <= C[1]*0.20 and
H-Highbody >= body*0.0 and H-highbody <= Body*5 and
Lowbody-L >= body*0.00 and lowbody-L <= Body*5 and
C > O Then
Condition1 = true;
Else
Condition1 = false;
if countif(Condition1==true, 검색기간) >= 1 Then
find(1);
답변 2
예스스탁 예스스탁 답변
2016-11-29 13:56:45
안녕하세요
예스스탁입니다.
1.
표식을 달리한다고만 하시면 어떻게 표시되기를 원하시는지 알수없습니다.
갯수로 출력되는 지표식입니다.
input : 이격1(90),이격2(120), 검색기간(60);
Var : Body(0),Highbody(0),Lowbody(0),value(0);
Body = Abs(C-O);
Highbody = MaxList(Open,Close);
Lowbody = MinList(Open,Close);
var1 = Disparity(60);
var2 = ma(c,5);
var3 = ma(c,10);
var4 = ma(c,20);
var5 = ma(c,33);
var6 = ma(c,60);
var7 = ma(c,120);
var8 = ma(v,60);
value1 = 0;
if crossup(c,var2) Then
value1 = value1+1;
if crossup(c,var3) Then
value1 = value1+1;
if crossup(c,var4) Then
value1 = value1+1;
if crossup(c,var5) Then
value1 = value1+1;
if crossup(c,var7) Then
value1 = value1+1;
plot1(value1);
2
var : 상한가(0), UpLimit(0);
var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0);
if date >= 19981207 then {
if date < 20050328 && CodeCategory() == 2 then
UpLimit = (BP[0] * 1.12);
Else if date >= 20050328 and date < 20150615 Then
UpLimit = (BP[0] * 1.15);
Else
UpLimit = (BP[0] * 1.30);
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;
up7 = int(UpLimit/1+0.00001)*1;
}
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;
up7 = int(UpLimit/1+0.00001)*1;
}
}
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;
up7 = int(UpLimit/1+0.00001)*1;
}
if CodeCategory() == 1 || CodeCategory() == 2 then {
if sdate < 20101004 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 If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up6);
}
Else{
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 If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up7);
}
}
else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF
상한가 = up6;
}
}
if C >= 상한가 and C >= O*1.05 and C <= O*1.20 Then
find(1);
3
var : 상한가(0), UpLimit(0);
var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0);
if date >= 19981207 then {
if date < 20050328 && CodeCategory() == 2 then
UpLimit = (BP[0] * 1.12);
Else if date >= 20050328 and date < 20150615 Then
UpLimit = (BP[0] * 1.15);
Else
UpLimit = (BP[0] * 1.30);
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;
up7 = int(UpLimit/1+0.00001)*1;
}
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;
up7 = int(UpLimit/1+0.00001)*1;
}
}
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;
up7 = int(UpLimit/1+0.00001)*1;
}
if CodeCategory() == 1 || CodeCategory() == 2 then {
if sdate < 20101004 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 If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up6);
}
Else{
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 If BP >= 1000 Then
상한가 = iff(up5>=5000, up5, up6);
Else
상한가 = iff(up6>=1000, up6, up7);
}
}
else if CodeCategory() == 8 || CodeCategory() == 9 then { // ETF
상한가 = up6;
}
}
if C >= 상한가 and C >= O*1.05 and C <= O*1.20 Then
plot1(H);
즐거운 하루되세요
> 자아준 님이 쓴 글입니다.
> 제목 : 검색식 문의
> 일일이 수고해 주심에 감사드립니다.
아래 검색식에서 주가가
1. 이평선을 돌파하는 개수에 따라 표식을 달리 하는 식과
예) 주가가 이평선 1개 돌파 표식
주가가 이평선 2개 돌파 표식
주가가 이평선 3개 돌파 표식
주가가 이평선 4개 돌파 표식
주가가 이평선 5개 돌파 표식
주가가 이평선 6개 돌파 표식
2. 그리고, 5~20% 양봉( body >= C[1]*0.05 and Body <= C[1]*0.20 )과 병행
하여 상한가 종목을 검색하고 상한가 봉을 표시하는 식
위 조건의 종목검색식, 검색식 작성을 부탁드립니다.
input : 이격1(90),이격2(120), 검색기간(60);
Var : Body(0),Highbody(0),Lowbody(0),value(0);
Body = Abs(C-O);
Highbody = MaxList(Open,Close);
Lowbody = MinList(Open,Close);
var1 = Disparity(60);
var2 = ma(c,5);
var3 = ma(c,10);
var4 = ma(c,20);
var5 = ma(c,33);
var6 = ma(c,60);
var7 = ma(c,120);
var8 = ma(v,60);
value1 = 0;
if crossup(c,var2) Then
value1 = value1+1;
if crossup(c,var3) Then
value1 = value1+1;
if crossup(c,var4) Then
value1 = value1+1;
if crossup(c,var5) Then
value1 = value1+1;
if crossup(c,var7) Then
value1 = value1+1;
if var1[1] >= 이격1 and var1[1] <= 이격2 and
C > var2 and
value1 >= 1 and
body >= C[1]*0.05 and Body <= C[1]*0.20 and
H-Highbody >= body*0.0 and H-highbody <= Body*5 and
Lowbody-L >= body*0.00 and lowbody-L <= Body*5 and
C > O Then
Condition1 = true;
Else
Condition1 = false;
if countif(Condition1==true, 검색기간) >= 1 Then
find(1);
자아준
2016-11-29 17:00:05
먼저 앞전 질문에서 제가 설명이 미흡한거 같습니다.
일일이 답변 주심에 감사드리며 다시 질문드립니다.
아래 검색식에서 주가가
1. 이평선을 돌파하는 개수에 따라 표식을 달리 하는 식과
예) 주가가 이평선 1개 돌파 표식
주가가 이평선 2개 돌파 표식
주가가 이평선 3개 돌파 표식
주가가 이평선 4개 돌파 표식
주가가 이평선 5개 돌파 표식
주가가 이평선 6개 돌파 표식
검색 속성 - 차트 표시에서 설정을 달리하여 표식하는 법
2. 그리고, 5~20% 양봉과 상한가(현30%만 적용)를 병행(or)하여 종목을 검색하고
{( body >= C[1]*0.05 and Body <= C[1]*0.20 and
H-Highbody >= body*0.0 and H-highbody <= Body*5 and
Lowbody-L >= body*0.00 and lowbody-L <= Body*5 and
C > O) or(상한가)}
위 조건의 종목검색식, 검색식(5~20% 양봉과 상한가를 별도 표식)작성을 부탁드립니다.
input : 이격1(90),이격2(120), 검색기간(60);
Var : Body(0),Highbody(0),Lowbody(0),value(0);
Body = Abs(C-O);
Highbody = MaxList(Open,Close);
Lowbody = MinList(Open,Close);
var1 = Disparity(60);
var2 = ma(c,5);
var3 = ma(c,10);
var4 = ma(c,20);
var5 = ma(c,33);
var6 = ma(c,60);
var7 = ma(c,120);
var8 = ma(v,60);
value1 = 0;
if crossup(c,var2) Then
value1 = value1+1;
if crossup(c,var3) Then
value1 = value1+1;
if crossup(c,var4) Then
value1 = value1+1;
if crossup(c,var5) Then
value1 = value1+1;
if crossup(c,var7) Then
value1 = value1+1;
if var1[1] >= 이격1 and var1[1] <= 이격2 and
C > var2 and
value1 >= 1 and
{( body >= C[1]*0.05 and Body <= C[1]*0.20 and
H-Highbody >= body*0.0 and H-highbody <= Body*5 and
Lowbody-L >= body*0.00 and lowbody-L <= Body*5 and
C > O) or (상한가)} Then
Condition1 = true;
Else
Condition1 = false;
if countif(Condition1==true, 검색기간) >= 1 Then
find(1);
다음글
이전글