커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

수식부탁합니다.

var1이 볼린져밴드 상단이고 var2이 볼린저밴드 하단일때 5분봉 종가가 var2밑에서 끝난적이 있고 그이후에 var2선 위로 올라간후 var2선에 만나는 순간 매수식 부탁합니다. 그리고 var2선에 첫번째 닿을때는 거래안하고 두번째 닿을때 매수신호 또 세번째 닿을때는 거래 안하고 네번째 닿을때 거래하는 수식도 부탁합니다.
프로필 이미지
bakky73
2012-04-05
471
글번호 49777
시스템
답변완료

조건검색식

input : Period(3); var : Counter(0), Lowval(0), Highval(0), DownVel(0),UpVel(0), DnAroon(0),UpAroon(0) ; Lowval= Lowest(Low, Period+1); Highval = Highest(High, Period+1); For counter= 0 To Period { If Low[counter] == Lowval Then DownVel = counter; If High[counter] == highval Then UpVel = counter; } UpAroon = 100*(Period-UpVel)/Period; DnAroon = 100*(Period-DownVel)/Period; if crossup(UpAroon,DnAroon) Then find(1); UpAroon이 DnAroon 돌파 (골든크로스) 검색식을 원했는데 직접검색해보니 이미 돌파해서 진행중이거나 돌파하지않았는데 검색되는종목들이 많네요 왜이런거죠?
프로필 이미지
회원
2012-04-05
455
글번호 49775
검색
답변완료

초보 문의 드립니다.

초보적인 질문이라..ㅠㅠ 기존 시스템 수식들중.. 예를들어 obv new highs 와 obv new lows 가 있는데.. 하나는 매도식이고 하난는 매수식인데.. 두가지를 같이 쓰는 방법을 모르겠네요... 부탁드립니다.
프로필 이미지
천외일성
2012-04-05
387
글번호 49774
시스템
답변완료

문의드려요

일봉차트에서 볼린져밴드 수치를 분봉상태로 나타나게 하여 보고싶은대 수식좀 알려주세요 감사합니다 (일봉상의 중심선 상한선 하한선 수치를 분봉상에서)
프로필 이미지
먹튀르기니
2012-04-05
427
글번호 49772
지표
답변완료

시스템식 질문입니다

(C-EntryPrice)*CurrentContracts 으로 하면 피라미딩으로 제 각각 들어간 수익합을 제대로 나타낼수 있는 건가요? 예를 들어 120100 1계약 진입 120200 1계약 진입 120300 1계약 진입 120400 1계약 진입 ......이런 식으로 들어가는 시스템에서 총 수익합을 알고 싶습니다.
프로필 이미지
파인애플
2012-04-05
413
글번호 49771
시스템
답변완료

시스템식 질문입니다

1 피라미딩 설정으로 조건만족후 계속 1봉 마다 1계약 진입이 설정 되어있습니다 그럼 진입이후 시스템 성능 보고서에 나오는 수익 곡선을 나타낼수 있는 방법은 어떤건가요? 즉 초기진입이후 1계약이 추가되어 합계로 나타는 수익곡선의 수식 2 그 수익곡선에서 최고값에서 N% 하락하면 청산이란 식은 어떻게 해야 하나요? 수고하세요..
프로필 이미지
파인애플
2012-04-05
452
글번호 49769
시스템

천외일성 님에 의해서 삭제되었습니다.

프로필 이미지
천외일성
2012-04-05
84
글번호 49768
시스템
답변완료

혹시 이그림은 지표 알수 있나요?

1.곡선 그물망으로 곡선 수식좀 알려주세요 2. 키움지표인데요 수식 1 avg(c,3) 수식 2 (highest(high,midPeriod)+lowest(low,midPeriod))/2) 예스로 수식 바꿔주세요
프로필 이미지
누리맨
2012-04-05
645
글번호 49764
지표
답변완료

ct를 yt로 변경 부탁 드립니다.

