커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

도움을 요청합니다.

안녕하세요 아래 수식에서 Plot1이 변수(캔들수)만큼 후행해서 그려지게 하고자합니다. 가능한지요? 늘 도와주심에 감사드리며 오늘도 좋은시간 되세요 ================================================= input : R1(200),G1(0),B1(0); input : R2(0),G2(0),B2(200); var : V1(0,Data1),i1(0,Data1),h1(0,Data1),l1(0,Data1); if data1(Bdate != Bdate[1]) Then { v1 = data1(Upvol-DownVol); i1 = v1+Data2(c); h1 = v1+Data2(c); l1 = v1+Data2(c); } Else { v1 = v1 + (Data1(Upvol-DownVol)); if v1+Data2(c) > h1 Then h1 = v1+Data2(c); if v1+Data2(c) < l1 Then l1 = v1+Data2(c); } // if CurrentDate == sDate Then { Plot1(v1+Data2(c),"당일실매수거래량",iff(v1 > 0,RGB(0,0,0),RGB(0,0,0)));
프로필 이미지
포보스
2025-09-16
245
글번호 194050
지표

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

프로필 이미지
님이랑
2025-09-16
0
글번호 194049
종목검색
답변완료

검색식 부탁 드립니다

A1=RSI(25); B2=RSI(25); LL=LOWEST(L,기간); HH=HIGHEST(H,기간); NH=VALUEWHEN(1,H>HH(1),H); BOX1=HIGHEST(H,기간-2)<HIGHEST(H,기간-1); TOP=VALUEWHEN(1,BarsSince(H>HH(1))==(기간-2) AND ,BOX1,NH); BTM=VALUEWHEN(1,BarsSince(H>HH(1))==(기간-2) AND ,BOX1,LL); TOP; S=Valuewhen(1,C,TOP) 지표조건 기간 3 1 .최근 S 지표값이 15% 하락하고 N 일간 지속되는 종목 검색식 부탁 드립니다 2.60일 최대 매물대 돌파 검색식 부탁 드립니다
프로필 이미지
님이랑
2025-09-16
343
글번호 194048
종목검색
답변완료

수식변환 요청

파인 변환요청 드립니다. // This Pine cript™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // &#169; AlgoAlpha //@version=5 indicator("Trend Strength Signals [AlgoAlpha]", "AlgoAlpha - &#119931;&#119955;&#119942;&#119951;&#119941; &#119930;&#119957;&#119955;&#119942;&#119951;&#119944;&#119957;&#119945;", true) c = input.bool(true, "Enable Cloud") lenn = input.int(20, "Period") mult = input.float(2.5, "Standard Deviation Multiplier for TP") tc = input.int(25, "Gauge Size", minval = 3) upColor = input.color(#00ffbb, "Up Color") downColor = input.color(#ff1100, "Down Color") // Guage Function t = table.new(position.middle_right, 3, tc+1), printTable(txt, col, row, color, txt1, col1, row1, color1) => table.cell(t, col, row, txt, bgcolor = color), table.cell(t, col1, row1, txt1, bgcolor = color1, text_color = color.white) len = lenn src = close basis = ta.sma(src, lenn) upper = basis + ta.stdev(src, len, true) lower = basis - ta.stdev(src, len, true) upper1 = basis + ta.stdev(src, len, true) * mult lower1 = basis - ta.stdev(src, len, true) * mult var trend = 0 if src > basis and src > upper trend := 1 if src < basis and src < lower trend := -1 pu=plot(upper, "upper Line", color.new(chart.fg_color, 80), display = c ? display.all : display.none) pl=plot(lower, "lower Line", color.new(chart.fg_color, 80), display = c ? display.all : display.none) barcolor(src > upper ? upColor : src < lower ? downColor : chart.fg_color) grad = math.abs(basis-src)/(ta.highest(basis-src, 200))*100 grad1 = math.min(grad,40) grad1 := 100-grad1 xMax = 100 xMin = 0 range_ = xMax - xMin y = 1 - grad / range_ y := y > 100 ? 100 : y < 0 ? 0 : y fill(pu, pl, color.new(chart.fg_color, ta.sma(grad1, 7)), "Trend Fill", display = c ? display.all : display.none) plotshape(ta.crossover(trend, 0), "Bullish Trend", shape.labelup, location.belowbar, upColor, text = "▲", textcolor = chart.fg_color) plotshape(ta.crossunder(trend, 0), "Bearish Trend", shape.labeldown, location.abovebar, downColor, text = "▼", textcolor = chart.fg_color) plotchar(ta.crossover(src, lower1), "Short TP", "X", location.belowbar, upColor, size = size.tiny) plotchar(ta.crossunder(src, upper1), "Long TP", "X", location.abovebar, downColor, size = size.tiny) // Draw Gauge for i = 1 to tc color_ = chart.fg_color color = color.from_gradient(i, 1, tc, src > basis ? upColor : downColor, color_) printTable("", 1, i, color, ">", 1, math.round(y*tc), #ffffff00) ///////Alerts alertcondition(ta.cross(trend, 0), "Universal Trend Shift (when trend changes direction)") alertcondition(ta.crossover(trend, 0), "Bullish Trend") alertcondition(ta.crossunder(trend, 0), "Bearish Trend") alertcondition(ta.crossover(src, lower1) or ta.crossunder(src, upper1), "Universal TP (when any TP signal triggers)") alertcondition(ta.crossover(src, lower1), "Short TP") alertcondition(ta.crossunder(src, upper1), "Long TP")
프로필 이미지
고저중
2025-09-16
1407
글번호 194045
지표
답변완료

예스랭귀지로 변환 부탁드려요

