커뮤니티
수식 부탁드립니다
2015-10-12 10:00:05
173
글번호 91089
주식에 쓸 종목검색식 부탁드립니다.
1. 1 거래일 전 상한가 종목
2. 2 거래일 전 상한가 종목
3. 3 거래일 전 상한가 종목
4. 1 거래일 전 하한가 종목 제외
5. 당일 예상체결가 (장개시 동시호가) -10% ~ 10%인 종목
6. 1거래일 전 거래량 10만 주 이상
7. 시가총액 1조원 이상 제외
8. 우선주 제외
9. 관리종목 제외
10. ETF 제외
11. 불성실공시기업 제외
12. (10분봉 주기) 1봉전 캔들의 종가가 볼린져밴드 (20,2) 상한선 아래인 종목
13. (10분봉 주기) 0봉전 캔들의 시가가 볼린져밴드 (20,2) 중심선 위인 종목
14. (10분봉 주기) 0봉전 기준 볼린져 밴드 (20,2) 하한선 3봉 연속 하락 종목 제외
15. (일봉 주기) 0봉전 캔들의 종가가 200봉 전에서 0봉전까지의 매물대 중심가격에서 -10% ~ +10%에 위치한 종목
16. 1거래일전 주가가 -5% ~ 5%인 종목
죄송하지만 수식 뒤에 숫자로 주석 표시 가능할까요? (ex. ...수식; // 1)
부탁드립니다 (_ _)
답변 1
예스스탁 예스스탁 답변
2015-10-12 13:28:23
안녕하세요
예스스탁입니다.
종목검색의 수식에는 봉데이터만 제공됩니다.
시가총액이나 제외종목등은 데이터가 제공되지 않습니다.
수식으로 가능하지 않은 부분도 있습니다.
올려주신 내용에서 아래 부분은
데이터가 제공되지 않거나
수식으로 작성되지 않는 부분입니다.
5. 당일 예상체결가 (장개시 동시호가) -10% ~ 10%인 종목
7. 시가총액 1조원 이상 제외
8. 우선주 제외
9. 관리종목 제외
10. ETF 제외
11. 불성실공시기업 제외
15. (일봉 주기) 0봉전 캔들의 종가가 200봉 전에서 0봉전까지의 매물대 중심가격에서 -10% ~ +10%에 위치한 종목
위 내용 제외한 식입니다.
10분봉에서 검색하시면 됩니다.
종목검색 속성에서 검색에 필요한 최소기간에 넉넉히 200봉이상
지정하시고 검색하시면 됩니다.
input : P(20),dv(2);
var : 하한가(0), DnLimit(0);
var : dn1(0), dn2(0), dn3(0), dn4(0), dn5(0),dn6(0),dn7(0);
var : 상한가(0), UpLimit(0);
var : up1(0), up2(0), up3(0), up4(0), up5(0),up6(0),Up7(0);
var : BBup(0),BBdn(0),BBmd(0),upv1(0),upv2(0),upv3(0),dnv1(0);
if date >= 19981207 then {
if date < 20050328 && CodeCategory() == 2 then
DnLimit = (BP * 0.12);
Else if date >= 20050328 and date < 20150615 Then
DnLimit = (BP * 0.15);
Else
DnLimit = (BP * 0.30);
if CodeCategory() == 2 then {
if date >= 20030721 then {
dn1 = int(DnLimit/100)*100;
dn2 = int(DnLimit/100)*100;
dn3 = int(DnLimit/100)*100;
dn4 = int(DnLimit/50)*50;
dn5 = int(DnLimit/10)*10;
dn6 = int(DnLimit/5)*5;
dn7 = int(DnLimit/1)*1;
}
else {
dn1 = int(DnLimit/1000)*1000;
dn2 = int(DnLimit/500)*500;
dn3 = int(DnLimit/100)*100;
dn4 = int(DnLimit/50)*50;
dn5 = int(DnLimit/10)*10;
dn6 = int(DnLimit/10)*10;
dn7 = int(DnLimit/1)*1;
}
}
Else {
dn1 = int(DnLimit/1000)*1000;
dn2 = int(DnLimit/500)*500;
dn3 = int(DnLimit/100)*100;
dn4 = int(DnLimit/50)*50;
dn5 = int(DnLimit/10)*10;
dn6 = int(DnLimit/5)*5;
dn7 = int(DnLimit/1)*1;
}
if CodeCategory() == 1 or CodeCategory() == 2 then {
if sdate < 20101004 Then{
If BP >= 500000 Then
하한가 = BP-dn1;
Else If BP >= 100000 Then
하한가 = BP-dn2;
Else If BP >= 50000 Then
하한가 = BP-dn3;
Else If BP >= 10000 Then
하한가 = BP-dn4;
Else If BP >= 5000 Then
하한가 = BP-dn5;
Else If BP >= 1000 Then
하한가 = BP-dn6;
Else
하한가 = BP-dn6;
}
else{
If BP >= 500000 Then
하한가 = BP-dn1;
Else If BP >= 100000 Then
하한가 = BP-dn2;
Else If BP >= 50000 Then
하한가 = BP-dn3;
Else If BP >= 10000 Then
하한가 = BP-dn4;
Else If BP >= 5000 Then
하한가 = BP-dn5;
Else If BP >= 1000 Then
하한가 = BP-dn6;
Else
하한가 = BP-dn7;
}
}
else if CodeCategory() == 8 or CodeCategory() == 9 then {
하한가 = BP-dn6;
}
}
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;
}
}
bbup = BollBandUp(P,dv);
bbmd = ma(C,P);
bbdn = BollBandDown(P,dv);
if Bdate != Bdate[1] Then{
upv1 = 상한가[1];
dnv1 = 상한가[1];
upv2 = 상한가[1];
upv3 = 상한가[1];
}
if DayClose(1) >= upv1 and#1
DayClose(2) >= upv2 and#2
DayClose(3) >= upv3 and#3
DayClose(1) > dnv1 and#4
DayVolume(1) >= 100000 and #6
C[1] < BBup[1] and #12
O > BBmd and#13
countif(BBdn < BBdn,3) < 3 and#14
DayClose(1) <= DayClose(2)*1.05 and DayClose(1) >= DayClose(2)*0.95 Then#16
find(1);
즐거운 하루되세요
> 가이츠 님이 쓴 글입니다.
> 제목 : 수식 부탁드립니다
> 주식에 쓸 종목검색식 부탁드립니다.
1. 1 거래일 전 상한가 종목
2. 2 거래일 전 상한가 종목
3. 3 거래일 전 상한가 종목
4. 1 거래일 전 하한가 종목 제외
5. 당일 예상체결가 (장개시 동시호가) -10% ~ 10%인 종목
6. 1거래일 전 거래량 10만 주 이상
7. 시가총액 1조원 이상 제외
8. 우선주 제외
9. 관리종목 제외
10. ETF 제외
11. 불성실공시기업 제외
12. (10분봉 주기) 1봉전 캔들의 종가가 볼린져밴드 (20,2) 상한선 아래인 종목
13. (10분봉 주기) 0봉전 캔들의 시가가 볼린져밴드 (20,2) 중심선 위인 종목
14. (10분봉 주기) 0봉전 기준 볼린져 밴드 (20,2) 하한선 3봉 연속 하락 종목 제외
15. (일봉 주기) 0봉전 캔들의 종가가 200봉 전에서 0봉전까지의 매물대 중심가격에서 -10% ~ +10%에 위치한 종목
16. 1거래일전 주가가 -5% ~ 5%인 종목
죄송하지만 수식 뒤에 숫자로 주석 표시 가능할까요? (ex. ...수식; // 1)
부탁드립니다 (_ _)
다음글
이전글