커뮤니티

예스랭귀지 Q&A

글쓰기

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

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

수식 부탁드립니다

분봉 차트에서 사용 예정입니다 entry_price 돌파 시에 첫 진입을 하고, 이후 '직전 진입가'에서 Range * entry_k 만큼 상승때마다 추가 피라미딩을 계속 해나가는 식을 만들려고 합니다. 제가 해보니 뭐가 꼬였는지 피라미딩이 실제로 되지 않아서 ㅠㅠ 부탁 드리겠습니다...! entry_price = DayOpen + (Range * entry_k); if MarketPosition == 0 and NextBarSdate == sdate and h < entry_price Then Buy("b00",AtStop, entry_price );
프로필 이미지
루라라라
2023-12-04
1161
글번호 174542
시스템
답변완료

문의 드립니다

일목균형표 9 26 52 (1) 후행스팬기간 을 (17)로 하고 선행스팬2기간 을 (52)로 할때 후행(17)이 선행2(52)을 상향돌파 종목검색 수식 부탁드립니다 (2) if m >= 50000000000 if C >= O*1.10 위 수식으로 5일동안에 발생한 모든 종목을 찾고싶습니다 고맙습니다
프로필 이미지
쌍둥이
2023-12-04
1200
글번호 174541
종목검색
답변완료

봉 차트에서 수식 적용시

if sdate != sdate[1] then { a = 0; } else { a = a + 1; if a > 0 then { Plot1(a, "a",rgb(255,0,0),def,막대굵기); } else { Plot1(a, "a",rgb(0,0,255),def,막대굵기); } } 이런 수식에서 예를 들어서 3분봉 챠트에서 두번째 봉 시작할때(새로운 봉 시작시) a값을 0으로 초기화를 하고 싶은데 어떻게 해야 하나요?
프로필 이미지
마천
2023-12-03
1045
글번호 174540
지표
답변완료

캔들 위에 수익(틱) 표시

파라볼릭(종가)로 시스템 매매 차트를 보고 있습니다. 신호가 발생하고 발생한 신호 종가에서 진입 시 현재 몇 틱 수익인지 캔들 위에 5틱이나 10틱 단위로 표시할 수 있을까요? 실제 수치와는 다르지만 예시를 든 사진입니다. 사진처럼 매수나 매도 진입 시 이후 발생하는 캔들에 현재 수익이 몇틱인지 나타내는 수식이 궁금합니다.
프로필 이미지
파라파라
2023-12-03
1172
글번호 174539
시스템
답변완료

문의 드립니다....

일봉상(120봉 변수로부탁) 중 1000억이상(변수로부탁) 가장많이 터진 캔들의 저가를 당일 깨고내려간 종목 검색식좀부탁드립니다
프로필 이미지
wkri
2023-12-03
1236
글번호 174538
종목검색
답변완료

수식문의드립니다

Input : 꼬리배율(3),몸통윗꼬리율(1.5),몸통상승율(2.0); Var : Body(0), DnTail(0), Uptail(0), 역망치형(false); 역망치형 = UpTail > DnTail * 꼬리배율 and UpTail > Body * 몸통윗꼬리율 and ( (C-O)/O*100 ) >= 몸통상승율 and V > V[1] and V > ma(V, 5) ; 최근 10봉이내에 위 역망치형이 1회발생된 후 음봉출현하다가 첫양봉 발생시의 매수신호수식.단,역망치형이 발생되고 다음 익봉에서 바로 발생되는 양봉은 모두 무시(제외)되어야 하고, 발생횟수와 상관없이 음봉이 나오다가 양봉발생시의 첫 양봉에서만 신호 발생되어야함
프로필 이미지
해피오
2023-12-03
1372
글번호 174537
검색
답변완료

부탁드립니다

