커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

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

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

문의드립니다.

틱차트에 분봉차트의 keltner channel 지표(단순이평기준이 아닌 가중평균선 기준으로)를 나타내고자 합니다. 수식의 변수값과 분봉의 기간값은 수정가능하게 부탁드립니다. 수고하세요!!! 항상 감사합니다.
프로필 이미지
해암
2025-03-06
364
글번호 188877
지표
답변완료

종목검색, 검색 문의 드립니다.

안녕하세요. 종목검색 문의 드립니다. 아래 수식으로 종목을 찾고 싶습니다. 예스트레이더의 1,종목검색 및 2,차트 검색 수식 부탁 드립니다. 이격=ma(가격,기간1,종류)-ma(가격,기간2,종류); 이격률=이격/C*100; CrossUp(이격률,K) 변수 가격 : 종가 기간1 : 5 기간2 : 25 k :1
프로필 이미지
도전74
2025-03-06
396
글번호 188876
종목검색
답변완료

문의 드립니다

아래 3가지 수식어의 수정을 부탁드립니다. 1. 1선 5선 데드크로스 이후 매수 진입신호금지 및 손절 100틱 input : StartTime(80000),EndTime(40000); var : Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } var : HH(0),LL(0),MM(0),t(0); HH = DayHigh; LL = DayLow; MM = (HH+LL)/2; if bdate != Bdate[1] Then T = 0; Else { if CrossUp(H,MM) Then T = 1; if CrossDown(L,MM) Then T = -1; if T == 1 and MarketPosition <= 0 Then buy("b0",AtStop,LL+(HH-LL)*0.110); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b1",AtStop,LL+(HH-LL)*1.310); if T == 1 and MarketPosition <= 0 Then buy("b2",AtStop,LL+(HH-LL)*0.680); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b3",AtStop,LL+(HH-LL)*0.750); if T == -1 and MarketPosition <= 0 Then buy("b4",AtStop,LL+(HH-LL)*0.900); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b5",AtStop,LL+(HH-LL)*0.100); if T == -1 and MarketPosition <= 0 Then buy("b6",AtStop,LL+(HH-LL)*0.680); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b7",AtStop,LL+(HH-LL)*0.750); if T == -1 and MarketPosition <= 0 Then buy("b8",AtStop,LL+(HH-LL)*0.900); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b9",AtStop,LL+(HH-LL)*0.100); if T == -1 and MarketPosition <= 0 Then buy("b00",AtStop,LL+(HH-LL)*0.110); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b11",AtStop,LL+(HH-LL)*1.310); if T == -1 and MarketPosition <= 0 Then buy("b22",AtStop,LL+(HH-LL)*0.680); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b33",AtStop,LL+(HH-LL)*0.750); if T == -1 and MarketPosition <= 0 Then buy("b44",AtStop,LL+(HH-LL)*0.900); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b55",AtStop,LL+(HH-LL)*0.100); if T == -1 and MarketPosition <= 0 Then buy("b66",AtStop,LL+(HH-LL)*0.680); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b77",AtStop,LL+(HH-LL)*0.750); if T == -1 and MarketPosition <= 0 Then buy("b88",AtStop,LL+(HH-LL)*0.900); if MarketPosition == 1 and MaxEntries == 1 Then ExitLong("b99",AtStop,LL+(HH-LL)*0.100); } 2. 1선 5선 골든크로스 이후 매도 진입신호금지 및 손절 100틱 input : StartTime(80000),EndTime(40000); var : Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } var : HH(0),LL(0),MM(0),t(0); HH = DayHigh; LL = DayLow; MM = (HH+LL)/2; if bdate != Bdate[1] Then T = 0; Else { if CrossUp(H,MM) Then T = 1; if CrossDown(L,MM) Then T = -1; if T == -1 and MarketPosition >= 0 Then Sell("s0",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s1",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition >= 0 Then Sell("s2",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s3",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition >= 0 Then Sell("s4",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s5",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition >= 0 Then Sell("s6",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s7",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition >= 0 Then Sell("s8",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s9",AtStop,LL+(HH-LL)*0.100); if T == -1 and MarketPosition >= 0 Then Sell("s00",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s11",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition >= 0 Then Sell("s22",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s33",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition >= 0 Then Sell("s44",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s55",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition >= 0 Then Sell("s66",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s77",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition >= 0 Then Sell("s88",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then ExitShort("s99",AtStop,LL+(HH-LL)*0.100); } 3. 1선 5선 골든크로스 이후 매도 진입신호금지 및 손절 100틱 1선 5선 데드크로스 이후 매수 진입신호금지 및 손절 100틱 input : StartTime(190000),EndTime(40000); var : Tcond(false); IF Endtime > starttime Then SetStopEndofday(Endtime); Else { if sDate != sDate[1] Then SetStopEndofday(Endtime); } if (sdate != sdate[1] and stime >= EndTime) or (sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then Tcond = False; if (sdate != sdate[1] and stime >= StartTime) or (sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then { Tcond = true; IF Endtime <= starttime Then { SetStopEndofday(0); } } var : HH(0),LL(0),MM(0),t(0); HH = DayHigh; LL = DayLow; MM = (HH+LL)/2; if bdate != Bdate[1] Then T = 0; Else { if CrossUp(H,MM) Then T = 1; if CrossDown(L,MM) Then T = -1; if T == 1 and MarketPosition <= 0 Then buy("b0",AtStop,LL+(HH-LL)*0.110); if MarketPosition == 1 and MaxEntries == 1 Then buy("b1",AtStop,LL+(HH-LL)*1.310); if T == -1 and MarketPosition >= 0 Then Sell("s0",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s1",AtStop,LL+(HH-LL)*-0.300); if T == 1 and MarketPosition <= 0 Then buy("b2",AtStop,LL+(HH-LL)*0.680); if MarketPosition == 1 and MaxEntries == 1 Then buy("b3",AtStop,LL+(HH-LL)*0.750); if T == -1 and MarketPosition >= 0 Then Sell("s2",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s3",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition <= 0 Then buy("b4",AtStop,LL+(HH-LL)*0.900); if MarketPosition == 1 and MaxEntries == 1 Then buy("b5",AtStop,LL+(HH-LL)*0.100); if T == -1 and MarketPosition >= 0 Then Sell("s4",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s5",AtStop,LL+(HH-LL)*-0.300); if T == 1 and MarketPosition <= 0 Then buy("b6",AtStop,LL+(HH-LL)*0.680); if MarketPosition == 1 and MaxEntries == 1 Then buy("b7",AtStop,LL+(HH-LL)*0.750); if T == -1 and MarketPosition >= 0 Then Sell("s6",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s7",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition <= 0 Then buy("b8",AtStop,LL+(HH-LL)*0.900); if MarketPosition == 1 and MaxEntries == 1 Then buy("b9",AtStop,LL+(HH-LL)*0.100); if T == -1 and MarketPosition >= 0 Then Sell("s8",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s9",AtStop,LL+(HH-LL)*0.100); if T == 1 and MarketPosition <= 0 Then buy("b00",AtStop,LL+(HH-LL)*0.110); if MarketPosition == 1 and MaxEntries == 1 Then buy("b11",AtStop,LL+(HH-LL)*1.310); if T == -1 and MarketPosition >= 0 Then Sell("s00",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s11",AtStop,LL+(HH-LL)*-0.300); if T == 1 and MarketPosition <= 0 Then buy("b22",AtStop,LL+(HH-LL)*0.680); if MarketPosition == 1 and MaxEntries == 1 Then buy("b33",AtStop,LL+(HH-LL)*0.750); if T == -1 and MarketPosition >= 0 Then Sell("s22",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s33",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition <= 0 Then buy("b44",AtStop,LL+(HH-LL)*0.900); if MarketPosition == 1 and MaxEntries == 1 Then buy("b55",AtStop,LL+(HH-LL)*0.100); if T == -1 and MarketPosition >= 0 Then Sell("s44",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s55",AtStop,LL+(HH-LL)*-0.300); if T == 1 and MarketPosition <= 0 Then buy("b66",AtStop,LL+(HH-LL)*0.680); if MarketPosition == 1 and MaxEntries == 1 Then buy("b77",AtStop,LL+(HH-LL)*0.750); if T == -1 and MarketPosition >= 0 Then Sell("s66",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s77",AtStop,LL+(HH-LL)*-0.300); if T == -1 and MarketPosition <= 0 Then buy("b88",AtStop,LL+(HH-LL)*0.900); if MarketPosition == 1 and MaxEntries == 1 Then buy("b99",AtStop,LL+(HH-LL)*0.100); if T == -1 and MarketPosition >= 0 Then Sell("s88",AtStop,LL+(HH-LL)*0.600); if MarketPosition == 1 and MaxEntries == 1 Then Sell("s99",AtStop,LL+(HH-LL)*0.100); }
프로필 이미지
푸른
2025-03-06
474
글번호 188875
시스템
답변완료

검색식 요청합니다

키움 검색조건을 예스랭귀지로 변환 부탁드립니다 조건 : 월봉 5봉 최고거래량 대비 주봉 50% 이상 종목
프로필 이미지
이루
2025-03-06
428
글번호 188874
종목검색
답변완료

수평선좀 뷰탁 드립니다.

* 항상 많은 도움 고맙습니다. * 당일 최고가선 당일 최저가 수평선좀 부탁 드립니다. * 고맙 습니다. 수고하십시요.
프로필 이미지
요타
2025-03-06
411
글번호 188871
지표
답변완료

사용자함수 요청합니다

WeekV(주봉 거래량)와 MonthV(월봉거래량) 사용자 함수 좀 만들어주세요. 감사합니다
프로필 이미지
이루
2025-03-06
337
글번호 188870
사용자 함수

새벽금성 님에 의해서 삭제되었습니다.

프로필 이미지
새벽금성
2025-03-06
34
글번호 188866
종목검색
답변완료

문의드립니다.

안녕하세요. 매수수식: 무포지션에서 바로 직전봉이 양봉이고 현재봉도 양봉이며 현재봉 종가 C > 직전봉 종가 C[1] 이면 4계약을 매수합니다. 이 때 바로 직전봉의 저가를 손절가 A 하고 합니다. 손절가 A = 바로 직전봉의 저가 매수가 B = 매수가격 청산: 손절: 종가가 아닌 현재가가 위의 손절가 A를 하향하면 즉시 전량 손절합니다. 기본 청산 :매수하고 나서 현재봉 종가가 > 매수가 B 이면 절반인 2계약만 청산합니다. 그 후에 본절가 C = 매수가 B 로 정의 합니다. 잔량 청산 : 본절 청산 : 잔량 2계약만 남을 때 종가가 아닌 현재가가 본절가 C 를 하향하면 잔량 2 계약을 청산합니다. 이익청산 : 잔량 2계약만 남을 때 이익이 나면 종가가 아닌 현재가가 바로 직전봉의 저가 를 하향하면 잔량 2계약을 청산합니다. 매도수식 : 반대논리로 수식을 부탁드립니다.
프로필 이미지
종호
2025-03-06
331
글번호 188858
시스템
답변완료

수식문의 드립니다.

var : x(0),z(0),x1(0),z1(0),vwap(0); x=Accum(((h+l+c)/3)*v); x1 = Accum(v); if date != date[1] Then { z = x[1]; z1 = x1[1]; } vwap=(x-z)/(x1-z1); Plot1(vwap); 상기식을 다음과 같이 변경 부탁드립니다. 1. 시가기준으로 변경 2. 특정시간을 선택할 수 있게 변경 항상 도움을 주셔서 감사드립니다.
프로필 이미지
wasong
2025-03-06
400
글번호 188857
지표