커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

만강 님에 의해서 삭제되었습니다.

프로필 이미지
만강
2023-12-09
0
글번호 174709
지표
답변완료

수정 부탁드립니다.

안녕하세요? 담당자님, 친절하고 자세한 설명 매우큰 도움 되어서 감사함을 표시합니다. 정말 감사합니다. 아래의 수식에서 봉이 마감후 진입할수있게 진입을 변경하고싶습니다. 진입신호가나온후 봉마감할때 진입할수있게 해주시면 감사하겠습니다~ inputs: Length(10), Pval(0.05),당일청산(153000); input : 익절틱수(10), 손절틱수(10), 진입횟수(3); var : entry(0); if Bdate != Bdate[1] Then entry = 0; if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or (MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then entry = entry+1 ; if entry < 진입횟수 then Sell("CBI", AtStop, Lowest(Low, Length) - Pval); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); SetStopEndofday(당일청산);
프로필 이미지
대구어린울프
2023-12-09
1115
글번호 174708
시스템
답변완료

부탁드립니다.

변환 부탁 드립니다. 감기조심하세요 선형회귀 관련 캔들입니다. study("Linear Regression Channel", overlay = true, max_bars_back = 1000, max_lines_count = 300) src = input(defval = close, title = "Source") len = input(defval = 100, title = "Length", minval = 10) devlen = input(defval = 2., title = "Deviation", minval = 0.1, step = 0.1) extendit = input(defval = true, title = "Extend Lines") showfibo = input(defval = false, title = "Show Fibonacci Levels") showbroken = input(defval = true, title = "Show Broken Channel", inline = "brk") brokencol = input(defval = color.blue, title = "", inline = "brk") upcol = input(defval = color.lime, title = "Up/Down Trend Colors", inline = "trcols") dncol = input(defval = color.red, title = "", inline = "trcols") widt = input(defval = 2, title = "Line Width") var fibo_ratios = array.new_float(0) var colors = array.new_color(2) if barstate.isfirst array.unshift(colors, upcol) array.unshift(colors, dncol) array.push(fibo_ratios, 0.236) array.push(fibo_ratios, 0.382) array.push(fibo_ratios, 0.618) array.push(fibo_ratios, 0.786) get_channel(src, len)=> mid = sum(src, len) / len slope = linreg(src, len, 0) - linreg(src, len, 1) intercept = mid - slope * floor(len / 2) + ((1 - (len % 2)) / 2) * slope endy = intercept + slope * (len - 1) dev = 0.0 for x = 0 to len - 1 dev := dev + pow(src[x] - (slope * (len - x) + intercept), 2) dev := sqrt(dev/len) [intercept, endy, dev, slope] [y1_, y2_, dev, slope] = get_channel(src, len) outofchannel = (slope > 0 and close < y2_ - dev * devlen) ? 0 : (slope < 0 and close > y2_ + dev * devlen) ? 2 : -1 var reglines = array.new_line(3) var fibolines = array.new_line(4) for x = 0 to 2 if not showbroken or outofchannel != x or nz(outofchannel[1], -1) != -1 line.delete(array.get(reglines, x)) else line.set_color(array.get(reglines, x), color = brokencol) line.set_width(array.get(reglines, x), width = 2) line.set_style(array.get(reglines, x), style = line.style_dotted) line.set_extend(array.get(reglines, x), extend = extend.none) array.set(reglines, x, line.new(x1 = bar_index - (len - 1), y1 = y1_ + dev * devlen * (x - 1), x2 = bar_index, y2 = y2_ + dev * devlen * (x - 1), color = array.get(colors, round(max(sign(slope), 0))), style = x % 2 == 1 ? line.style_solid : line.style_dashed, width = widt, extend = extendit ? extend.right : extend.none)) if showfibo for x = 0 to 3 line.delete(array.get(fibolines, x)) array.set(fibolines, x, line.new(x1 = bar_index - (len - 1), y1 = y1_ - dev * devlen + dev * devlen * 2 * array.get(fibo_ratios, x), x2 = bar_index, y2 = y2_ - dev * devlen + dev * devlen * 2 * array.get(fibo_ratios, x), color = array.get(colors, round(max(sign(slope), 0))), style = line.style_dotted, width = widt, extend = extendit ? extend.right : extend.none)) var label sidelab = label.new(x = bar_index - (len - 1), y = y1_, text = "S", size = size.large) txt = slope > 0 ? slope > slope[1] ? "&#8657;" : "&#8663;" : slope < 0 ? slope < slope[1] ? "&#8659;" : "&#8664;" : "⇒" stl = slope > 0 ? slope > slope[1] ? label.style_label_up : label.style_label_upper_right : slope < 0 ? slope < slope[1] ? label.style_label_down : label.style_label_lower_right : label.style_label_right label.set_style(sidelab, stl) label.set_text(sidelab, txt) label.set_x(sidelab, bar_index - (len - 1)) label.set_y(sidelab, slope > 0 ? y1_ - dev * devlen : slope < 0 ? y1_ + dev * devlen : y1_) label.set_color(sidelab, slope > 0 ? upcol : slope < 0 ? dncol : color.blue) alertcondition(outofchannel, title='Channel Broken', message='Channel Broken') // direction trendisup = sign(slope) != sign(slope[1]) and slope > 0 trendisdown = sign(slope) != sign(slope[1]) and slope < 0 alertcondition(trendisup, title='Up trend', message='Up trend') alertcondition(trendisdown, title='Down trend', message='Down trend')
프로필 이미지
다올
2023-12-09
1358
글번호 174707
지표
답변완료