안녕 하세요,, 아래의 7개의 ct를 yt로 변경 부탁 드립니다.. 1번째 Input: ups(0.1), dns(0.1), gapup(0.29), gapfill(0.18), s2(2.7) If opend>highd(1) Then Var1=100*((opend-highd(1))/highd(1)) End If If opend<lowd(1) Then Var1=100*((lowd(1)-opend)/lowd(1)) End If If tdate<>tdate(1) Then Var50=currententrynum End If Cond1=exitdate(1)=tdate And position(1)=1 Cond2=exitdate(1)=tdate And position(1)=-1 If currententrynum-var50<=2 Then If ttime <1500 Then If opend>highd(1) And Var1>ups Then If Cond1=False Then Call buy("GapUp매수",Atstop,Def,opend+(highd(1)-lowd(1))*gapup) End If If Cond2=False Then Call sell("GapFill매도",Atstop,Def, _ max(highd(1),opend-(highd(1)-lowd(1))*gapfill)) End If End If If opend<lowd(1) And Var1>dns Then If Cond2=False Then Call sell("GapDown매도",Atstop,Def,opend-(highd(1)-lowd(1))*gapup) End If If Cond1=False Then Call buy("GapFill매수",Atstop,Def,_ min(lowd(1),opend+(highd(1)-lowd(1))*gapfill)) End If End If End If End If If position<>0 Then Call exitlong("매수추적",Atstop,hhv(1,high,barnumsinceentry+1)-atr(20)*S2) Call exitshort("매도추적",Atstop,llv(1,low,barnumsinceentry+1)+atr(20)*S2) End If 2번째 Input: ups(0.5), dns(0.3), gapup(0.34), gapfill(0.19), s2(2.7) If opend>=closed(1) Then Var1=100*((opend-closed(1))/closed(1)) End If If opend<closed(1) Then Var1=100*((closed(1)-opend)/closed(1)) End If If tdate<>tdate(1) Then Var3=0 Else If i_position<>0 And i_position(1)<>i_position Then Var3=var3+1 End If End If If tdate<>tdate(1) Then Var50=currententrynum End If Cond1=exitdate(1)=tdate And position(1)=1 Cond2=exitdate(1)=tdate And position(1)=-1 If currententrynum-var50<=1 Then If ttime <1500 Then If opend>closed(1) And Var1>ups Then If Cond1=False then Call buy("GapUp매수",Atstop,Def,opend+(highd(1)-lowd(1))*gapup) End If If Cond2=False then Call sell("GapFill매도",Atstop,Def,max(closed(1),opend-(highd(1)-lowd(1))*gapfill)) End If End If If opend<closed(1) And Var1>dns Then If Cond2=False Then Call sell("GapDown매도",Atstop,Def,opend-(highd(1)-lowd(1))*gapup) End If If Cond1=False Then Call buy("GapFill매수",Atstop,Def,min(closed(1),opend+(closed(1)-lowd(1))*gapfill)) End If End If End If End If If position<>0 Then Call exitlong("매수추적",Atstop,hhv(1,high,barnumsinceentry+1)-atr(10)*s2) Call exitshort("매도추적",Atstop,llv(1,low,barnumsinceentry+1)+atr(10)*S2) End If 3번째 Input: s1(0.48), s2(2.7) Var1=highd(1) Var2=closed(1) Var3=lowd(1) Var4=closed(1) If abs(Var1-var4)>=abs(Var2-var3) Then Var10=abs(Var1-var4) Else Var10=abs(Var2-var3) End If Cond1= tdate=exitdate(1) And position(1)=1 Cond2= tdate=exitdate(1) And position(1)=-1 If Ttime<1500 Then If Cond1=False Then Call buy("매수",Atstop,Def,opend+var10*S1) End If If Cond2=False Then Call sell("매도",Atstop,Def,opend-var10*s1) End If End If If position<>0 Then Call exitlong("매수청산",Atstop,hhv(1,high,barnumsinceentry+1)-atr(20)*s2) Call exitshort("매도청산",Atstop,llv(1,low,barnumsinceentry+1)+atr(20)*s2) End If 4번째 Input: s1(0.37), s2(2.7) Var1=highd(1) Var2=lowd(1) Var3=closed(2) Var10=max(Var1,Var3)-min(Var2,Var3) Cond1= tdate=exitdate(1) And position(1)=1 Cond2= tdate=exitdate(1) And position(1)=-1 If Ttime<1500 Then If Cond1=False Then Call buy("매수",Atstop,Def,opend+var10*S1) End If If Cond2=False Then Call sell("매도",Atstop,Def,opend-var10*s1) End If End If If position<>0 Then Call exitlong("매수청산",Atstop,hhv(1,high,barnumsinceentry+1)-atr(20)*s2) Call exitshort("매도청산",Atstop,llv(1,low,barnumsinceentry+1)+atr(20)*s2) End If 5번째 Input: len1(3), len2(2), level(0.13), s2(2.7), s3(0.01) Var1=opend+(highd(1)-lowd(1))*level Var2=opend-(highd(1)-lowd(1))*level Cond1= tdate=exitdate(1) And position(1)=1 Cond2= tdate=exitdate(1) And position(1)=-1 If ttime<1500 Then If Var1<high Then If countwhen(high>high(1),len1)=len1 Then If Cond1=False Then Call buy("매수",Atstop,Def,high+Atr(20)*S3) End If End If End If If Var2>low Then If countwhen(low<low(1),len2)=len2 Then If Cond2=False Then Call sell("매도",Atstop,Def,low-Atr(20)*S3) End If End If End If End If If position<>0 Then Call exitlong("추적스탑",Atstop,hhv(1,high,barnumsinceentry+1)-atr(20)*s2) Call exitshort("추적스탑",Atstop,llv(1,low,barnumsinceentry+1)+atr(20)*S2) End If 6번째 Input: len1(2), len2(2), level(0), s2(2.7), s3(0.01) Var1=opend+(highd(1)-lowd(1))*level Var2=opend-(highd(1)-lowd(1))*level Cond1= tdate=exitdate(1) And position(1)=1 Cond2= tdate=exitdate(1) And position(1)=-1 If ttime<1500 Then If Var1<=close Then If countwhen(close>open,len1)=len1 And countwhen(close>close(1),len1)=len1 _ And countwhen(high>high(1),len1)=len1 Then If Cond1=False Then Call buy("매수",Atstop,Def,high+Atr(20)*S3) End If End If End If If Var2>close Then If countwhen(close<open,len2)=len2 And countwhen(close<close(1),len2)=len2 _ And countwhen(low<low(1),len2)=len2 Then If Cond2=False Then Call sell("매도",Atstop,Def,low-Atr(20)*S3) End If End If End If End If If position<>0 Then Call exitlong("추적스탑",Atstop,hhv(1,high,barnumsinceentry+1)-atr(20)*s2) Call exitshort("추적스탑",Atstop,llv(1,low,barnumsinceentry+1)+atr(20)*S2) End If 7번째 Input: s2(2.7), len1(3), len2(2), s3(0.9), s4(0.29) Var1=high-low '봉의 Range Var10=high+low If open>=close Then Var2=open-close '음봉 body Elseif close>open Then Var2=close-open '양봉 body End If Cond1=close(1)<open(1) And close>open And close>open(1) And close(1)>open 'bull engulfing Cond2=close(1)>open(1) And close<open And close<open(1) And close(1)<open 'bear engulfing Cond3=var2*2<min(open,close)-low And Var10*0.7 < max(open,close) 'hammer, hanging man Cond4=var2*2<high-max(open,close) And Var10*0.3 > min(open,close) 'inverted hammer 'shooting star Cond5= open=close 'doji Cond6= open=close And close>var10*0.7 'dragonfly doji Cond7= open=close And close<var10*0.3 'garvestone Cond8=close(1)<open(1) And close>open And close>var10(1)*0.5 _ And close(1)>open And close<open(1) 'piercing Cond9=close(1)>open(1) And close<open And close<var10(1)*0.5 _ And close(1)<open And close>open(1) 'dark cloud ' 세개의 봉 Cond10=close(2)>open(2) And Var1(2)>var1(1) And close(1)>open(1) _ And close(2)<close(1) And close(2)<open(1) _ And open>close And close>close(2) 'evening star Cond11=close(2)<open(2) And Var1(2)>var1(1) And close(1)<open(1) _ And close(2)>close(1) And close(2)>open(1) _ And open<close And close<close(2) 'morning star If ttime<1500 Then If opend<=close Then If llv(1,low,len1)=low Then If Cond4 Or Cond5 Or Cond6 Then Call buy("매수",Atstop,Def,high+Atr(20)*S3) End If End If End If If opend>close Then If hhv(1,high,len1)=high Then If Cond4 Or Cond5 Or Cond7 Then Call sell("매도",Atstop,Def,low-Atr(20)*S3) end If End If End If End If If ttime<1500 Then If opend<=close Then If llv(1,low,len2)=low Then If Cond11 Or Cond1 Or Cond8 Then Call buy("매수",Atstop,Def,high+Atr(20)*S4) End If End If End If If opend>close Then If hhv(1,high,len2)=high Then If Cond10 Or Cond2 Or Cond9 Then Call sell("매도",Atstop,Def,low-Atr(20)*S4) End If End If End If End If If tdate<>tdate(1) Then Var50=currententrynum End If Cond50= tdate=exitdate(1) And position(1)=1 Cond49= tdate=exitdate(1) And position(1)=-1 If currententrynum-var50<=1 Then If ttime <1500 Then If opend>highd(1) Then If Cond50=False Then Call buy("GapUp매수",Atstop,Def,opend+(highd(1)-lowd(1))*0.3)' End If If Cond49=False Then Call sell("GapFill매도",Atstop,Def,max(highd(1),opend-(highd(1)-lowd(1))*0.2)) End If End If If opend<lowd(1) Then If Cond49=False Then Call sell("GapDown매도",Atstop,Def,opend-(highd(1)-lowd(1))*0.3) End If If Cond50=False Then Call buy("GapFill매수",Atstop,Def,min(lowd(1),opend+(highd(1)-lowd(1))*0.2)) End If End If End If End If If position<>0 Then Call exitlong("추적스탑",Atstop,hhv(1,high,barnumsinceentry+1)-atr(20)*s2) Call exitshort("추적스탑",Atstop,llv(1,low,barnumsinceentry+1)+atr(20)*S2) End If
프로필 이미지
rlaxoeh
2012-04-05
439
글번호 49759
시스템