커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

종목 검색식 부탁드립니다.

1. 수식 1) 를 "전일보다 상승한" 0봉전~5봉전까지의 모든종목 검색식 부탁드립니다.2. 수식1 ) 이 "하락하다가 상승으로 전환하는 종목" 0봉전~5봉전 까지의 모든종목 검색식 부탁드려요---수식---수식1 ) T= LRL(60)+LRS(60) -ma(C,60)수식2) ma(C,60)-ma(C,20)기준선 0
프로필 이미지
일지매7
2026-10-21
62
글번호 233953
종목검색
답변완료

질문 있습니다

안녕하세요해외선물 마이크로 미니나스닥100을 키움에서 거래 하다가 지표를 구현 못하는 시스템이 안좋아서 구현이 잘 된다는 예스트레이더 를 사용하고 있는 한투로 옮겨서 여러 방법으로 해 보았지만 제 한계인것 같습니다제미나이한테 물어서 작성 헜스나 안되네요 내용인즉은 한국투자증권에서 미국 마이크로 미니나스닥100 mnqz26을자동매매로 거래 할 건데 예스트레이더에 하이킨아시 30분봉 강세 약세 지표에서 강세macd(3.10.16)fh wjsghksgkfEo tlwkdrkfh 2계약식 매수진입하고 하이켄아시차트 약세macd(3.10.16)로 전환시 시장가로 청산 자동매매 시간 계약진입 청산은 1분 30분에 매매 매매시간은 70000~ 다음날60150가지 거래계좌는 00000000이렇게 질문을 했는데Input : shortPeriod(3), longPeriod(10), signalPeriod(16), stopPer(5);Var : haClose(0), haOpen(0), haHigh(0), haLow(0);Var : haMACD(0), haMACDSignal(0);Var : isTradingTime(false);// 1. 하이켄아시(Heikin-Ashi) 캔들 계산haClose = (Open + High + Low + Close) / 4;If CurrentBar == 1 Then { haOpen = (Open + Close) / 2; haHigh = MaxList(High, haOpen, haClose); haLow = MinList(Low, haOpen, haClose);} Else { haOpen = (haOpen[1] + haClose[1]) / 2; haHigh = MaxList(High, haOpen, haClose); haLow = MinList(Low, haOpen, haClose);}// 2. 하이켄아시 종가 기준 MACD(3, 10, 16) 계산haMACD = EMA(haClose, shortPeriod) - EMA(haClose, longPeriod);haMACDSignal = EMA(haMACD, signalPeriod);// 3. 거래 가능 시간 조건 체크 (07:00:00 ~ 익일 06:01:50)If (sTime >= 70000 Or sTime <= 60150) Then isTradingTime = true;Else isTradingTime = false;// 4. 강세/약세 전환 신호 생성 (매 00분, 30분 봉 완성 시점)If isTradingTime Then { // 하이켄아시 MACD 강세 전환(골든크로스) 시 시장가 2계약 매수 If CrossUp(haMACD, haMACDSignal) Then { Buy("Buy_HAMACD", AtMarket, Def, 2); } // 하이켄아시 MACD 약세 전환(데드크로스) 시 시장가 2계약 매수 청산 If CrossDown(haMACD, haMACDSignal) Then { ExitLong("Exit_HAMACD", AtMarket, Def, "Buy_HAMACD", 2); }}// 5. 실시간 진입가 대비 -5% 손절 청산SetStopLoss(stopPer, PercentStop);이렇게 수식으로 전해 주네요 제가 묻고 싶은 것은 30분봉 하이켄차트 강세 약세에서 기준선 macd지표3.10.16 변경했는데 구현이 잘 안되네요 도와주십시요 위에서 수식에는 추세지표 macd 인것 같은데 30봉 하이켄아시 강세약세 macd(3.10.16) 구현을 꼭 부탁드립니다010 532 0072 조용식
프로필 이미지
조용식
2026-10-21
85
글번호 233948
지표
답변완료

안녕하세요

A = sum(H+L+C)/3*V);B = ValueWhen(1, date != date(1), A(1));A1 = sum(v);B1 = ValueWhen(1, date != date(1), A1(1));VWAP = (A-B)/(A1-B1);RSI_VWAP = sum(if(VWAP-VWAP(1) > 0, VWAP-VWAP(1), 0), 17)/sum(if(VWAP-VWAP(1) > 0, VWAP-VWAP(1),VWAP(1)-VWAP), 17)*100;RSI_VWAP <= 20;수식 변환 부탁드립니다수고하세요
프로필 이미지
오중부
2026-10-21
74
글번호 233944
지표
답변완료

문의 드립니다.~~~~

손절 트레일링스탑식 부탁드립니다.1,매수진입 후 a틱 손실 도달시부터 추적하여 b틱트레일링 스탑2,매도진입 후 a틱 손실 도달시부터 추적하여 b틱트레일링 스탑수고하세요~~
프로필 이미지
예스요
2026-10-21
55
글번호 233943
시스템
답변완료

TV에 있는 williams variable A/D Pressure 라는 지표식입니다.

