커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

종목검색식 부탁드립니다

키움 수식입니다 종목 검색식 부탁드립니다// 1. 이동평균선 계산E1 = eavg(C, EmaLen1);E2 = eavg(C, EmaLen2);E3 = eavg(C, EmaLen3);// 2. 스토캐스틱 K, D 계산K = StochasticsSlow(sto1, sto2);D = eavg(K, sto3);// 3. 추세 종료(초기화) 조건: 단기선이 장기선 아래거나 종가가 장기선 이탈Reset = E1 <= E3 or C <= E3;// 4. 눌림목(풀백) 발생 조건// 스토캐스틱 K가 20 상향돌파 & K>D & 이평 정배열 & 종가가 장기이평 위Pullback = CrossUp(K, 20) and K > D and E1 > E2 and E2 > E3 and C > E3;// 5. Reset(추세종료) 이후 Pullback(눌림목)이 발생한 횟수 계산Cnt = CountSince(Reset, Pullback);// 6. 현재 봉이 눌림목 조건에 해당하고, 새로운 추세에서 '첫 번째' 발생인 경우Pullback and Cnt == 1- 지표조건설정EmaLen1: 21EmaLen2: 34EmaLen3: 144sto1: 7sto2: 3sto3: 3
프로필 이미지
골든도라도
2026-03-18
826
글번호 231145
종목검색
답변완료

부탁 합니다.

안녕하세요.아래 트레이딩뷰를 변환작업 요청합니다.미리 감사인사 드립니다.// © theehoganator//@version=5indicator(title="Volume Spread Analysis Custom", shorttitle="Volume", overlay=false, precision = 2, format=format.volume) // precision = 2//------------------------------------------------------------------------ // ***** Colors ***** \\ ------------------------------------------------------------------------\\Black = #000000, Charcoal= #363A45, Gray = #787B86, Silver = #C0C0C0, White = #FFFFFFBrown = #A52A2A, Red = #FF0000, Pink = #FF69B4, Gold = #D4AF37, Orange = #FF6A00, Yellow = #FFFF00Green = #00AF00, Teal = #008080, Lime = #00FF0B // Green = #008000Navy = #413BB2, Blue = #0094FF, Aqua = #00BCD4 // Aqua = #00FFFFPurple = #800080, Fucshia = #E040FB //#FF00FFNone = color.new(Black, 100) // Having this is useful in limited situations where "na" will not work as a color. Check my Donchian indicator for an example of that//------------------------------------------------------------------------ // ***** Inputs ***** \\ ------------------------------------------------------------------------\\ma0_length = input.int(30, "Moving Average", minval=1, inline="Moving Average")ma(source, length, type) => switch type "SMA" => ta.sma(source, length) "EMA" => ta.ema(source, length) "SMMA (RMA)" => ta.rma(source, length) "WMA" => ta.wma(source, length) "VWMA" => ta.vwma(source, length)maTypeInput = input.string("SMA", title="", options=["SMA", "EMA", "SMMA (RMA)", "WMA", "VWMA"], inline="Moving Average")ma1_length = input.float(0.5, "", minval=0.01, inline="Moving Average Multipliers")ma2_length = input.float(1.5, "", minval=0.01, inline="Moving Average Multipliers")ma3_length = input.float(3.0, "", minval=0.01, inline="Moving Average Multipliers")bColorAnalysis = input.bool(false, "Color Analysis", inline="Analysis")bDrawAverages = input.bool(false, "Draw Analysis", inline="Analysis")iStyle = input.string(defval="Histogram", title="", options=["Histogram", "Columns"], inline = "Analysis") // plot styleStyle = iStyle == "Histogram" ? plot.style_histogram : plot.style_columns//------------------------------------------------------------------------ // ***** Calculations ***** \\ ------------------------------------------------------------------------\\ma0 = ma(volume, ma0_length, maTypeInput)ma1 = ma0 * ma1_lengthma2 = ma0 * ma2_lengthma3 = ma0 * ma3_length// Need this plot value to fill in from 0 to ma1, fill function doesn't allow us to simply say fill from a value of 0 to another value// I just made this have a value of 0, called it the Baseline, set it as not able to be edited and do not display as it is unnecessary to draw it plot0 = plot(0, title="Baseline", color=None, linewidth=1, editable=false, display=display.none) //------------------------------------------------------------------------ // ***** Assign Colors ***** \\ ------------------------------------------------------------------------\\// By default it uses the same colors as the regular Volumne indicator given by TradingView (Green == #26a69a and Red == #ef5350)// If you enable the Color Analysis check box it will change the volume bars so that they are based on relative volume:// Low = Navy Medium = Green High = Yellow Very High = Red histColor = not bColorAnalysis ? (close > close[1] ? color.new(#26a69a, 25) : color.new(#ef5350, 25)) : volume < ma1 ? Navy : volume < ma2 ? Green : volume < ma3 ? Yellow : volume > ma3 ? Red : Gray // Always have a default value in case something happens you didn't plan for or to show bugs in the code :)fillColor1 = color.new(Black, 90) // color.new(Red, 50) I actually like just making this yellow like the one below, but I'll leave that up to youfillColor2 = color.new(Yellow, 90)fillColor3 = color.new(Red, 50)//------------------------------------------------------------------------ // ***** Plot Everything ***** \\ ------------------------------------------------------------------------\\// Get in the habbit of not only plotting a value but creating a variable for which that plot is a value.// This is important when trying to use the Fill function as it will not take the ma0 value, it must be a set of plot() or hline() values// So, I make the plot(ma0...) function into a value called ma0plot and then pass that through the fill function later. ma0plot = plot(ma0, title="Moving Average 0", color=Blue) // If you plot this after plotting volume, it draws over the bars not under them; which is useful if using columns instead of histogram plot stylema1plot = plot(bDrawAverages ? ma1 : na, title="Moving Average 1", color=color.new(Red, 100)) // In my code, I set these colors to color.new(Red, 100) so I don't see them but they still show the value in on the left side by the indicator namema2plot = plot(bDrawAverages ? ma2 : na, title="Moving Average 2", color=color.new(Red, 100)) // The fill color essentially already shows the line, why draw it as well. I think it looks cleaner when it's offma3plot = plot(bDrawAverages ? ma3 : na, title="Moving Average 3", color=color.new(Red, 100))fill(plot0, ma1plot, title = "Low Volume Background", color = fillColor1) // Here is where we used that plot0 value to fill!fill(ma1plot, ma2plot, title = "Med Volume Background", color = fillColor2) fill(ma2plot, ma3plot, title = "High Volume Background", color = fillColor3) volplot = plot(volume, title='Volume', color=histColor, style=Style, histbase=0, linewidth=3) // style=plot.style_columns style=plot.style_histogram// If you want a black border around your candles like the original, uncomment this line below and comment out the volplot line above. I don't like to because it adds three more values next to the name// plotcandle(0, volume, 0, volume, "Volume", color=histColor, wickcolor=None, bordercolor=Black)// I always put a bunch of extra space at the end, it's easier on the eyes to work with the last line of code without having it touching the bottom of the screen, at least for me.
프로필 이미지
newstory
2026-03-18
5113
글번호 231144
지표
답변완료

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

