커뮤니티

문의 드립니다.

프로필 이미지
신대륙발견
2025-03-15 13:18:35
323
글번호 189210
답변완료
length = input(100, minval=1) src = input(hlc3, title="Source") mult = input(3.0, minval=0.001, maxval=50) basis = vwma(src, length) dev = mult * stdev(src, length) upper_1= basis + (0.236*dev) upper_2= basis + (0.382*dev) upper_3= basis + (0.5*dev) upper_4= basis + (0.618*dev) upper_5= basis + (0.764*dev) upper_6= basis + (1*dev) lower_1= basis - (0.236*dev) lower_2= basis - (0.382*dev) lower_3= basis - (0.5*dev) lower_4= basis - (0.618*dev) lower_5= basis - (0.764*dev) lower_6= basis - (1*dev) plot(basis, color=fuchsia, linewidth=2) p1 = plot(upper_1, color=white, linewidth=1, title="0.236") p2 = plot(upper_2, color=white, linewidth=1, title="0.382") p3 = plot(upper_3, color=white, linewidth=1, title="0.5") p4 = plot(upper_4, color=white, linewidth=1, title="0.618") p5 = plot(upper_5, color=white, linewidth=1, title="0.764") p6 = plot(upper_6, color=red, linewidth=2, title="1") p13 = plot(lower_1, color=white, linewidth=1, title="0.236") p14 = plot(lower_2, color=white, linewidth=1, title="0.382") p15 = plot(lower_3, color=white, linewidth=1, title="0.5") p16 = plot(lower_4, color=white, linewidth=1, title="0.618") p17 = plot(lower_5, color=white, linewidth=1, title="0.764") p18 = plot(lower_6, color=green, linewidth=2, title="1") 트레이딩뷰 수식인데 예스로 좀 바꿔주세요.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2025-03-17 14:59:47

안녕하세요 예스스탁입니다. input : length(100),mult(3.0); var : src(0),basis(0),dev(0); var : upper_1(0),lower_1(0); var : upper_2(0),lower_2(0); var : upper_3(0),lower_3(0); var : upper_4(0),lower_4(0); var : upper_5(0),lower_5(0); var : upper_6(0),lower_6(0); src = (h+l+c)/3; basis = ma(src * volume, length) / ma(volume, length); dev = mult * std(src, length); upper_1= basis + (0.236*dev); upper_2= basis + (0.382*dev); upper_3= basis + (0.5*dev); upper_4= basis + (0.618*dev); upper_5= basis + (0.764*dev); upper_6= basis + (1*dev); lower_1= basis - (0.236*dev); lower_2= basis - (0.382*dev); lower_3= basis - (0.5*dev); lower_4= basis - (0.618*dev); lower_5= basis - (0.764*dev); lower_6= basis - (1*dev); plot1(basis,"basis", Magenta); plot2(upper_1,"0.236",White); plot3(upper_2,"0.382",White); plot4(upper_3,"0.5",White); plot5(upper_4,"0.618",White); plot6(upper_5,"0.764",White); plot7(upper_6,"1",Red); plot8(lower_1,"0.236",White); plot9(lower_2,"0.382",White); plot10(lower_3,"0.5",White); plot11(lower_4,"0.618",White); plot12(lower_5,"0.764",White); plot13(lower_6,"1",Green); 즐거운 하루되세요 > 신대륙발견 님이 쓴 글입니다. > 제목 : 문의 드립니다. > length = input(100, minval=1) src = input(hlc3, title="Source") mult = input(3.0, minval=0.001, maxval=50) basis = vwma(src, length) dev = mult * stdev(src, length) upper_1= basis + (0.236*dev) upper_2= basis + (0.382*dev) upper_3= basis + (0.5*dev) upper_4= basis + (0.618*dev) upper_5= basis + (0.764*dev) upper_6= basis + (1*dev) lower_1= basis - (0.236*dev) lower_2= basis - (0.382*dev) lower_3= basis - (0.5*dev) lower_4= basis - (0.618*dev) lower_5= basis - (0.764*dev) lower_6= basis - (1*dev) plot(basis, color=fuchsia, linewidth=2) p1 = plot(upper_1, color=white, linewidth=1, title="0.236") p2 = plot(upper_2, color=white, linewidth=1, title="0.382") p3 = plot(upper_3, color=white, linewidth=1, title="0.5") p4 = plot(upper_4, color=white, linewidth=1, title="0.618") p5 = plot(upper_5, color=white, linewidth=1, title="0.764") p6 = plot(upper_6, color=red, linewidth=2, title="1") p13 = plot(lower_1, color=white, linewidth=1, title="0.236") p14 = plot(lower_2, color=white, linewidth=1, title="0.382") p15 = plot(lower_3, color=white, linewidth=1, title="0.5") p16 = plot(lower_4, color=white, linewidth=1, title="0.618") p17 = plot(lower_5, color=white, linewidth=1, title="0.764") p18 = plot(lower_6, color=green, linewidth=2, title="1") 트레이딩뷰 수식인데 예스로 좀 바꿔주세요.