커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

문의 드립니다

TL선은 원하는 조건이 되면 그혔다가 다시 지울수 있으나 수평선에서 점선으로 그리는 방법이 없나요 굵기를 0 으로 해서는 스타일설정이 가능한데굵게 해서도 가능한 방법이 없을까요아니면 다른 어떤 방법이 있는지 가르쳐 주세요
프로필 이미지
야할라
2026-07-03
520
글번호 232665
지표
답변완료

진입 오류 수정

아래 수식은당일 084500부터 발생한 봉을 기준삼아 당일 추세를 보고오전 9시이후 부터 진입코자 만든 수식입니다.그런데 당일 첫봉에 진입하는 경우가 종종 생깁니다.매일 084500분에 생긴 봉부터 계산하는 수식의 오류인지 아니면우선순위(T1,T2,T3) 설정의 오류인지수식 수정 부탁드립니다.항상 고맙습니다.*************************************************************************************************input : ntime(084500);input: lock1(100000),연속봉(3),연속small(0.0),연속large(0.16);input: lock2(120000),연속봉2(2),연속small2(0.1),연속large2(1);input: lock3(140000),x연속봉(2),x연속small(0.08),x연속large(0.16);input: ls(1.7),tr1(2.2),tr2(2.1);var : Tcond(False,Data1),ii(0,Data1);var : T(0),T1(0),entry(0);if Bdate != Bdate[1] Then T1 = TotalTrades;if MarketPosition == 0 Then entry = TotalTrades-T1;Else entry = (TotalTrades-T1)+1;if data1(Bdate != Bdate[1]) Then Tcond = False;if Data1((sdate != sdate[1] and stime >= ntime) or (sdate == sdate[1] and stime >= ntime and stime[1] < ntime)) Then{ Tcond = true; ii = 0;}if tcond == true Then{ ii = ii +1; if ii >= 연속봉 and sTime<lock1 and data1(accumN(iff(C<O,1,0),연속봉) == 연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉) >= 연속small and AccumN(abs(C-O), 연속봉) < 연속large) then T = 1; if T == 1 and ii >= 연속봉2 and sTime<lock2 and data1(accumN(iff(C>O,1,0),연속봉2) == 연속봉2 and ExitDate(1) != sdate and AccumN(abs(C-O), 연속봉2) >= 연속small2 and AccumN(abs(C-O), 연속봉2) < 연속large2) then T = 2; if T == 2 and ii >= x연속봉 and sTime<lock3 and data1(accumN(iff(C<O,1,0),x연속봉) == x연속봉 and ExitDate(1) != sdate and AccumN(abs(C-O), x연속봉) >= x연속small and AccumN(abs(C-O), x연속봉) < x연속large) then {T = 3;Sell("s"); } }SetStopLoss(ls,PointStop);SetStopTrailing(tr2,tr1,PointStop);
프로필 이미지
목마와숙녀
2026-07-02
647
글번호 232664
시스템
답변완료

MYM 시믈레이션 차트를 사용 하고자 합니다

NH 선물 을 사용 하고 있습니다.예스트레이더(예스 글러블) 시믈레이션 차트를 10분봉으로 조회 하니,2024 년 0801 이후만 조회가 됩니다.5년간 조회가 된다는 답변인데, 어디서 조회하면5년치 조회가 가능 한가요?
프로필 이미지
너무조아
2026-07-02
319
글번호 232663
지표
답변완료

문의 드립니다

연중 고가 대비 현재가가 몇% 내렸는지연중 저가 대비 현재가가 몇% 올랐는지... 표시하고 싶습니다감사합니다
프로필 이미지
러블리
2026-07-02
206
글번호 232661
지표
답변완료

문의 드립니다

현재가가 20 단순이평 보다 몇% 위인지 아래인지를 차트에 표시하고 싶습니다감사합니다
프로필 이미지
러블리
2026-07-02
230
글번호 232652
지표
답변완료

수식 하나 부탁드리겠습니다.

안녕하세요항상 감사드립니다.수식하나 부탁드리겠습니다.1. Macd( 12.26.9) 가 신호선과 crossup 인상태에서 이동평균선 20 이 상승추세면은 매수 or 이동평균선 20 이 상승추세일때에 Macd(12.26.9)가 crossup 되면은 매수2.Macd( 12.26.9) 가 신호선과 crossdown 인상태에서 이동평균선 20 이 하락추세면은 매도 or 이동평균선 20 이 하락추세일때에 Macd(12.26.9)가 crossdown 일때에 매도항상 감사드립니다.
프로필 이미지
뭐이런걸다
2026-07-02
358
글번호 232651
시스템
답변완료

