예스스탁
예스스탁 답변
2021-07-14 09:23:03
안녕하세요
예스스탁입니다.
input : pds1(5),pds2(10),pct(10);
var : no(0),nATR(0),matr(0),C1(False),C2(False),bar(0),hh(0),ll(0);
var : a(0),b(0),e3(0),e7(0),eq1(0),C3(False),LL1(0),HH1(0);
no = Accum(1) ;
nATR = atr(pds1);
matr = atr(pds2);
c1 = crossdown( nATR, mATR ) or crossup( nATR, mATR ) ;
if C1 == true Then
bar = no;
c2 = no-bar < pds1 ;
if C1 == true and C2 == true Then
{
HH = H;
LL = L;
}
a = ma(c,5) ;
b = AccumN(a,3) ;
e3 = ma(c,3) ;
e7 = ma(c,7) ;
eq1 = abs( e3 -e7 )/ e7*100 ;
c3 = b > b[1] and L >= L[1] and c > a and eq1 < pct ;
if C3 == true Then
{
LL1 = L;
HH1 = H;
}
if CountIf(HH>=C and C >= ll,3) == 3 and
CountIf(HH1>=C and C >= ll1,3) == 3 Then
Find(1);
즐거운 하루되세요
> 예그리나 님이 쓴 글입니다.
> 제목 : 수식전환 부탁드립니다.
> no = sum(1) ;
nATR = atr( pds1 ) ;
matr = atr(c, pds2) ;
c1 = crossdown( nATR, mATR ) or crossup( nATR, mATR ) ;
bar = valuewhen(1, c1, no ) ;
c2 = no-bar < pds1 ;
HH = valuewhen(1, c1 and c2, H ) ;
LL = valuewhen(1, c1 and c2, L ) ;
a = ma( c, 5 ) ;
b= sum( a, 3 ) ;
e3 = ma( c, 3 ) ;
e7 = ma( c, 7 ) ;
eq1 = abs( e3 -e7 )/ e7*100 ;
c3 = b > b(1) and L >= L(1) and c > a and eq1 < pct ;
LL1 = valuewhen(1, c3, L ) ;
HH1 = valuewhen(1, c3, H) ;
적어도 3봉간 종가가 HH와 LL 그리고 HH1과 LL1사이에 위치하는 종목검색 ;
좋은 하루 되세요...감사합니다.