커뮤니티

종목검색식 요청드립니다.

프로필 이미지
onlypsn
2025-11-10 16:39:28
68
글번호 227853
답변완료

아래 키움신호가 당일 분봉에서 볼린져밴드(20,2) 하단선 이하에서 신호가 발생했던 모든 종목을 검색하는 검색식을 만들고 싶습니다.  도움 부탁드립니다. 지표조건(볼린져밴드수치, 신호수식 지표수치)은 수정가능하도록 부탁드립니다. 감사합니다.!!^^
* 키움신호수식 (지표조건 : period 20, ratio 2, Vmul 0.5)
AA=C(1)<lowest(C(2), period)*ratio;
BB=if(C(1)>O(1), (H(1)+L(1)+C(1)+H(1))/2-L(1), (if(C(1)<O(1), (H(1)+L(1)+C(1)+L(1))/2-L(1), (H(1)+L(1)+C(1)+C(1))/2-L(1)) ) );
CC=if(C(1)>O(1), (H(1)+L(1)+C(1)+H(1))/4, (if(C(1)<O(1), (H(1)+L(1)+C(1)+L(1))/4, (H(1)+L(1)+C(1)+C(1))/4) ) );
DD=(O>=BB) or crossup(C, BB); EE=(O>=CC) or crossup(C, CC); FF=V>=V(1)*Vmul; GG=C>O; HH=C(1)<=O;
AA and (DD or EE) and FF and GG and HH

종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-11-11 12:59:52

안녕하세요 예스스탁입니다. input : Period(20),ratio(2),vmul(0.5),BBPeriod(20),dv(2); var : AA(False),BB(0),CC(0),DD(False),EE(False),FF(False),GG(False),HH(False); var : BBdn(0),count(0); AA=C[1]<lowest(C, period)[2]*ratio; BB=iff(C[1]>O[1], (H[1]+L[1]+C[1]+H[1])/2-L[1], (iff(C[1]<O[1], (H[1]+L[1]+C[1]+L[1])/2-L[1], (H[1]+L[1]+C[1]+C[1])/2-L[1]) ) ); CC=iff(C[1]>O[1], (H[1]+L[1]+C[1]+H[1])/4, (iff(C[1]<O[1], (H[1]+L[1]+C[1]+L[1])/4, (H[1]+L[1]+C[1]+C[1])/4) ) ); DD=(O>=BB) or crossup(C, BB); EE=(O>=CC) or crossup(C, CC); FF=V>=V[1]*Vmul; GG=C>O; HH=C[1]<=O; BBdn = BollBandDown(BBPeriod,dv); if sDate != sDate[1] Then count = 0; Condition1 = AA and (DD or EE) and FF and GG and HH; Condition2 = C < BBdn; if Condition1 == true and Condition2 == true Then count = count+1; if count >= 1 then Find(1); 즐거운 하루되세요