커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1516
글번호 230811
답변완료
검색식 요청 드립니다.
안녕하세요항상 빠른 답변 감사 드립니다.아래 식을 종목 검색식으로 요청 드립니다.그럼 좋은 하루 되세요// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/// © LuxAlgo//@version=5indicator("Range Detector [LuxAlgo]", "LuxAlgo - Range Detector", overlay = true, max_boxes_count = 500, max_lines_count = 500)//------------------------------------------------------------------------------//Settings//-----------------------------------------------------------------------------{length = input.int(20, 'Minimum Range Length', minval = 2)mult = input.float(1., 'Range Width', minval = 0, step = 0.1)atrLen = input.int(500, 'ATR Length', minval = 1)//StyleupCss = input(#089981, 'Broken Upward', group = 'Style')dnCss = input(#f23645, 'Broken Downward', group = 'Style')unbrokenCss = input(#2157f3, 'Unbroken', group = 'Style')//-----------------------------------------------------------------------------}//Detect and highlight ranges//-----------------------------------------------------------------------------{//Ranges drawingsvar box bx = navar line lvl = na//Extensionsvar float max = navar float min = navar os = 0color detect_css = nan = bar_indexatr = ta.atr(atrLen) * multma = ta.sma(close, length)count = 0for i = 0 to length-1 count += math.abs(close[i] - ma) > atr ? 1 : 0if count == 0 and count[1] != count //Test for overlap and change coordinates if n[length] <= bx.get_right() max := math.max(ma + atr, bx.get_top()) min := math.min(ma - atr, bx.get_bottom()) //Box new coordinates bx.set_top(max) bx.set_rightbottom(n, min) bx.set_bgcolor(color.new(unbrokenCss, 80)) //Line new coordinates avg = math.avg(max, min) lvl.set_y1(avg) lvl.set_xy2(n, avg) lvl.set_color(unbrokenCss) else max := ma + atr min := ma - atr //Set new box and level bx := box.new(n[length], ma + atr, n, ma - atr, na , bgcolor = color.new(unbrokenCss, 80)) lvl := line.new(n[length], ma, n, ma , color = unbrokenCss , style = line.style_dotted) detect_css := color.new(color.gray, 80) os := 0else if count == 0 bx.set_right(n) lvl.set_x2(n)//Set colorif close > bx.get_top() bx.set_bgcolor(color.new(upCss, 80)) lvl.set_color(upCss) os := 1else if close < bx.get_bottom() bx.set_bgcolor(color.new(dnCss, 80)) lvl.set_color(dnCss) os := -1//-----------------------------------------------------------------------------}//Plots//-----------------------------------------------------------------------------{//Range detection bgcolorbgcolor(detect_css)plot(max, 'Range Top' , max != max[1] ? na : os == 0 ? unbrokenCss : os == 1 ? upCss : dnCss)plot(min, 'Range Bottom' , min != min[1] ? na : os == 0 ? unbrokenCss : os == 1 ? upCss : dnCss)//-----------------------------------------------------------------------------}
2025-10-23
313
글번호 227223
윤호석 님에 의해서 삭제되었습니다.
2025-10-23
16
글번호 227219
답변완료
종목검색식 부탁드립니다
1. 일목균형표 에서, 선행스팬1 이 전일대비 상승하는 종목 을, 0봉전~10봉전 까지의 모든 종목검색식 부탁드려요 .2. 일목균형표 에서, 선행스팬2 가 전일대비 상승하는 종목을, 0봉전~10봉전까지의 모든종목 검색식 부탁드려요.
일목균형
2025-10-23
157
글번호 227218
답변완료
종목검색식 부탁드립니다
Inputs:
N(14), // 14일 최고가 계산
FlatLookback(10), // 횡보 탐지 기간 (현재는 사용하지 않음)
FlatThreshold(1), // 횡보 변동폭 (%)
Lookback(10), // AVWAP 계산 기준 (10봉)
ShortLen(10), // 변화율 비교용 기간 (최근 10봉)
Tolerance(0.009); // -0.9% 기준 (0.9% 이상 하락 시 점 표시)
Vars:
i(0), j(0),
searchLen(0),
maxVol(-1),
anchorAgo(-1),
anchorBar(0),
sumsrc(0),
sumvol(0),
avwap(0),
src(0),
src_j(0),
cnt(0),
hh(0), LL(0),
avwapHigh(0),
avwapLow(9999999),
avgAVWAP(0),
changeRatio(0),
isDown(False);
// 현재 봉 가격 소스
src = (H + L + C) / 3;
// 검색 길이 결정
If CurrentBar > Lookback Then
Begin
searchLen = Lookback;
End
Else
Begin
searchLen = CurrentBar;
End;
// 최근 최대 거래량 봉 찾기
maxVol = -1;
anchorAgo = -1;
For i = 0 To searchLen - 1 Begin
If V[i] > maxVol Then Begin
maxVol = V[i];
anchorAgo = i;
End;
End;
anchorBar = CurrentBar - anchorAgo;
If anchorAgo < 0 Then anchorBar = -1;
// AVWAP 계산
If anchorAgo >= 0 Then Begin
sumsrc = 0;
sumvol = 0;
For j = anchorAgo Downto 0 Begin
src_j = (H[j] + L[j] + C[j]) / 3;
sumsrc = sumsrc + src_j * V[j];
sumvol = sumvol + V[j];
End;
If sumvol > 0 Then Begin
avwap = sumsrc / sumvol;
Plot3(avwap, "AVWAP");
// 최근 10봉 평균 대비 변화율 계산
If CurrentBar > ShortLen Then Begin
avgAVWAP = Average(Plot3, ShortLen); // 최근 10봉 평균
changeRatio = (avwap - avgAVWAP) / avgAVWAP;
// -0.9% 이상 하락 시 점 표시
isDown = changeRatio < -Tolerance;
If isDown Then Begin
Plot5(avwap, "AVWAP 하락점");
End
Else Begin
NoPlot(5);
End;
End;
End;
End;
질문:
위종목 검색식에서 현재값이 plot3 값을 5봉이내 1회 crossup 하는 종목을 검색하고 싶습니다.
단 plot5가 발동되는 시점의 crossup은 무시(제외)하고 싶어요
일목균형
2025-10-23
213
글번호 227214
윤호석 님에 의해서 삭제되었습니다.
2025-10-23
22
글번호 227213
윤호석 님에 의해서 삭제되었습니다.
2025-10-23
11
글번호 227212
윤호석 님에 의해서 삭제되었습니다.
2025-10-23
18
글번호 227211
윤호석 님에 의해서 삭제되었습니다.
2025-10-23
11
글번호 227210
윤호석 님에 의해서 삭제되었습니다.
2025-10-23
19
글번호 227209