커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

수식 부탁드립니다

예스수식으로 부탁드립니다. 수식1 S=sar(af,maxAf); m1=ma(S,period); m2=m1+D1*stdev(m1,기간); m3=m1-D1*stdev(m1,기간); M=dema(S,period); EU=M; EC=(M+M1)/2; ED=M1; EH=EC(2)<=EC(1) &&EC(1)>EC; EL=EC(2)>=EC(1) &&EC(1)<EC; EU 수식2 m1=MA(가격,기간,이평종류); m2=m1+D1*stdev(m1,기간); m3=m1-D1*stdev(m1,기간); m=Highest(m2,기간); m1=MA(가격,기간,이평종류); m2=m1+D1*stdev(m1,기간); m3=m1-D1*stdev(m1,기간); M01=Lowest(m3,기간); EU=M; EC=(M+M01)/2; ED=M01; EH=EC(2)<=EC(1) &&EC(1)>EC; EL=EC(2)>=EC(1) &&EC(1)<EC; highestsince(1,EL,EC) 수식3 m1=MA(가격,기간,이평종류); m2=m1+D1*stdev(m1,기간); m3=m1-D1*stdev(m1,기간); m=Highest(m2,기간); m1=MA(가격,기간,이평종류); m2=m1+D1*stdev(m1,기간); m3=m1-D1*stdev(m1,기간); M01=Lowest(m3,기간); EU=M; EC=(M+M01)/2; ED=M01; EH=EC(2)<=EC(1) &&EC(1)>EC; EL=EC(2)>=EC(1) &&EC(1)<EC; lowestsince(1,EH,EC) 수식4 m=H; M1=L; EU=M; EC=(M+M1)/2; ED=M1; EH=EC(2)<=EC(1) &&EC(1)>EC; EL=EC(2)>=EC(1) &&EC(1)<EC; EU 수식5 m1=MA(가격,기간,이평종류); m2=m1+D1*stdev(m1,기간); m3=m1-D1*stdev(m1,기간); m=Highest(m2,기간); m1=MA(가격,기간,이평종류); m2=m1+D1*stdev(m1,기간); m3=m1-D1*stdev(m1,기간); M01=Lowest(m3,기간); 가격/고가 d1/2 기간 20 이평종류/단순 period/ 60 af/0.09 maxaf/0.9
프로필 이미지
임진사댁원장
2024-04-21
683
글번호 178772
지표

크라켄 님에 의해서 삭제되었습니다.

프로필 이미지
크라켄
2024-04-21
34
글번호 178771
지표

2wnwn 님에 의해서 삭제되었습니다.

프로필 이미지
2wnwn
2024-04-21
19
글번호 178770
지표

redcon 님에 의해서 삭제되었습니다.

프로필 이미지
redcon
2024-04-21
38
글번호 178769
종목검색

redcon 님에 의해서 삭제되었습니다.

프로필 이미지
redcon
2024-04-21
3
글번호 178768
종목검색
답변완료

변환 부탁 드립니다.