TV에 있는 williams variable A/D Pressure 라는 지표식입니다.이걸 Y랭귀지로 전환이 가능할까요?너무 길어서 죄송합니다. ㅠㅠ// This work is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International// https://creativecommons.org/licenses/by-nc-sa/4.0/// © MarkitTick//@version=6indicator(title = "Williams Variable A/D Pressure [MarkitTick]", overlay = false, precision = 2, format = format.volume, max_labels_count = 500)// ── INPUTS ─────────────────────────────────────────────────var string GRP_CORE = "⚙️ Core Settings"i_wvadLen = input.int(20, "WVAD Period", group = GRP_CORE, minval = 1, tooltip = "Summation length for Williams' Variable A/D")i_sigLen = input.int(9, "Signal Length", group = GRP_CORE, minval = 1)var string GRP_FILT = "🕯️ Filters"i_useHtf = input.bool(false, "🕐 Use HTF Confirmation", group = GRP_FILT)i_htfTf = input.timeframe("60", "HTF Timeframe", group = GRP_FILT)i_useAdxFilter = input.bool(false, "📈 Use ADX Filter", group = GRP_FILT)i_adxThresh = input.float(20.0, "ADX Threshold", group = GRP_FILT, minval = 0, step = 0.5)i_adxLen = input.int(14, "ADX Length", group = GRP_FILT, minval = 1)i_adaptFilterType = input.string("SMA", "🧠 Adaptive Filter", options = ["None", "SMA", "EMA", "RMA", "Double WMA", "Triple VWMA", "HMA", "LLAMA", "Kalman Filter"], group = GRP_FILT)i_adaptFilterLen = input.int(9, "Adaptive Filter Length", group = GRP_FILT, minval = 1, maxval = 500)var string GRP_TRADE = "📐 Trade Tools"i_lockSignal = input.bool(false, "🔒 Lock Signal", group = GRP_TRADE, tooltip = "Freeze current signal · block new ones")i_showLevels = input.bool(true, "Show Trade Levels", group = GRP_TRADE)i_slMult = input.float(1.5, "SL × ATR", group = GRP_TRADE, minval = 0.1, step = 0.1)i_tp1Mult = input.float(1.0, "TP1 × R", group = GRP_TRADE, minval = 0.1, step = 0.1)i_tp2Mult = input.float(2.0, "TP2 × R", group = GRP_TRADE, minval = 0.1, step = 0.1)i_tp3Mult = input.float(3.0, "TP3 × R", group = GRP_TRADE, minval = 0.1, step = 0.1)i_atrLen = input.int(14, "ATR Length", group = GRP_TRADE, minval = 1)var string GRP_VIS = "🎨 Visuals"i_showHist = input.bool(true, "Show Histogram", group = GRP_VIS)i_showLines = input.bool(true, "Show WVAD/Signal Lines", group = GRP_VIS)i_showMarkers = input.bool(true, "Show Signal Markers", group = GRP_VIS)i_showZero = input.bool(true, "Show Zero Line", group = GRP_VIS)i_showCandles = input.bool(true, "Color Candles", group = GRP_VIS)var string GRP_DASH = "📊 Dashboard"i_showDash = input.bool(true, "Show Dashboard", group = GRP_DASH)i_dashPos = input.string("Top Right", "Position", group = GRP_DASH, options = ["Top Right", "Top Left", "Bottom Right", "Bottom Left"])var string GRP_WH = "🔔 Alerts"i_actionLong = input.string("long", "↑ Long Action", group = GRP_WH)i_actionShort = input.string("short", "↓ Short Action", group = GRP_WH)i_actionCloseLong = input.string("closelong", "✕ Close Long Action", group = GRP_WH)i_actionCloseShort = input.string("closeshort", "✕ Close Short Action", group = GRP_WH)i_actionTp1 = input.string("tp1", "◆ TP1 Hit Action", group = GRP_WH)i_actionTp2 = input.string("tp2", "✦ TP2 Hit Action", group = GRP_WH)i_actionTp3 = input.string("tp3", "◆ TP3 Hit Action", group = GRP_WH)i_actionSl = input.string("sl", "✕ SL Hit Action", group = GRP_WH)var string GRP_COL = "🌈 Colors"c_wvadLine = input.color(color.new(#2196f3, 0), "WVAD Line", group = GRP_COL)c_sigLine = input.color(color.new(#ff9800, 0), "Signal Line", group = GRP_COL)c_histUp1 = input.color(color.new(#26a69a, 0), "Hist Rising +", group = GRP_COL)c_histUp2 = input.color(color.new(#26a69a, 60), "Hist Falling +", group = GRP_COL)c_histDn1 = input.color(color.new(#ef5350, 0), "Hist Falling -", group = GRP_COL)c_histDn2 = input.color(color.new(#ef5350, 60), "Hist Rising -", group = GRP_COL)c_zeroLine = input.color(color.new(#787b86, 50), "Zero Line", group = GRP_COL)c_markerLong = input.color(color.new(#26a69a, 0), "Long Marker", group = GRP_COL)c_markerShort = input.color(color.new(#ef5350, 0), "Short Marker", group = GRP_COL)c_markerTxt = input.color(color.new(#ffffff, 0), "Signal Marker Text", group = GRP_COL)c_candBullBody = input.color(color.new(#26a69a, 0), "Candle Bull Body", group = GRP_COL)c_candBearBody = input.color(color.new(#ef5350, 0), "Candle Bear Body", group = GRP_COL)c_candNeutBody = input.color(color.new(#787b86, 0), "Candle Neutral Body", group = GRP_COL)c_candBullBrd = input.color(color.new(#26a69a, 0), "Candle Bull Border", group = GRP_COL)c_candBearBrd = input.color(color.new(#ef5350, 0), "Candle Bear Border", group = GRP_COL)c_candNeutBrd = input.color(color.new(#787b86, 0), "Candle Neutral Border", group = GRP_COL)c_slLevel = input.color(color.new(#ef5350, 0), "SL Level", group = GRP_COL)c_entryLevel = input.color(color.new(#2196f3, 0), "Entry Level", group = GRP_COL)c_tp1Level = input.color(color.new(#26a69a, 40), "TP1 Level", group = GRP_COL)c_tp2Level = input.color(color.new(#26a69a, 20), "TP2 Level", group = GRP_COL)c_tp3Level = input.color(color.new(#26a69a, 0), "TP3 Level", group = GRP_COL)c_riskFill = input.color(color.new(#ef5350, 80), "Risk Fill", group = GRP_COL)c_rewardFill = input.color(color.new(#26a69a, 85), "Reward Fill", group = GRP_COL)c_lvlTxt = input.color(color.new(#ffffff, 0), "Level Label Text", group = GRP_COL)C_DASH_HDR = input.color(color.new(#3a2a6d, 55), "Dash Header", group = GRP_COL)C_DASH_BG = input.color(color.new(#0a0f1a, 10), "Dash Background", group = GRP_COL)C_DASH_TXT = input.color(color.new(#ffffff, 0), "Dash Text", group = GRP_COL)C_SUP = input.color(color.new(#26a69a, 0), "Bullish Value", group = GRP_COL)C_RES = input.color(color.new(#ef5350, 0), "Bearish Value", group = GRP_COL)// ── CORE LOGIC ────────────────────────────────────────────f_sma(float src, int len) => ta.sma(src, len)f_ema(float src, int len) => ta.ema(src, len)f_rma(float src, int len) => ta.rma(src, len)f_doubleWma(float src, int len) => float _wma1 = ta.wma(src, len) float _wma2 = ta.wma(_wma1, len) _wma2f_tripleVwma(float src, int len) => float _vwma1 = ta.vwma(src, len) float _vwma2 = ta.vwma(_vwma1, len) float _vwma3 = ta.vwma(_vwma2, len) _vwma3f_hma(float src, int len) => ta.hma(src, len)f_kalman(float src, int len) => var float _est = na var float _err = 1.0 float _q = 1.0 / len float _r = 1.0 _est := na(_est) ? src : _est float _predErr = _err + _q float _gain = _predErr / (_predErr + _r) _est := _est + _gain * (src - _est) _err := (1 - _gain) * _predErr _estf_llama(float src, int len) => float _mean = ta.sma(src, len) float _slope = (src - src[len]) / len _mean + _slope * (len / 2)f_bar(float val, float maxVal) => int filled = math.round(math.min(val / maxVal, 1.0) * 10) string bar = "" for i = 1 to 10 bar += i <= filled ? "█" : "░" bar + " " + str.tostring(math.round(math.min(val / maxVal, 1.0) * 100)) + "%"f_barColor(float pct) => pct >= 0.66 ? color.new(#26a69a, 0) : pct >= 0.33 ? color.new(#f9a825, 0) : color.new(#ef5350, 0)f_tf() => string _u = str.substring(timeframe.period, str.length(timeframe.period) - 1, str.length(timeframe.period)) float _tfNum = str.tonumber(timeframe.period) _u == "S" ? timeframe.period : _u == "D" ? timeframe.period : _u == "W" ? timeframe.period : _u == "M" ? timeframe.period : na(_tfNum) ? timeframe.period : _tfNum % 60 == 0 ? str.tostring(_tfNum / 60) + "H" : timeframe.period + "m"f_num(float val) => float _a = math.abs(val) string _s = val < 0 ? "-" : "" _a >= 1000000000 ? _s + str.tostring(_a / 1000000000, "#.#") + "B" : _a >= 1000000 ? _s + str.tostring(_a / 1000000, "#.#") + "M" : _a >= 1000 ? _s + str.tostring(_a / 1000, "#.#") + "K" : _s + str.tostring(_a, "#")float rawWvad = high != low ? (close - open) / (high - low) * volume : 0.0float wvadSum = ta.sma(rawWvad, i_wvadLen) * i_wvadLenmax_bars_back(wvadSum, 500)float _adaptedSrc = i_adaptFilterType == "SMA" ? f_sma(wvadSum, i_adaptFilterLen) : i_adaptFilterType == "EMA" ? f_ema(wvadSum, i_adaptFilterLen) : i_adaptFilterType == "RMA" ? f_rma(wvadSum, i_adaptFilterLen) : i_adaptFilterType == "Double WMA" ? f_doubleWma(wvadSum, i_adaptFilterLen) : i_adaptFilterType == "Triple VWMA" ? f_tripleVwma(wvadSum, i_adaptFilterLen) : i_adaptFilterType == "HMA" ? f_hma(wvadSum, i_adaptFilterLen) : i_adaptFilterType == "LLAMA" ? f_llama(wvadSum, i_adaptFilterLen) : i_adaptFilterType == "Kalman Filter" ? f_kalman(wvadSum, i_adaptFilterLen) : wvadSumfloat finalWvad = _adaptedSrcfloat signalLine = ta.sma(finalWvad, i_sigLen)float histWvad = finalWvad - signalLine[_, __, _adxVal] = ta.dmi(i_adxLen, i_adxLen)bool _adxPass = not i_useAdxFilter or _adxVal[1] >= i_adxThresh[htfClose, htfOpen] = request.security(syminfo.tickerid, i_htfTf, [close[1], open[1]], lookahead = barmerge.lookahead_on)bool htfBullish = htfClose > htfOpenbool htfBearish = htfClose < htfOpenbool _htfPassLong = not i_useHtf or htfBullishbool _htfPassShort = not i_useHtf or htfBearishbool _rawLongSignal = ta.crossover(finalWvad[1], signalLine[1])bool _rawShortSignal = ta.crossunder(finalWvad[1], signalLine[1])bool longSignal = _rawLongSignal and _adxPass and _htfPassLongbool shortSignal = _rawShortSignal and _adxPass and _htfPassShortfloat avgVol = ta.sma(volume, 20)float volRatio = avgVol > 0 ? volume / avgVol : 0.0float volPct = avgVol > 0 ? math.min(volRatio / 2.0, 1.0) : 0.0float strengthMax = ta.highest(math.abs(finalWvad), 100)float strengthRaw = strengthMax > 0 ? math.abs(finalWvad) / strengthMax : 0.0float _atr = ta.atr(i_atrLen)var line slLine = navar line entryLine = navar line tp1Line = navar line tp2Line = navar line tp3Line = navar label slLbl = navar label entryLbl = navar label tp1Lbl = navar label tp2Lbl = navar label tp3Lbl = navar linefill riskFill = navar linefill rewardFill = navar float entryPrice = navar float slPrice = navar float tp1Price = navar float tp2Price = navar float tp3Price = navar bool isLong = falsevar bool tp1Hit = falsevar bool tp2Hit = falsevar bool tp3Hit = falsevar bool slHit = falsebool _locked = i_lockSignal and barstate.islastbool _calcLevels = (longSignal or shortSignal) and not _lockedbool _drawLevels = i_showLevels and _calcLevelsvar int _closeBar = naf_pctTxt(float lvl, float entry, bool dir) => float _p = (dir ? lvl - entry : entry - lvl) / entry * 100 (_p >= 0 ? "+" : "") + str.tostring(_p, "#.00") + "%"f_deleteLevels() => line.delete(slLine) line.delete(entryLine) line.delete(tp1Line) line.delete(tp2Line) line.delete(tp3Line) label.delete(slLbl) label.delete(entryLbl) label.delete(tp1Lbl) label.delete(tp2Lbl) label.delete(tp3Lbl) linefill.delete(riskFill) linefill.delete(rewardFill)if _calcLevels tp1Hit := false tp2Hit := false tp3Hit := false slHit := false _closeBar := na isLong := longSignal entryPrice := close[1] float _risk = _atr[1] * i_slMult slPrice := longSignal ? close[1] - _risk : close[1] + _risk tp1Price := longSignal ? close[1] + _risk * i_tp1Mult : close[1] - _risk * i_tp1Mult tp2Price := longSignal ? close[1] + _risk * i_tp2Mult : close[1] - _risk * i_tp2Mult tp3Price := longSignal ? close[1] + _risk * i_tp3Mult : close[1] - _risk * i_tp3Multbool _tp1Cross = not na(tp1Price) and (isLong ? high >= tp1Price : low <= tp1Price)bool _tp2Cross = not na(tp2Price) and (isLong ? high >= tp2Price : low <= tp2Price)bool _tp3Cross = not na(tp3Price) and (isLong ? high >= tp3Price : low <= tp3Price)bool _slCross = not na(slPrice) and (isLong ? low <= slPrice : high >= slPrice)bool _tp1Fire = not na(tp1Price) and not tp1Hit and not slHit and _tp1Crossbool _tp2Fire = not na(tp2Price) and not tp2Hit and not slHit and _tp2Crossbool _tp3Fire = not na(tp3Price) and not tp3Hit and not slHit and _tp3Crossbool _slFire = not na(slPrice) and not slHit and _slCross// ── ALERTS ────────────────────────────────────────────────string _longInner = str.format( '"action":"{0}","ticker":"{1}","tf":"{2}","direction":"long","entry":"{3}","wvad":"{4}","signal":"{5}"', i_actionLong, syminfo.tickerid, timeframe.period, str.tostring(entryPrice, format.mintick), str.tostring(finalWvad, format.mintick), str.tostring(signalLine, format.mintick))string longPayload = "{" + _longInner + "}"string _shortInner = str.format( '"action":"{0}","ticker":"{1}","tf":"{2}","direction":"short","entry":"{3}","wvad":"{4}","signal":"{5}"', i_actionShort, syminfo.tickerid, timeframe.period, str.tostring(entryPrice, format.mintick), str.tostring(finalWvad, format.mintick), str.tostring(signalLine, format.mintick))string shortPayload = "{" + _shortInner + "}"string _closeLongInner = str.format( '"action":"{0}","ticker":"{1}","tf":"{2}","direction":"closelong"', i_actionCloseLong, syminfo.tickerid, timeframe.period)string closeLongPayload = "{" + _closeLongInner + "}"string _closeShortInner = str.format( '"action":"{0}","ticker":"{1}","tf":"{2}","direction":"closeshort"', i_actionCloseShort, syminfo.tickerid, timeframe.period)string closeShortPayload = "{" + _closeShortInner + "}"if longSignal and barstate.isconfirmed alert(closeShortPayload, alert.freq_once_per_bar_close)if longSignal and barstate.isconfirmed alert(longPayload, alert.freq_once_per_bar_close)if shortSignal and barstate.isconfirmed alert(closeLongPayload, alert.freq_once_per_bar_close)if shortSignal and barstate.isconfirmed alert(shortPayload, alert.freq_once_per_bar_close)alertcondition(longSignal and barstate.isconfirmed, "BUY Signal", "MarkitTick — WVADP BUY Signal Fired")alertcondition(shortSignal and barstate.isconfirmed, "SELL Signal", "MarkitTick — WVADP SELL Signal Fired")alertcondition(shortSignal and barstate.isconfirmed, "Close Long Signal", "MarkitTick — Close Long")alertcondition(longSignal and barstate.isconfirmed, "Close Short Signal", "MarkitTick — Close Short")string _tpDir = isLong ? "long" : "short"string _tp1Inner = str.format( '"action":"{0}","ticker":"{1}","tf":"{2}","direction":"{3}","entry":"{4}","tp":"{5}"', i_actionTp1, syminfo.tickerid, timeframe.period, _tpDir, str.tostring(entryPrice, format.mintick), str.tostring(tp1Price, format.mintick))string tp1Payload = "{" + _tp1Inner + "}"string _tp2Inner = str.format( '"action":"{0}","ticker":"{1}","tf":"{2}","direction":"{3}","entry":"{4}","tp":"{5}"', i_actionTp2, syminfo.tickerid, timeframe.period, _tpDir, str.tostring(entryPrice, format.mintick), str.tostring(tp2Price, format.mintick))string tp2Payload = "{" + _tp2Inner + "}"string _tp3Inner = str.format( '"action":"{0}","ticker":"{1}","tf":"{2}","direction":"{3}","entry":"{4}","tp":"{5}"', i_actionTp3, syminfo.tickerid, timeframe.period, _tpDir, str.tostring(entryPrice, format.mintick), str.tostring(tp3Price, format.mintick))string tp3Payload = "{" + _tp3Inner + "}"string _slInner = str.format( '"action":"{0}","ticker":"{1}","tf":"{2}","direction":"{3}","entry":"{4}","sl":"{5}"', i_actionSl, syminfo.tickerid, timeframe.period, _tpDir, str.tostring(entryPrice, format.mintick), str.tostring(slPrice, format.mintick))string slPayload = "{" + _slInner + "}"if _tp1Fire alert(tp1Payload, alert.freq_once_per_bar)if _tp2Fire alert(tp2Payload, alert.freq_once_per_bar)if _tp3Fire alert(tp3Payload, alert.freq_once_per_bar)if _slFire alert(slPayload, alert.freq_once_per_bar)alertcondition(_tp1Fire, "TP1 Hit", "MarkitTick — WVADP TP1 Hit")alertcondition(_tp2Fire, "TP2 Hit", "MarkitTick — WVADP TP2 Hit")alertcondition(_tp3Fire, "TP3 Hit", "MarkitTick — WVADP TP3 Hit")alertcondition(_slFire, "SL Hit", "MarkitTick — WVADP SL Hit")// ── VISUALS ───────────────────────────────────────────────color _histColor = histWvad >= 0 ? (histWvad >= histWvad[1] ? c_histUp1 : c_histUp2) : (histWvad <= histWvad[1] ? c_histDn1 : c_histDn2)plot(i_showZero ? 0.0 : na, "Zero Line", color = c_zeroLine, style = plot.style_line, linewidth = 1)plot(i_showHist ? histWvad : na, "Histogram", color = _histColor, style = plot.style_columns)plot(i_showLines ? finalWvad : na, "WVAD", color = c_wvadLine, linewidth = 2)plot(i_showLines ? signalLine : na, "Signal", color = c_sigLine, linewidth = 1)if i_showMarkers and longSignal label.new(bar_index, finalWvad, "BULL", style = label.style_label_up, color = c_markerLong, textcolor = c_markerTxt, size = size.small) label.new(bar_index, na, "BULL", yloc = yloc.belowbar, style = label.style_label_up, color = c_markerLong, textcolor = c_markerTxt, size = size.small, force_overlay = true)if i_showMarkers and shortSignal label.new(bar_index, finalWvad, "BEAR", style = label.style_label_down, color = c_markerShort, textcolor = c_markerTxt, size = size.small) label.new(bar_index, na, "BEAR", yloc = yloc.abovebar, style = label.style_label_down, color = c_markerShort, textcolor = c_markerTxt, size = size.small, force_overlay = true)color _candleBody = finalWvad > signalLine ? c_candBullBody : finalWvad < signalLine ? c_candBearBody : c_candNeutBodycolor _candleBorder = finalWvad > signalLine ? c_candBullBrd : finalWvad < signalLine ? c_candBearBrd : c_candNeutBrdplotcandle(i_showCandles ? open : na, i_showCandles ? high : na, i_showCandles ? low : na, i_showCandles ? close : na, title = "Heatmap Candles", color = _candleBody, wickcolor = _candleBorder, bordercolor = _candleBorder, force_overlay = true)if _drawLevels f_deleteLevels() int _x2 = bar_index + 10 slLine := line.new(bar_index, slPrice, _x2, slPrice, color = c_slLevel, style = line.style_solid, width = 2, force_overlay = true) entryLine := line.new(bar_index, entryPrice, _x2, entryPrice, color = c_entryLevel, style = line.style_dashed, width = 1, force_overlay = true) tp1Line := line.new(bar_index, tp1Price, _x2, tp1Price, color = c_tp1Level, style = line.style_dashed, width = 1, force_overlay = true) tp2Line := line.new(bar_index, tp2Price, _x2, tp2Price, color = c_tp2Level, style = line.style_dashed, width = 1, force_overlay = true) tp3Line := line.new(bar_index, tp3Price, _x2, tp3Price, color = c_tp3Level, style = line.style_dashed, width = 1, force_overlay = true) slLbl := label.new(_x2, slPrice, "✕ SL " + str.tostring(slPrice, format.mintick), style = label.style_label_left, color = c_slLevel, textcolor = c_lvlTxt, size = size.small, force_overlay = true) entryLbl := label.new(_x2, entryPrice, "▶ Entry " + str.tostring(entryPrice, format.mintick), style = label.style_label_left, color = c_entryLevel, textcolor = c_lvlTxt, size = size.small, force_overlay = true) tp1Lbl := label.new(_x2, tp1Price, "◆ TP1 " + str.tostring(tp1Price, format.mintick), style = label.style_label_left, color = c_tp1Level, textcolor = c_lvlTxt, size = size.small, force_overlay = true) tp2Lbl := label.new(_x2, tp2Price, "✦ TP2 " + str.tostring(tp2Price, format.mintick), style = label.style_label_left, color = c_tp2Level, textcolor = c_lvlTxt, size = size.small, force_overlay = true) tp3Lbl := label.new(_x2, tp3Price, "◆ TP3 " + str.tostring(tp3Price, format.mintick), style = label.style_label_left, color = c_tp3Level, textcolor = c_lvlTxt, size = size.small, force_overlay = true) riskFill := linefill.new(slLine, entryLine, c_riskFill) rewardFill := linefill.new(entryLine, tp3Line, c_rewardFill)if _tp1Fire tp1Hit := true label.set_text(tp1Lbl, "TP1 ✓ HIT " + f_pctTxt(tp1Price, entryPrice, isLong))if _tp2Fire tp2Hit := true label.set_text(tp2Lbl, "TP2 ✓ HIT " + f_pctTxt(tp2Price, entryPrice, isLong))if _tp3Fire tp3Hit := true label.set_text(tp3Lbl, "TP3 ✓ HIT " + f_pctTxt(tp3Price, entryPrice, isLong))if _slFire slHit := true label.set_text(slLbl, "SL ✓ HIT " + f_pctTxt(slPrice, entryPrice, isLong))bool _tradeClosed = slHit or tp3Hitif not na(slLine) and _tradeClosed and na(_closeBar) _closeBar := bar_indexbool _extUpdate = _tradeClosed ? _closeBar == bar_index : barstate.islastif not na(slLine) and _extUpdate int _extX = _tradeClosed ? _closeBar + 10 : last_bar_index + 10 line.set_x2(slLine, _extX) line.set_x2(entryLine, _extX) line.set_x2(tp1Line, _extX) line.set_x2(tp2Line, _extX) line.set_x2(tp3Line, _extX) label.set_x(slLbl, _extX) label.set_x(entryLbl, _extX) label.set_x(tp1Lbl, _extX) label.set_x(tp2Lbl, _extX) label.set_x(tp3Lbl, _extX)// ── DASHBOARD ─────────────────────────────────────────────var string tablePosition = i_dashPos == "Top Right" ? position.top_right : i_dashPos == "Top Left" ? position.top_left : i_dashPos == "Bottom Right" ? position.bottom_right : position.bottom_leftvar table dash = table.new(tablePosition, 2, 18, bgcolor = na, border_width = 1, border_color = color.new(#2a3040, 40), frame_width = 1, frame_color = color.new(#3a2a6d, 40), force_overlay = true)color row_a = C_DASH_BGcolor row_b = color.new(C_DASH_BG, 40)color lbl_col = color.new(C_DASH_TXT, 25)string biasStr = finalWvad > signalLine ? "BULLISH " : finalWvad < signalLine ? "BEARISH " : "NEUTRAL "color biasColor = finalWvad > signalLine ? C_SUP : finalWvad < signalLine ? C_RES : C_DASH_TXTcolor wvadColor = finalWvad >= 0 ? C_SUP : C_REScolor histColorTxt = histWvad >= 0 ? C_SUP : C_RESstring htfBiasStr = not i_useHtf ? "OFF " : htfBullish ? "BULL " : htfBearish ? "BEAR " : "FLAT "color htfColor = not i_useHtf ? C_DASH_TXT : htfBullish ? C_SUP : htfBearish ? C_RES : C_DASH_TXTcolor adxColor = _adxPass ? C_SUP : C_RESstring lockStr = i_lockSignal ? "ACTIVE " : "OFF "color lockCol = i_lockSignal ? C_RES : C_DASH_TXTstring tradeStr = na(entryPrice) ? "— " : isLong ? "LONG " : "SHORT "color tradeCol = na(entryPrice) ? C_DASH_TXT : isLong ? C_SUP : C_RESstring entryStr = na(entryPrice) ? "— " : str.tostring(entryPrice, format.mintick) + " "string slStr = na(slPrice) ? "— " : str.tostring(slPrice, format.mintick) + " "string tp1Str = na(tp1Price) ? "— " : str.tostring(tp1Price, format.mintick) + " "string tp2Str = na(tp2Price) ? "— " : str.tostring(tp2Price, format.mintick) + " "string tp3Str = na(tp3Price) ? "— " : str.tostring(tp3Price, format.mintick) + " "color slCol = slHit ? C_RES : C_DASH_TXTcolor tp1Col = tp1Hit ? C_SUP : C_DASH_TXTcolor tp2Col = tp2Hit ? C_SUP : C_DASH_TXTcolor tp3Col = tp3Hit ? C_SUP : C_DASH_TXTif i_showDash table.cell(dash, 0, 0, "WVADP", text_color = C_DASH_TXT, text_size = size.small, text_halign = text.align_left, bgcolor = C_DASH_HDR) table.cell(dash, 1, 0, syminfo.ticker + " · " + f_tf(), text_color = C_DASH_TXT, text_size = size.small, text_halign = text.align_right, bgcolor = C_DASH_HDR) table.cell(dash, 0, 1, " Lock", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = row_a) table.cell(dash, 1, 1, lockStr, text_color = lockCol, text_size = size.small, text_halign = text.align_right, bgcolor = row_a) table.cell(dash, 0, 2, " Bias", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = row_b) table.cell(dash, 1, 2, biasStr, text_color = biasColor, text_size = size.small, text_halign = text.align_right, bgcolor = row_b) table.cell(dash, 0, 3, " WVAD", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = row_a) table.cell(dash, 1, 3, str.tostring(finalWvad, "#.##") + " ", text_color = wvadColor, text_size = size.small, text_halign = text.align_right, bgcolor = row_a) table.cell(dash, 0, 4, " Signal", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = row_b) table.cell(dash, 1, 4, str.tostring(signalLine, "#.##") + " ", text_color = C_DASH_TXT, text_size = size.small, text_halign = text.align_right, bgcolor = row_b) table.cell(dash, 0, 5, " Histogram", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = row_a) table.cell(dash, 1, 5, str.tostring(histWvad, "#.##") + " ", text_color = histColorTxt, text_size = size.small, text_halign = text.align_right, bgcolor = row_a) table.cell(dash, 0, 6, " Strength", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = row_b) table.cell(dash, 1, 6, f_bar(strengthRaw, 1.0) + " ", text_color = f_barColor(strengthRaw), text_size = size.small, text_halign = text.align_right, bgcolor = row_b) table.cell(dash, 0, 7, " Volume", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = row_a) table.cell(dash, 1, 7, f_num(volume) + " ", text_color = C_DASH_TXT, text_size = size.small, text_halign = text.align_right, bgcolor = row_a) table.cell(dash, 0, 8, " Vol Ratio", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = row_b) table.cell(dash, 1, 8, f_bar(volRatio, 2.0) + " ", text_color = f_barColor(volPct), text_size = size.small, text_halign = text.align_right, bgcolor = row_b) int _row = 9 if i_useHtf color _rowBg = _row % 2 == 1 ? row_a : row_b table.cell(dash, 0, _row, " HTF Bias", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = _rowBg) table.cell(dash, 1, _row, htfBiasStr, text_color = htfColor, text_size = size.small, text_halign = text.align_right, bgcolor = _rowBg) _row += 1 if i_useAdxFilter color _rowBg = _row % 2 == 1 ? row_a : row_b table.cell(dash, 0, _row, " ADX", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = _rowBg) table.cell(dash, 1, _row, str.tostring(_adxVal, "#.##") + " ", text_color = adxColor, text_size = size.small, text_halign = text.align_right, bgcolor = _rowBg) _row += 1 if i_adaptFilterType != "None" color _rowBg = _row % 2 == 1 ? row_a : row_b table.cell(dash, 0, _row, " Adapt Filter", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = _rowBg) table.cell(dash, 1, _row, i_adaptFilterType + " ", text_color = C_DASH_TXT, text_size = size.small, text_halign = text.align_right, bgcolor = _rowBg) _row += 1 color _rowBgTrade = _row % 2 == 1 ? row_a : row_b table.cell(dash, 0, _row, " Trade", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = _rowBgTrade) table.cell(dash, 1, _row, tradeStr, text_color = tradeCol, text_size = size.small, text_halign = text.align_right, bgcolor = _rowBgTrade) _row += 1 color _rowBgEntry = _row % 2 == 1 ? row_a : row_b table.cell(dash, 0, _row, " Entry", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = _rowBgEntry) table.cell(dash, 1, _row, entryStr, text_color = C_DASH_TXT, text_size = size.small, text_halign = text.align_right, bgcolor = _rowBgEntry) _row += 1 color _rowBgSl = _row % 2 == 1 ? row_a : row_b table.cell(dash, 0, _row, " SL", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = _rowBgSl) table.cell(dash, 1, _row, slStr, text_color = slCol, text_size = size.small, text_halign = text.align_right, bgcolor = _rowBgSl) _row += 1 color _rowBgTp1 = _row % 2 == 1 ? row_a : row_b table.cell(dash, 0, _row, " TP1", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = _rowBgTp1) table.cell(dash, 1, _row, tp1Str, text_color = tp1Col, text_size = size.small, text_halign = text.align_right, bgcolor = _rowBgTp1) _row += 1 color _rowBgTp2 = _row % 2 == 1 ? row_a : row_b table.cell(dash, 0, _row, " TP2", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = _rowBgTp2) table.cell(dash, 1, _row, tp2Str, text_color = tp2Col, text_size = size.small, text_halign = text.align_right, bgcolor = _rowBgTp2) _row += 1 color _rowBgTp3 = _row % 2 == 1 ? row_a : row_b table.cell(dash, 0, _row, " TP3", text_color = lbl_col, text_size = size.small, text_halign = text.align_left, bgcolor = _rowBgTp3) table.cell(dash, 1, _row, tp3Str, text_color = tp3Col, text_size = size.small, text_halign = text.align_right, bgcolor = _rowBgTp3) _row += 1
프로필 이미지
jhs0713
2026-10-21
94
글번호 233942
지표
답변완료