볼밴돌파수식

84895번에 답변에 대한 후속문의 있읍니다. =================================================== 이건 다른건데요, 아래 수식은 종전에 60봉간 좁은 볼밴폭 유지 후 볼밴상한선 돌파하는 봉을 검색하는 것이었는데, 거의 나오지 않아 다음과 같이 단순화하고 싶어 수식수정바랍니다. .동일 볼밴 이용(120,1) .종가가 120봉간 볼밴상한선 미만(120봉간 한번도 상한선돌파하는 종가가 없음) .상/하 볼밴의 폭은 무시 .0봉에 볼밴상한선 돌파 간단한거 같아 시도해봐도 안되어서 할 수 없이 문의드립니다. ==================================================== input : Period(120),dv(1); input : N(60),Per1(10),Per2(5); var : BBup(0),BBdn(0),Emav(0),R(0); BBup = BollBandUp(Period,dv); BBdn = BollBandDown(Period,dv); Emav = Ema(c,Period); R = (Emav-Emav[N])/Emav[N]*100; value1 = highest(BBup,Period); value2 = lowest(BBdn,Period); if CrossUp(c,bbup) and CountIf(H > bbup,N)[1] < 1 and value1[1] <= Value2[1]*(1+Per1/100) and R <= Per2 and R >= -Per2 Then Find(1);
프로필 이미지
ksks
2023-12-11
1332
글번호 174706
종목검색
답변완료

수식작성 부탁드립니다.

안녕하세요. 운영자님 의뢰드릴 사항은, 매수조건 : 1) RSI(7), RSI(14), RSI(21) 선을 겹쳐 놓았을 때 정배열 2) ADX(14) 가 기준선 (20) 위에 위치 3) MACD (12, 26, 9) 선이 MACD signal 선보다 위 (정배열) 4) 파라볼릭 (af(0.02), maxAF(0.2))점위에 종가위치 5) EMA (50) 위에 종가 위치 매도조건 : 1) RSI(7), RSI(14), RSI(21) 선을 겹쳐 놓았을 때 역배열 2) ADX(14) 가 기준선 (20) 아래에 위치 3) MACD (12, 26, 9) 선이 MACD signal 선보다 아래 (역배열) 4) 파라볼릭 (af(0.02), maxAF(0.2))점 아래에 종가위치 5) EMA (50) 아래에 종가 위치 각 지표의 기간값 및 익절/손절값을 변수로 지정하여 최적화가 가능하도록 부탁드립니다. 수고하세요
프로필 이미지
고박사122
2023-12-09
1344
글번호 174705
시스템
답변완료

수식수정

