커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

일목균형표 기준선 색상

항상 감사드립니다. 일목균형표 기준선 및 전환선을 상승/하락 색상을 적색 및 청색으로 표현하고 싶은데 기초가 부족해서 잘 안되네요 . - 요청사항 : 일목균형 지표의 기준선 및 전환선 의 상승(적색), 하락(청색) 색상을 표현해 주시고, 추세가 시작된 후 횡보구간은 추세가 전환된 색상과 동일 색상으로 표현 부탁드립니다. Input : Period(26); var : 기준선(0); 기준선 = (Highest(High, 26) + Lowest(Low, 26)) / 2; Plot1(기준선,"기준선",iff(기준선>기준선[1],red,blue)) ;
프로필 이미지
나도부자1
2024-12-15
650
글번호 186278
지표
답변완료

검색식 부탁드립니다.

안녕하세요? 아래와 같은수식을 예스 검색식으로 부탁드립니다. 감사합니다.. M = ma(c,10,가중); M(2) < M(1) < M and A1 = (highest(high,shortPeriod)+lowest(low,shortPeriod))/2 ; VV = (V(5) + V(4) + V(3) + V(2) + V(1))/5; (Crossup(C,BBandsC(Period,D1)) && V > VV*2) or (Crossup(C,BBandsUP(Period,D1)) && RSI(5)>70) or (Crossup(C,A1) && V > VV*2) or (crossup(c,dayopen()) && V > VV*2 && RSI(5)>70) 변수 shortperiod 5 period 20 D1 1.8
프로필 이미지
오말리
2024-12-15
575
글번호 186277
종목검색
답변완료

안녕하세요 수식 부탁드립니다~

안녕하세요. 20일 신고가 수식을 만들어봐도 잘 안되고, 제공해주는 조건을 사용하니 최고가를 장악하지 못한 종가상 20일신고가도 검색이 되어서 부득이 아래 조건으로 20일 신고가 종목검색식을 부탁드립니다. 20봉내의 최고가를 돌파한 종가를 검색하고 싶은데 아래 수식으로 검색하니 20일내 최고가를 돌파못한 종가도 검색됩니다. if C > highest(c,20)[1] Then Find(1); 20봉내의 최고가를 돌파 장악한 종가를 검색하고 싶습니다. 감사합니다. 늘 고맙습니다!
프로필 이미지
소나기
2024-12-15
651
글번호 186275
종목검색
답변완료

수식 부탁드립니다.

안녕하십니까 수식 부탁드립니다. 매수 1. 개장 후 현재가가 전일 고가아래에서 시작을 해서 2. 전일 고가를돌파 하면 매수 매도 1. 3% 수익 2. -1% 손실 3. 오후 3시15분에는 손익에 상관없이 매도. 잘부탁드립니다.
프로필 이미지
대한이
2024-12-15
566
글번호 186274
시스템
답변완료

부틱드립니다

수고하십니다 아래수식을 예스로 부탁드립니다 //@version=3 study("빠른시그널") fastperiod = input(12,title="패스트 렝스",type=integer,minval=1,maxval =500) slowperiod = input(26,title="슬로우 렝스",type=integer,minval=1,maxval =500) signalperiod = input(9,title="signal smoothing",type=integer,minval=1,maxval =500) fastMA =ema(close,fastperiod ) slowMA =ema(close,slowperiod ) macd = fastMA- slowMA signal = ema(fastperiod-signalperiod) fastmacd = macd - signal fastsignal = ema(fastmacd - signalperiod) hline(0, "Zero Line" , color = gray, linewidth =1, linestyle = dashed) plot(fastmacd, color=blue, linewidth=2) plot(fastsignal, color=red, linewidth=2)
프로필 이미지
파생돌이
2024-12-15
640
글번호 186273
지표
답변완료

종목 검색식 부탁드립니다

