커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

자아준 님에 의해서 삭제되었습니다.

프로필 이미지
자아준
2013-10-24
14
글번호 68772
시스템
답변완료

지표식 부탁드립니다

안녕하세요? 아래식을 예스로 변경 부탁드립니다. 1.highest(C(1), Period) < C lowest(C(1), Period) > C 조건설정 : period : 200 2.당일 30분 고가, 저가 나오게 지표식 부탁드립니다. 우리트레드 사용하고 있습니다. 감사합니다.
프로필 이미지
키오
2013-10-23
205
글번호 68771
지표
답변완료

문의드립니다.

1. 전봉L[1]과 전전봉L[2]의 가장 낮은 저가보다 1틱 낮아질때 매수청산하는 식은 어떻게 짜야하나요? 2. 아래와 같이 작성하시면 진입봉의 저가보다 한틱이상 낮은 시세가 발생하면 즉시 신호가 발생하게 되는거라고 설명해주셨는데...아래처럼 두 식을 모두 써야하는건가요? if MarketPosition != 1 Then ExitLong("bx",AtStop,L-PriceScale); 이곳에서 마켓포지션이 매수가 아닐때 매수청산하는게 무슨뜻인지 이해가 잘 안되고요;; if MarketPosition == 1 Then ExitLong("bx",AtStop,L[BarsSinceEntry]-PriceScale); 이곳에서 진입봉의 저가라는게 L[BarsSinceEntry]이것을 의미하는건가요?;; 예스랭귀지 도움말 워드파일을 봤는데도, 아직 익숙치가 않아 쉽게 이해가 안갑니다^^;;
프로필 이미지
system84
2013-10-23
179
글번호 68770
시스템
답변완료

부탁드립니다..

아래식이 트레이드스테이션인데 에스랭귀지로 작동되도록 전환 부탁드리고 거기다 당일청산으로 거래 되도록 부탁드립니다... 예) 9시 10분 시작, 14시 40분 정도 청산 ========================================== Inputs: Price(Close), Length(9); Variables: AvgVal(0), DerivMA1(0), DerivMA2(0), BuyFlag(False), SellFlag(False); {Derivative Calculation} AvgVal = Average(Price, Length); {First Derivative} DerivMA1 = (AvgVal - AvgVal[Length]) / Length; {Second Derivative} DerivMA2 = (DerivMA1 - DerivMA1[1]) / 1; {Setup Conditions} Condition1 = DerivMA1 Crosses Below 0; Condition2 = DerivMA1 Crosses Above 0; Condition3 = DerivMA2 Crosses Below 0; Condition4 = DerivMA2 Crosses Above 0; {Setup} If Condition4 Then BuyFlag = True; If Condition3 Then SellFlag = True; {Long Entry} If Condition2 AND BuyFlag Then Begin Buy Next Bar at Close + 1 Point Stop; BuyFlag = False; End; {Short Entry} If Condition1 AND SellFlag Then Begin Sell Next Bar at Close - 1 Point Stop; SellFlag = False; End;
프로필 이미지
머니사이언스
2013-10-23
207
글번호 68769
시스템
답변완료

수식 문의

다음을 어떻게 표현하나요? 1. 만기주이면 : if ~~ ? 2. 만기 전주이면: if ~~ ? 3. 만기 전전주: 4. 만기 전전전주: 5. 만기 전전전전주: 6. 만기주의 다음주(즉, 월물의 첫 월요일~): 7. 만기일이면: if ~~ ? 8. 만기전날이면: if ~~ ? 9. 만기 전전날이면: if ~~ ? 10. 만기 전주 금요일이면: if ~~ ? 감사합니다.
프로필 이미지
에구머니
2013-10-23
180
글번호 68768
지표
답변완료

문의 드립니다.

수고 하십니다. 저는 시스템 옵션 할려는 사람입니다. 09시 08분 이후에 당일 코스피종합지수 최고점과 최저점 차이가 10포인트 이상 나고 옵션가격이 최고점을 돌파할때 옵션매수 하는 수식을 만들어 주실 수 있을까요? 감사합니다.
프로필 이미지
회원
2013-10-23
191
글번호 68767
시스템
답변완료

시스템식 부탁 드립니다.

