커뮤니티

수식변환부탁드립니다

프로필 이미지
seayun1
2023-04-29 23:27:01
1064
글번호 168601
답변완료
트레이딩뷰 수식을 예스트레이더 강조수식으로 변환부탁드립니다 항상 감사드립니다 len=input(10) o=ema(open,len) c=ema(close,len) h=ema(high,len) l=ema(low,len) haclose = (o+h+l+c)/4 haopen = na(haopen[1]) ? (o + c)/2 : (haopen[1] + haclose[1]) / 2 hahigh = max (h, max(haopen,haclose)) halow = min (l, min(haopen,haclose)) len2=input(10) o2=ema(haopen, len2) c2=ema(haclose, len2) h2=ema(hahigh, len2) l2=ema(halow, len2) col=o2>c2 ? red : lime plotcandle(o2, h2, l2, c2, title="heikin smoothed", color=col)
강조
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-05-02 11:47:10

안녕하세요 예스스탁입니다. input : len(10),len2(10); var : oo(0),hh(0),ll(0),cc(0); var : o2(0),h2(0),l2(0),c2(0); var : haclose(0),haopen(0),hahigh(0),halow(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 (h, max(haopen,haclose)); halow = min (l, min(haopen,haclose)); o2=ema(haopen, len2); c2=ema(haclose, len2); h2=ema(hahigh, len2); l2=ema(halow, len2); PlotPaintBar(h2, l2, o2, c2,"heikin smoothed",IFf(o2>c2,Red,Lime)); 즐거운 하루되세요 > seayun1 님이 쓴 글입니다. > 제목 : 수식변환부탁드립니다 > 트레이딩뷰 수식을 예스트레이더 강조수식으로 변환부탁드립니다 항상 감사드립니다 len=input(10) o=ema(open,len) c=ema(close,len) h=ema(high,len) l=ema(low,len) haclose = (o+h+l+c)/4 haopen = na(haopen[1]) ? (o + c)/2 : (haopen[1] + haclose[1]) / 2 hahigh = max (h, max(haopen,haclose)) halow = min (l, min(haopen,haclose)) len2=input(10) o2=ema(haopen, len2) c2=ema(haclose, len2) h2=ema(hahigh, len2) l2=ema(halow, len2) col=o2>c2 ? red : lime plotcandle(o2, h2, l2, c2, title="heikin smoothed", color=col)