커뮤니티

예스랭귀지 Q&A

글쓰기

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

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

부틱드립니다

수고하십니다 아래수식을 예스로 부탁드립니다 //@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
673
글번호 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
793
글번호 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
642
글번호 186271
지표
답변완료

스톡캐스틱+RSI

안녕하세요 요즘 유행하는 스톡캐스틱+RSI 합성 지표 작성 문의 합니다
프로필 이미지
우주77
2024-12-14
683
글번호 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
612
글번호 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
890
글번호 186268
지표
답변완료

키움수식 변환 요청합니다.

수고많으십니다. 키움 영웅문에서 사용중인 신호 수식을 예스트레이더 시스템 수식으로 변경 부탁합니다. /매수/ A=BBandsUp(20,2); A1=BBandsDown(20,2); A2=Eavg(C, 40); A3=MA(C,50); A4=Eavg(C, 15); B=((RSI(R기간)- lowest(RSI(R기간),S기간)) / (highest(RSI(R기간),S기간)-(lowest(RSI(R기간),S기간))))*100; (A2>=A3 OR A4>=A3) && (L<= A1*1.01 OR L(1)<= A1(1)*1.01) && (B<=20 OR B(1)<=20) && C>O ##R기간 : 13 ##S기간 : 10 /매도/ A=BBandsUp(20,2); A1=BBandsDown(20,2); A2=Eavg(C, 40); A3=MA(C,50); A4=Eavg(C, 15); B=((RSI(R기간)- lowest(RSI(R기간),S기간)) / (highest(RSI(R기간),S기간)-(lowest(RSI(R기간),S기간))))*100; (A2<A3 OR A4<A3) && (H>=A*0.99 OR H(1)>=A(1)*0.99) && (B>=80 OR B(1)>=80) && C<O ##R기간 : 13 ##S기간 : 10
프로필 이미지
무한
2024-12-14
706
글번호 186267
시스템
답변완료

문의드립니다

if Bdate != Bdate[1] Then { var1 = 0; Var2 = 0; Var3 = 0; } var1 = var1+(h+l+c)/3; var2 = var2+1; Var3 = var1/Var2; --------------------- var3 의 이동평균을 구할수 있을까요? ma(var3. n); 이렇게 해봤는데 안되네요 감사합니다
프로필 이미지
러블리
2024-12-14
727
글번호 186266
지표
답변완료

파라3파 전환

Input : af(0.02), maxAF(0.2); var : T(0),B(0),S(0),tx(0),txx(0),HH(0),LL(0),box(0),B1(0),S1(0),B2(0),S2(0),H1(0),L1(0),H2(0),L2(0),TL(0); var1 = CSar(af,maxAF); plot1(var1, "CSAR",IFF(c>var1,Red,Blue)); if CrossUp(C,var1) Then { T = 1; B = var1; B1 = B[1]; B2 = B1[1]; HH = H; H1 = HH[1]; H2 = H1[1]; Condition1 = False; } if CrossDown(C,var1) Then { T = -1; S = var1; S1 = S[1]; S2 = S1[1]; LL = L; L1 = LL[1]; L2 = L1[1]; Condition1 = False; } Else { if T == 1 Then { if H > HH Then HH = H; if B1 > 0 and B > B1 and H > H1 and B1 > B2 and H1 > H2 and Condition1 == False Then { Condition1 = true; txx = Text_New(sdate,sTime,HH+0.1,"●"); Text_SetStyle(txx,2,2); Text_SetColor(txx,Green); Text_SetSize(txx,20); } } if T == -1 Then { if L < LL Then LL = L; if S1 > 0 and S < S1 and L < L1 and S1 < S2 and L1 < L2 and Condition1 == False Then { Condition1 = true; txx = Text_New(sdate,sTime,LL-0.1,"●"); Text_SetStyle(txx,2,2); Text_SetColor(txx,Magenta); Text_SetSize(txx,20); } } } 하락 3파 직후에 양전환되거나, 상승 3파 직후에 음전환되면 세로선. 감사합니다.
프로필 이미지
고성
2024-12-14
673
글번호 186265
지표