커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

검색식과 종목검색식 부탁 드립니다1

트레이딩뷰의 RSI DIVERGENCE 지표입니다.검색식과 종목검색식 부탁드립니다input : len_fast(5),len_slow(14);var : src_fast(0),src_slow(0);var : alpha_fast(0),up_fast(0),down_fast(0),rsi_fast(0);var : alpha_slow(0),up_Slow(0),down_slow(0),rsi_slow(0);var : divergence(0);src_fast = C;var1 = max(src_fast-src_fast[1],0);Var2 = -min(src_fast-src_fast[1],0);src_slow = C;var3 = max(src_slow-src_slow[1],0);Var4 = -min(src_slow-src_slow[1],0);alpha_fast = 1/len_fast;up_fast = 0;up_fast = IFf(IsNan(up_fast[1])== true, ma(var1,len_fast),alpha_fast*var1+(1 - alpha_fast)*up_fast[1]);down_fast = 0;down_fast = IFf(IsNan(down_fast[1])== true, ma(var2,len_fast),alpha_fast*var2+(1 - alpha_fast)*down_fast[1]);rsi_fast = iff(down_fast == 0 , 100 , IFf( up_fast == 0 , 0 , 100 - (100 / (1 + up_fast / down_fast))));alpha_slow = 1/len_slow;up_slow = 0;up_slow = IFf(IsNan(up_slow[1])== true, ma(Var3,len_slow),alpha_slow*Var3+(1 - alpha_slow)*up_slow[1]);down_slow = 0;down_slow = IFf(IsNan(down_slow[1])== true, ma(Var4,len_slow),alpha_slow*Var4+(1 - alpha_slow)*down_slow[1]);rsi_slow = iff(down_slow == 0 , 100 , iff(up_slow == 0 , 0 , 100 - (100 / (1 + up_slow / down_slow))));divergence = rsi_fast - rsi_slow;plot1(divergence, "divergence",iff(divergence > 0 , lime,red));PlotBaseLine1(0);
프로필 이미지
행복만땅
2026-02-03
234
글번호 230279
종목검색
답변완료

수고하십니다

항상 좋은 일만 있으시기 바랍니다psar지표에서양구간 음봉마다매수신호 음구간 되면 청산음구간 양봉마다매도신호 양구간 되면 청산진입수량은 구간 각각 일련번호를 붙여 n개까지만시스템을 요청 합니다
프로필 이미지
2wnwn
2026-02-03
136
글번호 230277
시스템
답변완료

시작 시간 만 사용할께요

안녕하세요 수고하십시요1, 사용방법 시간 을 변수에서 시작 시간을 변경하고 종료시간은 변수에서 사용 안하고 필요하면 예스스탁 옵션에서 장마감 종료 시간 방법쓸께요 안쓰면 시작 시간만 쓰는 구조 입니다 그러므로 기존쓰고있는 모든 식에 시작 시간변경 적용 가능케 하려면 식 을 어떻게 표현 대단히 감사합니다예) 아랫글 참고 하시고 종료를 빼 주십시요 대단히 감사합니다input : StartTime(60000 시간 변경할것입니다),EndTime(0 종료 시간 사용 안하고 예스스탁 옵션 쓰겠습니다); var : Tcond(false);IF Endtime > starttime Then SetStopEndofday(Endtime);Else{ if sDate != sDate[1] Then SetStopEndofday(Endtime);}if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False;if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); }} 대단히 감사합니다
프로필 이미지
놀이터
2026-02-03
384
글번호 230275
시스템
답변완료

문의 합니다...

*아래수식은 키움에서 작성한 신호 검색입니다.. 이것을 예스종목검색 및 검색 으로 변환 요청합니다..a=(highest(high,shortPeriod)+lowest(low,shortPeriod)+highest(high,midPeriod)+lowest(low,midPeriod))/4;b=(highest(high,longPeriod)+lowest(low,longPeriod))/2;c>a(25)andc>b(25)andCrossup(C ,eavg(C, Period))andCrossUp(h,BBandsUp(Period1,D1))andV > V(1) * Multiple========================================================================================(지표변수)shortperiod : 9midperiod : 26longperiod : 52period : 220period1 : 40d1 : 2multiple : 4입니다...
프로필 이미지
서민순
2026-02-03
324
글번호 230274
종목검색
답변완료

