커뮤니티

예스랭귀지 Q&A

글쓰기

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

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

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

프로필 이미지
님이랑
2025-10-10
43
글번호 194560
종목검색

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

프로필 이미지
님이랑
2025-10-10
14
글번호 194559
종목검색
답변완료

MACD오실레이터

Input : shortPeriod(12), longPeriod(26), Period(9); Var : MACDv(0), MACDsig(0),macdosc(0) ; MACDv = MACD(shortPeriod, longPeriod); MACDsig = ema(MACDv,Period); macdosc = MACDv-ema(MACDv,Period); if macdosc > 0 then { plot1(macdosc, "MACDOscillator+"); Plot2(0, "MACDOscillator-"); } else { Plot1(0, "MACDOscillator+"); Plot2(macdosc, "MACDOscillator-"); } Plot3(MACDv, "MACD"); Plot4(MACDsig, "MACDSignal"); PlotBaseLine1(0, "기준선1"); MACD선이 MACD 시그널 을 상향돌파시 빨간색 MACD선이 MACD 시그널 을 하향돌파시 파란색 색깔이 나오도록 부탁드려요
프로필 이미지
노블레스
2025-10-10
156
글번호 194554
지표
답변완료

문의합니다.

시뮬레이션 차트에서는 주간만 제공하는 것 같습니다. 시뮬레이션 차트에서 주간 및 복합을 선택할 수 있나요, 그리고 실시간 전략실행차트에서 복합으로 운영한다면 어떤 절차가 필요한가요.
프로필 이미지
남산
2025-10-10
163
글번호 194548
시스템
답변완료

시스템