A=ma(c,기간1,지수); B=ma(c,기간2,지수); D=valuewhen(1,B<B(1) and B(1)>B(2),B(1)); CrossUp(A,D) 기간1 1 기간2 4 -------------------------- 변환 부탁드립니다. 항상 도움주셔서 감사합니다. 즐거운 하루 보내세요~
프로필 이미지
스톰82
2025-09-16
267
글번호 194044
종목검색
답변완료

수식작성

제가 지인 추천으로 가입해서 첨해보는거라 잘 몰라요 근데 예스트레이더에서 지표 만드는건 하는것까지는 배웠거든요 스탑로스를 2103에서 매수가격에서 몇프로 거는거 말고 수익이 0.03%이상일 때 최고가에서 0.03% 떨어지면 청산되기 이렇게 될까요? 0.12%라면 0.09%되면 자동청산되는거요 이것도 예스 랭기쥐에서 만들어요? 기본으로 0.05% 손실날 때 자동청산되는것도 수식으로 넣어주세요 그리고 지금 2103에서 매수 할때마다 스탑로스 걸어주는데 매번 하기가 번거로워서요 시스템 트레이딩이나. EZ전략생성기 이런거 쓰면 손쉽게 제가 말씀드린 최고가에서 떨어지면 청산하는거 셋팅 가능한지요? 수식 써야하면 수식 좀 알려주세요 근데 제가 초보라 지표는 수식 넣어서 추가하는건 알겠는데 스탑로스 수식 주시면 적용하는 걸 모르겠는데 참고 영상링크같은게 있으면 부탁드릴게요
프로필 이미지
미카다
2025-09-16
546
글번호 194043
지표
답변완료

수식수정

늘 감사합니다. 수식은 유용하게 잘 쓰고 있습니다. 아래 수식에 선의 굵기를 추가해 주세요 var : count(0,data1),cnt(0); Array : CC[500](0),CTL[500](0); if data1(Bdate != Bdate[1]) Then { var51 = data1(O); count = 0; } if data1(V>=거래량) Then { count = count+1; CC[count] = data1(C); CTL[count] = TL_New_Self(data1(sDate),data1(sTime),CC[count],data1(NextBarSdate),data1(NextBarStime),CC[count]); TL_SetColor(CTL[count],Black); //색상 } if count >= 1 Then { For cnt = 1 to count { TL_SetEnd(CTL[cnt],NextBarSdate,NextBarStime,CC[cnt]); } } 감사합니다.
프로필 이미지
상암동
2025-09-16
278
글번호 194038
지표
답변완료

지표 변환 부탁드립니다.

//@version=5 indicator(title="On Balance Volume Scaled", shorttitle="OBV-Scaled", format=format.volume, timeframe="", timeframe_gaps=true) length=input.int(100,minval=10,title="Length of Scaling", group="Settings",tooltip = "The number of candles measured for the highest price, lowest price and average price in the indicator.") var cumVol = 0. cumVol += nz(volume) if barstate.islast and cumVol == 0 runtime.error("No volume is provided by the data vendor.") src = close obv = ta.cum(math.sign(ta.change(src)) * volume) highest_in_length = ta.highest(obv,length) highest_in_length_avg= ta.ema(highest_in_length,length) lowest_in_length = ta.lowest(obv,length) lowest_in_length_avg= ta.ema(lowest_in_length,length) avg_range= highest_in_length_avg - lowest_in_length_avg middle_line =avg_range/2 normalized_obv= if obv>=middle_line -1*((0.5-((math.abs(math.abs(obv)-math.abs(lowest_in_length_avg)))/(math.abs(avg_range))))*100) else 1*((-0.5-((math.abs(obv)-math.abs(math.abs(lowest_in_length_avg)))/(math.abs(avg_range))))*100) band1 = hline(50, "Upper Band", color=#787B86, linestyle=hline.style_dashed) hline(0, "Middle Band", color=color.new(#787B86, 50)) band0 = hline(-50, "Lower Band", color=#787B86, linestyle=hline.style_dashed) fill(band1, band0, color=color.rgb(33, 150, 243, 90), title="Background") plot(normalized_obv, color=#2962FF, title="OnBalanceVolume") ma(source, length, type) => switch type "SMA" => ta.sma(source, length) "Bollinger Bands" => ta.sma(source, length) "EMA" => ta.ema(source, length) "SMMA (RMA)" => ta.rma(source, length) "WMA" => ta.wma(source, length) "VWMA" => ta.vwma(source, length) typeMA = input.string(title = "Method", defval = "SMA", options=["SMA", "EMA", "SMMA (RMA)", "WMA", "VWMA"], group="Smoothing") smoothingLength = input.int(title = "Length", defval = 5, minval = 1, maxval = 100, group="Smoothing") smoothingLine = ma(normalized_obv, smoothingLength, typeMA) plot(smoothingLine, title="Smoothing Line", color=#f37f20, display=display.none)
프로필 이미지
삼손감자
2025-09-16
731
글번호 194037
지표
답변완료

문의 드립니다.

안녕하세요 항상 친절한 답변 감사합니다. 손절매에 대한 서식 작성을 부탁드립니다. *일봉기준 손절매: -매수 진입 시: 최근 3일간의 봉(전일까지 3개의 봉) 기준으로 저점(봉의 몸통만) 돌파시 매수 청산 -매도 진입 시: 최근 3일간의 봉(전일까지 3개의 봉) 기준으로 고점(봉의 몸통만) 돌파시 매도 청산 **최근 3일간의 봉은 input으로 넣어주시기 바랍니다.(최적화) 감사합니다.
프로필 이미지
가자아이
2025-09-16
245
글번호 194036
지표