커뮤니티

예스랭귀지 Q&A

글쓰기

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

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

문의 드립니다

아래 수식어에 추가로 부탁드립니다. 5선,30선 골든크로스 이후 sell 진입금지 및 5선,30선 골든크로스에서 기존 sell신호 청산 5선,30선 데드크로스 이후 buy 진입금지 및 5선,30선 데드크로스에서 기존 buy신호 청산 input : StartTime(120000),EndTime(50000); input : 익절틱수(40000),손절틱수(10000),진입횟수(20); var : Tcond(False),entry(0); 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; entry = 0; IF Endtime <= starttime Then { SetStopEndofday(0); } } var1 = SwingHigh(1, H, 3, 1, 50); var2 = SwingHigh(1, L, 3, 1, 50); if crossup(c, var1) then{ buy(); exitshort(); } if crossdown(c, var2) then{ sell(); exitlong(); }
프로필 이미지
푸른
2025-04-14
281
글번호 190075
시스템
답변완료

수정 부탁드립니다.

안녕하세요? 수식작성 감사드립니다. 아래 수식에 당일 고가가 상한가 간 종목을 대상으로 하고 싶습니다. 추가해주시면 감사하겠습니다.^.^ if CrossDown(C,DayHigh(0)-(DayHigh(0)-DayOpen)*0.15) Then Buy("b1",OnClose,Def,Floor(1000000/c)); if CrossDown(C,DayHigh(0)-(DayHigh(0)-DayOpen)*0.15) Then Buy("b2",OnClose,Def,Floor(1000000/c)); if CrossDown(C,DayHigh(0)-(DayHigh(0)-DayOpen)*0.15) Then Buy("b3",OnClose,Def,Floor(1000000/c)); if MarketPosition == 1 Then { if CurrentContracts == MaxContracts Then ExitLong("bx1",AtLimit,AvgEntryPrice*1.3,"",Floor(MaxContracts*0.5),1); Else ExitLong("bx2",AtLimit,AvgEntryPrice*1.6,"",Floor(MaxContracts*0.5),1); }
프로필 이미지
하늘북
2025-04-14
301
글번호 190074
시스템
답변완료

종목 검색 부탁드립니다.

상한선=BBandsUp(200,0.5); C>O&& V(1)*3<V&& C(1)*1.27>C&& crossup(C,상한선)&& V>Highest(H(1),60) 종목검색식 부탁드립니다
프로필 이미지
골든도라도
2025-04-14
327
글번호 190073
종목검색
답변완료

문의드립니다.

수고많으십니다. 20이평선 돌파매매에 있어서 #진입 20이평선을 돌파한 봉이 30틱 이상이면 봉 완성 전에 즉시 매수, 이하면 매수하지 않다가 돌파한 봉이 20이평선 위에 안착하고 나서 20이평선을 이탈하지 않는 상태에서 20이평선을 50틱 이상 차이로 종가로 상승하면 매수. #청산 20이평선을 20틱 이상 하향돌파 되돌림이 나오면 즉시 청산, 만일 하향돌파 봉이 20틱이 안되고 이탈한 상태라면 이후 종가로 30틱이상 차이로 종가가 완성되면 청산. 매도는 그 반대입니다. 노고에 미리 감사드립니다.
프로필 이미지
카르마다
2025-04-14
280
글번호 190072
시스템

관리자에 의해 프로그램 사용법 QnA로 이동되었습니다

프로필 이미지
수정산
2025-04-13
9
글번호 190071
지표
답변완료

지표 문의 드립니다.