지표변환 및 종목검색식

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © veryfid//@version=4study("Volatility Oscillator", resolution = "")length = input(100)spike = close - openx = stdev(spike,length)y = stdev(spike,length) * -1plot(spike, color = color.white, linewidth = 2, title = "Spike Line")p1 = plot(x, "Upper Line")p2 = plot(y, "Lower Line")plot(0, color= color.gray, title= "Zero Line")plot(spike, color= color.blue, style=plot.style_area, transp=80, title = "Spike Fill")osc2 = spikelbR = 5lbL = 5rangeUpper =60rangeLower = 5plotBull = input(title="Plot Bullish", defval=true)plotHiddenBull = input(title="Plot Hidden Bullish", defval=false)plotBear = input(title="Plot Bearish", defval=true)plotHiddenBear = input(title="Plot Hidden Bearish", defval=false)delay_plot_til_closed = input(title="Delay diversion plot until candle is closed (don't repaint)", defval=false)bearColor = color.redbullColor = color.greenhiddenBullColor = color.new(color.green, 80)hiddenBearColor = color.new(color.red, 80)textColor = color.whitenoneColor = color.new(color.white, 100)repaint = (not(delay_plot_til_closed) or barstate.ishistory or barstate.isconfirmed)plFound = na(pivotlow(osc2, lbL, lbR)) ? false : truephFound = na(pivothigh(osc2, lbL, lbR)) ? false : true_inRange(cond) => bars = barssince(cond == true) rangeLower <= bars and bars <= rangeUpper//------------------------------------------------------------------------------// Regular Bullish// Osc: Higher LowoscHL = osc2[lbR] > valuewhen(plFound, osc2[lbR], 1) and _inRange(plFound[1])// Price: Lower LowpriceLL = low[lbR] < valuewhen(plFound, low[lbR], 1)bullCond = plotBull and priceLL and oscHL and plFound and repaintplotshape( bullCond ? osc2[lbR] : na, offset=-lbR, title="Regular Bullish Label", text="R", style=shape.labelup, location=location.absolute, color=bullColor, textcolor=textColor, transp=0 )//------------------------------------------------------------------------------// Hidden Bullish// Osc: Lower LowoscLL = osc2[lbR] < valuewhen(plFound, osc2[lbR], 1) and _inRange(plFound[1])// Price: Higher LowpriceHL = low[lbR] > valuewhen(plFound, low[lbR], 1)hiddenBullCond = plotHiddenBull and priceHL and oscLL and plFound and repaintplotshape( hiddenBullCond ? osc2[lbR] : na, offset=-lbR, title="Hidden Bullish Label", text="H", style=shape.labelup, location=location.absolute, color=bullColor, textcolor=textColor, transp=0 )//------------------------------------------------------------------------------// Regular Bearish// Osc: Lower HighoscLH = osc2[lbR] < valuewhen(phFound, osc2[lbR], 1) and _inRange(phFound[1])// Price: Higher HighpriceHH = high[lbR] > valuewhen(phFound, high[lbR], 1)bearCond = plotBear and priceHH and oscLH and phFound and repaintplotshape( bearCond ? osc2[lbR] : na, offset=-lbR, title="Regular Bearish Label", text="R", style=shape.labeldown, location=location.absolute, color=bearColor, textcolor=textColor, transp=0 )//------------------------------------------------------------------------------// Hidden Bearish// Osc: Higher HighoscHH = osc2[lbR] > valuewhen(phFound, osc2[lbR], 1) and _inRange(phFound[1])// Price: Lower HighpriceLH = high[lbR] < valuewhen(phFound, high[lbR], 1)hiddenBearCond = plotHiddenBear and priceLH and oscHH and phFound and repaintplotshape( hiddenBearCond ? osc2[lbR] : na, offset=-lbR, title="Hidden Bearish Label", text="H", style=shape.labeldown, location=location.absolute, color=bearColor, textcolor=textColor, transp=0 )//barcolor(color = spike > 0 ? color.green : color.red )트레이딩 뷰 지표의 Volatility Oscillator지표입니다1. 지표변환2. 종목검색 : spike Line이 Upper Line 돌파
프로필 이미지
기도니
2026-07-02
1658
글번호 232643
지표
답변완료

