커뮤니티

안녕하세요

프로필 이미지
로즈버드
2024-02-08 12:08:34
826
글번호 176538
답변완료
안녕하세요 종목검색식 답변 주셔서 감사합니다. 아래의 수식 len & len2를 8,8로 수정한다면 수식 내용의 변경이 어떻게 되어야 할지 여쭙습니다. 감사합니다! input : len(3),len2(3); var : oo(0),cc(0),hh(0),ll(0); var : haclose(0),haopen(0),hahigh(0),halow(0); var : o2(0),c2(0),h2(0),l2(0),col(0); oo=ema(open,len); cc=ema(close,len); hh=ema(high,len); ll=ema(low,len); haclose = (oo+hh+ll+cc)/4; haopen = iff(IsNaN(haopen[1]) == true , (oo + cc)/2 , (haopen[1] + haclose[1]) / 2); hahigh = max (hh, max(haopen,haclose)); halow = min (ll, min(haopen,haclose)); o2=ema(haopen, len2); c2=ema(haclose, len2); h2=ema(hahigh, len2); l2=ema(halow, len2); col=iff(o2>c2 , red , lime); if CountIf(col==Lime,2) == 2 and col[2] == Red Then Find(1);
종목검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-02-08 13:26:53

안녕하세요 예스스탁입니다. 문의하신 내용을 정확히 이해하지 못했습니다. 기간값을 8로 변경하신다고 해서 수식 자체에서 변경될 내용은 없습니다. 올려주신 수식에서 len,len2는 수식내에서 값을 평균하기 위한 기간입니다. len는 각 시/고/저/종가의 지수이평을 할때 사용하는기간이고 이값을 기준으로 만들어진 하켄하쉬 시고저종가가 만들어지게 됩니다. 그리고 하켄아쉬 시고저종가값을 각각 다시 지수이평하는데 이때 기간이 len2입니다. 만약 연속 라임색갯수를 지정하고자 하시는 내용이시면 연속 갯수를 아래와 같이 외부변수처리해 지정하시면 됩니다. input : len(3),len2(3),N(2); var : oo(0),cc(0),hh(0),ll(0); var : haclose(0),haopen(0),hahigh(0),halow(0); var : o2(0),c2(0),h2(0),l2(0),col(0); oo=ema(open,len); cc=ema(close,len); hh=ema(high,len); ll=ema(low,len); haclose = (oo+hh+ll+cc)/4; haopen = iff(IsNaN(haopen[1]) == true , (oo + cc)/2 , (haopen[1] + haclose[1]) / 2); hahigh = max (hh, max(haopen,haclose)); halow = min (ll, min(haopen,haclose)); o2=ema(haopen, len2); c2=ema(haclose, len2); h2=ema(hahigh, len2); l2=ema(halow, len2); col=iff(o2>c2 , red , lime); if CountIf(col==Lime,N) == N and col[N] == Red Then Find(1); 즐거운 명절되세요 > 로즈버드 님이 쓴 글입니다. > 제목 : 안녕하세요 > 안녕하세요 종목검색식 답변 주셔서 감사합니다. 아래의 수식 len & len2를 8,8로 수정한다면 수식 내용의 변경이 어떻게 되어야 할지 여쭙습니다. 감사합니다! input : len(3),len2(3); var : oo(0),cc(0),hh(0),ll(0); var : haclose(0),haopen(0),hahigh(0),halow(0); var : o2(0),c2(0),h2(0),l2(0),col(0); oo=ema(open,len); cc=ema(close,len); hh=ema(high,len); ll=ema(low,len); haclose = (oo+hh+ll+cc)/4; haopen = iff(IsNaN(haopen[1]) == true , (oo + cc)/2 , (haopen[1] + haclose[1]) / 2); hahigh = max (hh, max(haopen,haclose)); halow = min (ll, min(haopen,haclose)); o2=ema(haopen, len2); c2=ema(haclose, len2); h2=ema(hahigh, len2); l2=ema(halow, len2); col=iff(o2>c2 , red , lime); if CountIf(col==Lime,2) == 2 and col[2] == Red Then Find(1);