커뮤니티

예스랭귀지 Q&A

글쓰기

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

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

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

프로필 이미지
para
2025-08-19
0
글번호 193358
지표
답변완료

문의드립니다

Text_SetStyle(Text1, 2, 1); Text_SetColor(text1,Red); Text_Setbold(text1,1); -------------------------- 위식에서 글씨 크기를 조정하려면 어떻게 해야 하나요? 크게 또는 작게 차트 크기에 따라 임의로 입력하고 싶습니다 감사합니다
프로필 이미지
러블리
2025-08-19
202
글번호 193357
지표
답변완료

질문 부탁드립니다

더운날 수고가 많으십니다 캔들에 번호를 부여하는 수식에 대해 몇 가지 여쭤보고싶습니다 1. 차트 첫번째 봉부터 10번째 봉까지 0~9 번 까지 부여하는 식 첫번째 봉은 T = 0 , 그 다음봉은 1, ... 10번째는 t=9 이 작업을 한 뒤에 11번째부터 T=0 ... 을 반복 (순환) 을 하고자 합니다 2. h> l * 1.1 을 만족하는 봉을 기점으로 다음봉부터 t=0 을 주고 t=9 까지 부여 한뒤 순환을 하려고 합니다 h>l *1.1 을 만족하는 봉에는 t값을 주지 않습니다 한가지 더 부탁드립니다 : 3. 배열이나 변수에 또 다른 변수 (연산부호를 사용한) 를 넣고 조건문에 사용하는 방법에 대해서 여쭤보겠습니다. 예를 들어서 배열 aa[1] = 1000+n 이고 aa[2] = 1000+2n 값이 들어가있을때 조건문에 직접 사용하려고 하는데요 n=100; aa[1]=1000+n; aa[2]=1000+2n; if h > aa[1] and h< 2*(aa[2]) then var1=h; 라고 작성하면 if h > 1000+100 and h< 2*(1000+200) then var1=h; 과 동일하게 되는게 맞나요? 감사합니다
프로필 이미지
yamu
2025-08-20
219
글번호 193356
지표
답변완료

지표 변환 부탁드립니다.

// This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International // https://creativecommons.org/licenses/by-nc-sa/4.0/ // &#169; Zeiierman { //@version=6 indicator('Dynamic Swing Anchored VWAP (Zeiierman)', overlay = true, max_bars_back = 5000, max_labels_count = 500, max_polylines_count = 100) //~~} // ~~ Tooltips { var string t1 = "Number of bars used to detect swing highs and lows. Larger values identify bigger, more significant swings but react slower. Smaller values detect more frequent swings but may produce more noise." var string t2 = "Controls how quickly the VWAP adjusts to new price action. Lower values make the VWAP react faster (tighter to price), higher values make it smoother and slower to change." var string t3 = "When enabled, the VWAP reaction speed changes automatically based on market volatility. High volatility shortens the tracking period (more responsive), low volatility lengthens it (smoother)." var string t4 = "Controls how strongly volatility influences the VWAP reaction speed. Values above 1 increase the effect of volatility changes; values below 1 make it less sensitive to volatility." var string t5 = "Color used for swing high/low labels drawn on the chart to indicate pivot points." var string t6 = "Color used for swing low labels when marking pivot points." var string t7 = "Color used for VWAP lines when in an uptrend." var string t8 = "Color used for VWAP lines when in a downtrend." var string t9 = "Width of the VWAP lines drawn on the chart. Larger values make the lines thicker and more visible." //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Inputs { prd = input.int(50, title='Swing Period', minval=2, group='Swing Points', tooltip=t1) baseAPT = input.float(20, 'Adaptive Price Tracking', minval=1, step=1, group='Swing Points', tooltip=t2) useAdapt = input.bool(false, 'Adapt APT by ATR ratio', group='Swing Points', tooltip=t3) volBias = input.float(10.0, 'Volatility Bias', minval=0.1, step=0.1, group='Swing Points', tooltip=t4) highS = input.color(color.lime, title="Swing Labels", group="Style", inline="Swing", tooltip=t5) lowS = input.color(color.red, title="", group="Style", inline="Swing", tooltip=t6) S = input.color(color.lime, title="VWAP Lines", group="Style", inline="VWAP", tooltip=t7) R = input.color(color.red, title="", group="Style", inline="VWAP", tooltip=t8) xx = input.int(2, minval=1, title="", group="Style", inline="VWAP", tooltip=t9) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Global Variable { b = bar_index //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ PIVOTS Variables { var ph = float(na) var pl = float(na) var phL = b var plL = b var lab = label(na) var prev = float(na) ph := ta.highestbars(high, prd) == 0 ? high : ph pl := ta.lowestbars(low, prd) == 0 ? low : pl phL := ta.highestbars(high, prd) == 0 ? b : phL plL := ta.lowestbars(low, prd) == 0 ? b : plL dir = phL > plL ? 1 : -1 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Adaptation { atrLen = 50 atr = ta.atr(atrLen) atrAvg = ta.rma(atr, atrLen) ratio = atrAvg > 0 ? atr / atrAvg : 1.0 aptRaw = useAdapt ? baseAPT / math.pow(ratio, volBias) : baseAPT aptClamped = math.max(5.0, math.min(300.0, aptRaw)) aptSeries = math.round(aptClamped) // alpha from APT (half-life -> EWMA alpha) alphaFromAPT(apt) => decay = math.exp(-math.log(2.0) / math.max(1.0, apt)) 1.0 - decay //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ VWAP Variables { var p = hlc3 * volume var vol = volume type dataPoints array<chart.point> points polyline poly = na var vwap = dataPoints.new(array.new<chart.point>()) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Main { if dir != dir[1] x = dir > 0 ? plL : phL y = dir > 0 ? pl : ph loc = dir > 0 ? label.style_label_up : label.style_label_down col = dir > 0 ? highS : lowS txt = dir > 0 and pl < prev ? 'LL' : dir > 0 and pl > prev ? 'HL' : dir < 0 and ph < prev ? 'LH' : dir < 0 and ph > prev ? 'HH' : '' label.new(x, y, text=txt, style=loc, color=color.new(col, 20), textcolor=color.white) prev := dir > 0 ? ph[1] : pl[1] barsback = b - x p := y * volume[barsback] vol := volume[barsback] vap = p / vol vwap.poly.delete() polyline.new(vwap.points, false, false, line_color = dir < 0 ? R : S, line_width = xx) vwap.points.clear() for i = barsback to 0 by 1 apt_i = aptSeries[i] alpha = alphaFromAPT(apt_i) pxv = hlc3[i] * volume[i] v_i = volume[i] p := (1.0 - alpha) * p + alpha * pxv vol := (1.0 - alpha) * vol + alpha * v_i vappe = vol > 0 ? p / vol : na vwap.points.push(chart.point.from_index(b - i, vappe)) vwap.poly := polyline.new(vwap.points, false, false, line_color = dir < 0 ? R : S, line_width = xx) else apt_0 = aptSeries alpha = alphaFromAPT(apt_0) pxv = hlc3 * volume v0 = volume p := (1.0 - alpha) * p + alpha * pxv vol := (1.0 - alpha) * vol + alpha * v0 vap = vol > 0 ? p / vol : na vwap.poly.delete() vwap.points.push(chart.point.from_index(b, vap)) vwap.poly := polyline.new(vwap.points, false, false, line_color = dir > 0 ? R : S, line_width = xx) //~~ }
프로필 이미지
삼손감자
2025-08-19
652
글번호 193355
지표
답변완료

