커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

문의

당일베이시스 고점저점을 선으로 나타나게 하고 싶습니다
프로필 이미지
레전드
2013-02-24
272
글번호 59874
지표

aaace 님에 의해서 삭제되었습니다.

프로필 이미지
aaace
2013-02-23
188
글번호 59873
시스템
답변완료

문의 합니다.

1. 오늘 종가가 전일대비 +10%~ +15% 사이에 상승한 종목검색식 2. 오늘 종가가 전일대비 +1%~ +5% 사이에있으며 양봉인 종목검색식 이두가지 검색식 문의드립니다.
프로필 이미지
골더
2013-02-22
245
글번호 59872
검색
답변완료

문의

solar wind 란 지표인데 예스에서 지원안하는것 같더라구요 #property copyright "Copyright ?2005, Yura Prokofiev" #property link "Yura.prokofiev@gmail.com" #property indicator_separate_window #property indicator_buffers 3 #property indicator_color1 Black #property indicator_color2 Blue #property indicator_color3 Red extern int period=10; extern bool DoAlert = true; double ExtBuffer0[]; double ExtBuffer1[]; double ExtBuffer2[]; int init() { SetIndexStyle(0,DRAW_NONE); SetIndexStyle(1,DRAW_HISTOGRAM); SetIndexStyle(2,DRAW_HISTOGRAM); IndicatorDigits(Digits+1); SetIndexBuffer(0,ExtBuffer0); SetIndexBuffer(1,ExtBuffer1); SetIndexBuffer(2,ExtBuffer2); IndicatorShortName("SOLAR WIND"); SetIndexLabel(1,NULL); SetIndexLabel(2,NULL); return(0); } int start() { //int period=10; int limit; int counted_bars=IndicatorCounted(); double prev,current,old; double Value=0,Value1=0,Value2=0,Fish=0,Fish1=0,Fish2=0; double price; double MinL=0; double MaxH=0; if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i<limit; i++) { MaxH = High[Highest(NULL,0,MODE_HIGH,period,i)]; MinL = Low[Lowest(NULL,0,MODE_LOW,period,i)]; price = (High[i]+Low[i])/2; Value = 0.33*2*((price-MinL)/(MaxH-MinL)-0.5) + 0.67*Value1; Value=MathMin(MathMax(Value,-0.999),0.999); ExtBuffer0[i]=0.5*MathLog((1+Value)/(1-Value))+0.5*Fish1; Value1=Value; Fish1=ExtBuffer0[i]; } bool up=true; static datetime cDT = 0; if (cDT == 0) { cDT = iTime(NULL,0,0); } // Don't alert when start for(i=limit-2; i>=0; i--) { current=ExtBuffer0[i]; prev=ExtBuffer0[i+1]; if (((current<0)&&(prev>0))||(current<0)) up= false; if (((current>0)&&(prev<0))||(current>0)) up= true; if(!up) { ExtBuffer2[i]=current; ExtBuffer1[i]=0.0; if (DoAlert && (cDT != iTime(NULL,0,0)) && (ExtBuffer2[i+1]==0)) { cDT = iTime(NULL,0,0); Print("** Solar wind crossed down"); PlaySound("Alert1.wav"); } } else { ExtBuffer1[i]=current; ExtBuffer2[i]=0.0; if (DoAlert && (cDT != iTime(NULL,0,0)) && (ExtBuffer1[i+1]==0)) { cDT = iTime(NULL,0,0); Print("** Solar wind crossed up"); PlaySound("Alert1.wav"); } } } return(0); } 위소스인데 예스에 적용하려면 어찌하는지요?? ===== //+------------------------------------------------------------------+ //| TrendEnvelopes_v1.mq4 | //| Copyright ?2006, TrendLaboratory Ltd. | //| http://finance.groups.yahoo.com/group/TrendLaboratory | //| E-mail: igorad2003@yahoo.co.uk | //+------------------------------------------------------------------+ #property copyright "Copyright ?2006, TrendLaboratory Ltd." #property link "http://finance.groups.yahoo.com/group/TrendLaboratory" //---- indicator settings #property indicator_chart_window #property indicator_buffers 4 #property indicator_color1 LightBlue #property indicator_color2 Orange #property indicator_width1 2 #property indicator_width2 2 #property indicator_color3 LightBlue #property indicator_color4 Orange #property indicator_width3 2 #property indicator_width4 2 //---- indicator parameters extern int MA_Period =14; extern int MA_Shift =0; extern int MA_Method =3; extern int Applied_Price=0; extern double Deviation =0.2; extern int UseSignal =0; //---- indicator buffers double UpBuffer[]; double DnBuffer[]; double UpSignal[]; double DnSignal[]; double smax[]; double smin[]; double trend[]; //---- int ExtCountedBars=0; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { int draw_begin; string short_name; //---- drawing settings IndicatorBuffers(7); SetIndexStyle(0,DRAW_LINE); SetIndexShift(0,MA_Shift); SetIndexStyle(1,DRAW_LINE); SetIndexShift(1,MA_Shift); // SetIndexStyle(2,DRAW_ARROW); SetIndexShift(2,MA_Shift); SetIndexArrow(2,233); SetIndexStyle(3,DRAW_ARROW); SetIndexShift(3,MA_Shift); SetIndexArrow(3,234); // IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS)); if(MA_Period<2) MA_Period=14; draw_begin=MA_Period-1; //---- indicator short name IndicatorShortName("Env("+MA_Period+")"); SetIndexLabel(0,"UpTrendEnv"); SetIndexLabel(1,"DnTrendEnv"); SetIndexLabel(2,"UpSignal"); SetIndexLabel(3,"DnSignal"); SetIndexDrawBegin(0,draw_begin); SetIndexDrawBegin(1,draw_begin); SetIndexDrawBegin(2,draw_begin); SetIndexDrawBegin(3,draw_begin); //---- indicator buffers mapping SetIndexBuffer(0,UpBuffer); SetIndexBuffer(1,DnBuffer); SetIndexBuffer(2,UpSignal); SetIndexBuffer(3,DnSignal); SetIndexBuffer(4,smax); SetIndexBuffer(5,smin); SetIndexBuffer(6,trend); if(Deviation<0.1) Deviation=0.1; if(Deviation>100.0) Deviation=100.0; //---- initialization done return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit; if(Bars<=MA_Period) return(0); ExtCountedBars=IndicatorCounted(); //---- check for possible errors if (ExtCountedBars<0) return(-1); //---- last counted bar will be recounted if (ExtCountedBars>0) ExtCountedBars--; limit=Bars-ExtCountedBars; //---- EnvelopesM counted in the buffers for(int i=limit; i>=0; i--) { smax[i]=(1+Deviation/100)*iMA(NULL,0,MA_Period,0,MA_Method,Applied_Price,i); smin[i]=(1-Deviation/100)*iMA(NULL,0,MA_Period,0,MA_Method,Applied_Price,i); trend[i]=trend[i+1]; if (Close[i]>smax[i+1]) trend[i]=1; if (Close[i]<smin[i+1]) trend[i]=-1; if(trend[i]>0) { if (smin[i]<smin[i+1]) smin[i]=smin[i+1]; UpBuffer[i]=smin[i]; if (UseSignal>0) if (trend[i+1]<0) UpSignal[i]=Low[i]-0.5*iATR(NULL,0,MA_Period,i); DnBuffer[i]=EMPTY_VALUE; } else { if(smax[i]>smax[i+1]) smax[i]=smax[i+1]; DnBuffer[i]=smax[i]; if (UseSignal>0) if (trend[i+1]>0) DnSignal[i]=High[i]+0.5*iATR(NULL,0,MA_Period,i); UpBuffer[i]=EMPTY_VALUE; } } //---- done return(0); } //+------------------------------------------------------------------+ 위소스 총 2개 변환부탁드립니다
프로필 이미지
디프론티어
2013-02-22
1169
글번호 59871
지표
답변완료

