커뮤니티
예스랭귀지 Q&A
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1480
글번호 230811
답변완료
문의드립니다
키움수식인데 예스로 변환 부탁드립니다
(valuewhen(1, C>C(1), C)+
valuewhen(2, C>C(1), C)+
valuewhen(3, C>C(1), C))/3
2023-11-27
817
글번호 174332
답변완료
문의드립니다.
수고 많으십니다.
[전략개요]
시가를 상향 돌파하면 매수, 하향 돌파하면 매도하는 돌파 매매와
시가를 지지하면 매수, 저항 받으면 매도하는 지지저항 매매를 합친 전략입니다.
[전제조건]
1. 시가기준 50틱 이상 시가 위나 아래로 반드시 1번은 갔다가 내려오거나 올라가서 1. 시가에 근접하거나 2. 시가를 완전히 돌파할 때만 작동해야 합니다.
2. 1번 50틱 변동성이 생긴후 되돌림이 나와 진입이 1회 되었다면 그다음 다시 50틱 이상 위나 아래로 변동성이 생기기 전까진 진입 신호가 나오지 않아야 합니다.
[진입/손청조건]
1. [시가에서 50틱 이상 빠졌다가 올라와서] 시가 바로 3틱 아래에서 1계약, 시가에서 추가로 1계약, 총 2계약을 "매도"진입합니다.
만일 시가를 뚫고 10틱을 올라가 버리면 모두 손청합니다.
2. [시가에서 50틱 이상 빠졌다가 올라와서] 시가를 돌파해 15틱 올라가면 1계약, 25틱 올라가면 추가로 1계약 더 "매수"합니다.
만일 이후 익절되지 못하고 되돌림이 나와 시가를 뚫고 5틱 빠져버리면 모두 손청합니다.
[익절조건]
진입가에서 30틱 이상 수익나면 1계약 먼저 익절 후 나머지 1계약은 진입가에서 30틱 이상 올라간 시점부터 최고점대비 15틱이 밀리면 익절합니다.
★ 위의 [진입/손청조건]과 반대로도 적용되게 수식 부탁드립니다.
덕분에 실력이 조금씩 늘고 있습니다.
노고에 늘 진심으로 감사드립니다.
2023-11-26
1058
글번호 174330
답변완료
캔들검색
*안녕하세요
해외선물 5분봉에서 22시 35분 캔들을 노랑으로 구분(검색 혹은 강조)가능 수식 부탁드립니다.
2023-11-26
952
글번호 174329
파워 님에 의해서 삭제되었습니다.
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
1718
글번호 174325
답변완료
수식 문의 합니다
안녕 하세요
일목균형표에서 선행스팬1을 후행스팬과 같이 뒤로 -25봉 이동하여
구름대 상단을 돌파하면 매수
구름대 하단을 돌파하면 매도하는 수식을
부탁 드립니다
항상 빠른 답변 감사합니다
수고 하세요.
2023-11-26
1308
글번호 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
1786
글번호 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
1128
글번호 174321