커뮤니티

예스랭귀지 Q&A

글쓰기

신대륙발견 님에 의해서 삭제되었습니다.

프로필 이미지
신대륙발견
2024-10-29
29
글번호 184708
시스템

신대륙발견 님에 의해서 삭제되었습니다.

프로필 이미지
신대륙발견
2024-10-29
56
글번호 184707
지표
답변완료

문의 드립니다

안녕하세요 1. 다음 트랜드지표을 다음변수로 3개을 만들고자 합니다 1.라인1;10,1 2.라인1:11,2 3.라인3:12,3의 변수로 만들고 각 라인의 변수는 변경 가능 하게해주세요. input : Periods(10); input : Multiplier(3.0); input : changeATR(1);#1:SMA 0:RMA var : src(0),alpha(0),source(0),ATR1(0),ATR2(0),ATRV(0); var : up(0),up1(0),dn(0),dn1(0),trend(0),tx(0); src = (H+L)/2; alpha = 1 / Periods; atr1 = IFf(IsNan(atr1[1]) == true , ma(TrueRange, Periods) , alpha * TrueRange + (1 - alpha) * atr1[1]); atr2 = ATR(Periods); atrv = IFf(changeATR == 1 , atr1 , atr2); up=src-(Multiplier*atrv); up1 = IFf(IsNan(up[1]) == False,up[1],up); up = iff(close[1] > up1 , max(up,up1) , up); dn=src+(Multiplier*atrv); dn1 = IFf(IsNan(dn[1]) == False,dn[1], dn); dn = iff(close[1] < dn1 , min(dn, dn1) , dn); trend = 1; trend = IFf(IsNan(trend[1]) == False,trend[1], trend); trend = IFf(trend == -1 and close > dn1 , 1 , iff(trend == 1 and close < up1 , -1 , trend)); if trend == 1 Then plot1(up,"UpTrend",White); Else NoPlot(1); if trend == -1 then Plot2(dn,"Down Trend",Black); Else NoPlot(2); if trend == 1 and trend[1] == -1 Then { tx =Text_New(sDate,sTime,up,"●"); Text_SetStyle(tx,1,1); Text_SetColor(tx,Red); } if trend == -1 and trend[1] == 1 Then { tx =Text_New(sDate,sTime,dn,"●"); Text_SetStyle(tx,1,1); Text_SetColor(tx,Blue); } 2 10ema선을 고가,저가,종가을 기준으로 3개의 ema선을 만들고 싶습니다. 감사합니다
프로필 이미지
만강
2024-10-29
592
글번호 184706
지표
답변완료

수식 부탁드려요~

1.목표 매수 = (predayhigh()+predaylow()+predayclose())/3 +predayhigh() - predaylow(); 지지 = 2*((predayhigh()+predaylow()+predayclose())/3) - predayhigh(); 목표 = 매수 +(매수- 지지); valuewhen(1,목표,목표) 2. 매수 매수 = (predayhigh()+predaylow()+predayclose())/3 +predayhigh() - predaylow(); valuewhen(1,매수,매수) 3. 손절선 첫봉기준 = date!=date(1) && predayclose()*1.05; 중심선 = Valuewhen(1, 첫봉기준, (H+L)/1.96); if(CountSince(첫봉기준, date!=date(1)) == 1, 중심선, 0) 안녕하세요 위의 키움 라인수식을 목표 > 매수 > 손절선 으로 라인의 순서가 되어있으면서 주가가 손절선 위에 있을때 .. 주가가 손절선 아래에 있는경우는 제외되는 종목식을 부탁드립니다.
프로필 이미지
만복부자888
2024-10-29
755
글번호 184705
종목검색

스톰82 님에 의해서 삭제되었습니다.

프로필 이미지
스톰82
2024-10-29
0
글번호 184704
종목검색
답변완료

하이킨아시