수식 부탁합니다.

안녕하세요.수식 변환 작업 부탁합니다.//Parameters requiredfastEmaPeriod = input(5, minval=1, title="Fast TEMA")slowEmaPeriod = input(20, minval=1, title="Slow TEMA")triple_ema(src, time_period) => ema1 = rsi(src, time_period) ema2 = rsi(ema1, time_period) ema3 = rsi(ema2, time_period) TEMA_cal = 0.0 TEMA_cal := 3 * (ema1 - ema2) + ema3 TEMA_cal//fastTEMA = triple_ema(high,fastEmaPeriod)slowTEMA = triple_ema(low,slowEmaPeriod)plot(fastTEMA, title = 'fast TEMA',color=color.blue, linewidth=2) plot(slowTEMA, title = 'slow TEMA',color=color.red, linewidth=2)//showZones = input(true, title="Show Bullish/Bearish Zones")// bullish signal rule: bullishRule = fastTEMA >= slowTEMA// bearish signal rule: bearishRule = fastTEMA <= slowTEMA// current trading StateruleState = 0ruleState := bullishRule ? 1 : bearishRule ? -1 : nz(ruleState[1])bgcolor(showZones ? ruleState == 1 ? color.lime : ruleState == -1 ? color.red : color.yellow : na, title=" Bullish/Bearish Zones", transp=90)//
프로필 이미지
newstory
2026-02-02
474
글번호 230272
지표

등정 님에 의해서 삭제되었습니다.

프로필 이미지
등정
2026-02-02
28
글번호 230269
시스템
답변완료

chandelier exit 수식을 부탁드립니다.

//@version=6// Copyright (c) 2019-present, Alex Orekhov (everget)// Chandelier Exit script may be freely distributed under the terms of the GPL-3.0 license.indicator('Chandelier Exit', shorttitle = 'CE', overlay = true)const string calcGroup = 'Calculation'length = input.int(22, title = 'ATR Period', group = calcGroup)mult = input.float(3.0, step = 0.1, title = 'ATR Multiplier', group = calcGroup)useClose = input.bool(true, title = 'Use Close Price for Extremums', group = calcGroup)const string visualGroup = 'Visuals'showLabels = input.bool(true, title = 'Show Buy/Sell Labels', group = visualGroup)highlightState = input.bool(true, title = 'Highlight State', group = visualGroup)const string alertGroup = 'Alerts'awaitBarConfirmation = input.bool(true, title = 'Await Bar Confirmation', group = alertGroup)//---atr = mult * ta.atr(length)longStop = (useClose ? ta.highest(close, length) : ta.highest(length)) - atrlongStopPrev = nz(longStop[1], longStop)longStop := close[1] > longStopPrev ? math.max(longStop, longStopPrev) : longStopshortStop = (useClose ? ta.lowest(close, length) : ta.lowest(length)) + atrshortStopPrev = nz(shortStop[1], shortStop)shortStop := close[1] < shortStopPrev ? math.min(shortStop, shortStopPrev) : shortStopvar int dir = 1dir := close > shortStopPrev ? 1 : close < longStopPrev ? -1 : dirconst color textColor = color.whiteconst color longColor = color.greenconst color shortColor = color.redconst color longFillColor = color.new(color.green, 85)const color shortFillColor = color.new(color.red, 85)buySignal = dir == 1 and dir[1] == -1longStopPlot = plot(dir == 1 ? longStop : na, title = 'Long Stop', style = plot.style_linebr, linewidth = 2, color = longColor)plotshape(buySignal ? longStop : na, title = 'Long Stop Start', location = location.absolute, style = shape.circle, size = size.tiny, color = longColor)plotshape(buySignal and showLabels ? longStop : na, title = 'Buy Label', text = 'Buy', location = location.absolute, style = shape.labelup, size = size.tiny, color = longColor, textcolor = textColor)sellSignal = dir == -1 and dir[1] == 1shortStopPlot = plot(dir == 1 ? na : shortStop, title = 'Short Stop', style = plot.style_linebr, linewidth = 2, color = shortColor)plotshape(sellSignal ? shortStop : na, title = 'Short Stop Start', location = location.absolute, style = shape.circle, size = size.tiny, color = shortColor)plotshape(sellSignal and showLabels ? shortStop : na, title = 'Sell Label', text = 'Sell', location = location.absolute, style = shape.labeldown, size = size.tiny, color = shortColor, textcolor = textColor)midPricePlot = plot(ohlc4, title = '', display = display.none, editable = false)fill(midPricePlot, longStopPlot, title = 'Long State Filling', color = (highlightState and dir == 1 ? longFillColor : na))fill(midPricePlot, shortStopPlot, title = 'Short State Filling', color = (highlightState and dir == -1 ? shortFillColor : na))await = awaitBarConfirmation ? barstate.isconfirmed : truealertcondition(dir != dir[1] and await, title = 'CE Direction Change', message = 'Chandelier Exit has changed direction, {{exchange}}:{{ticker}}')alertcondition(buySignal and await, title = 'CE Buy', message = 'Chandelier Exit Buy, {{exchange}}:{{ticker}}')alertcondition(sellSignal and await, title = 'CE Sell', message = 'Chandelier Exit Sell, {{exchange}}:{{ticker}}')
프로필 이미지
jhs0713
2026-02-02
1090
글번호 230268
지표
답변완료

