커뮤니티
ZLSMA 지표를 만들고자 합니다.
안녕하세요?
트레이딩뷰에 있는 ZLSMA 지표를 만들고자 합니다. 변환에 에러가 발생하여 부탁드립니다.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © veryfid
//@version=4
study(title = "ZLSMA - Zero Lag LSMA", shorttitle="ZLSMA", overlay=true, resolution="")
length = input(title="Length", type=input.integer, defval=32)
offset = input(title="Offset", type=input.integer, defval=0)
src = input(close, title="Source")
lsma = linreg(src, length, offset)
lsma2 = linreg(lsma, length, offset)
eq= lsma-lsma2
zlsma = lsma+eq
plot(zlsma, color=color.yellow, linewidth=3)
답변 2
예스스탁 예스스탁 답변
2025-11-20 15:46:58
jhs0713
2025-11-20 17:24:11