커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
7669
글번호 230811
답변완료
rsx 선
곡선형인 plot1을, 첨부한 그림 아래처럼 계단형으로 변경 부탁드립니다.input : length(7),obLevel(70),osLevel(30);input : highlightBreakouts(true);var : src(0),f8(0),f10(0),v8(0),f18(0),f20(0),f28(0),f30(0);var : vc(0),f38(0),f40(0),v10(0),f48(0),f50(0),v14(0),f58(0);var : f60(0),v18(0),f68(0),f70(0),v1c(0),f78(0),f80(0),v20(0);var : T(0),f88(0),f88_(0),f90_(0),f0(0),f90(0),v4_(0),rsx(0);src = (h+l+c)/3;f8 = 100 * src;f10 = IFF(IsNan(f8[1])==true,0,f8[1]);v8 = f8 - f10;f18 = 3 / (length + 2);f20 = 1 - f18;f28 = 0.0;f28 = f20 * IFF(IsNan(f28[1])==true,0,f28[1]) + f18 * v8;f30 = 0.0;f30 = f18 * f28 + f20 * IFF(IsNan(f30[1])==true,0,f30[1]);vC = f28 * 1.5 - f30 * 0.5;f38 = 0.0;f38 = f20 * IFF(IsNan(f38[1])==true,0,f38[1]) + f18 * vC;f40 = 0.0;f40 = f18 * f38 + f20 * IFF(IsNan(f40[1])==true,0,f40[1]);v10 = f38 * 1.5 - f40 * 0.5;f48 = 0.0;f48 = f20 * IFF(IsNan(f48[1])==true,0,f48[1]) + f18 * v10;f50 = 0.0;f50 = f18 * f48 + f20 * IFF(IsNan(f50[1])==true,0,f50[1]);v14 = f48 * 1.5 - f50 * 0.5;f58 = 0.0;f58 = f20 * IFF(IsNan(f58[1])==true,0,f58[1]) + f18 * abs(v8);f60 = 0.0;f60 = f18 * f58 + f20 * IFF(IsNan(f60[1])==true,0,f60[1]);v18 = f58 * 1.5 - f60 * 0.5;f68 = 0.0;f68 = f20 * IFF(IsNan(f68[1])==true,0,f68[1]) + f18 * v18;f70 = 0.0;f70 = f18 * f68 + f20 * IFF(IsNan(f70[1])==true,0,f70[1]);v1C = f68 * 1.5 - f70 * 0.5;f78 = 0.0;f78 = f20 * IFF(IsNan(f78[1])==true,0,f78[1]) + f18 * v1C;f80 = 0.0;f80 = f18 * f78 + f20 * IFF(IsNan(f80[1])==true,0,f80[1]);v20 = f78 * 1.5 - f80 * 0.5;f88_ = 0.0;f90_ = 0.0;f88 = 0.0;f90_ = IFF( IFF(IsNan(f90_[1])==true,0,f90_[1]) == 0 , 1 , IFF( IFF(IsNan(f88[1])==true,0,f88[1]) <= IFF(IsNan(f90_[1])==true,0,f90_[1]) , IFF(IsNan(f88[1])==true,0,f88[1]) + 1 , IFF(IsNan(f90_[1])==true,0,f90_[1]) + 1));f88 = IFF(IFF(IsNan(f90_[1])==true,0,f90_[1]) == 0 and (length - 1 >= 5) , length - 1 , 5);f0 = IFF(f88 >= f90_ and f8 != f10 , 1 , 0);f90 = IFF(f88 == f90_ and f0 == 0 , 0 , f90_);v4_ = IFF(f88 < f90 and v20 > 0 , (v14 / v20 + 1) * 50 , 50);rsx = IFF(v4_ > 100 , 100 , IFF(v4_ < 0 , 0 , v4_));plot1(rsx, "RSX",IFf(rsx>rsx[1],Red,Blue));PlotBaseLine1(100, "Max Level",Gray);PlotBaseLine2(obLevel, "Overbought Level",Gray);PlotBaseLine3(osLevel, "Oversold Level",Gray);PlotBaseLine4(0, "Min Level",Gray);
2026-09-23
83
글번호 233724
답변완료
233604번에 질문있읍니다.
233604번에 질문있읍니다.
2026-09-22
91
글번호 233709
답변완료
슈퍼트렌드
트레이딩뷰 수식입니다. 상승트렌드는 주가 상단선과, 하락트렌드는 주가 하단선과의채우기 기능을,각각 분리하여 볼 수 있도록 변환 부탁드립니다.atrPeriod = input.int(10, "ATR Length", minval = 1)factor = input.float(3.0, "Factor", minval = 0.01, step = 0.01)[supertrend, direction] = ta.supertrend(factor, atrPeriod)supertrend := barstate.isfirst ? na : supertrendupTrend = plot(direction < 0 ? supertrend : na, "Up Trend", color = color.green, style = plot.style_linebr)downTrend = plot(direction < 0 ? na : supertrend, "Down Trend", color = color.red, style = plot.style_linebr)bodyMiddle = plot(barstate.isfirst ? na : (open + close) / 2, "Body Middle",display = display.none)fill(bodyMiddle, upTrend, title = "Uptrend background", color = color.new(color.green, 90), fillgaps = false)fill(bodyMiddle, downTrend, title = "Downtrend background", color = color.new(color.red, 90), fillgaps = false)alertcondition(direction[1] > direction, title='Downtrend to Uptrend', message='The Supertrend value switched from Downtrend to Uptrend ')alertcondition(direction[1] < direction, title='Uptrend to Downtrend', message='The Supertrend value switched from Uptrend to Downtrend')alertcondition(direction[1] != direction, title='Trend Change', message='The Supertrend value switched from Uptrend to Downtrend or vice versa')
2026-09-22
161
글번호 233707
대가들의매매 님에 의해서 삭제되었습니다.
2026-09-21
13
글번호 233706
답변완료
rsx
1. 지표 plot1의 색상을, 상승은 적색, 하락은 청색으로 변경. 곡선형을 계단형으로 변경. (스텝라인)2. 시스템 30 이하에서 상승전환하면 매수, 다음봉에 매수청산. (30 이하에서 여러번 매수도 가능) 70 이상에서 하락전환하면 매도, 다음봉에 매도청산. 감사합니다.input : length(10),obLevel(70),osLevel(30);input : highlightBreakouts(true);var : src(0),f8(0),f10(0),v8(0),f18(0),f20(0),f28(0),f30(0);var : vc(0),f38(0),f40(0),v10(0),f48(0),f50(0),v14(0),f58(0);var : f60(0),v18(0),f68(0),f70(0),v1c(0),f78(0),f80(0),v20(0);var : f88(0),f88_(0),f90_(0),f0(0),f90(0),v4_(0),rsx(0),rsxColor(0);src = (h+l+c)/3;f8 = 100 * src;f10 = IFF(IsNan(f8[1])==true,0,f8[1]);v8 = f8 - f10;f18 = 3 / (length + 2);f20 = 1 - f18;f28 = 0.0;f28 = f20 * IFF(IsNan(f28[1])==true,0,f28[1]) + f18 * v8;f30 = 0.0;f30 = f18 * f28 + f20 * IFF(IsNan(f30[1])==true,0,f30[1]);vC = f28 * 1.5 - f30 * 0.5;f38 = 0.0;f38 = f20 * IFF(IsNan(f38[1])==true,0,f38[1]) + f18 * vC;f40 = 0.0;f40 = f18 * f38 + f20 * IFF(IsNan(f40[1])==true,0,f40[1]);v10 = f38 * 1.5 - f40 * 0.5;f48 = 0.0;f48 = f20 * IFF(IsNan(f48[1])==true,0,f48[1]) + f18 * v10;f50 = 0.0;f50 = f18 * f48 + f20 * IFF(IsNan(f50[1])==true,0,f50[1]);v14 = f48 * 1.5 - f50 * 0.5;f58 = 0.0;f58 = f20 * IFF(IsNan(f58[1])==true,0,f58[1]) + f18 * abs(v8);f60 = 0.0;f60 = f18 * f58 + f20 * IFF(IsNan(f60[1])==true,0,f60[1]);v18 = f58 * 1.5 - f60 * 0.5;f68 = 0.0;f68 = f20 * IFF(IsNan(f68[1])==true,0,f68[1]) + f18 * v18;f70 = 0.0;f70 = f18 * f68 + f20 * IFF(IsNan(f70[1])==true,0,f70[1]);v1C = f68 * 1.5 - f70 * 0.5;f78 = 0.0;f78 = f20 * IFF(IsNan(f78[1])==true,0,f78[1]) + f18 * v1C;f80 = 0.0;f80 = f18 * f78 + f20 * IFF(IsNan(f80[1])==true,0,f80[1]);v20 = f78 * 1.5 - f80 * 0.5;f88_ = 0.0;f90_ = 0.0;f88 = 0.0;f90_ = IFF( IFF(IsNan(f90_[1])==true,0,f90_[1]) == 0 , 1 , IFF( IFF(IsNan(f88[1])==true,0,f88[1]) <= IFF(IsNan(f90_[1])==true,0,f90_[1]) ,IFF(IsNan(f88[1])==true,0,f88[1]) + 1 , IFF(IsNan(f90_[1])==true,0,f90_[1]) + 1));f88 = IFF(IFF(IsNan(f90_[1])==true,0,f90_[1]) == 0 and (length - 1 >= 5) , length - 1 , 5);f0 = IFF(f88 >= f90_ and f8 != f10 , 1 , 0);f90 = IFF(f88 == f90_ and f0 == 0 , 0 , f90_);v4_ = IFF(f88 < f90 and v20 > 0 , (v14 / v20 + 1) * 50 , 50);rsx = IFF(v4_ > 100 , 100 , IFF(v4_ < 0 , 0 , v4_));rsxColor = iff(rsx > obLevel , Green , iff(rsx < osLevel , Red , Orange));plot1(rsx, "RSX",rsxColor);PlotBaseLine1(100, "Max Level",Gray);PlotBaseLine2(obLevel, "Overbought Level",Gray);PlotBaseLine3(osLevel, "Oversold Level",Gray);PlotBaseLine4(0, "Min Level",Gray);
2026-09-21
113
글번호 233705
답변완료
안녕하세요
이동 = eavg(C, 200);L(26) > C(1) && C > O &&V(25) * 2 < V &&CrossUp(C, H(25)) &&CrossUp(C, 이동)신호 수식 부탁드립니다
2026-09-21
97
글번호 233704
답변완료
예스종목검색식 변환 요청
죄송합니다. 제가 이전에 잘못된 수식을 입력한 것 같습니다. 다시 한 번만 예스종목검색식으로 변환부탁드리겠습니다.변수 : 기간(10), 가격(저가), 가격1(고가), 증폭(5), n(3)A=sum(if(C > C(1), 1, 0), 기간) / 기간 * 100;MC1= ValueWhen(1, Crossdown(A, 30), 가격);P = Mc1 - A*증폭;Mc2 = ValueWhen(1, Crossup(A, 70), 가격);M = Mc2 + A*(-증폭);B=if(A>0, P, M);조건=C<B;조건3=조건 && !조건(1);D=valuewhen(1, 조건3, H);A=sum(if(C > C(1), 1, 0), 기간) / 기간 * 100;MC1= ValueWhen(1, Crossdown(A, 30), 가격1);P = Mc1 - A*증폭;Mc2 = ValueWhen(1, Crossup(A, 70), 가격1);M = Mc2 + A*(-증폭);B=if(A>0, P, M);조건=C<B;조건3=조건 && !조건(1);D1=valuewhen(1, 조건3, H);E=Max(D, D1);F=ma(C, n);crossup(F, D1) && A>A(1)
2026-09-21
113
글번호 233702
답변완료
수고하십니다
항상 좋은 일만 있으시기 바랍니다국선 주간삼등분선 야간삼등분선 복합삼등분선추세선으로 요청 합니다
2026-09-21
69
글번호 233700
답변완료
rsx
트레이딩뷰 수식입니다. 변환 부탁드립니다.length = input(title="Length", type=integer, defval=14)src = input(title="Source", type=source, defval=hlc3)obLevel = input(title="OB Level", type=integer, defval=70)osLevel = input(title="OS Level", type=integer, defval=30)highlightBreakouts = input(title="Highlight Overbought/Oversold Breakouts ?", type=bool, defval=true)f8 = 100 * srcf10 = nz(f8[1])v8 = f8 - f10f18 = 3 / (length + 2)f20 = 1 - f18f28 = 0.0f28 := f20 * nz(f28[1]) + f18 * v8f30 = 0.0f30 := f18 * f28 + f20 * nz(f30[1])vC = f28 * 1.5 - f30 * 0.5f38 = 0.0f38 := f20 * nz(f38[1]) + f18 * vCf40 = 0.0f40 := f18 * f38 + f20 * nz(f40[1])v10 = f38 * 1.5 - f40 * 0.5f48 = 0.0f48 := f20 * nz(f48[1]) + f18 * v10f50 = 0.0f50 := f18 * f48 + f20 * nz(f50[1])v14 = f48 * 1.5 - f50 * 0.5f58 = 0.0f58 := f20 * nz(f58[1]) + f18 * abs(v8)f60 = 0.0f60 := f18 * f58 + f20 * nz(f60[1])v18 = f58 * 1.5 - f60 * 0.5f68 = 0.0f68 := f20 * nz(f68[1]) + f18 * v18f70 = 0.0f70 := f18 * f68 + f20 * nz(f70[1])v1C = f68 * 1.5 - f70 * 0.5f78 = 0.0f78 := f20 * nz(f78[1]) + f18 * v1Cf80 = 0.0f80 := f18 * f78 + f20 * nz(f80[1])v20 = f78 * 1.5 - f80 * 0.5f88_ = 0.0f90_ = 0.0f88 = 0.0f90_ := nz(f90_[1]) == 0 ? 1 : nz(f88[1]) <= nz(f90_[1]) ? nz(f88[1]) + 1 : nz(f90_[1]) + 1f88 := nz(f90_[1]) == 0 and (length - 1 >= 5) ? length - 1 : 5f0 = f88 >= f90_ and f8 != f10 ? 1 : 0f90 = f88 == f90_ and f0 == 0 ? 0 : f90_v4_ = f88 < f90 and v20 > 0 ? (v14 / v20 + 1) * 50 : 50rsx = v4_ > 100 ? 100 : v4_ < 0 ? 0 : v4_rsxColor = rsx > obLevel ? #0ebb23 : rsx < osLevel ? #ff0000 : #f4b77dplot(rsx, title="RSX", linewidth=2, color=rsxColor, transp=0)transparent = color(white, 100)maxLevelPlot = hline(100, title="Max Level", linestyle=dotted, color=transparent)obLevelPlot = hline(obLevel, title="Overbought Level", linestyle=dotted)hline(50, title="Middle Level", linestyle=dotted)osLevelPlot = hline(osLevel, title="Oversold Level", linestyle=dotted)minLevelPlot = hline(0, title="Min Level", linestyle=dotted, color=transparent)fill(obLevelPlot, osLevelPlot, color=purple, transp=95)obFillColor = rsx > obLevel and highlightBreakouts ? green : transparentosFillColor = rsx < osLevel and highlightBreakouts ? red : transparentfill(maxLevelPlot, obLevelPlot, color=obFillColor, transp=90)fill(minLevelPlot, osLevelPlot, color=osFillColor, transp=90)
2026-09-21
97
글번호 233695