커뮤니티
지표검색과 종목검색과 차이좀 확인 부탁합니다.
2011-05-12 23:03:56
623
글번호 38558
1. 해당 지표식과 종목검색식과 다른 점이 없는데
지표식에서는 84, 85봉전으로 설정하면 로그 파일에 제대로 나오는데,
종목검색식을 파워종목검색에서 검색하면 나오지가 않네요.
아래 종목이 나오지가 않네요.
1). 종목 : 시노펙스
2). 봉기준 : 5분봉
3). 봉 : 5월 11일 13시 50분, 55분(84봉, 85봉 기준)
바쁘시겠지만 확인좀 부탁드립니다.
그럼... 수고하십시요...
답변 1
예스스탁 예스스탁 답변
2011-05-13 11:43:03
안녕하세요
예스스탁입니다.
첨부된 1번 그림과 같이 해당봉은 조건에 만족한 봉이 아닙니다.
2번과 3번은 현재 실시간에서 기준봉을 지정하여 검색후 캡쳐한 그림입니다.
검색이 결과와 차트가 일치합니다.
첨부된 차트의 지표는 아래의 식을 적용한 것입니다.
Input : period11(5), period12(3), period13(3), term1(20);
var : idx11(0), idx12(0), idx21(0), idx22(0), idx31(0), idx32(0), idx41(0), idx42(0);
var : sVar11("N"), sVar12("N"), sVar21("N"), sVar22("N"), sVar31("N"), sVar32("N"), sVar41("N"), sVar42("N");
var : lSw(0), hSw(0), step1(0), step2(0), step3(0), step4(0), pass1(0), pass2(0), pass3(0), pass4(0);
var : lowsAmt1(0), lowsAmt2(0), lowsBar1(0), lowsBar2(0), highAmt1(0), highAmt2(0), highBar1(0), highBar2(0);
Condition99 = false;
//- 5. 3. 3 스토캐스틱 쌍바닥검색 시작---------------------------------------------------------------------------------------
pass1 = 0;
idx11 = 0;
idx12 = term1;
sVar11 = "N";
sVar12 = "N";
value11 = StochasticsK(period11, period12);
value12 = StochasticsD(period11, period12, period13);
lSw = 0;
hSw = 0;
highAmt1 = 0;
highAmt2 = 0;
highBar1 = 0;
highBar2 = 0;
lowsAmt1 = 0;
lowsAmt2 = 0;
lowsBar1 = 0;
lowsBar2 = 0;
For idx11 = 0 to idx12 step 1 {
If idx11 == 0 Then {
If value11[idx11] > value11[idx11+1] Then {
lowsAmt1 = value11[idx11+1];
lowsBar1 = idx11+1;
lSw = 1;
// Messagelog("101:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
Else {
highAmt1 = value11[idx11+1];
highBar1 = idx11+1;
hSw = 1;
// Messagelog("102:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
}
If value11[idx11] > value11[idx11+1] Then {
If hSw == 1 Then{
hSw = 2;
}
Else If hSw == 2 and highAmt2 > 0 Then{
lSw = 3;
idx21 = 999; //- Loop 탈출
}
If lSw == 0 Then{
lowsAmt1 = value11[idx11+1];
lowsBar1 = idx11+1;
lSw = 1;
// Messagelog("111:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
Else If lSw == 1 Then{
If lowsAmt1 > value11[idx11+1] Then{
lowsAmt1 = value11[idx11+1];
lowsBar1 = idx11+1;
// Messagelog("112:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
}
Else If lSw == 2 Then{
If lowsAmt2 == 0 Then{
lowsAmt2 = value11[idx11+1];
lowsBar2 = idx11+1;
// Messagelog("113:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
Else If lowsAmt2 > value11[idx11+1] Then{
lowsAmt2 = value11[idx11+1];
lowsBar2 = idx11+1;
// Messagelog("114:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
}
}
Else {
If lSw == 1 Then{
lSw = 2;
}
If hSw == 0 Then{
highAmt1 = value11[idx11+1];
highBar1 = idx11+1;
hSw = 1;
// Messagelog("121:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
Else If hSw == 1 Then{
If highAmt1 < value11[idx11+1] Then{
highAmt1 = value11[idx11+1];
highBar1 = idx11+1;
// Messagelog("122:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
}
Else If hSw == 2 Then{
If highAmt2 == 0 Then{
highAmt2 = value11[idx11+1];
highBar2 = idx11+1;
// Messagelog("123:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
Else If highAmt2 < value11[idx11+1] Then{
highAmt2 = value11[idx11+1];
highBar2 = idx11+1;
// Messagelog("124:::: :인덱스-> %.f :K값0-> %.3f : K값1-> %.3f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,value11[idx11],value11[idx11+1],lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
}
}
}
}
//Messagelog("198:::: :인덱스-> %.f :최소값1-> %.3f : 최소값2-> %.3f :최소봉1-> %.f : 최소봉2-> %.f :최대값1-> %.3f : 최대값2-> %.3f :최대봉1-> %.f : 최대봉2-> %.f",idx11,lowsAmt1,lowsAmt2,lowsBar1,lowsBar2,highAmt1,highAmt2,highBar1,highBar2);
var : KKK(0);
If lowsAmt1 >= lowsAmt2 and lowsBar1 <= lowsBar2 and value11[0] > value11[1] Then {
pass1 = 1;
sVar11 = "Y";
Condition99 = True;
# Find(pass1);
KKK = 1;
}
Else
KKK = 0;
plot1(KKK);
즐거운 하루되세요
> 이조만 님이 쓴 글입니다.
> 제목 : 지표검색과 종목검색과 차이좀 확인 부탁합니다.
> 1. 해당 지표식과 종목검색식과 다른 점이 없는데
지표식에서는 84, 85봉전으로 설정하면 로그 파일에 제대로 나오는데,
종목검색식을 파워종목검색에서 검색하면 나오지가 않네요.
아래 종목이 나오지가 않네요.
1). 종목 : 시노펙스
2). 봉기준 : 5분봉
3). 봉 : 5월 11일 13시 50분, 55분(84봉, 85봉 기준)
바쁘시겠지만 확인좀 부탁드립니다.
그럼... 수고하십시요...
다음글
이전글