커뮤니티

문의드립니다.

프로필 이미지
카탈레나
2020-05-12 10:50:08
1506
글번호 138785
답변완료
Inputs: vis_atr = input(13) vis_std = input(20) sed_atr = input(40) sed_std = input(100) threshold_level = input(1.4) lag_supressor = input(true) lag_s_K = 0.5 // ||-----------------------------------------------------------------------------------------|| // || s1=nz(vol[1], 0) s3=nz(vol[3], 0) vol = lag_supressor ? atr(vis_atr) / atr(sed_atr) + lag_s_K*(s1-s3) : atr(vis_atr) / atr(sed_atr) anti_thres = stdev(close, vis_std) / stdev(close, sed_std) t = threshold_level - anti_thres vol_m = vol > t ? -1 : 0.03 // ||-----------------------------------------------------------------------------------------|| // || Outputs: plot(title='V', series=vol, color=lime) plot(title='A', series=t, color=silver) plot(title='T', series=vol_m, color=maroon) 변환 문의드립니다. 감사합니다.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-05-12 13:46:41

안녕하세요 예스스탁입니다. Inputs : vis_atr(13),vis_std(20),sed_atr(40),sed_std(100),threshold_level(1.4),lag_supressor(true); var : lag_s_K(0),s1(0),s3(0),vol(0), anti_thres(0),t(0),vol_m(0); lag_s_K = 0.5; s1 = iff(IsNaN(vol[1]) == false,vol[1],0); s3 = iff(IsNaN(vol[1]) == false,vol[3],0); vol = iff(lag_supressor , atr(vis_atr) / atr(sed_atr) + lag_s_K*(s1-s3) , atr(vis_atr) / atr(sed_atr)); anti_thres = std(close, vis_std) / std(close, sed_std); t = threshold_level - anti_thres; vol_m = iff(vol > t , -1 , 0.03); plot1(vol, "V",MAGENTA); plot2(t,"A",GRAY); plot3(vol_m,"T",CYAN); 즐거운 하루되세요 > 카탈레나 님이 쓴 글입니다. > 제목 : 문의드립니다. > Inputs: vis_atr = input(13) vis_std = input(20) sed_atr = input(40) sed_std = input(100) threshold_level = input(1.4) lag_supressor = input(true) lag_s_K = 0.5 // ||-----------------------------------------------------------------------------------------|| // || s1=nz(vol[1], 0) s3=nz(vol[3], 0) vol = lag_supressor ? atr(vis_atr) / atr(sed_atr) + lag_s_K*(s1-s3) : atr(vis_atr) / atr(sed_atr) anti_thres = stdev(close, vis_std) / stdev(close, sed_std) t = threshold_level - anti_thres vol_m = vol > t ? -1 : 0.03 // ||-----------------------------------------------------------------------------------------|| // || Outputs: plot(title='V', series=vol, color=lime) plot(title='A', series=t, color=silver) plot(title='T', series=vol_m, color=maroon) 변환 문의드립니다. 감사합니다.