커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
3376
글번호 230811
답변완료
부탁드려요
오늘 고가에서 -5% 이상인 등락률 종목만 검색하고 싶습니다
2025-10-30
165
글번호 227470
답변완료
종목검색식 부탁드립니다
1. 일목균형표 에서, 선행스팬1 과 선행스팬2가 같이 동시에 붙어서 상승하는 (간격 0.01 이하 : 변수처리) 또는 같이 동시에 일자로 상승하는 (간격 0 : 제로 ) 종목검색식 부탁드립니다. <예시. || (붙어서) , | (일자로 포개어) 2. 주봉에서 , 양봉 캔들이 주봉 10 이평을 돌파하는 종목 검색식 부탁드립니다.
2025-10-29
217
글번호 227469
답변완료
지표식 문의드립니다^^
피보나치 분봉 되돌림의 지표식인데요그런데 제가 이 지표에 "같이 표시"하고 싶은 것은역방향의 피보나치 되돌림입니다즉, 당일 고가를 기준으로 저가에서 상방으로 되돌림을 체크한 뒤하방으로 진입하고자 할때 기준으로 삼고자 합니다. (선물에서요)식이 간단히 될 줄 알았는데 잘 안되네요..지표식을 도와주시면 감사하겠습니다^^input : P(1);var : HH(0),LL(0),RR(0);HH = dayhigh;LL = DayLow;RR = HH-LL;if P == 1 Then{ Plot1(HH, "당일최고가"); Plot2(HH-RR*0.236, "23.6%"); Plot3(HH-RR*0.382, "38.2%"); Plot4(HH-RR*0.500, "50.0%"); Plot5(HH-RR*0.618, "61.8%"); plot6(LL,"당일최저가");}Else{ Plot1(HH, "당일최고가"); Plot2(LL+RR*0.236, "23.6%"); Plot3(LL+RR*0.382, "38.2%"); Plot4(LL+RR*0.500, "50.0%"); Plot5(LL+RR*0.618, "61.8%"); plot6(LL,"당일최저가");}
2025-10-29
258
글번호 227468
답변완료
세로 구분선
항상 감사드립니다.분봉차트는 일일봉차트는 월, 월봉 차트는 년 세로구분선을 그리려면 어떻게 해야 할까요
TL_New
2025-10-29
184
글번호 227467
답변완료
수식 부탁드립니다
항상 노고에 감사드립니다다음수식을 변환 부탁드립니다##################################MO=floor(date/100);TO=sum(H);TT=countsince(MO!=MO(1),c>0);TD=TO-valuewhen(1,MO!=MO(1),TO(1));A=TD/TTMO=floor(date/100);TO1=sum(L);TT1=countsince(MO!=MO(1),c>0);TD1=TO1-valuewhen(1,MO!=MO(1),TO1(1));B=TD1/TT1
2025-10-29
188
글번호 227466
답변완료
지표 수정부탁 드립니다
1. 삼가표시 신호가 현재포함 과거 신호 표시되도록 부탁드려요input : usehigh_bear(true);input : line_forward(8);input : line_back(-200);input : label_offset(8);var : use_low_bull(0),use_high_bear(0);var : bull_dir(False),bear_dir(False),red_bar(false),green_bar(False);var : strong_bull_dir(False),strong_bear_dir(False),nuetral_bar(False);var : line_price(naN),label_price(NaN);var : is_bar_index(0),a(0),b(0),price(0);var : bull_break(False),bear_break(False);var : confirmed_bull_(False),bull_value(0);var : confirmed_bear_(False),bear_value(0);use_low_bull = IFf(uselow_bull,low,close);use_high_bear = IFF(usehigh_bear,high,close);bull_dir = close >= open[1];bear_dir = close <= open[1];red_bar = open < close;green_bar = open > close;strong_bull_dir = bull_dir and red_bar;strong_bear_dir = bear_dir and red_bar;nuetral_bar = strong_bear_dir == False and strong_bull_dir == False;is_bar_index = index;if is_bar_index>0 Then{ TL_Delete(line_price); Text_Delete(label_price); a = close; b = is_bar_index; line_price = TL_new(sDate,sTime,a,NextBarSdate,NextBarStime,a); TL_SetColor(line_price, IFf(strong_bull_dir , red ,IFf(strong_bear_dir , lime , IFf(nuetral_bar , orange, Black)))); TL_SetExtRight(line_price,true); TL_SetExtLeft(line_price,true); label_price = Text_new(NextBarSdate,NextBarStime,a, ntostr(a,2)); Text_SetColor(label_price,iFf(strong_bull_dir , red ,IFf(strong_bear_dir , lime , IFf(nuetral_bar , orange, Black)))); Text_SetSize(label_price,20);}//=================//BEGIN Definitions//=================price = close;bull_break = price > high[1] and price > high[2] and price > high[3] and price > high[4] and price > high[5] and price > high[6] and price > high[7] and price > high[8] and price > high[9] and price > high[10] and price > high[11] and price > high[12] and price > high[13] and price > high[14];//confirmed_bull_ = bull_break[1] and bull_break == False;if confirmed_bull_ == true Then bull_value = high;if bull_break == bull_break[1] Then plot1(bull_value,"bull_value",iff(bull_break != bull_break[1],Black ,red));Else NoPlot(1);bear_break = price < low[1] and price < low[2] and price < low[3] and price < low[4] and price < low[5] and price < low[6] and price < low[7] and price < low[8] and price < low[9] and price < low[10] and price < low[11] and price < low[11] and price < low[12] and price < low[13] and price < low[14];//confirmed_bear_ = bear_break[1] and bear_break == False; if confirmed_bear_ == true Then bear_value = low;if bear_break == bear_break[1] Then plot2(bear_value,"bear_value",iff(bear_break != bear_break[1],Black,green));Else NoPlot(2);input : rsiLen(6);input : rsiOverbought(85);input : rsiOversold(15);var : rsiValue(0),rsiisoverbt(False),rsiisoversld(False);var : bear_signal(False),bull_signal(False);var : bulllabel1(Nan),bulllabel2(nan),bullline(NaN);var : bearlabel1(Nan),bearlabel2(nan),bearline(NaN);rsiValue = rsi(rsiLen);rsiisoverbt = rsiValue >= rsiOverbought;rsiisoversld = rsiValue <= rsiOversold;bear_signal = (bear_break[1] and bear_break == False);bull_signal = (bull_break[1] and bull_break == False);if bull_signal Then{ Text_Delete(bulllabel1); bulllabel1 = Text_New(sDate,sTime,H,"Potential bear Reversal"+NewLine+NewLine); Text_SetColor(bulllabel1,Green); Text_SetStyle(bulllabel1,2,1); Text_Delete(bulllabel2); bulllabel2 = Text_New(sDate,sTime,H,"▼"); Text_SetColor(bulllabel2,Green); Text_SetStyle(bulllabel2,2,1); Text_SetSize(bulllabel2,20);}if bull_break Then{ TL_Delete(bullline); bullline = TL_new(sDate,sTime,use_high_bear,NextBarSdate,NextBarStime,use_high_bear); TL_SetExtRight(bullline,true); TL_SetColor(bullline,Red);}if bear_signal then{ Text_Delete(bearlabel1); bearlabel1 = text_new(sDate,sTime,L,"▲"); Text_SetColor(bearlabel1,Red); Text_SetStyle(bearlabel1,2,0); Text_SetSize(bearlabel1,20); Text_Delete(bearlabel2); bearlabel2 = text_new(sDate,sTime,L,NewLine+NewLine+"Potential bull Reversal"); Text_SetColor(bearlabel2,Red); Text_SetStyle(bearlabel2,2,0);}if bear_break Then{ TL_Delete(bearline); bearline = TL_new(sDate,sTime,use_low_bull,NextBarSdate,NextBarStime,use_low_bull); TL_SetExtRight(bearline,true); TL_SetColor(bearline,green);}var : Sell_signal(False),Buy_signal(False);var : bull_function(False),bear_function(False),custom_signal(False);Sell_Signal = bull_signal;Buy_Signal = bear_signal;bull_function = Buy_Signal;bear_function = Sell_Signal;custom_signal = (bull_function or bear_function);//END CUSTOM FUNCTIONS====// Plot BUY SELL markersinput : show_sell_signals(false);input : show_buy_signals(false);var : tx1(0),tx2(0);if show_sell_signals == true and Sell_Signal == true Then{ tx1 = text_new(sDate,sTime,H,"▼"); Text_SetColor(tx1,Red); Text_SetStyle(tx1,2,1); tx2 = text_new(sDate,sTime,H,"O-B"+NewLine); Text_SetColor(tx2,Yellow); Text_SetStyle(tx2,2,1);}if show_buy_signals == true and Buy_Signal == true Then{ tx1 = text_new(sDate,sTime,L,"▲"); Text_SetColor(tx1,Lime); Text_SetStyle(tx1,2,0); tx2 = text_new(sDate,sTime,L,NewLine+"O-S"); Text_SetColor(tx2,Yellow); Text_SetStyle(tx2,2,0);}
2025-10-29
251
글번호 227464
답변완료
수식 문의
안녕하세요, 수고많으세요, ~~!!아래 두 조건을 강조지표 수식으로 작성이 가능한지 도움요청 드립니다. 조건1) 종가가 BollBandDown(20,2) 보다 큰 구간을 박스로 “강조”,Orange, 표시예) C>BollBandDown && C<BollBandDown조건2) 0봉전 현재봉 저가 보다 4봉전까지, 저가가 큰 각 캔들의 저가 아래에 ●(Red) 표시예) L<=L[1] && L<=L[2] && L<=L[3] && L<=L[4]^*^
2025-10-29
210
글번호 227463
답변완료
수식 부탁드립니다
변환 부탁드립니다. //@version=6indicator("ML Prediction", overlay = true)// === Inputs ===window = input.int(10, minval = 10, title = "ML Window")forecast = input.int(1, title = "Forecast", tooltip = "Shift the ML output forward by given bars")sigma = input.float(0.1, step = 0.01, minval = 0, title = "Sigma")source = input.source(close, "Source")// === VWAP Calculation ===vwap = ta.vwap(source)// === ML Prediction Core Logic ===ml_base = ta.sma(source, window) // Base: simple moving averageml_adjusted = ml_base + sigma * (vwap - ml_base) // VWAP-weighted adjustmentml_output = ml_adjusted[forecast] // Forecast shift// === Plotting ===plot(vwap, color = color.new(color.blue, 0), title = "VWAP", linewidth = 2)plot(ml_output, color = color.new(color.orange, 0), title = "ML Prediction", linewidth = 2)
2025-10-29
364
글번호 227462
답변완료
Y축 크기
지표의 크기를 조건으로 Y축 크기를 자동 조절할 수 있을까요?가령 삼성전자 거래량을 예로 들면,시초가에 거래량이 너무 많아서 장중 거래량이 상대적으로 너무 미미하므로장중 거래량이 정확히 어느 정도인지 차트상에서 직관적으로 파악하기 어려운데..이것을 최근 n개의 봉 중에서 최고 거래량을 기준으로 지표 내 수식을 넣어 Y축 크기를 자동 조절할 수 있는 방법에 대해 문의 드립니다.
2025-10-29
292
글번호 227461