ns = sum(1) ;
cs = sum( P) ;
Aw = weekday(Date) ;
AM = ( floor(date / 100) )%100 ;
CD = date <> date(1) ;
CW = Aw(1) >= Aw && CD ;
Cm = AM <> AM(1) ;
Cm3 = AM%3 == 0 ;
nD1 = valueWhen(1, CD, ns(1) ) ;
nC1 = valueWhen(1, CD, Cs(1) ) ;
Dma = ( CS - nC1 )/( ns - nD1 ) ;
nw1 = valueWhen(1, Cw, ns(1) ) ;
cw1 = valuewhen(1, Cw, cs(1) ) ;
Wma = ( cS - cw1 ) / ( nS - nW1 ) ;
nM1 = valueWhen(1, CM, ns(1) ) ;
cM1 = valuewhen(1, CM, cs(1) ) ;
Mma = ( cS - cM1 ) / ( nS - nM1 ) ;
crossup( Dma, Wma ) && Mma > Wma
조건을 만족하는 종목검색
감사합니다.
답변 1
예스스탁
예스스탁 답변
2024-09-20 11:17:28
안녕하세요
예스스탁입니다.
cs = sum( P) ;
P가 무슨값인지 알수 없습니다. 종가로 처리해 드립니다.
var : ns(0),cs(0),aw(0),am(0);
var : cd(False),cw(False),cm(False),cm3(False);
var : nd1(0),nc1(0),dma(0);
var : nw1(0),cw1(0),WMa(0),nm1(0),cm1(0),mma(0);
ns = Accum(1);
cs = Accum(c);
Aw = DayOfWeek(sDate) ;
AM = ( floor(date / 100) )%100 ;
CD = date <> date[1] ;
CW = Aw[1] >= Aw && CD ;
Cm = AM <> AM[1] ;
Cm3 = AM%3 == 0 ;
if CD == true Then
{
nD1 = ns[1] ;
nC1 = Cs[1] ;
}
Dma = ( CS - nC1 )/( ns - nD1 ) ;
if CW == true Then
{
nw1 = ns[1] ;
nw1 = Cs[1] ;
}
Wma = ( cS - cw1 ) / ( nS - nW1 ) ;
if CM == true Then
{
nM1 = ns[1] ;
cM1 = cs[1] ;
}
Mma = ( cS - cM1 ) / ( nS - nM1 ) ;
if crossup( Dma, Wma ) && Mma > Wma Then
Find(1);
즐거운 하루되세요
> 占쏙옙占쌓몌옙占쏙옙 님이 쓴 글입니다.
> 제목 : 수식전화 부탁드립니다.
> ns = sum(1) ;
cs = sum( P) ;
Aw = weekday(Date) ;
AM = ( floor(date / 100) )%100 ;
CD = date <> date(1) ;
CW = Aw(1) >= Aw && CD ;
Cm = AM <> AM(1) ;
Cm3 = AM%3 == 0 ;
nD1 = valueWhen(1, CD, ns(1) ) ;
nC1 = valueWhen(1, CD, Cs(1) ) ;
Dma = ( CS - nC1 )/( ns - nD1 ) ;
nw1 = valueWhen(1, Cw, ns(1) ) ;
cw1 = valuewhen(1, Cw, cs(1) ) ;
Wma = ( cS - cw1 ) / ( nS - nW1 ) ;
nM1 = valueWhen(1, CM, ns(1) ) ;
cM1 = valuewhen(1, CM, cs(1) ) ;
Mma = ( cS - cM1 ) / ( nS - nM1 ) ;
crossup( Dma, Wma ) && Mma > Wma
조건을 만족하는 종목검색
감사합니다.