OPEN-SOURCE SCRIPT

Basit Trend AL/SAT

51
//version=5
indicator("Basit Trend AL/SAT", overlay=true)


yesil = close > open
kirmizi = close < open

1 = yeşil, -1 = kırmızı, 0 = başlangıç
var int trend = 0


trend := yesil ? 1 : kirmizi ? -1 : trend


al = yesil and trend[1] != 1
sat = kirmizi and trend[1] != -1


plotshape(al, title="AL", location=location.belowbar, color=color.lime, style=shape.triangleup, size=size.large, text="AL")
plotshape(sat, title="SAT", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.large, text="SAT")


bgcolor(trend == 1 ? color.new(color.green, 85) : trend == -1 ? color.new(color.red, 85) : na)

면책사항

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