// ~~ Tooltips t1 = "Defines the lookback period for the oscillator and Bollinger Bands calculation. Increasing this value will consider a longer history, potentially smoothing out the oscillator and making the Bollinger Bands wider, leading to fewer signals. Decreasing this value will make the oscillator more sensitive to recent price changes, and the Bollinger Bands will become narrower, possibly increasing the number of signals." t2 = "Determines how much the oscillator's calculation is smoothed. A higher smoothing factor reduces noise and makes the oscillator's line smoother, which may help in identifying the dominant trend more clearly but can delay signal generation. A lower smoothing factor makes the oscillator more responsive to recent price movements, which can be beneficial for short-term trading strategies but may increase the risk of false signals." // ~~ Inputs length = input.int(33, "Length", minval=1, group="Dynamic Price Oscillator", tooltip=t1) smoothFactor = input.int(5, "Smoothing Factor", minval=1, group="Dynamic Price Oscillator", tooltip=t2) // ~~ Function to calculate True Range trueRange(high, low, close) => tr1 = high - low tr2 = math.abs(high - close[1]) tr3 = math.abs(low - close[1]) math.max(tr1, tr2, tr3) // ~~ Function to calculate Bollinger Bands bollingerBands(src, length, mult) => basis = ta.sma(src, length) dev = mult * ta.stdev(src, length) upper = basis + dev lower = basis - dev [upper, lower] // ~~ Adjusted Price based on True Range volAdjPrice = ta.ema(trueRange(high, low, close), length) // ~~ Price calculation priceChange = close - close[length] priceDelta = close - volAdjPrice oscillator = ta.ema(math.avg(priceDelta, priceChange), smoothFactor) // ~~ Bollinger Bands on Oscillator [bbHigh, bbLow] = bollingerBands(oscillator, length * 5, 1) [bbHighExp, bbLowExp] = bollingerBands(oscillator, length * 5, 2) mean = math.avg(bbHighExp, bbLowExp) // ~~ Middle Lines middleHighMean = (bbHigh + mean) / 2 middleMeanLow = (mean + bbLow) / 2 // ~~ Plot p1 = plot(oscillator, "Dynamic Price Oscillator", color=color.rgb(227, 161, 54)) plot(mean, "Dynamic Mean", color=color.new(#f7cb85, 0)) p2 = plot(bbHigh, "Bollinger High", color=color.new(#089981, 60)) p3 = plot(bbHighExp, "Expanded Bollinger High", color=color.new(#089981, 0)) p4 = plot(bbLow, "Bollinger Low", color=color.new(#f23645, 60)) p5 = plot(bbLowExp, "Expanded Bollinger Low", color=color.new(#f23645, 0)) plot(middleHighMean, "Middle High-Mean", color=color.new(#0099cc, 40)) plot(middleMeanLow, "Middle Mean-Low", color=color.new(#cc9900, 40)) fill(p1, p2, oscillator > bbHigh ? color.new(#089981, 80) : na, "Oscillator Above Bollinger High") fill(p1, p3, oscillator > bbHighExp ? color.new(#089981, 80) : na, "Oscillator Above Expanded Bollinger High") fill(p1, p4, oscillator < bbLow ? color.new(#f23645, 80) : na, "Oscillator Below Bollinger Low") fill(p1, p5, oscillator < bbLowExp ? color.new(#f23645, 80) : na, "Oscillator Below Expanded Bollinger Low") 트레이딩뷰 지표인데 예스로 좀 바꿔주세요.
프로필 이미지
신대륙발견
2025-04-13
389
글번호 190070
지표
답변완료

프린트 수식 부탁 드립니다

노고에 감사 드립니다 자동매수와 STOP주문 실행으로 4종목을 사고 팔았는데 Exell화일로 저장하고 싶은데 잘안되어서 부탁드립니다 아래와 같이 하고 싶고 가능 하다면 수익률이 0보다 크면 (2번 3번) 줄 한줄을 연한 분홍, 0보다 작으면 (1번 4번)연한 파랑으로 색칠 하고 싶습니다 그리고 숫자 1000단위에 컴마찍는것도 가능 할런지요. 부탁드리겠읍니다 A B C D E F G 순 거래일자 종목명 매수시각 매도시각 매매구분 수량 1 2025/03/31 엠오티 9:07:14 9:07:14 매도청산 104 2 2025/03/31 모비데이즈 9:40:06 9:40:06 매도청산 465 3 2025/03/31 케이씨피드 11:19:00 15:18:00 당일청산 336 4 2025/03/31 유라클 12:19:53 15:18:53 당일청산 74 H I J K L M 매입가격 매도가격 수익률 수익금액 일손익계 비고 9,450 9,260 -2.19% -21,484 -21,484 2,100 2,145 1.96% 19,149 -2,335 2,920 2,980 1.87% 18,369 16,034 13,370 13,100 -2.20% -21,714 -5,680 감사 드립니다
프로필 이미지
mi노99
2025-04-13
390
글번호 190069
시스템
답변완료