1차 거래 (익절시 2차 거래 허용)

아래수식은데이트레이딩용이며하루 맥스 2회까지 거래하는 수식입니다.요청사항거래는 기본으로 1차만 하되,1차 진입이 익절 _ SetStopProfittarget(gl1,PointStop) 로 청산되었을 경우에만2차 거래를 허용하고 싶습니다.즉, 기본 1차 거래(익절시 2차 거래 허용)아래 수식에 반영하여 주십시요.항상 고맙습니다.*********************************************************************************************input : 진입시간(090000),진입제한시간(100000);input : 거래횟수(2);input : 수량1(1),b1(20),진입눌림1(0),진입돌파1(0);input : 수량2(1),b2(40),진입눌림2(0),진입돌파2(0);input : ls1(1000),tr1(2000),gl1(4000);input : ls2(1500),tr2(3000),gl2(6000);input : eod(151500);var : T1(0),entry(0),LL(0),EH(0),E1(0),H1(0),i1(0),S1(0),L1(0),V1(0);var : Tcond(false);if (sdate != sdate[1] and stime >= 진입시간) or (sdate == sdate[1] and stime >= 진입시간 and stime[1] < 진입시간) Then Tcond = true; if (sdate != sdate[1] and stime >= 진입제한시간) or (sdate == sdate[1] and stime >= 진입제한시간 and stime[1] < 진입제한시간) Then Tcond = false; if (sdate != sdate[1] and stime >= 진입시간) or (sdate == sdate[1] and stime >= 진입시간 and stime[1] < 진입시간) Then{ T1 = TotalTrades; E1 = 0; LL = L;}if stime >= 진입시간 then{ if L < LL Then LL = L; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = (TotalTrades-T1)+1; if MarketPosition == 0 and entry == 0 Then{ if E1 == 0 and C >= LL+B1 Then{ E1 = 1; H1 = H; i1 = index; V1 = LL; //시작점 종가 } if E1 == 1 and index > i1 then{ if H > H1 Then H1 = H; #저가가 시작봉종가보다 클때만 눌림체크 if L >= V1 and L <= H1-진입눌림1 Then{ E1 = 2; i1 = index; S1 = H1; } } //시작점 종가보다 낮은 가격이 발생하면 초기화 if E1 >= 1 and L < V1 Then{ E1 = 0; LL = L; } if E1 == 2 and index > i1 and C >= S1+진입돌파1 and Tcond == true Then{ Buy("b1",OnClose,Def,수량1); } } if TotalTrades > TotalTrades[1] Then{ E1 = 0; LL = L; } if L < LL Then LL = L; if MarketPosition == 0 and entry >= 1 and entry < 거래횟수 Then{ if E1 == 0 and C >= LL+B2 Then{ E1 = 1; H1 = H; i1 = index; V1 = LL; //시작점 종가 } if E1 == 1 and index > i1 then{ if H > H1 Then H1 = H; #저가가 시작봉종가보다 클때만 눌림체크 if L >= V1 and L <= H1-진입눌림2 Then{ E1 = 2; i1 = index; S1 = H1; } } //시작점 종가보다 낮은 가격이 발생하면 초기화 if E1 >= 1 and L < V1 Then{ E1 = 0; LL = L; } if E1 == 2 and index > i1 and C >= S1+진입돌파2 and Tcond == true Then{ Buy("b2",OnClose,Def,수량2); } }if MarketPosition== 1 Then{ if IsEntryName("b1") == true Then { SetStopLoss(ls1,PointStop); SetStopTrailing(tr1,0,PointStop,1); SetStopProfittarget(gl1,PointStop); } Else if IsEntryName("b2") == true Then { SetStopLoss(ls2,PointStop); SetStopTrailing(tr2,0,PointStop,1); SetStopProfittarget(gl2,PointStop); } Else { SetStopLoss(0); SetStopTrailing(0,0); SetStopProfittarget(0); }}SetStopEndofday(eod);}
프로필 이미지
목마와숙녀
2026-07-01
721
글번호 232642
시스템
답변완료

시믈레이션 차트 조회가 최대한 얼마의 기간을 할 수 있나요?

시믈레이션 차트 조회를 활용 하다 보니 조회 가능한 기간이 짧아 활용에 불편 함이 있습니다.시믈레이션 차트기간을 늘려 볼수 있는 방법은 없는지요?
프로필 이미지
너무조아
2026-07-01
542
글번호 232640
지표