커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

수식의미 문의

코스피 선물에서 setstoptrailing(1,3,pointstop,1)에서 마지막 1의 의미는 무엇인가요?해외선물에서는 setstoptrailing(15,50,pointstop,0.25)로 표현하든데 0.25의 의미가 무엇인가요?
프로필 이미지
사이버
2025-11-08
44
글번호 227779
시스템
답변완료

종목검색식 부탁드립니다

1. 단순 60 이평이 단순 120이평 골든크로스 종목검색식 부탁드립니다.
프로필 이미지
일지매7
2025-11-08
59
글번호 227778
종목검색
답변완료

문의

스톡캐시틱 80넘거나 20이하인 구간에 색으로 채워지던데 그 색을 채우는 지표식이 궁금합니다. RSI도 궁금합니다.또한 이평정배열 만들면 정배열 구간이 다 신호가 나오는데 이평정배열 나오는 첫날만 신호가 나오게 해주셔요마지막으로 이평이 상승추세로 예를들어 5 20 60일선이 모두 상승추세로 바뀌는 구간 그 시점만 신호가 나오게 해주셔요(각이평이 순차적으로 상승추세로 바뀌는데 세이평이 모두 상승추세로 바뀌는 그 시점을 말하는 겁니다.)
프로필 이미지
엉덩공주
2025-11-08
57
글번호 227777
지표
답변완료

종목검색식으로 변환 부탁드려요.

안녕하세요.키움 강세 약세 수식이예요. 종목검색식으로 변환 부탁드려요.<TEMA50 강세약세>(강세)EMA1=eavg(c,50);EMA2=eavg(EMA1,50);EMA3=eavg(EMA2,50);B=3*EMA1-3*EMA2+EMA3;B>B(1)(약세)EMA1=eavg(c,50);EMA2=eavg(EMA1,50);EMA3=eavg(EMA2,50);B=3*EMA1-3*EMA2+EMA3;B<=B(1)
프로필 이미지
성찰
2025-11-07
104
글번호 227774
종목검색
답변완료

조건검색 문의

이동 = MA(C, 기간1);이동1 = MA(C, 기간2);조건 = CrossUp(이동, 이동1);라인 = ValueWhen(1, 조건, (H+L)/비율1);꺾임상승 = 라인 > Ref(라인, 1) AND Ref(라인, 1) <= Ref(라인, 2);꺾임하락 = 라인 < Ref(라인, 1) AND Ref(라인, 1) >= Ref(라인, 2);신호 = 꺾임상승 OR 꺾임하락;신호;종가 기준이 아닌당일 장중에서, 30분봉상 위 신호가 발생한 모-든 종목에 대해서 종목이 검출될 수 있게 해주시면 감사드리겠습니다 (__)
프로필 이미지
사공하늘
2025-11-07
79
글번호 227768
검색
답변완료

조건검색 문의