파일관리자

안녕하세요 파일관리자에 보면 지표,검색,강조 등등 대분류가 있는데요 여기에 지표2를 추가 할수 없나요?
프로필 이미지
100억의사나이
2013-02-22
315
글번호 59870
지표
답변완료

수식도움 부탁 좀 드립니다.

input:left(3),right(3),구분(1); var:j(0),prehv(0),prelv(0),prehb(0),prelb(0),tmpv(0),tmpb(0),ovr(0),반등(1),반락(-1); array:hv[10](0),lv[10](0),hb[10](0),lb[10](0),r[3](0),fr[3](0); r[0] = 0; r[1] = 0.5; r[2] = 1; # 스윙포인트 if highest(h[1],left) <= h then { prehv = h; prehb = 0; } else prehb = prehb + 1; if lowest(l[1],left) >= l then { prelv = l; prelb = 0; } else prelb = prelb + 1; for j = 1 to 9 begin hb[j] = hb[j] + 1; lb[j] = lb[j] + 1; end; if prehb == right and highest(h,right) <= h[right] then { for j = 9 downto 2 { hv[j] = hv[j-1]; hb[j] = hb[j-1]; } hv[1] = prehv; hb[1] = prehb; if lb[1] > hb[2] then { for j = 9 downto 2 { lv[j] = lv[j-1]; lb[j] = lb[j-1]; } tmpv = 0; for j = hb[1] + 1 to hb[2] - 1 { if tmpv > l[j] or tmpv ==0 then { tmpv = l[j]; tmpb = j; } } lv[1] = tmpv; lb[1] = tmpb; } } if prelb == right and lowest(l,right) >= l[right] then { for j = 9 downto 2 { lv[j] = lv[j-1]; lb[j] = lb[j-1]; } lv[1] = prelv; lb[1] = prelb; if hb[1] > lb[2] then { for j = 9 downto 2 { hv[j] = hv[j-1]; hb[j] = hb[j-1]; } tmpv = 0; for j = lb[1] + 1 to lb[2] - 1 { if tmpv < h[j] or tmpv ==0 then { tmpv = h[j]; tmpb = j; } } hv[1] = tmpv; hb[1] = tmpb; } } # 비율 if 구분 == 반등 then { if crossup(lb[1],hb[1]) then { for j = 0 to 2 begin fr[j] = hv[1] - (hv[1] - lv[1]) * r[j]; end; ovr = 0; } } if 구분 == 반락 then { if crossup(hb[1],lb[1]) then { for j = 0 to 2 begin fr[j] = lv[1] + (hv[1] - lv[1]) * r[j]; end; ovr = 0; } } # 지표 plot1(fr[0],"고",RED,3); //현재 고가 plot2(fr[1],"중",BLACK,3); //현재 중간 plot3(fr[2],"저",BLUE,3); //현재 저가 수고 많으십니다. 위 수식은 다른 분이 작성한 것을 나름대로 수정해 본 것입니다. 질문은 현재값 이전의 직전(현재에서 1번째 과거) 고가 중간 저가값과 전전(현재에서 2번째 과거) 고가 중간 저가값을 위 지표처럼 나타내고 싶은데 저 같은 초보는 아무리해도 원하는 대로는 안되는군요. 봉을 기준한 과거값을 나타내려는 것이 아니라 현재값(직선으로 표시되는)을 기준으로 전과거값과 전전과거값을 나타내려는 것입니다. 도움 좀 주시면 감사하겠습니다.
프로필 이미지
차트연구
2013-02-22
349
글번호 59868
지표
답변완료

청산식에서

안녕하세요? 청산식에서 Else if BarsSinceEntry > aaa1 and BarsSinceEntry <= aaaa1 then {exitlong("매수손절a개봉후",AtStop,Var3-aaa3); #진입후a째봉의 저가에서 aaa3 빠지면 손익절. exitlong("매수손절1",AtStop,Var1-aaa2);} # 또는 진입봉저가var1에서 aaa2빠지면 손익절. 이렇게 했는데 제대로 청산이 안되고 그냥 넘어갑니다. 수식에서 잘못된것이 있는지요?
프로필 이미지
족구마왕
2013-02-22
265
글번호 59863
시스템
답변완료

재문의합니다.

수식에서 #막대, #선 , RGB로 색깔 설정 을 나타낼수 있는데 채우기 또한 수식에서 가능한가요??
프로필 이미지
100억의사나이
2013-02-22
297
글번호 59861
지표

이의정 님에 의해서 삭제되었습니다.

프로필 이미지
이의정
2013-02-22
64
글번호 59858
시스템