input : EmaPeriod(50); input : RSIPeriod1(7),RSIPeriod2(14),RSIPeriod3(21),RSI차이(7); input : ADXPeriod(10); input : 익절(50),손절(50); var : Emav(0),RSI1(0),RSI2(0),RSI3(0),ADXv(0); var : Bcond(False),Scond(False); Emav = Ema(C,EmaPeriod); RSI1 = RSI(RSIPeriod1); RSI2 = RSI(RSIPeriod2); RSI3 = RSI(RSIPeriod3); ADXv = ADX(ADXperiod); Bcond = MarketPosition == 0 and MarketPosition(1) == 1 and MarketPosition(2) == 1; Scond = MarketPosition == 0 and MarketPosition(1) == -1 and MarketPosition(2) == -1; if C > Emav and RSI1 >= RSI2+RSI차이 and RSI2 >= RSI3+RSI차이 and ADXV >= 21 and Bcond == False Then buy(); if C < Emav and RSI1 <= RSI2-RSI차이 and RSI2 <= RSI3-RSI차이 and ADXV >= 21 and Scond == False Then Sell(); SetStopProfittarget(익절, PointStop); SetStopLoss(손절, PointStop); 위식에서 청산조건 (익절.손절) 기능삭제. 수정 일일 누적수익 100틱시 매매중지로 수정 부탁드립니다
프로필 이미지
아트정
2023-12-09
1097
글번호 174704
시스템
답변완료

시스템 작성의뢰

> 수고 하십니다 ! 거래량 이동평균선 5선이 15 이상 상승 하고 이동평균선 1 선부터 1920 선까지 정배열을 한후 er bear power 지표가 상승을 하며 이평선 1 선이 240 이평선을 다운 크로스 할때 매도를 하고 20 틱이상 하락하고 er bear power 지표가 하락을 하며 5 틱이상 상승하면 청산을 하고 거래량 이동평균선 5선이 15 이상 상승 하고 이동평균선 1 선부터 1920 선까지 역배열을 한후 er bear power 지표가 하락을 하며 이평선 1 선이 240 이평선을 업 크로스 할때 매수를 하고 20 틱이상 상승하고 er bear power 지표가 상승을 하며 5 틱이 하락하면 청산을 하는 시스템 작성을 부탁드립니다 *****
프로필 이미지
tnsflwls
2023-12-09
1007
글번호 174703
시스템
답변완료

부탁드립니다

1. 현재 종가가 직전 30개봉 이내의 최고가 위로 올라가면서 직전 30개봉에서 직전 60개 봉 사이의 최저가가 현재 봉부터 직전 30개봉 이내의 최저가보다 낮을 때 빨강색으로, 현재 종가가 직전 30개봉 이내의 최저가 이하로 내려가면서 직전 30개봉에서 직전 60개 봉 사이의 최고가가 현재 봉부터 직전 30개봉 이내의 최고가보다 높을 때 파란색으로 구현해 주세요 고맙습니다.
프로필 이미지
서태공
2023-12-10
916
글번호 174702
강조
답변완료

다시질문

안녕하세요 예스스탁입니다. 해당데이터는 차트에 참조데이터로 추가하셔야 합니다. 차트의 왼쪽 상단의 종목선택 버튼 중 오른쪽을 클릭하시면 차트에 데이터를 추가할 수 있습니다. 종목선택 버튼 중 왼쪽버튼은 기본종목을 변경하는 버튼입니다. 프로그램 관련 데이터는 해당 종목선택창의 참조탭에서 선택해서 추가할 수 있습니다. 기본종목이 주식이면 참조선택 옵션에서 기본종목으로 지정하고 나오는 리스트에서 선택하시면 됩니다. 추가된 데이터는 순서대로 data2부터 데이터번호가 자동부여됩니다. 봉차트로 추가 되는데 해당 데이터를 더블클릭하면 속성화면이 나타납니다. 속성에서 종가선차트 등으로 설정해서 보시거나 선그래프로 보고자 하시면 아래지표식 작성해 차트에 적용하시면 됩니다. plot1(data2(c)); ========================================= 답변감사드립니다. 위 방식의 데이터는 일간데이터인것 같습니다. 혹시 키움의 0778 화면처럼 해당종목의 장중 분봉차트 하단에 실시간 지표로 나타낼 수 있는 방법은 없는지요?
프로필 이미지
빗소리7
2023-12-08
979
글번호 174700
지표