커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

수식작성 부탁드립니다.

안녕하세요, 운영자님제가 이번에 부탁드릴 시스템은다음 지표의 MId 선을 상향돌파시 매수, 하향돌파시 매도로 시스템을 제작해 주시면 감사하겠습니다.input : neon(true);var : upper1(0),lower1(0),stdL(False),stdS(False),tx(0);upper1 = close + 0.05 * close;lower1 = close - 0.05 * close;stdL = close > lower1;stdS = close < upper1;//BBPCTinput : length(20);input : src(close);input : mult(2.0);var : lookback(750);input : showStdev(false);Array : stdevArray[750](0);var : basis(0),dev(0),upper(0),lower(0),positionBetweenBands(0);basis = ma(src, length);dev = mult * std(src, length);upper = basis + dev;lower = basis - dev;positionBetweenBands = 100 * (src - lower)/(upper - lower);//PLOTSplot1(positionBetweenBands,"Z",IFf(positionBetweenBands > 50 , Red , Green));PlotBaseLine1(130,"obupper");PlotBaseLine2(110,"oblower");PlotBaseLine3(95,"obmid");PlotBaseLine4(-10,"osupper");PlotBaseLine5(-30,"oslower");PlotBaseLine6(5,"osmid");PlotBaseLine7(50,"mid");if CrossUp(positionBetweenBands,-8) and stdL Then{ tx = Text_New_Self(sDate,sTime,positionBetweenBands,NewLine+"▲"); Text_SetStyle(tx,2,0); Text_SetColor(tx,Cyan);}if CrossDown(positionBetweenBands,108) and stdS Then{ tx = Text_New_Self(sDate,sTime,positionBetweenBands,"▼"+NewLine); Text_SetStyle(tx,2,1); Text_SetColor(tx,Magenta);}
프로필 이미지
고박사122
2026-04-10
760
글번호 231571
시스템
답변완료

종목검색식으로 부탁드려요.

안녕하세요아래 수식이 조건이 충족 됐을 때 종목검색을 부탁드립니다.INPUT : P1(10),P2(40),MM(3);VAR : A(0),조건(False);조건=V> MA(V[1],p1) * MM && C> highest(C[1],p2)&& RSI(5)>=70;IF 조건==TRUE THEN A=H;IF CROSSUP(C,A) && C>O TheN Find(1);
프로필 이미지
성찰
2026-04-10
814
글번호 231561
종목검색
답변완료

매매신호

아래와 같이 설정했습니다. 시스템 매매 설정 피라이팅 설정: 모든진입신호허용 기본거래수량 : 동일수량(계약) 거래수량 3 강제청산 : 표시없이 조건만족시 즉시 선택 매매가격 : 진입 - 시장가, 청산 - 시장가 주문시작신호 : 모든신호 자동주문매일 시작하면 항상 3개가 아닌 6개가 진입 되고, 물론 시스템 프로그램에서 에서 갯수를 지정하지는 않았습니다.또, 신호가 정상적으로 몇번 발생하다가 어느때부터 종일 매매신호가 발생하지 않는 원인이 뭘까요? 이런일이 발생할 만한 원인에 대해서 조언을 듣고 싶군요.이전 프로그,램에서는 문제가 없었는데, 수정한 후 부터 이러는군요.부탁드립니다.
프로필 이미지
와글이
2026-04-10
656
글번호 231557
시스템
답변완료

종목검색식 부탁드립니다.

1. DMI (14) 마이너스가 "기준선 15 이하 (15 포함)" 에 있는 모든종목 검색식 부탁 드립니다.2. DMI(14) 마이너스가 "기준선 20 이상 (20포함)"에 있는 모든 종목 검색식 부탁합니다.
프로필 이미지
일지매7
2026-04-10
635
글번호 231556
종목검색
답변완료

이동평균

