커뮤니티
예스랭귀지 Q&A
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1333
글번호 230811
답변완료
종목 검색식 부탁드립니다
아래 종목 검색식 부탁드립니다.
A=ma(C,20);
B=SAR(0.02,0.2);
D=MACD(12,26);
조건1=valuewhen(1,CrossDown(C,A),highestsince(1,CrossUp(C,A),h));
조건2=CrossUp(C,조건1)&& A>A(1) && C>A && C>B && B>B(1);
2025-03-06
371
글번호 188879
답변완료
지표 부탁드립니다.
안녕하세요
늘 도움주셔서 감사합니다.
1. 지표
이평 10 과 40 이 골.크 이며 RSI 상단기준선70 을 넘을때 적색 매수 원
이평 10 과 40 이 데.크 이며 RSI 하단기준선30 을 넘을때 청색 매수 원
2. 시스템
같은 조건으로 부탁드립니다
** 이평과 RSI 기준선은 변수 부탁드립니다.
고맙습니다
2025-03-06
352
글번호 188878
답변완료
문의드립니다.
틱차트에 분봉차트의 keltner channel 지표(단순이평기준이 아닌 가중평균선 기준으로)를 나타내고자 합니다.
수식의 변수값과 분봉의 기간값은 수정가능하게 부탁드립니다. 수고하세요!!!
항상 감사합니다.
2025-03-06
318
글번호 188877
답변완료
종목검색, 검색 문의 드립니다.
안녕하세요. 종목검색 문의 드립니다.
아래 수식으로 종목을 찾고 싶습니다.
예스트레이더의 1,종목검색 및 2,차트 검색 수식 부탁 드립니다.
이격=ma(가격,기간1,종류)-ma(가격,기간2,종류);
이격률=이격/C*100;
CrossUp(이격률,K)
변수
가격 : 종가
기간1 : 5
기간2 : 25
k :1
2025-03-06
353
글번호 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
387
글번호 188875
답변완료
검색식 요청합니다
키움 검색조건을 예스랭귀지로 변환 부탁드립니다
조건 : 월봉 5봉 최고거래량 대비 주봉 50% 이상 종목
2025-03-06
383
글번호 188874
답변완료
수평선좀 뷰탁 드립니다.
* 항상 많은 도움 고맙습니다.
* 당일 최고가선 당일 최저가 수평선좀 부탁 드립니다.
* 고맙 습니다. 수고하십시요.
2025-03-06
364
글번호 188871
답변완료
사용자함수 요청합니다
WeekV(주봉 거래량)와 MonthV(월봉거래량) 사용자 함수 좀 만들어주세요.
감사합니다
2025-03-06
293
글번호 188870
새벽금성 님에 의해서 삭제되었습니다.
2025-03-06
19
글번호 188866