문의드립니다,

Input : shortPeriod(12), longPeriod(26), Period(9); Inputs: RSILength(10), OverSold(30),OverBought(100); Var : MACD1(0,Data1),MACD2(0,Data2),R(0,Data1); MACD1 = data1(MACD(shortPeriod, longPeriod)); MACD2 = data2(MACD(shortPeriod, longPeriod)); R = Data1(RSI(RSILength)); If MACD2 > 0 and Crossup(R, OverSold) Then Buy ("RSI"); if CrossUp(MACD2,0) Then Buy (); if MarketPosition == 1 Then { if CrossDown(MACD2,0)or Crossup(R, OverBought) Then Sell("S"); } 안녕하세요.위 수식에 data2 macd기준선 대신에 obv new high low 로 바꿔주시면 감사하겠습니다. 감사합니다
프로필 이미지
2685up
2025-08-19
173
글번호 193354
시스템
답변완료

검색식 부탁 드려요

1. 아래와 같은 지수이평 역배열 종목 검색식 부탁 드립니다. 3가지 종류 역배열을 "한개의 종목 검색식" (검색식1개)으로 0봉전 ~ 10봉전 모든종목이 검색 되도록 해주세요. <아래 ---------> 위> 지수이평 역배열 1) 112 224 448 2) 112 56 224 3) 56 112 224 2. 아래의 수식을 참고하여 수식1)이 수식2)를 돌파할대 종목 검색식 부탁드려요. 3. 아래의 수식을 참조하여 수식1)이 수식2) 위에 있을대 종목 검색식 부탁합니다. ----------아래----- 수식1) biwave(20,12,5,3) 수식2) B=biwave(20,12,5,3); eavg(B,Signal) ------------- 지표변수 15
프로필 이미지
일지매7
2025-08-19
222
글번호 193351
종목검색
답변완료

검색식 부탁 드립니다

지표조건 Period 14 DIPlus DIMinus 1봉전에는 DIMinus > DIPlus 보다 높다 오늘은 DIMinus < DIPlus 높다
프로필 이미지
님이랑
2025-08-19
221
글번호 193350
종목검색
답변완료

수식작성 부탁합니다

안녕하세요 운영자님 지수이평선50일 > 지수이평선200일 MACD 골든크로스 일목균형표 구름대 상단 돌파 할때 신호와 알람소리가 나게 해주세요
프로필 이미지
로엔그린
2025-08-19
285
글번호 193349
지표
답변완료

지표 수식 부탁드립니다

A1= LRL(20); B1= LRL(40); Valuewhen(1,CrossUp(A1,B1),A1) 지표 수식 부탁드립니다
프로필 이미지
골든도라도
2025-08-19
195
글번호 193348
지표