1. if~then 문으로 (dayopen-1.0>C) and (매수조건) = 만족 즉시 매수진입 하려고 하는데 시물레이션을 해보니, 시초가에서 최저가가 1.0 이하까지 내려 갔었는데도 봉의 종가가 시가보다 1.0 이상인 경우(긴꼬리도지) 매수진입이 안 된 것으로 나옵니다. 시물레이션에서만 그렇고 실매매시에는 조건 만족시 진입이 되는지요? if~then 문장으로 하면 안되고 다른 것으로 하는 방법이 있으면 알려 주십시오.
프로필 이미지
몸통공격
2013-10-23
194
글번호 68766
시스템
답변완료

바쁘신대 수정 부탁드립니다

아래식은 야간장 시가를 기준가로 하는 매매식입니다 이식을 토대로 기준가를 주간장 당일 시가로 변경하고 싶습니다 아래식에서 야간장 시가로 되어 있는 수식은 전부 파악하여 주간장 당일 시가로 빠짐없이 변경 부탁드립니다 바쁘신대 수고가 많으시며 항상 시스템 초보들을 위해 고생 해주시는 부분 정말 감사합니다 input : 매수진입별횟수(2),매도진입별횟수(2),당일최대매수횟수(5),당일최대매도횟수(5); var : direction(0),HH(0),LL(0),cnt(0),count(0),기준가(0); var : Bcond1(false),Bcond2(false),Bcond3(false),Bcond4(false),Bcond5(false); var : Scond1(false),Scond2(false),Scond3(false),Scond4(false),Scond5(false); var : Bcnt1(0),Bcnt2(0),Bcnt3(0),Bcnt4(0),Bcnt5(0),Didx(0); var : Scnt1(0),Scnt2(0),Scnt3(0),Scnt4(0),Scnt5(0),Buycnt(0),Sellcnt(0); if stime == 180000 or (stime > 180000 and stime[1] < 180000) Then 기준가 = O; var1 = 기준가-4.0; var2 = 기준가-2.0; var3 = 기준가+2.0; var4 = 기준가+4.0; if stime == 90000 or (stime > 090000 and stime[1] < 090000) Then{ direction = 0; Didx = 0; } count = 0; Bcnt1 = 0;Bcnt2 = 0;Bcnt3 = 0;Bcnt4 = 0; Scnt1 = 0;Scnt2 = 0;Scnt3 = 0;Scnt4 = 0; Buycnt = 0; Sellcnt = 0; for cnt = 0 to 20{ if sdate == EntryDate(cnt) and EntryTime(cnt) >= 090000 and EntryTime(cnt) <= 151500 Then{ count = count+1; if IsEntryName("b1",cnt) == true Then Bcnt1 = Bcnt1+1; if IsEntryName("b2",cnt) == true Then Bcnt2 = Bcnt2+1; if IsEntryName("b3",cnt) == true Then Bcnt3 = Bcnt3+1; if IsEntryName("b4",cnt) == true Then Bcnt4 = Bcnt4+1; if IsEntryName("s1",cnt) == true Then Scnt1 = Scnt1+1; if IsEntryName("s2",cnt) == true Then Scnt2 = Scnt2+1; if IsEntryName("s3",cnt) == true Then Scnt3 = Scnt3+1; if IsEntryName("s4",cnt) == true Then Scnt4 = Scnt4+1; if MarketPosition(cnt) == 1 then Buycnt = Buycnt+1; if MarketPosition(cnt) == -1 then SEllcnt = Sellcnt+1; } } if stime >= 090000 and stime <= 151500 then{ Didx = Didx+1; if Didx > 1 Then{ if crossup(C,var1) Then { direction = 1; HH = H; } if crossup(C,var2) Then { direction = 2; HH = H; } if crossup(C,var3) Then { direction = 3; HH = H; } if crossup(C,var4) Then { direction = 4; HH = H; } if CrossDown(C,var1) Then { direction = -1; LL = L; } if CrossDown(C,var2) Then { direction = -2; LL = L; } if CrossDown(C,var3) Then{ direction = -3; LL = L; } if CrossDown(C,var4) Then { direction = -4; LL = L; } } if H > HH Then HH = H; if L < LL Then LL = L; Bcond1 = (count == 0 and countif(direction == 1 and direction[1] != 1,Didx) >= 1) or (count >= 1 and MarketPosition != 0 and countif(direction == 1 and direction[1] != 1,BarsSinceEntry) >= 1) or (count >= 1 and MarketPosition == 0 and countif(direction == 1 and direction[1] != 1,BarsSinceExit(1)) >= 1); Bcond2 = (count == 0 and countif(direction == 2 and direction[1] != 2,Didx) >= 1) or (count >= 1 and MarketPosition != 0 and countif(direction == 2 and direction[1] != 2,BarsSinceEntry) >= 1) or (count >= 1 and MarketPosition == 0 and countif(direction == 2 and direction[1] != 2,BarsSinceExit(1)) >= 1); Bcond3 = (count == 0 and countif(direction == 3 and direction[1] != 3,Didx) >= 1) or (count >= 1 and MarketPosition != 0 and countif(direction == 3 and direction[1] != 3,BarsSinceEntry) >= 1) or (count >= 1 and MarketPosition == 0 and countif(direction == 3 and direction[1] != 3,BarsSinceExit(1)) >= 1); Bcond4 = (count == 0 and countif(direction == 4 and direction[1] != 4,Didx) >= 1) or (count >= 1 and MarketPosition != 0 and countif(direction == 4 and direction[1] != 4,BarsSinceEntry) >= 1) or (count >= 1 and MarketPosition == 0 and countif(direction == 4 and direction[1] != 4,BarsSinceExit(1)) >= 1); Scond1 = (count == 0 and countif(direction == -1 and direction[1] != -1,Didx) >= 1) or (count >= 1 and MarketPosition != 0 and countif(direction == -1 and direction[1] != -1,BarsSinceEntry) >= 1) or (count >= 1 and MarketPosition == 0 and countif(direction == -1 and direction[1] != -1,BarsSinceExit(1)) >= 1); Scond2 = (count == 0 and countif(direction == -2 and direction[1] != -2,Didx) >= 1) or (count >= 1 and MarketPosition != 0 and countif(direction == -2 and direction[1] != -2,BarsSinceEntry) >= 1) or (count >= 1 and MarketPosition == 0 and countif(direction == -2 and direction[1] != -2,BarsSinceExit(1)) >= 1); Scond3 = (count == 0 and countif(direction == -3 and direction[1] != -3,Didx) >= 1) or (count >= 1 and MarketPosition != 0 and countif(direction == -3 and direction[1] != -3,BarsSinceEntry) >= 1) or (count >= 1 and MarketPosition == 0 and countif(direction == -3 and direction[1] != -3,BarsSinceExit(1)) >= 1); Scond4 = (count == 0 and countif(direction == -4 and direction[1] != -4,Didx) >= 1) or (count >= 1 and MarketPosition != 0 and countif(direction == -4 and direction[1] != -4,BarsSinceEntry) >= 1) or (count >= 1 and MarketPosition == 0 and countif(direction == -4 and direction[1] != -4,BarsSinceExit(1)) >= 1); if stime > 090000 and stime < 150000 then{ if BuyCnt < 당일최대매수횟수 then{ if direction == 1 and HH >= var1+0.5 and Bcond1 == true and Bcnt1 < 매수진입별횟수 Then buy("b1",AtLimit,HH-0.4); if direction == 2 and HH >= var2+0.5 and Bcond2 == true and Bcnt2 < 매수진입별횟수 Then buy("b2",AtLimit,HH-0.4); if direction == 3 and HH >= var3+0.5 and Bcond3 == true and Bcnt3 < 매수진입별횟수 Then buy("b3",AtLimit,HH-0.4); if direction == 4 and HH >= var4+0.5 and Bcond4 == true and Bcnt4 < 매수진입별횟수 Then buy("b4",AtLimit,HH-0.4); } if Sellcnt < 당일최대매도횟수 then{ if direction == -1 and LL <= var1-0.5 and Scond1 == true and Scnt1 < 매도진입별횟수 Then Sell("s1",AtLimit,LL+0.4); if direction == -2 and LL <= var2-0.5 and Scond2 == true and Scnt2 < 매도진입별횟수 Then Sell("s2",AtLimit,LL+0.4); if direction == -3 and LL <= var3-0.5 and Scond3 == true and Scnt3 < 매도진입별횟수 Then Sell("s3",AtLimit,LL+0.4); if direction == -4 and LL <= var4-0.5 and Scond4 == true and Scnt4 < 매도진입별횟수 Then Sell("s4",AtLimit,LL+0.4); } } }
프로필 이미지
리치존
2013-10-23
213
글번호 68765
시스템
답변완료

다우나 나스닥 선물 지수

다우 선물지수나 나스닥 선물 지수를 실시간으로 볼 수 있는 화면이 있나요??? 아니면 차트화면에서 볼 수 있는 방법이 있나요???
프로필 이미지
토라
2013-10-23
210
글번호 68764
지표