한 개 더 변환 부탁 드립니다. 바쁘실 텐데 정말 죄송합니다. 다음은 트레이딩뷰 소스코드입니다. //@version=5 indicator(overlay = true, max_lines_count = 500, max_labels_count = 500, max_bars_back=500) //------------------------------------------------------------------------------ //Settings //-----------------------------------------------------------------------------{ h = input.float(8.,'Bandwidth', minval = 0) mult = input.float(3., minval = 0) src = input(close, 'Source') repaint = input(true, 'Repainting Smoothing', tooltip = 'Repainting is an effect where the indicators historical output is subject to change over time. Disabling repainting will cause the indicator to output the endpoints of the calculations') //Style upCss = input.color(color.teal, 'Colors', inline = 'inline1', group = 'Style') dnCss = input.color(color.red, '', inline = 'inline1', group = 'Style') //-----------------------------------------------------------------------------} //Functions //-----------------------------------------------------------------------------{ //Gaussian window gauss(x, h) => math.exp(-(math.pow(x, 2)/(h * h * 2))) //-----------------------------------------------------------------------------} //Append lines //-----------------------------------------------------------------------------{ n = bar_index var ln = array.new_line(0) if barstate.isfirst and repaint for i = 0 to 499 array.push(ln,line.new(na,na,na,na)) //-----------------------------------------------------------------------------} //End point method //-----------------------------------------------------------------------------{ var coefs = array.new_float(0) var den = 0. if barstate.isfirst and not repaint for i = 0 to 499 w = gauss(i, h) coefs.push(w) den := coefs.sum() out = 0. if not repaint for i = 0 to 499 out += src[i] * coefs.get(i) out /= den mae = ta.sma(math.abs(src - out), 499) * mult upper = out + mae lower = out - mae //-----------------------------------------------------------------------------} //Compute and display NWE //-----------------------------------------------------------------------------{ float y2 = na float y1 = na nwe = array.new<float>(0) if barstate.islast and repaint sae = 0. //Compute and set NWE point for i = 0 to math.min(499,n - 1) sum = 0. sumw = 0. //Compute weighted mean for j = 0 to math.min(499,n - 1) w = gauss(i - j, h) sum += src[j] * w sumw += w y2 := sum / sumw sae += math.abs(src[i] - y2) nwe.push(y2) sae := sae / math.min(499,n - 1) * mult for i = 0 to math.min(499,n - 1) if i%2 line.new(n-i+1, y1 + sae, n-i, nwe.get(i) + sae, color = upCss) line.new(n-i+1, y1 - sae, n-i, nwe.get(i) - sae, color = dnCss) if src[i] > nwe.get(i) + sae and src[i+1] < nwe.get(i) + sae label.new(n-i, src[i], '▼', color = color(na), style = label.style_label_down, textcolor = dnCss, textalign = text.align_center) if src[i] < nwe.get(i) - sae and src[i+1] > nwe.get(i) - sae label.new(n-i, src[i], '▲', color = color(na), style = label.style_label_up, textcolor = upCss, textalign = text.align_center) y1 := nwe.get(i) //-----------------------------------------------------------------------------} //Dashboard //-----------------------------------------------------------------------------{ var tb = table.new(position.top_right, 1, 1 , bgcolor = #1e222d , border_color = #373a46 , border_width = 1 , frame_color = #373a46 , frame_width = 1) if repaint tb.cell(0, 0, 'Repainting Mode Enabled', text_color = color.white, text_size = size.small) //-----------------------------------------------------------------------------} //Plot //-----------------------------------------------------------------------------} plot(repaint ? na : out + mae, 'Upper', upCss) plot(repaint ? na : out - mae, 'Lower', dnCss) //Crossing Arrows plotshape(ta.crossunder(close, out - mae) ? low : na, "Crossunder", shape.labelup, location.absolute, color(na), 0 , text = '▲', textcolor = upCss, size = size.tiny) plotshape(ta.crossover(close, out + mae) ? high : na, "Crossover", shape.labeldown, location.absolute, color(na), 0 , text = '▼', textcolor = dnCss, size = size.tiny) //-----------------------------------------------------------------------------}
프로필 이미지
cooparoo
2024-04-21
827
글번호 178767
지표
답변완료

수식 문의드립니다.