항상 친절하고 자상한 답변에 감사드립니다. 아래 신호수식을 에스트레이더 종목검색식으로 부탁드립니다. 1. S=Sum(1); M5=Ma(C, 5); M20=Ma(C, 20); a = M5 > M5(1) && M5(1) < M5(2); b = CrossDown(M5, M20); b1 = Valuewhen(1, b, S); a1 = Valuewhen(1, a, S); a2 = Valuewhen(2, a, S); a3 = Valuewhen(3, a, S); d = CrossUp(M5, M20); e = Valuewhen(1, d, S); 조건 = a3<b1 && b1 < a2 && a2< a1 && a < e; 조건 && !조건(1) 2. M5=Ma(C,5); M20=Ma(C,20); A=(Highest(High,52)+Lowest(Low,52))/2; B=Valuewhen(1,CrossUp(M5,M20),A); 최종=CrossUp(C,B) && V=70000 && Dayhigh()>Daylow()*1.03 && O<C; Count=Countsince(date!=date(1),최종); Count==1 && Count(1)==00 3. A1=Ma(C,20); A2=Ma(C,60); 이격도=C<=O*0.95 && C>= O*0.89; A3=A1>A2 && A1>H && 이격도 && (O-C)>(H-O) && (O-C)>(C-L); 중심=Valuewhen(1,A3,C); A3 && 중심(1)>C 4. C >= 2000 and C <= 200000 and CrossUp(C, avg(C, 5)) and CrossUp(C, avg(C, 120)) and CrossUp(C, avg(C, 240)) and avg(C, 120, 10)/avg(C, 240, 10) >= 0.97 and avg(C, 120, 10)/avg(C, 240, 10) <= 1.03 and C(10) < avg(C, 120, 10) and C(10) < avg(C, 240, 10) and O < C and V(1)*2 <= V 5. Body() > avg(Body(), 10) * 2 and High - HighBody() < Height () *0.1 and LowBody() - Low < Height () *0.1 6. PL=L(5)<L(9) && L(5)<L(8) && L(5)<L(7) && L(5)<L(6) && L(5)<L(4) && L(5)< L(3) && L(5)< L(2) && L(5) < L(1) && L(5) < L(0); A=Valuewhen(1, PL, L(5)); A1=A(1)<A; A2=Ma(C, 224)<C; A3=Valuewhen(1, A1&&A2, A); CrossUp(C,A3) 7. M5=avg(C,5); M10=avg(C,10); M20=avg(C,20); A=Valuewhen(1,M5>M10 && M10>M20 && M5>M20,C); B=Valuewhen(1,A(2)<A(1) && A(1)>A,A(1)); D=Valuewhen(1,CrossUp(A,B),A); CrossUp(C,D) 8. A=(Highest(High,9)+Lowest(Low,9)+Highest(High,26)+Lowest(Low,26))/4; B=(Highest(High,52)+Lowest(Low,52))/2; D1=Shift(C,25); CrossUp(D1, A(25)) or CrossUp(D1, B(25)) 9. Max(avg(C,5), avg(C,20), avg(C,60))<Min(avg(C,5), avg(C,20), avg(C,60)) * (1+2/100) && C>Highest(H(1),5) && C(1) <= Highest(H(2),5) 10. A=Sum(avg(C,40,1)*1.3<=C and avg(거래대금/C,40,1)*6<=avg(거래대금/C,2) and avg(((H-L)/((H+L)/2)),40,1)*1.5 <=avg(((H-L)/((H+L)/2)),2) and C(1) < C); B=Valuewhen(1,A(1) != A,C); if(A(1)-A(11)>=1,B(1) < C and A(1) != A,0) 11. A1=Ma(C,20); A2=Ma(C,60); 이격도= C <= O * 0.95 && C>= O * 0.89; A3 =A1>A2 && A1>H && 이격도 && (O-C)>(H-O) && (O-C)>(C-L); 중심=Valuewhen(1,A3,C); A3 && 중심(1)>C
프로필 이미지
파크에버뉴
2024-12-15
748
글번호 186272
종목검색
답변완료

지표 부탁 드립니다

기준선 0 양대금과 음대금 지표수식 부탁드립니다 선물에서 사용하고 싶어요 대금=(H+O+L+O)/4*V/100000000; A=IF(C>O,대금,0); B=SUM(A); D=Valuewhen(1,date(1)!=date,B(1)); 양대금=B-D; A1=IF(C<O,대금,0); B1=SUM(A1); D1=Valuewhen(1,date(1)!=date,B1(1)); 음대금=B1-D1; 2번 거래량 매수 매도 P=V*(C+L)/(H+L); VF=if(C>O,P,if(C<O,-N,0)); Mp=Sum(VF,기간)/Sum(V,기간)*100 지표조건 기간 50 기준선 0 양거래량과 음거래량 지표수식 부탁드립니다
프로필 이미지
구경꾼그림자
2024-12-15
593
글번호 186271
지표
답변완료

