커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내

안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
프로필 이미지
예스스탁
2026-02-27
3258
글번호 230811
지표
답변완료

지표 및 검색식 문의 드립니다.

바쁘신 업무에 수고가 많으십니다. 일전에 문의드린 내용이오나 수정해서 아래와 같이 재문의 드립니다. [ 아 래 ] ㅁ 기존 요청한 지표식 input : 기간(20); var : AA(0),BB(0),X1(0),X2(0),A(0); AA=(H+L+C)/3; BB=AA*V; X1=AccumN(BB,기간); X2=AccumN(V,기간); A=X1/X2; Plot1(A); ㅁ 변경 요청 지표식 - 하나의 지표식에 기간값을 (5),(10),(20),(30),(60) 한번에 나타날수 있도록 수정 부탁 드립니다 ㅁ 추가 요청 검색식 - 상기 요청한 지표선들이 정배열 되는 검색식 부닥 드립니다. 5일 > 10일 > 20일 > 30일 > 60일 - 이상 - 오늘도 수고 하세요
프로필 이미지
옥스
2024-04-21
754
글번호 178774
지표
답변완료

진입봉 문의

진입봉 기준으로 시가 는 open[barssinceentry] 인가요? open[entryprice] 는 잘못된 건가요? 변수로 지정할 경우 value1 = high[barssinceentry] 하면 변수가 맞게 나오는데 수식에서 c>h[barssinceentry] 하면 진입후 고가가 리턴되는 것 같습니다. c>h[barssinceentry] 를 진입후 고가로 지정 c>h[entryprice] 를 진입봉의 고가로 지정 어떤게 맞는 건가요?
프로필 이미지
chunsk
2024-04-21
791
글번호 178773
지표
답변완료

수식 부탁드립니다

예스수식으로 부탁드립니다. 수식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
730
글번호 178772
지표

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

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

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

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

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

프로필 이미지
redcon
2024-04-21
41
글번호 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
884
글번호 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
720
글번호 178766
지표