신호수식을 종목검색으로문의드립니다

1.b1=기준=ma(가격,기간,종류);a=sum(if(가격>기준,가격-기준,0),기간2)/sum(if(가격>기준,1,0),기간2);b2=기준+a;crossup(b2,b1)---------------------지표변수가격 종가기간 60종류 단순기간2 202.C_Bp=(C-BBandsDown(Period,D1))/(BBandsUp(Period,D1)-BBandsDown(Period,D1))*100;M_Bp=((C+o)/2-BBandsDown(Period,D1))/(BBandsUp(Period,D1)- BBandsDown(Period,D1)) * 100;M조건=M_Bp>=50 && M_Bp<=100;S조건=sum(M조건, 연속횟수)==연속횟수;S조건(1) && CrossUp(C_Bp, 100)----------------지표변수period 20d1 2.0연속횟수 73.a=bbandsup(40,2);b=bbandsup(300,2);crossup(a,b)3가지 입니다. 감사합니다.
프로필 이미지
우주최강
2026-10-21
68
글번호 233941
종목검색
답변완료

수고하십니다

항상 좋은 일만 있으시기 바랍니다4봉이상 다수봉최고가에 나와야 하는데다르게 나옵니다바로 잡아 주시기 바랍니다>var : haClose(0),haOpen(0),haHigh(0),haLow(0);var : T(0);var : pd(0),pt(0),ph(0),phh(0),pl(0),pm(0),pbox(0);var : tl1(0),tl2(0),tl3(0),tl4(0),tl5(0);#Heiken Ashi 시고저종haClose = (O+H+L+C)/4;haOpen = iff(index == 0,open,(haOpen [1] + haClose [1])/2) ;haHigh = MaxList(High, haOpen, haClose) ;haLow = MinList(Low, haOpen, haClose) ;if CountIf(haClose > haOpen,4) == 4 and haClose[4] <= haOpen[4] Then{pd = sDate[2];pt = sTime[2];ph = highest(haHigh,4);pl = lowest(haLow,4);pm = (ph+pl)/2;Var1 = highest(haHigh,4);}Plot1(Var1,"highest");
프로필 이미지
2wnwn
2026-10-20
73
글번호 233939
지표
답변완료