input : MaPeriod(2),MaPeriod2(1); var : maOpen(0),maClose(0),maLow(0),maHigh(0); var : haOpen(0),haClose(0),haLow(0),haHigh(0); var : ExtMapBuffer1(0),ExtMapBuffer2(0),ExtMapBuffer3(0),ExtMapBuffer4(0); var : ExtMapBuffer5(0),ExtMapBuffer6(0),ExtMapBuffer7(0),ExtMapBuffer8(0); var : r(0),g(0),b(0), TL(0),t(0),tx(0); if Index == 0 Then { maOpen=Open; maClose=Close; maLow=Low; maHigh=High; } Else { maOpen=(maOpen[1]*(MAperiod-1)+Open)/MAPeriod; maClose=(maClose[1]*(MAperiod-1)+Close)/MAPeriod; maLow=(maLow[1]*(MAperiod-1)+Low)/MAPeriod; maHigh=(maHigh[1]*(MAperiod-1)+High)/MAPeriod; haOpen=(ExtMapBuffer5[1]+ExtMapBuffer6[1])/2; haClose=(maOpen+maHigh+maLow+maClose)/4; haHigh=Max(maHigh, Max(haOpen, haClose)); haLow=Min(maLow, Min(haOpen, haClose)); if (haOpen<haClose) then { r=255; g=10; b=0; ExtMapBuffer7=haLow; ExtMapBuffer8=haHigh; t = 1; } else { r=0; g=191; b=255; ExtMapBuffer7=haHigh; ExtMapBuffer8=haLow; t = -1; } ExtMapBuffer5=haOpen; ExtMapBuffer6=haClose; ExtMapBuffer1=WMA(ExtMapBuffer7,MAperiod2); ExtMapBuffer2=WMA(ExtMapBuffer8,MAperiod2); ExtMapBuffer3=WMA(ExtMapBuffer5,MAperiod2); ExtMapBuffer4=WMA(ExtMapBuffer6,MAperiod2); } 분봉에 일봉값을 구하고 싶습니다.지난번 것은 어찌 해결 했는데 이건좀 안되네요 일이 많으신데 부탁합니다
프로필 이미지
함지박
2024-10-29
806
글번호 184703
지표
답변완료

트레이딩뷰 사용중인 "Range DI[Misu]" 수식 수정요망

매번 항상 감사드립니다. 아래의 지표는 트레이딩뷰에서 사용중인 지표 수식 입니다. 예스스탁에서 사용할수 있도록 수식을 수정 부탁 드립니다. 감사합니다.. // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // &#169; profitprotrading //@version=5 indicator("ALMA Smoothed Gaussian Moving Average", shorttitle = "ASGMA", overlay=true) //ALMA Smoothing src = input(close, title='Source', group = "ALMA Smoothing") smooth = input.int(1, title='Smoothing', minval=1, group = "ALMA Smoothing") length1 = input.int(25, title='Lookback', minval=1, group = "ALMA Smoothing") offset = 0.85 sigma1 = 7 pchange = ta.change(src, smooth) / src * 100 avpchange = ta.alma(pchange, length1, offset, sigma1) //RSI rsi = ta.rsi(close, 14) rsiL = rsi > rsi[1] rsiS = rsi < rsi[1] //Chande Momentum length11 = 9 src1 = close momm = ta.change(src1) f1(m) => m >= 0.0 ? m : 0.0 f2(m) => m >= 0.0 ? 0.0 : -m m1 = f1(momm) m2 = f2(momm) sm1 = math.sum(m1, length11) sm2 = math.sum(m2, length11) percent(nom, div) => 100 * nom / div chandeMO = percent(sm1-sm2, sm1+sm2) cL = chandeMO > chandeMO[1] cS = chandeMO < chandeMO[1] //GAMA credit to author: &#169; LeafAlgo https://www.tradingview.com/v/th7NZUPM/ length = input.int(14, minval=1, title="Length", group = "Gaussian Adaptive Moving Average") adaptive = input.bool(true, title="Adaptive Parameters", group = "Gaussian Adaptive Moving Average") volatilityPeriod = input.int(20, minval=1, title="Volatility Period", group = "Gaussian Adaptive Moving Average") // Calculate Gaussian Moving Average gma = 0.0 sumOfWeights = 0.0 sigma = adaptive ? ta.stdev(close, volatilityPeriod) : input.float(1.0, minval=0.1, title="Standard Deviation", group = "Gaussian Adaptive Moving Average") for i = 0 to length - 1 weight = math.exp(-math.pow(((i - (length - 1)) / (2 * sigma)), 2) / 2) value = ta.highest(avpchange, i + 1) + ta.lowest(avpchange, i + 1) gma := gma + (value * weight) sumOfWeights := sumOfWeights + weight gma := (gma / sumOfWeights) / 2 gma:= ta.ema(gma, 7) gmaColor = avpchange >= gma ? color.rgb(0, 161, 5) : color.rgb(215, 0, 0) // Color bars based on signals until the next signal occurs var int currentSignal = 0 currentSignal := avpchange >= gma ? 1 : -1//le_final ? -1 : currentSignal var color barColor = na if currentSignal == 1 barColor := color.rgb(0, 186, 6) else if currentSignal == -1 barColor := color.rgb(176, 0, 0) barcolor(barColor) plotcandle(open, high, low, close, "Bar Color", barColor, barColor, bordercolor = barColor) //Plotting ema = ta.ema(close, 7) plot(ema, color=gmaColor, linewidth=3, title="Gaussian Moving Average") plotshape(ta.crossover(avpchange,gma) and barstate.isconfirmed, "Buy Signal", text = "B", textcolor = color.white, style = shape.labelup, location = location.belowbar, color = color.rgb(0, 161, 5), offset = -1) plotshape(ta.crossunder(avpchange,gma) and barstate.isconfirmed, "Sell Signal", text = "S", textcolor = color.white, style = shape.labeldown, location = location.abovebar, color = color.rgb(215, 0, 0), offset = -1) bgcolor(ta.crossover(avpchange,gma) and barstate.isconfirmed and rsiL and cL ? color.rgb(0, 162, 5, 85): na, offset = -1) bgcolor(ta.crossunder(avpchange,gma) and barstate.isconfirmed and rsiS and cS ? color.rgb(207, 0, 0, 85): na, offset = -1) barcolor(gmaColor) alertcondition(ta.crossover(avpchange,gma) and barstate.isconfirmed, title="Buy Signal", message="Go Long! {{exchange}}:{{ticker}}") alertcondition(ta.crossunder(avpchange,gma) and barstate.isconfirmed, title="Sell Signal", message="Go Short! {{exchange}}:{{ticker}}")
프로필 이미지
유경완
2024-10-29
847
글번호 184702
지표
답변완료

