커뮤니티

ZLSMA 지표를 만들고자 합니다.

프로필 이미지
jhs0713
2025-11-20 14:56:33
51
글번호 228261
답변완료

안녕하세요? 트레이딩뷰에 있는 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

안녕하세요 예스스탁입니다. input : length(32),offset(0); var : src(0),lsma(0),lsma2(0),eq(0),zlsma(0); src =close; lsma= LinRegForecast(src,length,offset); lsma2 = LinRegForecast(lsma,length,offset); eq = lsma-lsma2; zlsma = lsma+eq; Plot1(zlsma); 즐거운 하루되세요
프로필 이미지

jhs0713

2025-11-20 17:24:11

감사합니다~~