커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

문의

//@version=2 // Created By BryceWH // Plots London Open Killzone and New York Open KZ as overlay boxes using current daily high / lows // Fills can be turned on and off. Created this indicator because i didnt like highlighting the whole chart background as seen in other ICT KZ indicators on tradingview and wanted something cleaner. // If you want additional killzones such as london/new york close add the indicator to the chart twice. // Adapted from Chris Moody's original indicator HLOC study(title="KZ Boxes", shorttitle="KZ Boxes", overlay=true) st = true shl = input(true, title="Show High / Low") londonkz = input(title="KillZone London Open", type=session, defval="0330-0545") newyorkkz = input(title="KillZone NY Open", type=session, defval="0830-1045") colourcheck = 1.0 boxheight = input(title="Box Height", type=float, defval=5.0) fillcheck = input(true, title="Fill Middle") ph = security(tickerid, 'D', high) pl = security(tickerid, 'D', low) dayrange = ph - pl high2 = ph + (dayrange * 0.01 * boxheight) low2 = pl - (dayrange * 0.01 * boxheight) BarInSession(sess) => time(period, sess) != 0 lineColour = colourcheck == 1 ? #E1BC29 : colourcheck == 2 ? #3BB273 : na // box colour lineColour2 = colourcheck == 2 ? #E1BC29 : colourcheck == 1 ? #3BB273 : na // box colour lineColour3 = colourcheck == 2 and fillcheck ? #E1BC29 : colourcheck == 1 and fillcheck ? #3BB273 : white // box colour lineColour4 = colourcheck == 1 and fillcheck ? #E1BC29 : colourcheck == 2 and fillcheck ? #3BB273 : white // box colour //DAILY v5=plot(shl and ph ? ph : na, title="Daily High", style=circles, linewidth=2, color=gray) // daily high low plots v6=plot(shl and pl ? pl : na, title="Daily Low", style=circles, linewidth=2, color=gray) // daily high low plots //LONDON varhigh2=plot(st and ph and BarInSession(londonkz) ? high2 : na, title="Box 1 High", style=linebr, linewidth=2, color=na) // change color=na to color to make these lines visible/editable varhigh=plot(st and ph and BarInSession(londonkz) ? ph : na, title="Box 1 Low", style=linebr, linewidth=2, color=na) // change color=na to color to make these lines visible/editable varlow=plot(st and pl and BarInSession(londonkz) ? pl : na, title="Box 2 High", style=linebr, linewidth=2, color=na) // change color=na to color to make these lines visible/editable varlow2=plot(st and pl and BarInSession(londonkz) ? low2 : na, title="Box 2 Low", style=linebr, linewidth=2, color=na) // change color=na to color to make these lines visible/editable fill(varhigh,varhigh2,color=lineColour, title="Fill Box 1", transp=25) // box 1 top fill fill(varhigh,varlow,color=lineColour4, title="Fill Middle", transp=75) // fill between first killzone boxes fill(varlow,varlow2,color=lineColour, title="Fill Box 2", transp=25) // box 2 top fill //NEW YORK v1=plot(st and ph and BarInSession(newyorkkz) ? high2 : na, title="Box 3 High", style=linebr, linewidth=2, color=na) v2=plot(st and ph and BarInSession(newyorkkz) ? ph : na, title="Box 3 Low", style=linebr, linewidth=2, color=na) v3=plot(st and pl and BarInSession(newyorkkz) ? pl : na, title="Box 4 High", style=linebr, linewidth=2, color=na) v4=plot(st and pl and BarInSession(newyorkkz) ? low2 : na, title="Box 4 Low", style=linebr, linewidth=2, color=na) fill(v1,v2,color=lineColour2, title="Fill Box 1", transp=25) fill(v2,v3,color=lineColour3, title="Fill Middle", transp=85) fill(v3,v4,color=lineColour2, title="Fill Box 2", transp=25) 예스로 부탁드립니다
프로필 이미지
레전드
2025-09-08
528
글번호 193818
지표
답변완료

파워조건검색 관련

안녕하세요. 파워조건검색에 사용자가 작성한 검색식을 사용하는 방법이 어떻게 되나요? 예스랭귀지 편집기에서 "검색" 또는 "종목검색"으로 코드를 작성하면 "파워종목검색" 창에서 선택할 수 있도록 되야 하는것 아닌가요?
프로필 이미지
멍거
2025-09-08
265
글번호 193817
검색
답변완료

지표 수식 부탁드립니다.

안녕하세요 아래 Print 지표 data를 추출하여 csv 형태로 저장되게 부탁드립니다. 시간, 시가, 고가, 저가, 종가 그리고 data2의 거래량 이렇게 6개의 data입니다. 감사합니다.
프로필 이미지
포보스
2025-09-08
223
글번호 193816
지표
답변완료

문의 드립니다.

안녕하세요 ~ 현재 가격/또는 캔들이 아래의 2개 라인을 동시에 돌파하는 종목의 검색식을 부탁 드립니다. 1. (((highest(high,longPeriod)+lowest(low,longPeriod))/2 +BBandsDown(midPeriod,D1))/2 +daylow())/2 지표조건 shortPeriod 5 midPeriod 15 longPeriod 30 D1 2 2. A=avg(c,17); ATR=avg(max(max(h-L,abs(c(1)-h)),abs(c(1)-L)),17); B=ATR*2; D=A+B; E=Bbandsup(17,2); e1=crossup(E,D); e2=crossdown(E,D); e3=crossdown(c,E); valuewhen(1,e1 or e2 or e3,o) 감사합니다.
프로필 이미지
ikksoo
2025-09-08
194
글번호 193810
검색
답변완료

