예스스탁
예스스탁 답변
2024-11-12 14:50:57
안녕하세요
예스스탁입니다.
강조식으로 작성해 차트에 적용하셔야 합니다.
input : len(10);
var : oo(0),cc(0),hh(0),ll(0);
var : haclose(0),haopen(0),hahigh(0),halow(0),col(0);
oo=ema(open,len);
cc=ema(close,len);
hh=ema(high,len);
ll=ema(low,len);
haclose = (o+h+l+c)/4;
haopen = IFf(IsNan(haopen[1]) == true, (o + c)/2 , (haopen[1] + haclose[1]) / 2);
hahigh = max (h, max(haopen,haclose));
halow = min (l, min(haopen,haclose));
input : len2(10);
var : o2(0),c2(0),h2(0),l2(0);
o2=ema(haopen, len2);
c2=ema(haclose, len2);
h2=ema(hahigh, len2);
l2=ema(halow, len2);
col=iff(o2>c2 , red , lime);
PlotPaintBar(o2, c2, "heikin smoothed", col);
즐거운 하루되세요
> 만강 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 안녕하세요
다음 트뷰코딩 전환 부탁드립니다
//@version=2
study(title = "Smoothed Heiken Ashi Candles", shorttitle="Smoothed Ha Candles", overlay=true)
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)
가능하면 몸통만 표시하고싶습니다.
감사합니다