최저가 갱신후 첫 매수 신호만 허용하는 수식 문의

var:slowline(0);slowline=Ema(L,12);If MarketPosition==0and L[1]<=SLOWLINEAnd c>=slowlineAnd C>=H[1]And C>O//And C<h[1]*3And L <H[1]*1.5Then{Buy("entry",OnClose,Def,1);}1,해당 옵션이 상장 이후 최저가를 새로 기록하면 진입을 준비합니다2,이후 위 매수 조전을 처음 충족할 때 한번만 진입합니다3,청산 후에는 최저가를 다시 갱신하기 전 까지 재 진입하지 않도록 보완 부탁 드립니다상장 이후 최저가를 정확히 계산 하려면 차트 설정을 어떻게 해야하는지도 알려 주세요
프로필 이미지
조은날
2026-10-20
60
글번호 233938
시스템
답변완료

왜 계속 시스템 에러가 발생할까요??

09:16분에 매도 진입해서 청산하는 것이 시스템상에 나타난 신호입니다.그런데 실제 계약은 주황색 2곳에서 매도 진입과 매수 청산이 나왔습니다. 앞서도 금액이 적어서 그냥 넘어는 갔는데..특히 이번건의 경우엔 중간에 보시면 회색라인에서 나타난 실거래 건이라서이렇게 문의를 드립니다...회색범위의 경우 아래쪽 시그널이 3:3을 형성해서 절대적으로 거래가 나타날 수 없는 시기입니다..왜 이럴까요?? 제 함수의 문제인지 아니면 예스스탁 시스템상의 문제인지 궁금합니다!!!
프로필 이미지
쪽박부활
2026-10-20
56
글번호 233931
사용자 함수