커뮤니티

문의 드립니다.

프로필 이미지
신대륙발견
2024-08-30 21:07:13
728
글번호 183016
답변완료
study(title="WMA Short term Bands", shorttitle="WMASTB", overlay=true) source = close length = input(56, minval=1, title = "WMA Length") atrlen = input(100, minval=1, title = "ATR Length") mult1 = 2 mult2 = 3 ma = wma(source, length) range = tr rangema = wma(range, atrlen) up1 = ma + rangema * mult1 up2 = ma + rangema * mult2 dn1 = ma - rangema * mult1 dn2 = ma - rangema * mult2 color1 = red color2 = red u4 = plot(up1, color = color1) u8 = plot(up2, color = color2) d4 = plot(dn1, color = color1) d8 = plot(dn2, color = color2) 트레이딩뷰 수식인데 예스로 좀 바꿔주세요.
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-09-02 09:37:00

안녕하세요 예스스탁입니다. input : length(56); input : atrlen(100); input : mult1(2),mult2(3); var : mav(0),r(0),Rangema(0); var : up1(0),up2(0),dn1(0),dn2(0),color1(Red),color2(Red); mav = wma(c, length); r = TrueRange; rangema = wma(r, atrlen); up1 = mav + rangema * mult1; up2 = mav + rangema * mult2; dn1 = mav - rangema * mult1; dn2 = mav - rangema * mult2; plot1(up1,"u4",color1); plot2(up2,"u8",color2); plot3(dn1,"d4",color1); plot4(dn2,"d8",color2); 즐거운 하루되세요 > 신대륙발견 님이 쓴 글입니다. > 제목 : 문의 드립니다. > study(title="WMA Short term Bands", shorttitle="WMASTB", overlay=true) source = close length = input(56, minval=1, title = "WMA Length") atrlen = input(100, minval=1, title = "ATR Length") mult1 = 2 mult2 = 3 ma = wma(source, length) range = tr rangema = wma(range, atrlen) up1 = ma + rangema * mult1 up2 = ma + rangema * mult2 dn1 = ma - rangema * mult1 dn2 = ma - rangema * mult2 color1 = red color2 = red u4 = plot(up1, color = color1) u8 = plot(up2, color = color2) d4 = plot(dn1, color = color1) d8 = plot(dn2, color = color2) 트레이딩뷰 수식인데 예스로 좀 바꿔주세요.