스톡캐스틱+RSI

안녕하세요 요즘 유행하는 스톡캐스틱+RSI 합성 지표 작성 문의 합니다
프로필 이미지
우주77
2024-12-14
653
글번호 186270
지표
답변완료

HAM50

HAM50상승 A=wavg(2*wavg(scr,len/2)-wavg(scr,len),floor(sqrt(len))); HAM50하락 A=wavg(2*wavg(scr,len/2)-wavg(scr,len),floor(sqrt(len))); if(A(1)>A,A,0) 지표조건 scr 종가 len 50 잘 부탁드려요^^
프로필 이미지
알로우kim
2024-12-14
581
글번호 186269
지표
답변완료

수고하십니다

항상노고에감사드리며 변환 부탁드립니다 indicator("Dynamic Price Oscillator (Zeiierman)", precision=0) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Tooltips { t1 = "Defines the lookback period for the oscillator and Bollinger Bands calculation. Increasing this value will consider a longer history, potentially smoothing out the oscillator and making the Bollinger Bands wider, leading to fewer signals. Decreasing this value will make the oscillator more sensitive to recent price changes, and the Bollinger Bands will become narrower, possibly increasing the number of signals." t2 = "Determines how much the oscillator's calculation is smoothed. A higher smoothing factor reduces noise and makes the oscillator's line smoother, which may help in identifying the dominant trend more clearly but can delay signal generation. A lower smoothing factor makes the oscillator more responsive to recent price movements, which can be beneficial for short-term trading strategies but may increase the risk of false signals." //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Inputs { length = input.int(33, "Length", minval=1,group="Dynamic Price Oscillator", inline="",tooltip=t1) smoothFactor = input.int(5, "Smoothing Factor", minval=1,group="Dynamic Price Oscillator", inline="",tooltip=t2) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Function to calculate True Range { trueRange(h, l, c) => tr1 = h - l tr2 = math.abs(h - c[1]) tr3 = math.abs(l - c[1]) math.max(tr1, tr2, tr3) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Function to calculate Bollinger Bands { bollingerBands(src, length, mult) => basis = ta.sma(src, length) dev = mult * ta.stdev(src, length) upper = basis + dev lower = basis - dev [upper, lower] //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Adjusted Price based on True Range { volAdjPrice = ta.ema(trueRange(high, low, close), length) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Price calculation { priceChange = (close - close[length]) priceDelta = (close - volAdjPrice) oscillator = ta.ema(math.avg(priceDelta, priceChange), smoothFactor) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Bollinger Bands on Oscillator { [bbHigh, bbLow] = bollingerBands(oscillator, length*5, 1) [bbHighExp, bbLowExp] = bollingerBands(oscillator, length*5, 2) mean = math.avg(bbHighExp,bbLowExp) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~} // ~~ Plot { p1 = plot(oscillator, "Dynamic Price Oscillator", color = color.rgb(227, 161, 54)) plot(mean, "Dynamic Mean", color = color.new(#f7cb85,0)) p2 = plot(bbHigh, "Bollinger High", color = color.new(#089981, 60)) p3 = plot(bbHighExp, "Expanded Bollinger High", color = color.new(#089981, 0)) p4 = plot(bbLow, "Bollinger Low", color = color.new(#f23645, 60)) p5 = plot(bbLowExp, "Expanded Bollinger Low", color = color.new(#f23645, 0)) fill(p1, p2, oscillator > bbHigh ? color.new(#089981, 80) : na, "Oscillator Above Bollinger High") fill(p1, p3, oscillator > bbHighExp ? color.new(#089981, 80) : na, "Oscillator Above Expanded Bollinger High") fill(p1, p4, oscillator < bbLow ? color.new(#f23645, 80) : na, "Oscillator Below Bollinger Low") fill(p1, p5, oscillator < bbLowExp ? color.new(#f23645,80) : na, "Oscillator Below Expanded Bollinger Low") //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
프로필 이미지
비듬싸순
2024-12-14
839
글번호 186268
지표