커뮤니티
지표 부탁 드립니다
//@version=6
indicator("GK Zero-Lag Major BOS Trend", overlay=true)
len = input.int(34, "Zero-Lag Length")
bosLen = input.int(20, "Major BOS Lookback")
lag = math.floor((len - 1) / 2)
src = close + (close - nz(close[lag], close))
zlem = ta.ema(src, len)
prevHigh = ta.highest(high, bosLen)[1]
prevLow = ta.lowest(low, bosLen)[1]
trendUp = zlem > zlem[1]
trendDn = zlem < zlem[1]
bullBos = trendUp and close > prevHigh
bearBos = trendDn and close < prevLow
plot(zlem, "Zero-Lag", color = trendUp ? color.teal : color.maroon, linewidth = 2)
plotshape(bullBos, title="GK BUY", text="GK BUY", style=shape.labelup, location=location.belowbar, color=color.teal, textcolor=color.white, size=size.small)
plotshape(bearBos, title="GK SELL", text="GK SELL", style=shape.labeldown, location=location.abovebar, color=color.red, textcolor=color.white, size=size.small)
답변 1
예스스탁 예스스탁 답변
2025-12-22 09:34:46