수식 문의 드립니다

프로그램 수식 문의 드립니다.1) 매수: 이전 5봉중 최 고점의 5.5% 를 상향함과 동시 매수2) 매수: 이전 1봉 중 1봉의 종가를 5.5% 상향함과 동시 매수3) 매수: 바로1봉전 매도점대비 5.5% 상향함과 동시 매수4) 매수: 현재 동일봉에서 1번 매도점 대비 5.5% 상향함과 동시 매수 4-1) 매수: 현재 동일봉에서 2번 매도점 대비 5.5% 상향함과 동시 매수 4-2) 매수: 현재 동일봉에서 3번 매도점 대비 5.5% 상향함과 동시 매수 5) 매수: 봉이 양종이고 bollinger band(20,1) 상한선 위에 엤으면 동시 매수6) 매도: 이전 매수 점을 5.5% 하향 과 동시 매도 7) 매도: 이전 1봉중 1봉의 종가를 5.5% 하향과 동시매도8) 매도: 매수가 대비 5.5% 상향과 동시 매도9) 매도: 20이평선을 5,5% 하향과 동시매도10) 매도: 매수후 양봉이면 27분 후 매도11) 매도: 매수후 양봉이고 bolingerband (20,5) 상한선위에 있으면 27분 후 매도12) 매도: 매수후 양봉이고 5이평선 선위에 있으면 27분 후 매도13) 매도: 매수후 음봉이면 1봉전 종가대비 5.5% 하락시 동시매도14) 매도: 15시09분에 매수청산15) 매도: 양봉일경우 매월 29일 1200시 매수 청산16) 매도: 매수후 양봉이면 종가에 매도
프로필 이미지
기관장
2026-02-02
437
글번호 230267
시스템
답변완료

수식작성 부탁드립니다.

안녕하세요. 운영자님부탁드릴 시스팀 전략은매수진입/청산 : 직전봉이 음봉일 경우 현재봉이 양봉이면서 직전봉의 시가를 상향돌파할 때 매수진입하여 n틱 수익 시 청산 또는 Y틱 손실시 손절. 매도진입/청산 : 직전봉이 양봉일 경우 현재봉이 음봉이면서 직전봉의 시가를 하향돌파할 때 매도진입하여 n틱 수익 시 청산 또는 Y틱 손실시 손절. 감사합니다.
프로필 이미지
고박사122
2026-02-02
178
글번호 230266
시스템