문의 드립니다.

안녕하세요 항상 친절한 답변 감사드립니다. 답변 주신 내용으로 다시 문의를 드립니다. 아래의 서식의 경우 예비신호후에 다음날 봉 완성시 매수가 이루어 진다면 데이터는 예비신호의 가격으로 잡히는데, 실제는 다음날의 수기로 매수를 해야합니다. 이런 상황에서는 수익과 손실에 대한 정확한 데이터 값을 구하기가 어렵습니다. (시스템은 전일 예비신호시 매수 한것으로 잡히니 다음날 수기로 매수 혹은 청산) 그래서 예비신호가 발생하고 당일 3시15분까지 신호가 유지가 된다면 3시20분(혹은 종가)에 주문(매수, 청산)을 내는 것이 가능한지 여쭙습니다. 가능하다면 아래의 서식에서 수정을 부탁드립니다. 신호 후에 매수나 청산이 이루어져야 사용이 가능할 것 같아 다시한번 부탁드립니다. 감사합니다. Input : shortPeriod(12), longPeriod(26), Period(6); input : 손절(600); value1 = MACD(shortPeriod, longPeriod); value2 = ema(value1, Period); # 매수/매도청산 If CrossUP(value1, value2) Then { Buy(); } # 매도/매수청산 If CrossDown(value1, value2) Then { Sell(); } SetStopLoss(손절,PointStop);
프로필 이미지
가자아이
2025-09-08
288
글번호 193795
지표
답변완료

수식 문의 드립니다

안녕하세요. 며칠전 받은 아래 수식을 다른 차트에 표현가능한지 문의 드립니다. if data1(H>H[1]) and data2(H>H[1]) then var1 = O; if data1(L<L[1]) and data2(L<L[1]) then var2 = O; plot1(var1); plot2(var2); plot10(DayOpen(),"당일시가"); Plot11(DayClose(1), "전일종가"); Plot12((DayHigh+DayLow)/2, "중앙선");
프로필 이미지
부활
2025-09-08
216
글번호 193784
지표
답변완료

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

키움 수식입니다. 예스트레이딩 종목검색식으로 변환 부탁드립니다. x1_1 = amount(1) >= con1; x1_2 = (c(1) / o(1) - 1) * 100 >= 9; x1_3 = (h(1) / o(1) - 1) * 100 >= 15; x1_4 = o > c(1); x1_5 = c >= c(1) * 0.97; x2_1 = amount(2) >= con1; x2_2 = (c(2) / o(2) - 1) * 100 >= 9; x2_3 = (h(2) / o(2) - 1) * 100 >= 15; x2_4 = o(1) > c(2); x2_5 = c(1) >= c(2) * 0.97; x2_6 = o >= c(2) * 0.97; x2_7 = c >= c(2) * 0.97; x3_1 = x1_1 and x1_2 and x1_3 and x1_4 and x1_5; x3_2 = x2_1 and x2_2 and x2_3 and x2_4 and x2_5 and x2_6 and x2_7; x3_1 or x3_2 (지표변수) con1: 15,000
프로필 이미지
비밀통로
2025-09-08
268
글번호 193772
종목검색

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

프로필 이미지
2wnwn
2025-09-08
30
글번호 193771
지표
답변완료

시스템식 요청드립니다.

안녕하세요 문의사항이 있어 글을 남깁니다. 아래의 시스템식을 보시면 1차 매수 후 5일 뒤 11시에 청산 하게 되어있는데 1차 매수와 2차 매수일이 다르면 제대로 작동하나 1차 매수와 2차 매수일이 동일하면 시스템식이 작동을 안합니다. 어떻게 수정해야 할까요? -------------------------------------------------- input : Xdate1(5),Xtime1(110000); input : 시작날짜 (20250307); var : cnt(0),sum(0),mav(0),DD(0),entry(False),day(0); if sDate >= 시작날짜 Then { if Bdate != Bdate[1] Then { entry = true; day = day+1; dd = dd+1; Condition1 = False; } } if MarketPosition == 0 and TotalTrades > TotalTrades[1] Then Condition1 = true; if Condition1 == False and (entry == true) and MarketPosition == 0 and L > mav Then Buy("1차매수",AtLimit,mav,Floor(금액1/min(NextBarOpen,mav))); # 매수 후 포지션 관리 if MarketPosition == 1 Then { # 5일차 11시 청산 if DD == DD[BarsSinceEntry]+Xdate1 and sTime == xtime1 Then { Condition1 = true; ExitLong("매수한지5일차 청산"); } # --- 2차 매수 --- if MaxEntries == 1 and Condition1 == False Then { Buy("2차매수",AtLimit, LatestEntryPrice(0)*(1+추가진입/100), Floor(금액2/min(NextBarOpen,LatestEntryPrice(0)*(1+추가진입/100)))); if Condition2 == False Then ExitLong("1차매수익절",AtLimit,avgEntryPrice*(1+익절1/100)); }
프로필 이미지
맴맴잉
2025-09-08
302
글번호 193770
시스템