안녕하세요 아래식을 if 문으로 풀어서만들어주세요 Input: Length(10), Pval(0.05); Buy ("CBI", AtStop, Highest(High, Length) + Pval); if Highest(High, Length) + Pval then{ buy("CBI", AtStop); 감사합니다
프로필 이미지
달마7
2025-10-10
132
글번호 194540
시스템
답변완료

예스랭귀지 종목검색 수식 요청합니다

안녕하세요 현재봉의 최고가가 10봉중 최고가를 돌파하는 종목 검색식 가능할까요? 기존의 Q&A 검색해보니 비슷한 질문이 있어서 예스랭귀지 적용해보았더니 검색이 안나오는 경우가 있어서 재차 질문드립니다 감사합니다
프로필 이미지
당근인생
2025-10-10
212
글번호 194528
종목검색
답변완료

문의드립니다

1,문법에러라고 뜨는데 어떻게 수정해야할지모르겠습니다 수정부탁드립니다 그리고 설명부탁드립니다 Inputs: N(14), MA_Period(20), AstroBias(0.75), SpiritFlow(0.6), Smooth(3), Eps(1e-6), BuyThr(70), K(5); // 최근 K일 윈도우 (정수) Vars: Var_OBV(0), Var_MA(0), Var_RSI(0), AstroFlow(0), SpiritBoost(0), Combo(0), ComboSm(0), obvMin(0), obvMax(0), maSeries(0), maMin(0), maMax(0), CrossNow(false), // ← 여기 담아서 뒤에 [d] 인덱싱 hit(false), d(0),not(0); //{ --- 시계열 준비 --- } maSeries = MA(Close, MA_Period); obvMin = Lowest(OBV, N); obvMax = Highest(OBV, N); Var_OBV = 100 * (OBV - obvMin) / MaxList(Eps, obvMax - obvMin); maMin = Lowest(maSeries, N); maMax = Highest(maSeries, N); Var_MA = 100 * (maSeries - maMin) / MaxList(Eps, maMax - maMin); Var_RSI = RSI(N); AstroFlow = (Var_RSI / 100) * AstroBias; SpiritBoost = (Var_OBV / 100) * SpiritFlow; Combo = (Var_OBV + Var_MA + Var_RSI) / 3 + AstroFlow + SpiritBoost; ComboSm = MA(Combo, Smooth); //{ --- 최근 K일 내 "최초" 상향 돌파 탐지 --- } CrossNow = CrossUp(ComboSm, BuyThr); // 함수결과 → 변수로 보관 hit = false; For d = 0 to K - 1 begin // d번째 봉에서 상향돌파가 발생했고, (d+1)번째 봉(그 전 봉)에는 없었으면 "최초" If CrossNow[d] and not CrossNow[d + 1] then bigin hit = true; end; //{ --- 기본 필터 (예: 종가가 MA 위) --- } If hit and (Close > maSeries) then Find(1); 2.5일이평과20일이평이 크로스업 되었을때 텍스트로 주가를 나타내고싶습니다
프로필 이미지
처음처럼22
2025-10-10
250
글번호 194527
종목검색
답변완료

종목검색식 부탁드립니다

1. 지수이평 112선을 기준으로 종가기준, 캔들이 상 하 1%에 있는 (위 아래), 종목검색식 부탁드려요.(이평과 상하1%는 변수로 부탁드려요) 2. 지수이평 112선을 기준으로 종가기준, 캔들이 상 하 1%에 있는 (위 아래), 0봉전 ~ 60봉전까지 모든종목 검색식 부탁드립니다.
프로필 이미지
일지매7
2025-10-09
184
글번호 194526
종목검색
답변완료

부틱드립니다

수고하십니다 예스로 부탁드립니다 // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // &#169; CustomIndicator //@version=5 indicator(title="Trend Channel SwiftEdge", shorttitle="AI Trend Dashboard", overlay=true) // Inputs for Main Indicator ma_type = input.string("EMA", title="AI Moving Average Type", options=["SMA", "EMA", "WMA"]) ma_length = input.int(14, minval=3, title="AI MA Length") source = input.source(close, title="AI Data Source") show_ribbon = input.bool(true, title="Show AI Ribbon") show_background = input.bool(true, title="Show AI Background Glow") start_year = input.int(1900, title="Start Year", minval=1900, maxval=2100) end_year = input.int(2100, title="End Year", minval=1900, maxval=2100) // Input for Signal Filter Timeframe signal_tf = input.string("15", title="AI Signal Filter Timeframe", options=["1", "5", "15", "60", "240", "D"]) // Function to Calculate Trend Direction for a Given Timeframe f_calculateTrend(_src, _length, _channel_period) => ma = ma_type == "SMA" ? ta.sma(_src, _length) : ma_type == "EMA" ? ta.ema(_src, _length) : ta.wma(_src, _length) upper_channel = ta.highest(ma, _channel_period) lower_channel = ta.lowest(ma, _channel_period) trend = _src > upper_channel[1] ? 1 : _src < lower_channel[1] ? -1 : 0 trend // Calculate Moving Average (Main Indicator) ma = ma_type == "SMA" ? ta.sma(source, ma_length) : ma_type == "EMA" ? ta.ema(source, ma_length) : ta.wma(source, ma_length) // Dynamic Price Channel (Main Indicator) channel_period = ma_length * 2 upper_channel = ta.highest(ma, channel_period) lower_channel = ta.lowest(ma, channel_period) // Trend Detection (Main Indicator) var int trend_direction = 0 trend_direction := source > upper_channel[1] ? 1 : source < lower_channel[1] ? -1 : trend_direction[1] // AI-Enhanced Colors with Neon Gradient Effect neon_green = #39FF14 neon_red = #FF073A neon_blue = #00BFFF neon_gray = #808080 ribbon_color = show_ribbon ? trend_direction == 1 ? neon_green : trend_direction == -1 ? neon_red : neon_gray : na bg_color_up = show_background and trend_direction == 1 ? color.new(neon_green, 85) : na bg_color_down = show_background and trend_direction == -1 ? color.new(neon_red, 85) : na channel_color = show_ribbon ? color.new(neon_blue, 40) : na // Plotting with Holographic Effect plot_ma = plot(ma, title="AI Moving Average", color=ribbon_color, linewidth=3, style=plot.style_stepline) plot_upper = plot(upper_channel, title="AI Upper Channel", color=channel_color, linewidth=2, style=plot.style_stepline) plot_lower = plot(lower_channel, title="AI Lower Channel", color=channel_color, linewidth=2, style=plot.style_stepline) // Background Glow with Gradient fill(plot_upper, plot_lower, color=bg_color_up, title="AI Bullish Glow") fill(plot_upper, plot_lower, color=bg_color_down, title="AI Bearish Glow") // Time Filter time_valid = time >= timestamp(start_year, 1, 1, 0, 0) and time <= timestamp(end_year, 12, 31, 23, 59) // Multi-Timeframe Trend Analysis src_1m = request.security(syminfo.tickerid, "1", source) src_5m = request.security(syminfo.tickerid, "5", source) src_15m = request.security(syminfo.tickerid, "15", source) src_1h = request.security(syminfo.tickerid, "60", source) src_4h = request.security(syminfo.tickerid, "240", source) src_1d = request.security(syminfo.tickerid, "D", source) trend_1m = f_calculateTrend(src_1m, ma_length, channel_period) trend_5m = f_calculateTrend(src_5m, ma_length, channel_period) trend_15m = f_calculateTrend(src_15m, ma_length, channel_period) trend_1h = f_calculateTrend(src_1h, ma_length, channel_period) trend_4h = f_calculateTrend(src_4h, ma_length, channel_period) trend_1d = f_calculateTrend(src_1d, ma_length, channel_period) // AI-Enhanced Dashboard var table trend_table = table.new(position.top_right, 2, 8, border_width=2, border_color=neon_blue, bgcolor=color.new(color.black, 80)) if barstate.islastconfirmedhistory table.cell(trend_table, 0, 0, "AI Trend", bgcolor=color.new(neon_blue, 60), text_color=color.white, text_size=size.normal) table.cell(trend_table, 1, 0, "Analysis", bgcolor=color.new(neon_blue, 60), text_color=color.white, text_size=size.normal) table.cell(trend_table, 0, 1, "Timeframe", bgcolor=color.new(color.gray, 80), text_color=neon_blue) table.cell(trend_table, 1, 1, "Trend", bgcolor=color.new(color.gray, 80), text_color=neon_blue) table.cell(trend_table, 0, 2, "1 Min", bgcolor=color.new(color.black, 90), text_color=neon_blue) table.cell(trend_table, 1, 2, trend_1m == 1 ? "UP" : trend_1m == -1 ? "DOWN" : "NEUTRAL", bgcolor=trend_1m == 1 ? color.new(neon_green, 60) : trend_1m == -1 ? color.new(neon_red, 60) : color.new(neon_gray, 60), text_color=color.white) table.cell(trend_table, 0, 3, "5 Min", bgcolor=color.new(color.black, 90), text_color=neon_blue) table.cell(trend_table, 1, 3, trend_5m == 1 ? "UP" : trend_5m == -1 ? "DOWN" : "NEUTRAL", bgcolor=trend_5m == 1 ? color.new(neon_green, 60) : trend_5m == -1 ? color.new(neon_red, 60) : color.new(neon_gray, 60), text_color=color.white) table.cell(trend_table, 0, 4, "15 Min", bgcolor=color.new(color.black, 90), text_color=neon_blue) table.cell(trend_table, 1, 4, trend_15m == 1 ? "UP" : trend_15m == -1 ? "DOWN" : "NEUTRAL", bgcolor=trend_15m == 1 ? color.new(neon_green, 60) : trend_15m == -1 ? color.new(neon_red, 60) : color.new(neon_gray, 60), text_color=color.white) table.cell(trend_table, 0, 5, "1 Hour", bgcolor=color.new(color.black, 90), text_color=neon_blue) table.cell(trend_table, 1, 5, trend_1h == 1 ? "UP" : trend_1h == -1 ? "DOWN" : "NEUTRAL", bgcolor=trend_1h == 1 ? color.new(neon_green, 60) : trend_1h == -1 ? color.new(neon_red, 60) : color.new(neon_gray, 60), text_color=color.white) table.cell(trend_table, 0, 6, "4 Hour", bgcolor=color.new(color.black, 90), text_color=neon_blue) table.cell(trend_table, 1, 6, trend_4h == 1 ? "UP" : trend_4h == -1 ? "DOWN" : "NEUTRAL", bgcolor=trend_4h == 1 ? color.new(neon_green, 60) : trend_4h == -1 ? color.new(neon_red, 60) : color.new(neon_gray, 60), text_color=color.white) table.cell(trend_table, 0, 7, "1 Day", bgcolor=color.new(color.black, 90), text_color=neon_blue) table.cell(trend_table, 1, 7, trend_1d == 1 ? "UP" : trend_1d == -1 ? "DOWN" : "NEUTRAL", bgcolor=trend_1d == 1 ? color.new(neon_green, 60) : trend_1d == -1 ? color.new(neon_red, 60) : color.new(neon_gray, 60), text_color=color.white) // Signal Filter Trend signal_trend = request.security(syminfo.tickerid, signal_tf, f_calculateTrend(source, ma_length, channel_period)) // Check Higher Timeframes for Trend Direction bool higher_tf_up = false bool higher_tf_down = false if signal_tf == "1" higher_tf_up := trend_5m == 1 and trend_15m == 1 and trend_1h == 1 and trend_4h == 1 higher_tf_down := trend_5m == -1 and trend_15m == -1 and trend_1h == -1 and trend_4h == -1 else if signal_tf == "5" higher_tf_up := trend_15m == 1 and trend_1h == 1 and trend_4h == 1 higher_tf_down := trend_15m == -1 and trend_1h == -1 and trend_4h == -1 else if signal_tf == "15" higher_tf_up := trend_1h == 1 and trend_4h == 1 higher_tf_down := trend_1h == -1 and trend_4h == -1 else if signal_tf == "60" higher_tf_up := trend_4h == 1 and trend_1d == 1 higher_tf_down := trend_4h == -1 and trend_1d == -1 else if signal_tf == "240" higher_tf_up := trend_1d == 1 higher_tf_down := trend_1d == -1 else if signal_tf == "D" higher_tf_up := true // No higher timeframe to check higher_tf_down := true // Buy and Sell Signals based on Trend Cross in Signal Filter Timeframe, Main Trend, and Higher Timeframes buy_signal = ta.crossover(signal_trend, 0) and trend_direction == 1 and (signal_trend == 1 or (signal_trend == 0 and higher_tf_up)) and time_valid sell_signal = ta.crossunder(signal_trend, 0) and trend_direction == -1 and (signal_trend == -1 or (signal_trend == 0 and higher_tf_down)) and time_valid // AI-Enhanced Buy and Sell Signals with Futuristic Labels if buy_signal label.new(bar_index, low, "&#128640; AI BUY", color=neon_green, style=label.style_label_up, textcolor=color.white, size=size.normal) if sell_signal label.new(bar_index, high, "&#128721; AI SELL", color=neon_red, style=label.style_label_down, textcolor=color.white, size=size.normal)
프로필 이미지
파생돌이
2025-10-09
510
글번호 194525
지표