답변완료
조건검색식 (수정) 부탁드립니다
12월23일 답변주신 내용에서 ndate(20251117) 을 한번에 입력하지 않고 따로 입력할 수 있게 년, 월, 일 로 입력창을 수정해서 만들어 주시면 감사하겠습니다input : 기간(20),ndate(20251117); var : 상(0),하(0); if highest(V,기간) == V Then { 상 = H; 하 = L; var1 = (상+하)/2; } var2 = ema(C,60); if sDate == ndate and m >= 10000000000 and CountIf(CrossUp(C,var2) or CrossUp(L,var2),10) >= 1 and CrossUp(C,var1) and C-(C-O)*(2/3) >= var1 and CountIf(CrossUp(C,var1),5)[1] == 0 Then Condition1 = true; if Condition1 == true Then Find(1);
답변완료
종목검색식 요청드립니다.
* 아래키움신호가 발생한 종목을 검색하는 검색식을 만들고 싶습니다. 도움 부탁드립니다.*키움수식PI=3.14159;M=avg(C,period);ST=Stdev(C,period);e=2.178;분모1=sqrt(2*PI*ST*ST);분모2=2*ST*ST;분자2=-(C-M)*(C-M);Y=1/분모1*pow(e,분자2/분모2)*100;D=dema(Y,signal);DD=Valuewhen(1,D<D(1)&&D(1)>D(2),C(1));EE=Valuewhen(2,RSI(Period1)<30,H);Crossdown(DD,EE)
답변완료
문의
// =========================================================// 3. 차트 강조 출력 (중복 시 검정색 우선)// =========================================================// 두 개 이상의 조건이 동시에 만족되면 무조건 검정색으로 표시If ComboCount >= 2 Then PlotPaintBar(H, L, "중복신호", Black);// 단일 조건일 경우 기존 색상 유지Else If Cond12 Then PlotPaintBar(H, L, "vR스피12", Yellow);Else If Cond1 Then PlotPaintBar(H, L, "VR스피1", Magenta);Else If Cond2 Then PlotPaintBar(H, L, "VR스피2", RGB(255,165,0)); // 주황Else If Cnd_R12 Then PlotPaintBar(H, L, "R스피보12", Cyan);Else If Cnd_R34 Then PlotPaintBar(H, L, "R스피보34", RGB(0,255,0)); // 연두여기에서 PlotPaintBar이 이미 다른이름 "중복신호"로 선언되었다고 나오는데요 수정부탁드립니다."vR스피12 이하 같음 이유가 뭔지도 궁금합니다.
답변완료
수식 부탁드립니다.
R=RSI(7);wma1 = wavg(C, len);// TEMA 계산ema1_1 = eavg(wma1, len);ema1_2 = eavg(ema1_1, len); ema1_3 = eavg(ema1_2, len);TEWMA1 = 3 * ema1_1 - 3 * ema1_2 + ema1_3;len2 = len * multi;wma2 = wavg(C, len2);ema2_1 = eavg(wma2, len2);ema2_2 = eavg(ema2_1, len2);ema2_3 = eavg(ema2_2, len2);TEWMA2 = 3 * ema2_1 - 3 * ema2_2 + ema2_3;TEWMA = (TEWMA1 + TEWMA2) / 2;최종신호=TEWMA > TEWMA(1) && IsRsiCrossUp70 = CrossUp(R, 70)&&Vcond = V > (Avg(V, 기간) * 비율);AmtCond = 거래대금 > (Avg(거래대금, 기간) * 비율)&&최종신호 && !최종신호(1)변수len 120 multi 3 기간 480 비율 6항상 감사드립니다. 2026년에도 항상 건승하십시요..
답변완료
지표 부탁 드립니다
//@version=6indicator("Williams Fractals — Goldilocks Edition [NPR21]", shorttitle="Fractals Goldilocks [NPR21]", overlay=true, precision=0, format=format.price)// ===================== Inputs =====================n = input.int(title="Periods (n)", defval=2, minval=2)showLabels = input.bool(title="Show BUY/SELL Labels", defval=true)showShapes = input.bool(title="Show Shapes", defval=true)// Offset: 25 is the middle ground between 'too short' and 'too wide'buyOffsetTicks = input.int(title="BUY offset (ticks)", defval=25, minval=0)sellOffsetTicks = input.int(title="SELL offset (ticks)", defval=25, minval=0)// High-contrast colorsbuyLabelBgColor = input.color(title="BUY label background", defval=color.rgb(0, 50, 45)) sellLabelBgColor = input.color(title="SELL label background", defval=color.rgb(80, 0, 0)) buyTextColor = input.color(title="BUY text color", defval=color.white) sellTextColor = input.color(title="SELL text color", defval=color.yellow) labelSizeOpt = input.string(title="Label size", defval="normal", options=["tiny","small","normal","large","huge"])lblSize = labelSizeOpt == "tiny" ? size.tiny : labelSizeOpt == "small" ? size.small : labelSizeOpt == "normal" ? size.normal : labelSizeOpt == "large" ? size.large : size.huge// ===================== Fractals Logic =====================upPivot = ta.pivothigh(high, n, n)downPivot = ta.pivotlow(low, n, n)upFractal = not na(upPivot)downFractal = not na(downPivot)// ===================== Labels =====================// Removed extra character spacing for better readabilityif showLabels and downFractal label.new(bar_index - n, low[n] - buyOffsetTicks * syminfo.mintick, "BUY", xloc=xloc.bar_index, yloc=yloc.price, style=label.style_label_up, color=buyLabelBgColor, textcolor=buyTextColor, size=lblSize)if showLabels and upFractal label.new(bar_index - n, high[n] + sellOffsetTicks * syminfo.mintick, "SELL", xloc=xloc.bar_index, yloc=yloc.price, style=label.style_label_down, color=sellLabelBgColor, textcolor=sellTextColor, size=lblSize)// ===================== The "Long V" Extensions =====================plotshape(showLabels and upFractal, title="Long V Sell", style=shape.arrowdown, location=location.abovebar, offset=-n, color=sellLabelBgColor, size=size.normal)plotshape(showLabels and downFractal, title="Long V Buy", style=shape.arrowup, location=location.belowbar, offset=-n, color=buyLabelBgColor, size=size.normal)