1. 아래의 수식을 참고하여, 예스트레이더 종목 검색식 부탁드려요.-----아래-----A=(C-lowest(C,period))/C*60;B=(highest(C,period)-C)/C*60;crossup(A,B)지표변수 80
프로필 이미지
일지매7
2026-03-18
309
글번호 231136
종목검색
답변완료

수식 부탁드립니다

다음수식 변환 부탁드립니다1)LL=Lowest(L,기간);NH=ValueWhen(1,H>Highest(H,기간,1),H);//조건=Highest(H,기간-2)<Highest(H,기간-1);Und=ValueWhen(1,BarsSince(H>Highest(H,기간,1))==p,LL);2)LL=Lowest(L,기간);NH=ValueWhen(1,H>Highest(H,기간,1),H);//조건=Highest(H,기간-2)<Highest(H,기간-1);Top=ValueWhen(1,BarsSince(H>Highest(H,기간,1))==p,NH);CrossUp(C,Und) or CrossUp(C,Top)
프로필 이미지
김승빈
2026-03-18
533
글번호 231135
종목검색
답변완료

3분봉

감사합니다1. 3분봉에서 당일 첫봉 종가가 피봇2차저항을 돌파하였다는 것을 봉개수 지표로 정의하고 싶습니다. (당일 첫번째 종가 정의)2. 3분봉에서 당일 두번째 종가가 피봇2차 저항위에 있고 양봉이다는 것을 봉개수 지표로 정의하고 싶습니다.(당일 두번째 종가 정의)
프로필 이미지
jdavid
2026-03-18
246
글번호 231134
지표
답변완료

매매 식좀 요청드립니다

ㅇ 기준 ㅇ당일 07시부터 21시 까지 진입후 21시 5분 모두 청산 로칙매수: 5이평선이 12이펑선을 크로스 업 하면 매수1매도: 5이평선이 12이평선을 다운하면매도1(청산 없이 계속 누적 매수 매도 반복후21시 까지 누적 매수 매도 하다가21시5분 일괄 청사 로직 구현좀부탁 드림니다고맙습니다좋은 하루 되십시요~♡~
프로필 이미지
요타
2026-03-18
531
글번호 231133
시스템
답변완료

질의드립니다.

안녕하세요,백테스트에서 증거금(Margin) 적용 방식에 대해 문의드립니다.플랫폼에서 과거 데이터를 기반으로 백테스트를 수행할 때,증거금은 아래 두 가지 방식 중 어떤 기준으로 적용되는지 궁금합니다.1. 과거 시점별 실제 증거금 데이터를 반영하여 계산하는 방식2. 현재(최신) 증거금을 기준으로 전체 기간에 동일하게 적용하고, 결과적으로 레버리지가 조정되는 방식즉, 백테스트 시 증거금이 “시간에 따라 변하는 값”인지, 아니면 “고정된 값”으로 처리되는지 확인 부탁드립니다.감사합니다.
프로필 이미지
소드노
2026-03-18
834
글번호 231132
시스템
답변완료

날짜 입력

감사합니다.20260318 이런 식으로 오늘의 년도와 날짜를 자동입력 해 주는 사용자 함수 부탁합니다.
프로필 이미지
jdavid
2026-03-18
643
글번호 231127
사용자 함수
답변완료

부탁드립니다

강세박스 : 전환선, 기준선, 선행스팬1,선행스팬2 순서로 정배열 일때약세박스 : 전환선, 기준선, 선행스팬1,선행스팬2 순서로 역배열 일때
프로필 이미지
회원
2026-03-18
237
글번호 231124
지표