OPEN-SOURCE SCRIPT

HA Line + Trend Oklar

55
//version=5
indicator("HA Line + Trend Oklar", overlay=true)

// Heiken Ashi hesaplamaları
haClose = (open + high + low + close) / 4
var float haOpen = na
haOpen := na(haOpen) ? (open + close) / 2 : (haOpen + haClose[1]) / 2
haHigh = math.max(high, math.max(haOpen, haClose))
haLow = math.min(low, math.min(haOpen, haClose))

// Trend yönüne göre renk
haColor = haClose >= haClose[1] ? color.green : color.red

// HA kapanış çizgisi
plot(haClose, color=haColor, linewidth=3, title="HA Close Line")

// Agresif oklar ile trend gösterimi
upArrow = ta.crossover(haClose, haClose[1])
downArrow = ta.crossunder(haClose, haClose[1])

plotshape(upArrow, title="Up Arrow", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.large)
plotshape(downArrow, title="Down Arrow", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.large)

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.