전에 (글번호 140052)로, 장시작시 시작하는 MACD를 문의하였습니다.이동평균선(5,20)도, MACD처럼 장시작시 시작하게 작성할 수 있나요 Input : 이동평균1(5), 이동평균2(20),미리 감사드립니다.
프로필 이미지
산과바다
2026-04-10
672
글번호 231555
지표
답변완료

수식부탁합니다.

if mav2400 > mav1200 and crossuP(mav300,mav1200) 1번 저장if mav2400 > mav1200 and crossDown(mav300,mav1200) 2번 저장1번이 > 2번 성립할 때if crossuP(mav600,mav1200) 매수진입진입식 만들어 주세요.감사합니다.
프로필 이미지
남산
2026-04-10
696
글번호 231553
시스템
답변완료

문의

indicator("zero lag up", shorttitle="zero lag up", overlay=true)length = input.int(70, "Length", tooltip = "The Look-Back window for the Zero-Lag EMA calculations", group = "Main Calculations")mult = input.float(1.2, "Band Multiplier", tooltip = "This value controls the thickness of the bands, a larger value makes the indicato less noisy", group = "Main Calculations")t1 = input.timeframe("5", "Time frame 1", group = "Extra Timeframes")t2 = input.timeframe("15", "Time frame 2", group = "Extra Timeframes")t3 = input.timeframe("60", "Time frame 3", group = "Extra Timeframes")t4 = input.timeframe("240", "Time frame 4", group = "Extra Timeframes")t5 = input.timeframe("1D", "Time frame 5", group = "Extra Timeframes")green = input.color(#00ffbb, "Bullish Color", group = "Appearance")red = input.color(#ff1100, "Bearish Color", group = "Appearance")src = closelag = math.floor((length - 1) / 2)zlema = ta.ema(src + (src - src[lag]), length)volatility = ta.highest(ta.atr(length), length*3) * multvar trend = 0if ta.crossover(close, zlema+volatility) trend := 1if ta.crossunder(close, zlema-volatility) trend := -1zlemaColor = trend == 1 ? color.new(green, 70) : color.new(red, 70)m = plot(zlema, title="Zero Lag Basis", linewidth=2, color=zlemaColor)upper = plot(trend == -1 ? zlema+volatility : na, style = plot.style_linebr, color = color.new(red, 90), title = "Upper Deviation Band")lower = plot(trend == 1 ? zlema-volatility : na, style = plot.style_linebr, color = color.new(green, 90), title = "Lower Deviation Band")fill(m, upper, (open + close) / 2, zlema+volatility, color.new(red, 90), color.new(red, 70))fill(m, lower, (open + close) / 2, zlema-volatility, color.new(green, 90), color.new(green, 70))plotshape(ta.crossunder(trend, 0) ? zlema+volatility : na, "Bearish Trend", shape.labeldown, location.absolute, red, text = "▼", textcolor = chart.fg_color, size = size.small)plotshape(ta.crossover(trend, 0) ? zlema-volatility : na, "Bullish Trend", shape.labelup, location.absolute, green, text = "▲", textcolor = chart.fg_color, size = size.small)plotchar(ta.crossover(close, zlema) and trend == 1 and trend[1] == 1 ? zlema-volatility*1.5 : na, "Bullish Entry", "▲", location.absolute, green, size = size.tiny)plotchar(ta.crossunder(close, zlema) and trend == -1 and trend[1] == -1 ? zlema+volatility*1.5 : na, "Bearish Entry", "▼", location.absolute, red, size = size.tiny)s1 = request.security(syminfo.tickerid, t1, trend)s2 = request.security(syminfo.tickerid, t2, trend)s3 = request.security(syminfo.tickerid, t3, trend)s4 = request.security(syminfo.tickerid, t4, trend)s5 = request.security(syminfo.tickerid, t5, trend)s1a = s1 == 1 ? "Bullish" : "Bearish"s2a = s2 == 1 ? "Bullish" : "Bearish"s3a = s3 == 1 ? "Bullish" : "Bearish"s4a = s4 == 1 ? "Bullish" : "Bearish"s5a = s5 == 1 ? "Bullish" : "Bearish"if barstate.islast var data_table = table.new(position=position.top_right, columns=2, rows=6, bgcolor=chart.bg_color, border_width=1, border_color=chart.fg_color, frame_color=chart.fg_color, frame_width=1) table.cell(data_table, text_halign=text.align_center, column=0, row=0, text="Time Frame", text_color=chart.fg_color) table.cell(data_table, text_halign=text.align_center, column=1, row=0, text="Signal", text_color=chart.fg_color) table.cell(data_table, text_halign=text.align_center, column=0, row=1, text=t1, text_color=chart.fg_color) table.cell(data_table, text_halign=text.align_center, column=1, row=1, text=s1a, text_color=chart.fg_color, bgcolor=s1a == "Bullish" ? color.new(green, 70) : color.new(red, 70)) table.cell(data_table, text_halign=text.align_center, column=0, row=2, text=t2, text_color=chart.fg_color) table.cell(data_table, text_halign=text.align_center, column=1, row=2, text=s2a, text_color=chart.fg_color, bgcolor=s2a == "Bullish" ? color.new(green, 70) : color.new(red, 70)) table.cell(data_table, text_halign=text.align_center, column=0, row=3, text=t3, text_color=chart.fg_color) table.cell(data_table, text_halign=text.align_center, column=1, row=3, text=s3a, text_color=chart.fg_color, bgcolor=s3a == "Bullish" ? color.new(green, 70) : color.new(red, 70)) table.cell(data_table, text_halign=text.align_center, column=0, row=4, text=t4, text_color=chart.fg_color) table.cell(data_table, text_halign=text.align_center, column=1, row=4, text=s4a, text_color=chart.fg_color, bgcolor=s4a == "Bullish" ? color.new(green, 70) : color.new(red, 70)) table.cell(data_table, text_halign=text.align_center, column=0, row=5, text=t5, text_color=chart.fg_color) table.cell(data_table, text_halign=text.align_center, column=1, row=5, text=s5a, text_color=chart.fg_color, bgcolor=s5a == "Bullish" ? color.new(green, 70) : color.new(red, 70))alertcondition(ta.crossover(close, zlema) and trend == 1 and trend[1] == 1, "Bullish Entry Signal", message="Bullish Entry Signal detected. Consider entering a long position.")alertcondition(ta.crossunder(close, zlema) and trend == -1 and trend[1] == -1, "Bearish Entry Signal", message="Bearish Entry Signal detected. Consider entering a short position.")alertcondition(ta.crossover(trend, 0), "Bullish Trend")alertcondition(ta.crossunder(trend, 0), "Bearish Trend")alertcondition(ta.cross(trend, 0), "(Bullish or Bearish) Trend")alertcondition(ta.crossover(s1, 0), "Bullish Trend Time Frame 1")alertcondition(ta.crossunder(s1, 0), "Bearish Trend Time Frame 1")alertcondition(ta.cross(s1, 0), "(Bullish or Bearish) Trend Time Frame 1")alertcondition(ta.crossover(s2, 0), "Bullish Trend Time Frame 2")alertcondition(ta.crossunder(s2, 0), "Bearish Trend Time Frame 2")alertcondition(ta.cross(s2, 0), "(Bullish or Bearish) Trend Time Frame 2")alertcondition(ta.crossover(s3, 0), "Bullish Trend Time Frame 3")alertcondition(ta.crossunder(s3, 0), "Bearish Trend Time Frame 3")alertcondition(ta.cross(s3, 0), "(Bullish or Bearish) Trend Time Frame 3")alertcondition(ta.crossover(s4, 0), "Bullish Trend Time Frame 4")alertcondition(ta.crossunder(s4, 0), "Bearish Trend Time Frame 4")alertcondition(ta.cross(s4, 0), "(Bullish or Bearish) Trend Time Frame 4")alertcondition(ta.crossover(s5, 0), "Bullish Trend Time Frame 5")alertcondition(ta.crossunder(s5, 0), "Bearish Trend Time Frame 5")alertcondition(ta.cross(s5, 0), "(Bullish or Bearish) Trend Time Frame 5")alertcondition(ta.crossover(close, zlema) and trend == 1 and trend[1] == 1, "Bullish Entry")alertcondition(ta.crossunder(close, zlema) and trend == -1 and trend[1] == -1, "Bearish Entry")len = input.int(14, "길이", minval=1)offsetFwd = input.int(2, "오프셋(+)", minval=0, maxval=200)alphaAB = input.int(80, "A–B 구름 투명도", minval=0, maxval=100)alphaAC = input.int(65, "A–C 구름 투명도", minval=0, maxval=100)f_mid(h,l,n) => (ta.highest(h,n) + ta.lowest(l,n)) * 0.5midA = f_mid(high, low, len)midB = f_mid(high, low, len*2)midC = f_mid(high, low, len*4)colA = close >= midA ? color.teal : color.redpA = plot(midA, title="Lead A", offset=offsetFwd, color=colA, linewidth=2)pB = plot(midB, title="Lead B", offset=offsetFwd, display=display.none)pC = plot(midC, title="Lead C", offset=offsetFwd, display=display.none)bullAB = color.new(#22B8A8, alphaAB)bearAB = color.new(#D94B48, alphaAB)bullAC = color.new(#22B8A8, alphaAC)bearAC = color.new(#D94B48, alphaAC)fill(pA, pB, color = midA >= midB ? bullAB : bearAB, title="AB Cloud")fill(pA, pC, color = midA >= midC ? bullAC : bearAC, title="AC Cloud")부탁드립니다
프로필 이미지
레전드
2026-04-10
853
글번호 231552
지표
답변완료

부탁드립니다

아래수식에 신호가 나오는 캔들에 라인과 수치 표시좀 부탁드립니다매수신호 는 신호캔들 저가에매도신호는 신호캔들 고가에 부탁드립니다var : 기준선(0),t(0),hd(0),ht(0),hh(0),ld(0),lt(0),ll(0);var : TL1(0),TL2(0),TX1(0),TX2(0);기준선 = (Highest(High, 26) + Lowest(Low, 26)) / 2;If 기준선 > 기준선[1] Then t = 1;If 기준선 < 기준선[1] Then t = -1;if t == 1 and t != t[1] Then{ Buy("b"); hh = h; hd = sDate; ht = sTime; TL_SetColor(TL2,Red); if ll > 0 Then { value1 = ld; value2 = lt; value3 = ll;// TL1 = TL_New(value1,Value2,Value3,sDate,sTime,Value3); }}Else{ TL_SetEnd(TL1,sDate,stime,Value3);} if t == -1 and t != t[1] then{ Sell("s"); ll = l; ld = sDate; lt = sTime; TL_SetColor(TL1,Blue); if hh > 0 Then { value4 = hd; value5 = ht; value6 = hh;// TL2 = TL_New(value4,Value5,Value6,sDate,sTime,Value6); }}Else{ TL_SetEnd(TL2,sDate,sTime,Value6);}if t == 1 Then{ if h > hh Then { hh = h; hd = sDate; ht = sTime; }}if t == -1 Then{ if l < ll Then { ll = l; ld = sDate; lt = sTime; }}
프로필 이미지
채존비록
2026-04-10
655
글번호 231551
시스템
답변완료

문의 드립니다.

일봉상 주가가 5일선 아래에서 움직이다가 상승하여 5일선 위로 돌파할때 이때 가장최근의 5일선아래의 일봉상 저가를 A 라고 할때 다시 5일선 위에서 움직이던 주가가 5일선 아래로 하향 돌파후 A 의 저가보다 내려가지 않고다시 상승하여 5일선 돌파한 종목을 검색하는 식을 만들고 싶습니다.
프로필 이미지
kcg9005
2026-04-09
567
글번호 231550
종목검색