안녕하세요. 아래는 트레이딩뷰 소스코드입니다. 예스로 변환 부탁드립니다. 감사합니다. //@version=5 indicator( overlay = true, max_lines_count = 500, max_labels_count = 500, max_bars_back=500) //------------------------------------------------------------------------------ //Settings //-----------------------------------------------------------------------------{ h = input.float(8.,'Bandwidth', minval = 0) src = input(close,'Source') repaint = input(true, 'Repainting Smoothing', tooltip = 'Repainting is an effect where the indicators historical output is subject to change over time. Disabling repainting will cause the indicator to output the endpoint of the estimator') //Style upCss = input.color(color.teal, 'Colors', inline = 'inline1', group = 'Style') dnCss = input.color(color.red, '', inline = 'inline1', group = 'Style') //-----------------------------------------------------------------------------} //Functions //-----------------------------------------------------------------------------{ //Gaussian window gauss(x, h) => math.exp(-(math.pow(x, 2)/(h * h * 2))) //-----------------------------------------------------------------------------} //Append lines //-----------------------------------------------------------------------------{ n = bar_index var ln = array.new_line(0) if barstate.isfirst and repaint for i = 0 to 499 array.push(ln,line.new(na,na,na,na)) //-----------------------------------------------------------------------------} //End point method //-----------------------------------------------------------------------------{ var coefs = array.new_float(0) var den = 0. if barstate.isfirst and not repaint for i = 0 to 499 w = gauss(i, h) coefs.push(w) den := coefs.sum() out = 0. if not repaint for i = 0 to 499 out += src[i] * coefs.get(i) out /= den //-----------------------------------------------------------------------------} //Compute and display NWE //-----------------------------------------------------------------------------{ float y2 = na float y1 = na float y1_d = na line l = na label lb = na if barstate.islast and repaint //Compute and set NWE point for i = 0 to math.min(499,n - 1) sum = 0. sumw = 0. //Compute weighted mean for j = 0 to math.min(499,n - 1) w = gauss(i - j, h) sum += src[j] * w sumw += w y2 := sum / sumw d = y2 - y1 //Set coordinate line l := array.get(ln,i) line.set_xy1(l,n-i+1,y1) line.set_xy2(l,n-i,y2) line.set_color(l,y2 > y1 ? dnCss : upCss) line.set_width(l,2) if d * y1_d < 0 label.new(n-i+1, src[i], y1_d < 0 ? '▲' : '▼' , color = color(na) , style = y1_d < 0 ? label.style_label_up : label.style_label_down , textcolor = y1_d < 0 ? upCss : dnCss , textalign = text.align_center) y1 := y2 y1_d := d //-----------------------------------------------------------------------------} //Dashboard //-----------------------------------------------------------------------------{ var tb = table.new(position.top_right, 1, 1 , bgcolor = #1e222d , border_color = #373a46 , border_width = 1 , frame_color = #373a46 , frame_width = 1) if repaint tb.cell(0, 0, 'Repainting Mode Enabled', text_color = color.white, text_size = size.small) //-----------------------------------------------------------------------------} //Plot //-----------------------------------------------------------------------------} plot(repaint ? na : out, 'NWE Endpoint Estimator', out > out[1] ? upCss : dnCss) //-----------------------------------------------------------------------------}
프로필 이미지
cooparoo
2024-04-21
668
글번호 178766
지표

카르마다 님에 의해서 삭제되었습니다.

프로필 이미지
카르마다
2024-04-21
36
글번호 178765
지표
답변완료

문의드립니다

1 시스템식 준비 A = 최근 100봉의 거래대금 내림차순에서 90번째 거래대금(10번째로 작은 거래대금) B조건 : 양봉이면서 거래대금이 A보다 10배 보다 크다(두가지조건 동시만족) 매수식 최근 100봉 이내에 B조건이 5회이상 만족시 매수 2 지표식 C = 최근 0봉전부터 9봉전까지 양봉들의 거래대금 합 D = 최근 10봉전부터 19봉전까지 양봉들의 거래대금 합 E = 최근 100봉에서 거래대금하위순으로 50번째~100번째 사이 거래대금들의 합 F = 최근 100봉중 양봉 거래대금합 G = 최근 100봉붕 음봉 거래대금합 감사합니다
프로필 이미지
파인애플
2024-04-21
552
글번호 178764
시스템
답변완료

수식 작성 요청

안녕하세요 프로그램 제공수식에서 조금 수정할 수 있는지 문의드리고자 합니다. 시뮬레이션 차트 활용시 효율성 제고를 위해, 일목균형(ver2) 시스템에서 PrdLen1 변수값이 TurnLen 변수값에 비해 최소 2배 이상(같거나 큰)인 경우만 검증하도록 수식을 설정할 수 있나요?
프로필 이미지
minve
2024-04-21
557
글번호 178763
시스템