안녕하세요. 항상 큰 도움을 주셔서 감사드립니다. 아래의 TV지표를 YS지표로 사용하고 싶습니다. 부탁드립니다. //@version=4 study("RSI Swing Indicator", overlay=true, max_bars_back=1000) // RSI Settings for user rsiSource = input(title="RSI Source", type=input.source, defval=close) rsiLength = input(title="RSI Length", type=input.integer, defval=7) rsiOverbought = input(title="RSI Overbought", type=input.integer, defval=70, minval=51, maxval=100) rsiOvesold = input(title="RSI Oversold", type=input.integer, defval=30, minval=1, maxval=49) // RSI value based on inbuilt RSI rsiValue = rsi(rsiSource, rsiLength) // Get the current state isOverbought = rsiValue >= rsiOverbought isOversold = rsiValue <= rsiOvesold // State of the last extreme 0 for initialization, 1 = overbought, 2 = oversold var laststate = 0 // Highest and Lowest prices since the last state change var hh = low var ll = high // Labels var label labelll = na var label labelhh = na // Swing lines var line line_up = na var line line_down = na var last_actual_label_hh_price = 0.0 var last_actual_label_ll_price = 0.0 // FUNCTIONS obLabelText() => if(last_actual_label_hh_price < high) "HH" else "LH" //plot(last_actual_label_hh_price) osLabelText() => if(last_actual_label_ll_price < low) "HL" else "LL" // Create oversold or overbought label createOverBoughtLabel(isIt) => if(isIt) label.new(x=bar_index, y=na ,yloc=yloc.abovebar, style=label.style_label_down, color=color.red, size=size.tiny, text=obLabelText()) else label.new(x=bar_index, y=na ,yloc=yloc.belowbar, style=label.style_label_up, color=color.green, size=size.tiny, text=osLabelText()) // Move the oversold swing and label moveOversoldLabel() => label.set_x(labelll, bar_index) label.set_y(labelll, low) label.set_text(labelll, osLabelText()) line.set_x1(line_down, bar_index) line.set_y1(line_down, low) moveOverBoughtLabel() => label.set_x(labelhh, bar_index) label.set_y(labelhh, high) label.set_text(labelhh, obLabelText()) line.set_x1(line_up, bar_index) line.set_y1(line_up, high) // We go from oversold straight to overbought NEW DRAWINGS CREATED HERE if(laststate == 2 and isOverbought) hh := high labelhh := createOverBoughtLabel(true) last_actual_label_ll_price := label.get_y(labelll) labelll_ts = label.get_x(labelll) labelll_price = label.get_y(labelll) line_up := line.new(x1=bar_index, y1=high, x2=labelll_ts, y2=labelll_price, width=1) // We go from overbought straight to oversold NEW DRAWINGS CREATED HERE if(laststate == 1 and isOversold) ll := low labelll := createOverBoughtLabel(false) last_actual_label_hh_price := label.get_y(labelhh) labelhh_ts = label.get_x(labelhh) labelhh_price = label.get_y(labelhh) line_down := line.new(x1=bar_index, y1=high, x2=labelhh_ts, y2=labelhh_price, width=1) // If we are overbought if(isOverbought) if(high >= hh) hh := high moveOverBoughtLabel() laststate := 1 // If we are oversold if(isOversold) if(low <= ll) ll := low moveOversoldLabel() laststate := 2 // If last state was overbought and we are overbought if(laststate == 1 and isOverbought) if(hh <= high) hh := high moveOverBoughtLabel() //If we are oversold and the last state was oversold, move the drawings to the lowest price if(laststate == 2 and isOversold) if(low <= ll) ll := low moveOversoldLabel() // If last state was overbought if(laststate == 1) if(hh <= high) hh := high moveOverBoughtLabel() // If last stare was oversold if(laststate == 2) if(ll >= low) ll := low moveOversoldLabel()
프로필 이미지
기찬주
2023-12-03
1008
글번호 174536
지표
답변완료

수식 질문합니다.

안녕하세요. 1. 년단위 일봉의 시가 평균과 종가 평균 선을 그리고 종가 평균이 시가 평균을 돌파하는 종목 2. 월단위, 주단위에서도 검색하고 싶습니다. 감사합니다.
프로필 이미지
트더
2023-12-03
1164
글번호 174534
종목검색
답변완료

변환 부탁드립니다.

CrossUp( StochasticsSlow(5,3), eavg(StochasticsSlow(5,3),3))
프로필 이미지
gunbike
2023-12-03
1211
글번호 174533
검색