커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
3456
글번호 230811
파워 님에 의해서 삭제되었습니다.
2023-11-26
1216
글번호 174328
답변완료
CT를 YT로 변환 요청합니다.
1
Input: len(10), len1(70), len2(0.37), s1(2.7), method(1), delay(8)
If method=1 Then
Var1=atr(len)
Var2=atr(len1)
Elseif method=2 Then
Var20=high-low
Var1=mov(Var20,len,s)
Var2=mov(Var20,len1,s)
End If
Cond1=tdate=exitdate(1) And position(1)=1
Cond2=tdate=exitdate(1) And position(1)=-1
If Var1<var2 Then
Var10=1
Else
Var10=0
End If
If hhv(1,Var10,delay)=1 Then
If ttime<1500 Then
If Cond1=False And high<opend+(highd(1)-lowd(1))*len2 Then
Call buy("매수",Atstop,Def,opend+(highd(1)-lowd(1))*len2)
End If
IfCond2=False And low>opend-(highd(1)-lowd(1))*len2 Then
Call sell("매도",Atstop,Def,opend-(highd(1)-lowd(1))*len2)
End If
If Cond1=False And high>opend+(highd(1)-lowd(1))*len2 Then
Call buy("매수1",Atstop,Def,hhv(1,high,delay))
End If
If Cond2=False And low<opend-(highd(1)-lowd(1))*len2 Then
Callsell("매도1",Atstop,Def,llv(1,low,delay))
End If
End if
End If
If position<>0then
Call exitlong("매수청산",Atstop,hhv(1,high,barnumsinceentry+1)-atr(20)*s1)
Call exitshort("매도청산",Atstop,llv(1,low,barnumsinceentry+1)+atr(20)*s1)
End If
2
Input: len(40), len1(1), len2(30), multi(5), delay(5), s1(0.37), s2(2.7)
Var50=bbandtop(close,len,len1,s)
Var49=bbandbot(close,len,len1,s)
Var1=var50-var49
Var2=high-low
Var3=mov(Var2,len2,s)*multi
Cond1= tdate=exitdate(1) And position(1)=1
Cond2= tdate=exitdate(1) And position(1)=-1
If Var1<var3 Then
Var10=1
Else
Var10=0
End If
If hhv(1,Var10,delay)=1 then
If ttime<1500 Then
If Cond1=False And bbandmid(close,len,len1,s)>bbandmid(close,len,len1,s,1) Then
Call buy("매수",Atstop,Def,opend+(highd(1)-lowd(1))*s1)
End If
If Cond2=False And bbandmid(close,len,len1,s)<bbandmid(close,len,len1,s,1) Then
Call sell("매도",Atstop,Def,opend-(highd(1)-lowd(1))*s1)
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
3(그물망)
Input :len(20), cont(10), stepp(2), multi(2), delay(5), s1(0.37), s2(2.7)
Var50=mov(close,len,s)
Var49=mov(close,len,s)
For i = 1 To cont
If Var50<mov(close,len+stepp*i,s) Then
Var50=mov(close,len+stepp*i,s)
End If
If Var49>mov(close,len+stepp*i,s) Then
Var49=mov(close,len+stepp*i,s)
End If
Next
Var1=var50-var49
Var2=high-low
Var3=mov(Var2,len,s)*multi
Cond1= tdate=exitdate(1) And position(1)=1
Cond2= tdate=exitdate(1) And position(1)=-1
If Var1<var3 Then
Var10=1
Else
Var10=0
End If
If hhv(1,Var10,delay)=1 And hhb(1,Var10,delay)=delay-1 Then
If ttime<1500 Then
If Cond1=False Then
Call buy("매수",Atstop,Def,opend+(highd(1)-lowd(1))*s1)
End If
If Cond2=False Then
Call sell("매도",Atstop,Def,opend-(highd(1)-lowd(1))*s1)
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
4(adx)
Input: len(21), level(30), delay(2), s1(0.37), s2(2.7)
Var1=adx(len)
Cond1= tdate=exitdate(1) And position(1)=1
Cond2= tdate=exitdate(1) And position(1)=-1
If Var1<level And Var1>var1(delay) Then
If ttime<1500 Then
If Cond1=False Then
Call buy("매수",Atstop,Def,opend+(highd(1)-lowd(1))*s1)
End If
If Cond2=False Then
Call sell("매도",Atstop,Def,opend-(highd(1)-lowd(1))*s1)
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
5(ID)
Input: delay(9), s1(0.2), s2(2.7), s3(0.49)
Var1=high-low
Var2=mov(Var1,delay,s)
Cond12=False
If ttime<1500 Then
Cond12=high(1)>=high And low(1)<=low And tdate=tdate(1)
End If
If Cond12=True Then
Var10=1
Else
Var10=0
End If
Cond1= tdate=exitdate(1) And position(1)=1
Cond2= tdate=exitdate(1) And position(1)=-1
If hhv(1,Var10,delay)=1 And tdate(hhb(1,Var10,delay))= tdate Then
If ttime<1500 And Cond1=False Then
If opend+(highd(1)-lowd(1))*s1<close Then
Call buy("매수",Atstop,Def,high+var2*s3)
End If
End If
If ttime<1500 And Cond2=False Then
If opend-(highd(1)-lowd(1))*s1>close Then
Call sell("매도",Atstop,Def,low-var2*s3)
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(NR)
Var1=high-low
Cond11=False
Cond11= Var1=llv(1,Var1,len) And ttime<1500
Cond1= tdate=exitdate(1) And position(1)=1
Cond2= tdate=exitdate(1) And position(1)=-1
If ttime<1500 Then
If Cond1=False Then
If Cond11=True And Cond11(1)=False Then
If opend+(highd(1)-lowd(1))*s1<close Then
Call buy("매수",Atstop,Def,high+var1*s3)
End If
End If
End If
If Cond2=False Then
If Cond11=True And Cond11(1)=False Then
If opend-(highd(1)-lowd(1))*s1>close Then
Call sell("매도",Atstop,Def,low-var1*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: s1(0.37), s2(2.7)
'NR2
If highd(1)-lowd(1)=min(highd(1)-lowd(1),highd(2)-lowd(2)) Then
Cond11=True
Else
Cond11=False
End If
'ID,ID2
If (highd(2)>=highd(1) And lowd(2)<=lowd(1)) _
Or (highd(3)>=highd(2) And lowd(3)<=lowd(2) And _
highd(2)>=highd(1) And lowd(2)<=lowd(1))Then
Cond12=True
Else
Cond12=False
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
If Cond11=True Or Cond12=True Then
Call buy("매수",Atstop,Def,opend+(highd(1)-lowd(1))*s1)
end if
End If
If Cond2=False Then
If Cond11=True Or Cond12=True Then
Call sell("매도",Atstop,Def,opend-(highd(1)-lowd(1))*s1)
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
항상 감사드립니다.
2023-11-26
1736
글번호 174325
답변완료
수식 문의 합니다
안녕 하세요
일목균형표에서 선행스팬1을 후행스팬과 같이 뒤로 -25봉 이동하여
구름대 상단을 돌파하면 매수
구름대 하단을 돌파하면 매도하는 수식을
부탁 드립니다
항상 빠른 답변 감사합니다
수고 하세요.
2023-11-26
1324
글번호 174324
2wnwn 님에 의해서 삭제되었습니다.
2023-11-26
49
글번호 174323
답변완료
일목균형매매 단타
정현=Shift ((highest (high, shortPeriod)+
lowest (low,shortPeriod)+
highest (high,midperiod)+
lowest (low,midperiod))/4,midperiod-1);
주식꾸러기=Shift((highest(high,
longperiod)+
lowest (low, longperiod))/2,midPeriod-1);
crossup(C, Max(정현, 주식꾸러기))
2023-11-26
1820
글번호 174322
답변완료
시스템 작성의뢰
수고 하십니다 !
거래량 이동평균선 5선이 15 이상 상승 하고 이동평균선 1 선부터 3840 선까지 정배열을 한후 er bear power 지표가 상승을 하며 이평선 1 선이 240 이평선을 다운 크로스 할때 매도를
하고 20 틱이상 하락하고 er bear power 지표가 하락을 하며 이동평균선 1 선 부터 3840 선까지 역배열을 한 후 이평선 1 선이 240 이평선을 업 크로스 할 때 청산을 하고
거래량 이동평균선 5선이 15 이상 상승 하고 이동평균선 1 선부터 3840 선까지 역배열을 한후 er bear power 지표가 하락을 하며 이평선 1 선이 240 이평선을 업 크로스 할때 매수를
하고 20 틱이상 상승하고 er bear power 지표가 상승을 하며 이동평균선 1 선 부터 3840 선까지 정배열을 한 후 이평선 1 선이 240 이평선을 다운 크로스 할 때 청산을 하는
시스템 작성을 부탁드립니다 *****
2023-11-25
1146
글번호 174321
ujkl 님에 의해서 삭제되었습니다.
2023-11-25
28
글번호 174320
답변완료
900분봉에서 최저가격 검색
15분봉에서
900봉(900봉*15분/60분/일일6.5시간=약 35일)의 최저가격을 검색코자 합니다.
수식은
input : Period(900);
if lowest(C,Period) Then
Find(1);
으로 작성해봤는데 문제없나요?
만약 7봉전에 최저가발생한걸 0봉에 검색하려면 무얼 수정해야 하나요?
그런데, 파워종목검색에서 500봉으로 제한되어 있는 거 같습니다.
수식이나 파워종목검색에서 일봉 35봉의 최저가 등으로 우회하여
종국에는 15분봉 900봉의 최저가를 검색할 방법이 없을까요?
2023-11-26
976
글번호 174319
답변완료
수식좀 부탁 드립니다.
* 좋은 하루 되십시요.
2023-11-25
1135
글번호 174318