국채선물 만기일

10년국채선물(16700000) 관련입니다. 3,6,9,12월이 결제월이며, 결제월의 세번째 화요일이 만기일입니다. 만기일은 거래하지 않는 수식 부탁드립니다.
프로필 이미지
목마와숙녀
2024-11-06
617
글번호 184701
시스템
답변완료

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

종목검색식 부탁드립니다. 감사합니다. 고저 = DayHigh() > DayLow() *상승률; 고저폭 = DayHigh() - DayLow(); 상단 = Valuewhen(1, 고저, 고저폭 * 비율1/100 + DayLow()): 하단 = Valuewhen(1, 고저, 고저폭 * 비율2/100 + DayLow()): M5 = ma(C, 기간1); M20 =ma(C, 기간2); M60 =ma(C, 기간3); 저점 = M5 >M5(1) && M5(1) < M5(2); 저점값 = Valuewhen(1, 저점, M5); 조건 = 저점 && C>O && 저점값<상단 && 저점값>하단 && (M5>M20 or M5>M60); 카운트 = Countsince(date!=date(1), 조건); 카운트 == 1 && 카운트(1) == 0 (지표변수) 상승률: 1.07 / 비율1: 65 / 비율2: 50 /기간1; 5 / 기간2: 20 / 기간3: 60
프로필 이미지
비밀통로
2024-10-29
539
글번호 184700
종목검색
답변완료

종목 검색 부탁드립니다.

1. 아래수식에서, 기준선 0을 돌파한후, 3일연속유지 ,4일 연속유지 (기준선0선 아래로 이탈하지 않고) 되는 종목을 검색하고자 합니다, 종목검색식 부탁 드립니다.(일수는 변수로 했으면 합니다) 그러니까 2봉전 (기준선 0 돌파직후 1일 : 기준선 0 돌파) * 3일 연속시, 1봉전 (기준선0 돌파후 2일) 0봉전 (기준선0 돌파후 3일: 현재봉 검색) ---------------------------- * 4일 연속시 3봉전 (기준선0 돌파직후 1일 : 기준선 0선 돌파) 2봉전 (기준선 돌파후 2일) 1봉전 (기준선 돌파후 3일) 0봉전 (기준선 돌파후 4일 : 현재봉 검색) ----------------------------------- ----아래---- 수식: C-C (기간 1 ) 지표변수 : 기간1 25 기준선 0
프로필 이미지
일지매7
2024-10-29
474
글번호 184698
종목검색