//@version=5indicator(title="Money Order Block with Bullish BOS Signals - Fixed", overlay=true, max_bars_back=5000)// Input optionsinputRange = input.int(25, "Candle Range", minval=5, maxval=100, step=1, group="BASIC SETTINGS")bullishBreakerSource = input.source(close, title="Bullish Breaker Source")bearishBreakerSource = input.source(close, title="Bearish Breaker Source")// Signal display optionsshowBullishBOS = input.bool(true, "Show Bullish BOS Signals", group="Signal Settings")bullishSignalColor = input.color(color.green, "Bullish Signal Color", group="Signal Settings")showSignalLabels = input.bool(true, "Show Signal Labels", group="Signal Settings")// optional displaysshowPD = input.bool(false, "Show Previous Day High/Low", group="Extras")showBearishBOS = input.bool(false, "Show Bearsish BOS Line", group="Extras")showBreakerCandles = input.bool(false, "Highlight Breaker Candles", group="Extras")showRetestCandles = input.bool(false, "Highlight Re-test Candles", group="Extras")showTrendColours = input.bool(false, "Show Trend Colours", group="Extras")useMitigatedBlocks = input.bool(false, "Show Mitigated Blocks", group="Extras")// colours & stylesbearishOBColour = input.color(color.rgb(219, 166, 50, 80), title="Bearish Order Block Colour", group="STYLES")bullishOBColour = input.color(color.rgb(192, 230, 174, 60), title="Bullish Order Block Colour", group="STYLES")mitigatedOBColour = input.color(color.rgb(207, 203, 202, 80), title="Mitigated Order Block Colour", group="STYLES")BOSCandleColour = input.color(color.yellow, title="Breaker Candle Colour", group="STYLES")shortRetestCandleColour = input.color(color.purple, title="Short Re-Test Candle Colour", group="STYLES")longRetestCandleColour = input.color(color.orange, title="Long Re-Test Candle Colour", group="STYLES")bullishTrendColor = input.color(color.lime, title="Bullish Trend Colour", group="STYLES")bearishTrendColour = input.color(color.red, title="Bearish Trend Colour", group="STYLES")// Bullish BOS Signalsvar bullishSignals = array.new_label()// candle colouringvar int CandleColourMode = 0var bool BosCandle = falsevar bool bullishAlert = falsevar bool bearishAlert = falsevar bool shortRetestCandle = falsevar bool longRetestCandle = false// tracking for entriesvar int lastDownIndex = 0var float lastDown = 0var float lastLow = 0var int lastUpIndex = 0var float lastUp = 0var float lastUpLow = 0var float lastUpOpen = 0var float lastHigh = 0var float lastBullBreakLow = 0// structurevar int structureLowIndex = 0float structureLow = 1000000// order block drawing arraysvar longBoxes = array.new_box()var longBoxStart = array.new_int()var longBoxState = array.new_int()var shortBoxes = array.new_box()var shortBoxStart = array.new_int()var shortBoxState = array.new_int()var bosLines = array.new_line()var int lastLongIndex = 0var int lastShortIndex = 0BosCandle := falsebullishAlert := falsebearishAlert := falseshortRetestCandle := falselongRetestCandle := false// Previous Day High/Low - Improved for replay compatibilityvar float PDH = navar float PDL = navar float dailyHigh = navar float dailyLow = naif ta.change(time("D")) PDH := dailyHigh PDL := dailyLow dailyHigh := high dailyLow := lowelse dailyHigh := math.max(nz(dailyHigh), high) dailyLow := math.min(nz(dailyLow), low)if (showPD) var line l_pdh = na, var line l_pdl = na, var label lbl_pdh = na, var label lbl_pdl = na if barstate.islast lbl_pdh := label.new(bar_index + 8, PDH, "PDH", style=label.style_label_left, textcolor=color.white) lbl_pdl := label.new(bar_index + 8, PDL, "PDL", style=label.style_label_left, textcolor=color.white) l_pdh := line.new(bar_index - 1, PDH, bar_index + 8, PDH, extend=extend.left, color=color.blue) l_pdl := line.new(bar_index - 1, PDL, bar_index + 8, PDL, extend=extend.left, color=color.blue) line.delete(l_pdh[1]) line.delete(l_pdl[1]) label.delete(lbl_pdh[1]) label.delete(lbl_pdl[1])// functionsstructureLowIndexPointer(len) => float minValue = ta.highest(high, inputRange)[1] int minIndex = bar_index for i = 1 to len if low[i] < minValue minValue := low[i] minIndex := bar_index[i] minIndexwithinBullishBlock(position) => bool result = false if (array.size(longBoxes) > 0) for i = (array.size(longBoxes) - 1) to 0 box = array.get(longBoxes, i) top = box.get_top(box) bottom = box.get_bottom(box) if (position < top and position > bottom) result := true result// get the lowest point in the rangestructureLow := ta.lowest(low, inputRange)[1]structureLowIndex := structureLowIndexPointer(inputRange)// bearish break of structureif (ta.crossunder(bearishBreakerSource, structureLow)) if ((bar_index - lastUpIndex) < 1000) array.push(shortBoxStart, bar_index) array.push(shortBoxState, 0) array.push(shortBoxes, box.new(left=lastUpIndex, top=lastHigh, bottom=lastUpLow, right=lastUpIndex, bgcolor=bearishOBColour, border_color=color.rgb(207, 203, 202, 100), extend=extend.right)) if (showBearishBOS) array.push(bosLines, line.new(structureLowIndex, structureLow, bar_index, structureLow, color=color.red, style=line.style_solid, width=2)) BosCandle := true CandleColourMode := 0 lastShortIndex := lastUpIndex bearishAlert := true// bullish break of structure - FIXED VERSIONif (array.size(shortBoxes) > 0) i = array.size(shortBoxes) - 1 while i >= 0 if i < array.size(shortBoxes) sbox = array.get(shortBoxes, i) lstart = array.get(shortBoxStart, i) lstate = array.get(shortBoxState, i) top = box.get_top(sbox) left = box.get_left(sbox) bottom = box.get_bottom(sbox) // re-test 확인 if (high > bottom and low < bottom and bar_index > lstart and lstate == 0 and useMitigatedBlocks) sbox.set_bgcolor(mitigatedOBColour) shortRetestCandle := true array.set(shortBoxState, i, 1) // Bullish BOS 신호 - barstate.islast 제거 if (bullishBreakerSource > top) // Bullish BOS Signal 표시 - 리플레이 호환 if showBullishBOS label.new(bar_index, low, "▲BOS", color=bullishSignalColor, style=label.style_label_up, textcolor=color.white, size=size.normal) bullishAlert := true // Bullish Order Block 생성 if ((bar_index - lastDownIndex) < 1000 and bar_index > lastLongIndex) array.push(longBoxStart, bar_index + 1) array.push(longBoxState, 0) array.push(longBoxes, box.new(left=lastDownIndex, top=lastDown, bottom=lastLow, right=lastDownIndex, bgcolor=bullishOBColour, border_color=color.rgb(207, 203, 202, 100), extend=extend.right)) if (showBullishBOS) array.push(bosLines, line.new(left, top, bar_index, top, color=color.green, style=line.style_solid, width=1)) BosCandle := true CandleColourMode := 1 lastLongIndex := bar_index lastBullBreakLow := low // Bearish 박스 제거 box.delete(sbox) array.remove(shortBoxState, i) array.remove(shortBoxes, i) array.remove(shortBoxStart, i) i := i - 1// 알람 조건alertcondition(bullishAlert, "Bullish break of structure", 'bullish break of structure was triggered')alertcondition(bearishAlert, "Bearish break of structure", 'bearish break of structure was triggered')alertcondition(shortRetestCandle, "Bearish order block re-tested", 'bearish order block has been re-tested')alertcondition(longRetestCandle, "Bullish order block re-tested", 'bullish order block has been re-tested')// update bullish order blocksif (array.size(longBoxes) > 0) i = array.size(longBoxes) - 1 while i >= 0 if i < array.size(longBoxes) lbox = array.get(longBoxes, i) lstart = array.get(longBoxStart, i) lstate = array.get(longBoxState, i) bottom = box.get_bottom(lbox) top = box.get_top(lbox) boxLeft = box.get_left(lbox) if (low <= top and high > top and bar_index > lstart and lstate == 0) if (useMitigatedBlocks) lbox.set_bgcolor(mitigatedOBColour) longRetestCandle := true array.set(longBoxState, i, 1) if (close < bottom) array.remove(longBoxStart, i) array.remove(longBoxState, i) array.remove(longBoxes, i) box.delete(lbox) i := i - 1// 이전 신호 레이블 정리 (성능 최적화)if barstate.islast and array.size(bullishSignals) > 0 for i = 0 to array.size(bullishSignals) - 1 if i < array.size(bullishSignals) label.delete(array.get(bullishSignals, i))// candle colouringCandleColour = CandleColourMode == 1 ? bullishTrendColor : bearishTrendColourCandleColour := BosCandle and showBreakerCandles ? BOSCandleColour : CandleColourCandleColour := shortRetestCandle and showRetestCandles ? shortRetestCandleColour : CandleColourCandleColour := longRetestCandle and showRetestCandles ? longRetestCandleColour : CandleColourbarcolor(showTrendColours ? CandleColour : na)barcolor(showBreakerCandles and BosCandle ? CandleColour : na)// record last up and down candlesif (close < open) lastDown := high lastDownIndex := bar_index lastLow := lowif (close > open) lastUp := close lastUpIndex := bar_index lastUpOpen := open lastUpLow := low lastHigh := high// update last high/lowlastHigh := high > lastHigh ? high : lastHighlastLow := low < lastLow ? low : lastLow// 디버깅용 플롯 (필요시 주석 해제)// plotshape(bullishAlert, "Bullish Alert", shape.triangleup, location.belowbar, color.green, size=size.small)// plotshape(array.size(shortBoxes) > 0, "Short Boxes Exist", shape.circle, location.abovebar, color.red, size=size.tiny)여기서 다른 것들 제외하구, 일봉상 'bos'신호가 나오는 종목에 대한 검색식을 구현시켜주시면 감사드리겠습니다 (__) 감사합니다 늘 (__)
프로필 이미지
사공하늘
2025-11-07
90
글번호 227767
검색
답변완료