수식부탁드립니다.

항상 감사드립니다. 분봉 10분봉 과 30분봉에서 검색될수있게 종목검색식으로 부탁드립니다. a=valuewhen(1,dayclose()>predayclose()*p,dayhigh()); b=valuewhen(1,dayclose()>predayclose()*p,predayclose()); X=a-((a-b)*1.975); CrossUp(C,X) 조건 P는 5.20 입니다. 감사드립니다.
프로필 이미지
잔차
2025-04-13
293
글번호 190068
종목검색
답변완료

문의

indicator("HTF Trend Tracker [BigBeluga]", overlay = true, max_lines_count = 500, max_labels_count = 500) // INPUTS ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ tf = input.timeframe("D", "Timeframe") bull_col = input.color(color.rgb(12, 193, 142), "&#10003;", inline = "col") bear_col = input.color(color.red, "&#10005;", inline = "col") mid_col = input.color(color.rgb(121, 121, 121), "-", inline = "col") var line_1 = line(na) var line_2 = line(na) var color_trend = color(na) var trend = bool(na) // } // CALCULATIONS――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ draw_line(x1, x2, y, txt, color)=> l = line.new(x1, y, x2, y, color = color, style = line.style_dashed) label.delete(label.new(x1, y, txt, color = color(na), style = label.style_label_right)[1]) l var h = float(na) var l = float(na) var count = 0 if not timeframe.change(tf) count +=1 h := ta.highest(count) l := ta.lowest(count) if timeframe.change(tf) count := 0 line_1 := draw_line(bar_index, bar_index, h[1], tf + " High", bear_col) line_2 := draw_line(bar_index, bar_index, l[1], tf + " Low", bull_col) line_1.set_x2(bar_index) line_2.set_x2(bar_index) if barstate.islast line.delete(line.new(line_1.get_x1(), line_1.get_y1(), bar_index+15, line_1.get_y1(), color = bear_col, style = line.style_arrow_right)[1]) line.delete(line.new(line_2.get_x1(), line_2.get_y1(), bar_index+15, line_2.get_y1(), color = bull_col, style = line.style_arrow_right)[1]) mid = math.avg(line_1.get_y1(),line_2.get_y1()) if ta.crossover(close, line_1.get_y1()) and barstate.isconfirmed color_trend := bull_col trend := true if ta.crossunder(close, line_2.get_y1()) and barstate.isconfirmed color_trend := bear_col trend := false // } // PLOT ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――{ if trend and trend != trend[1] label.new(bar_index, low - ta.sma(high-low, 100), "&#10003;", style = label.style_label_up, size = size.tiny, color = bull_col) if not trend and trend != trend[1] label.new(bar_index, high + ta.sma(high-low, 100), "&#10005;", style = label.style_label_down, size = size.tiny, color = bear_col) high_sdv = (high- mid) low_sdv = (mid - low) color_bars = trend ? color.from_gradient(high_sdv, 0, ta.highest(high_sdv, 100), mid_col, bull_col) : color.from_gradient(low_sdv, 0, ta.highest(low_sdv,100), mid_col, bear_col) plotcandle(open, high, low, close, title ='Candles', color = color_bars, wickcolor=color_bars, bordercolor = color_bars) plot(mid, "Trend", color = color_trend, linewidth = 2) // } 예스식으로 부탁드립니다
프로필 이미지
레전드
2025-04-13
378
글번호 190067
지표