예스스탁
예스스탁 답변
2025-03-31 13:21:21
안녕하세요
예스스탁입니다.
1
input : 기간(20);
var : hu(0),up(False),ll(0),dn(False),hh(0),bsup(0),bsm(0),cnt(0);
var : bs(0),C1(False);
Hu = ma(c, 기간 ) ;
UP = HU < HU[1] && HU[1] > HU[2];
if up == true Then
{
LL = L[1];
bs = 0;
}
Else
{
if LL > 0 Then
bs = bs+1;
}
DN = HU > HU[1] && HU[1] < HU[2] ;
if DN == true Then
HH = H[1];
bsUp = bs+1 ;
if CrossUp(HU,LL) Then
BsM = bsUp;
if CrossDown(HU,LL) Then
{
cnt = 0;
}
if HU < LL Then
Cnt = Cnt+1;
C1 = BsM < Cnt && crossup( C, HH );
if C1 == true Then
Find(1);
2
input : 기간(20);
var : Tlen(0),mv(0),hh(0),mm(0),bs(0),cnt(0);
var : brs(0),CC1(False),Signal(0),c2(False);
TLen = Ceiling((기간 + 1) * 0.5);
mv = ma(ma(C, TLen), TLen);
if CrossUp(C,mv) Then
{
HH = H;
MM = mv;
brs = 0;
Cnt = 0;
Signal = 0;
}
Else
{
if hh > 0 and h > hh Then
hh = H;
if mm > 0 and mv > mm Then
mm = mv;
if hh > 0 Then
brs = brs+1;
}
bs = brs + 1 ;
if C > mv Then
Cnt = Cnt+1;
CC1 = Bs == Cnt && Bs > 20 && crossup( C, ( HH + MM)/2 ) ;
if CC1 == true Then
Signal = Signal+1;
c2 = Signal == 1 && Signal[1] ==0;
if c2 == true Then
Find(1);
즐거운 하루되세요
> 예그리나 님이 쓴 글입니다.
> 제목 : 수식전환 부탁드립니다.
> 1. Hu = ma( 가격, 기간 ) ;
UP = HU < HU(1) && HU(1) > HU(2) ;
LL = Valuewhen(1, UP, L(1) );
DN = HU > HU(1) && HU(1) < HU(2) ;
HH = ValueWhen(1, DN, H(1) ) ;
bsUp = Barssince( UP )+1 ;
BsM = valueWhen(1, crossdown( HU, LL ), bsUp ) ;
Cnt = Countsince( crossdown( HU, LL ), HU < LL ) ;
C1 = BsM < Cnt && crossup( C, HH )
2.
M = ma( C, 기간, 삼각 ) ;
HH = highestsince(1, crossup( c, M ), H ) ;
MM = highestsince(1, crossup( c, M ), M ) ;
C1 = crossup( c, M ) ;
bs = barssince( C1 ) + 1 ;
Cnt = countsince( C1, C > M ) ;
CC1 = Bs == Cnt && Bs > 20 &&
crossup( C, ( HH + MM)/2 ) ;
Signal = Countsince( C1, CC1 ) ;
c2 = Signal == 1 && Signal(1) ==0
c1과 c2를 각각 만족하는 종목검색 수식
감사합니다