수정 부탁드립니다.

if MarketPosition == -1 and Direction == -1 Then ExitShort("sx1",AtStop,var1); if bot2 < c Then ExitShort("sx3",AtStop,c); 위의 식에서 if MarketPosition == -1 and Direction == -1 then 이면서 if bot2 < c Then 조건까지 충족하면 ExitShort("sx3",AtStop,c); 청산한다를 표현하려면 어찌하나요?(if MarketPosition == -1 and Direction == -1 and bot2 < c Then 이렇게 표현하니 원하는 결과와 다르게 결과가 나오네요)
프로필 이미지
산수유
2025-11-07
82
글번호 227745
시스템
답변완료

시스템매매 관련 문의합니다..^^*

**아래예스 시스템 매매 입니다... 진입신호"b1" "b2"가 SetStopProfittarget 목표가에 익절후 진입신호"b3" 가 발생후에 "b1" "b2"가 진입이 되게는 할수 없는지요? 가능하다면 수정 부탁드립니다...input : 시작일(20250702),갭상승(2),P(20),하락per(1),분할(20);input : starttime(91500),EndTime(151500);Var : value(0),mav(0);var : Tcond(False);if Bdate != Bdate[1] Then tcond = False;if (sdate != sDate[1] and sTime >= starttime) or (sdate == sDate[1] and sTime >= starttime and sTime[1] < starttime) Then Tcond = true;if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False;Var1=rsi(32);mav = ma(c,p);value = 0;if sDate >= 시작일 and DayOpen <= DayClose(1)*(1+갭상승/100) and Tcond == true Then{ # 매수 / 매도청산 If CCI(9) > 0 Then value = 1; If MACD(12,26) > 0 Then value = value+1; If DIPlus(14) > DIMinus(14) Then value = value+1; If StochasticsK(12,5) > StochasticsD(12,5,5) Then value = value+1; # 매수/매도청산 If value >= 3 and mav > mav[1] Then { Buy("b1"); } value = 0; if MarketPosition == 1 and MaxEntries < 분할 OR MarketPosition <= 0 and value >= 3 and mav > mav[1] Then { Buy("b2",AtStop,EntryPrice(0)*(1-(하락per*MaxEntries)/100)); } if rsi(14)<32 Then buy("b3");}# 매도/매수청산If CCI(9) < 0 Then value = 1;If MACD(12,26) < 0 Then value = value+1;If DIPlus(14) < DIMinus(14) Then value = value+1;If StochasticsK(12,5) < StochasticsD(12,5,5) Then value = value+1;If value >= 3 Then{ SetStopProfittarget(7, PercentStop);}
프로필 이미지
서민순
2025-11-07
88
글번호 227744
시스템

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

늘~~ 도움에 감사드립니다.종목 검출이 되지 않아다음 수식에 무슨 문제가 있는 건지 궁금합니다.원본아래의 수식을 종목검색식으로 부탁드림니다.TEMA50 상승이 TEMA50 하락을 돌파 종목검색식을 부탁 드립니다.input : len(20); var : A(0),Ema1(0),Ema2(0),Ema3(0),B(0); A=wma(2*WMa(c,len/2) - WMa(c,len), floor(sqrt(len))); Plot1(A,"HMA 상승"); if A[1] > A Then var2 = A; Plot2(var2,"HMA 하락"); EMA1=Ema(c,50); EMA2=Ema(EMA1,50); EMA3=Ema(EMA2,50); B = 3*EMA1-3*EMA2+EMA3; plot3(B,"TEMA 상승"); if B[1] > B Then var4 = B; plot4(var4,"TEMA 하락");변환본var : Ema1(0),Ema2(0),Ema3(0),B(0);EMA1=Ema(c,50); EMA2=Ema(EMA1,50); EMA3=Ema(EMA2,50); B = 3*EMA1-3*EMA2+EMA3; if CrossUp(B,var4) Then Find(1);
프로필 이미지
성찰
2025-11-07
107
글번호 227740
종목검색
답변완료

수식 부탁드립니다

input : 익절(400),손절(100),k(40),k1(40); Buy("b",AtStop,C+PriceScale*k); Sell("s",AtStop,C-PriceScale*k1);SetStopProfittarget(익절,PointStop);SetStopLoss(손절,PointStop);위수식을 30분봉에서 일간 시가기준으로 매일 매도, 매수 각 1회만 될수 있도록 수식 부탁드립니다
프로필 이미지
네온0609
2025-11-07
61
글번호 227739
시스템