커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
5422
글번호 230811
답변완료
조건검색식 (수정) 부탁드립니다
12월23일 답변주신 내용에서 ndate(20251117) 을 한번에 입력하지 않고 따로 입력할 수 있게 년, 월, 일 로 입력창을 수정해서 만들어 주시면 감사하겠습니다input : 기간(20),ndate(20251117); var : 상(0),하(0); if highest(V,기간) == V Then { 상 = H; 하 = L; var1 = (상+하)/2; } var2 = ema(C,60); if sDate == ndate and m >= 10000000000 and CountIf(CrossUp(C,var2) or CrossUp(L,var2),10) >= 1 and CrossUp(C,var1) and C-(C-O)*(2/3) >= var1 and CountIf(CrossUp(C,var1),5)[1] == 0 Then Condition1 = true; if Condition1 == true Then Find(1);
2025-12-24
427
글번호 229343
답변완료
종목검색식 요청드립니다.
* 아래키움신호가 발생한 종목을 검색하는 검색식을 만들고 싶습니다. 도움 부탁드립니다.*키움수식PI=3.14159;M=avg(C,period);ST=Stdev(C,period);e=2.178;분모1=sqrt(2*PI*ST*ST);분모2=2*ST*ST;분자2=-(C-M)*(C-M);Y=1/분모1*pow(e,분자2/분모2)*100;D=dema(Y,signal);DD=Valuewhen(1,D<D(1)&&D(1)>D(2),C(1));EE=Valuewhen(2,RSI(Period1)<30,H);Crossdown(DD,EE)
2025-12-24
343
글번호 229340
답변완료
종목검색식으로 변환 부탁드립니다.
A:주가등락률:[일]1봉전(중) 종가대비 0봉전 종가등락률 5%이상B:주가돌파:[일]1봉(전) 고가를 현재가가 상향돌파C:신고가:[일]0봉전 고가가 60봉중 신고가D:[일]0봉전 Volume Oscillator(5,20) 0선 이상E:[일]0봉전 Volume Oscillator(5,60) 0선 이상F:[일]0봉전 Volume Oscillator(5,120) 0선 이상G:[일]0봉전 Volume Oscillator(5,300) 0선 이상모두 충족할때 검색되는 검색식으로 변환해 주시면 감사하게씁니다.
2025-12-24
321
글번호 229335
답변완료
부탁드립니다
1
2025-12-24
189
글번호 229333
답변완료
갭 보정에 대해서
안녕하세요아래글 설명 잘 보았읍니다.https://www.yesstock.com/community/qna-type1-dtl?postNo=189291&searchType=title&searchValue=%EA%B0%AD%EB%B3%B4%EC%A0%95질문 입니다.########################차트 설정에서,갭 보정(GapLess)을 적용하고지표를 그릴 때는갭 보정 되지 않은 데이타를 그릴려면 어떻게 해야 하는지 문의 드립니다.감사 합니다.
2025-12-24
3792
글번호 229330
답변완료
수식 작성 요청드립니다.
다음 조건에 맞는 수식 요청드립니다. -1차 매수조건<1차 매수진입>거래금액은 100만원이고 당일의 시가가 전일 종가대비 -3~+3% 이내이면 즉시매수<1차 매수진입에 대한 수익청산>1. 매수 후 매입가대비 +5%이상이면 청산2. 매수 후 매입가대비 +4%이상 상승 후 다시 매입가대비 +0.5%까지 하락해도 청산즉, 청산은 1또는 2의 경우가 발생하면 청산합니다. <1차 매수진입에 대한 손절>매수 후 매입가대비 -4%를 넘으면 손절-2차 매수조건<2차 매수진입>거래금액은 100만원이고, 1차 매수가 손절이후 현재가가 시가를 돌파할 때 매수합니다. 1차 매수가 수익청산됐을경우에는 진입하지 않습니다. <2차 매수진입에 대한 수익청산>1. 매수 후 매입가대비 +5%이상이면 청산2. 매수 후 매입가대비 +4%이상 상승 후 다시 매입가대비 +0.5%까지 하락해도 청산즉, 청산은 1또는 2의 경우가 발생하면 청산합니다. <2차 매수진입에 대한 손절>매수 후 매입가대비 -4%를 넘으면 손절-당일매매종료1차든 2차든 수익도 손절도 되지 않은 상태면 당일 15시15분에 전량 매도-끝제가 수식에 대한 이해가 짧아서 1차 매수조건과 2차 매수조건을 순서대로 작성해주시면 좋겠습니다. 감사합니다.
2025-12-24
377
글번호 229328
답변완료
문의
// =========================================================// 3. 차트 강조 출력 (중복 시 검정색 우선)// =========================================================// 두 개 이상의 조건이 동시에 만족되면 무조건 검정색으로 표시If ComboCount >= 2 Then PlotPaintBar(H, L, "중복신호", Black);// 단일 조건일 경우 기존 색상 유지Else If Cond12 Then PlotPaintBar(H, L, "vR스피12", Yellow);Else If Cond1 Then PlotPaintBar(H, L, "VR스피1", Magenta);Else If Cond2 Then PlotPaintBar(H, L, "VR스피2", RGB(255,165,0)); // 주황Else If Cnd_R12 Then PlotPaintBar(H, L, "R스피보12", Cyan);Else If Cnd_R34 Then PlotPaintBar(H, L, "R스피보34", RGB(0,255,0)); // 연두여기에서 PlotPaintBar이 이미 다른이름 "중복신호"로 선언되었다고 나오는데요 수정부탁드립니다."vR스피12 이하 같음 이유가 뭔지도 궁금합니다.
2025-12-24
2077
글번호 229322
답변완료
수식 부탁드립니다.
R=RSI(7);wma1 = wavg(C, len);// TEMA 계산ema1_1 = eavg(wma1, len);ema1_2 = eavg(ema1_1, len); ema1_3 = eavg(ema1_2, len);TEWMA1 = 3 * ema1_1 - 3 * ema1_2 + ema1_3;len2 = len * multi;wma2 = wavg(C, len2);ema2_1 = eavg(wma2, len2);ema2_2 = eavg(ema2_1, len2);ema2_3 = eavg(ema2_2, len2);TEWMA2 = 3 * ema2_1 - 3 * ema2_2 + ema2_3;TEWMA = (TEWMA1 + TEWMA2) / 2;최종신호=TEWMA > TEWMA(1) && IsRsiCrossUp70 = CrossUp(R, 70)&&Vcond = V > (Avg(V, 기간) * 비율);AmtCond = 거래대금 > (Avg(거래대금, 기간) * 비율)&&최종신호 && !최종신호(1)변수len 120 multi 3 기간 480 비율 6항상 감사드립니다. 2026년에도 항상 건승하십시요..
2025-12-23
637
글번호 229319
답변완료
지표 부탁 드립니다
//@version=6indicator("Williams Fractals — Goldilocks Edition [NPR21]", shorttitle="Fractals Goldilocks [NPR21]", overlay=true, precision=0, format=format.price)// ===================== Inputs =====================n = input.int(title="Periods (n)", defval=2, minval=2)showLabels = input.bool(title="Show BUY/SELL Labels", defval=true)showShapes = input.bool(title="Show Shapes", defval=true)// Offset: 25 is the middle ground between 'too short' and 'too wide'buyOffsetTicks = input.int(title="BUY offset (ticks)", defval=25, minval=0)sellOffsetTicks = input.int(title="SELL offset (ticks)", defval=25, minval=0)// High-contrast colorsbuyLabelBgColor = input.color(title="BUY label background", defval=color.rgb(0, 50, 45)) sellLabelBgColor = input.color(title="SELL label background", defval=color.rgb(80, 0, 0)) buyTextColor = input.color(title="BUY text color", defval=color.white) sellTextColor = input.color(title="SELL text color", defval=color.yellow) labelSizeOpt = input.string(title="Label size", defval="normal", options=["tiny","small","normal","large","huge"])lblSize = labelSizeOpt == "tiny" ? size.tiny : labelSizeOpt == "small" ? size.small : labelSizeOpt == "normal" ? size.normal : labelSizeOpt == "large" ? size.large : size.huge// ===================== Fractals Logic =====================upPivot = ta.pivothigh(high, n, n)downPivot = ta.pivotlow(low, n, n)upFractal = not na(upPivot)downFractal = not na(downPivot)// ===================== Labels =====================// Removed extra character spacing for better readabilityif showLabels and downFractal label.new(bar_index - n, low[n] - buyOffsetTicks * syminfo.mintick, "BUY", xloc=xloc.bar_index, yloc=yloc.price, style=label.style_label_up, color=buyLabelBgColor, textcolor=buyTextColor, size=lblSize)if showLabels and upFractal label.new(bar_index - n, high[n] + sellOffsetTicks * syminfo.mintick, "SELL", xloc=xloc.bar_index, yloc=yloc.price, style=label.style_label_down, color=sellLabelBgColor, textcolor=sellTextColor, size=lblSize)// ===================== The "Long V" Extensions =====================plotshape(showLabels and upFractal, title="Long V Sell", style=shape.arrowdown, location=location.abovebar, offset=-n, color=sellLabelBgColor, size=size.normal)plotshape(showLabels and downFractal, title="Long V Buy", style=shape.arrowup, location=location.belowbar, offset=-n, color=buyLabelBgColor, size=size.normal)
2025-12-23
870
글번호 229318