커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1587
글번호 230811
답변완료
atstop 조건에 대한 질문
안녕하십니까
댓글달아주셔서 미리 감사드립니다.
제가 시가에서 특정 수치만큼 하락 돌파시에 주문을 내기 위해
if crossdown(c,dayopen-돌파) && MarketPosition==0 && then sell("s2", AtStop,dayopen-돌파);
이런식으로 수식을 작성하였는데, 전략실행차트에서 가동을 시키면 봉완성 전에 꼬리를 달고 돌아오면 신호가 발생을 안하더라구요.
제가 atstop 조건을 잘못이해하고 있는것인지 아니면 제가 원하는대로 돌파되는 그순간 그냥 주문을 내보내서 체결된다라는 조건은 어찌 작성해야 하는지 질문을 드립니다.
감사합니다.
2025-03-07
345
글번호 188883
답변완료
수식 부탁드립니다
T100=Ttsf(C,100);
A=(highest(high,50)+lowest(low,50))/2;
조건=CrossUp(T100,A);
ValueWhen(1,조건,T100)
위라인을 종가상 돌파하는 수식을 부탁드립니다 .
감사드립니다. 즐거운 주말되십시요.
2025-03-07
356
글번호 188882
새론날 님에 의해서 삭제되었습니다.
2025-03-06
31
글번호 188881
답변완료
종목 검색식 부탁드립니다
아래 종목 검색식 부탁드립니다.
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
390
글번호 188879
답변완료
지표 부탁드립니다.
안녕하세요
늘 도움주셔서 감사합니다.
1. 지표
이평 10 과 40 이 골.크 이며 RSI 상단기준선70 을 넘을때 적색 매수 원
이평 10 과 40 이 데.크 이며 RSI 하단기준선30 을 넘을때 청색 매수 원
2. 시스템
같은 조건으로 부탁드립니다
** 이평과 RSI 기준선은 변수 부탁드립니다.
고맙습니다
2025-03-06
364
글번호 188878
답변완료
문의드립니다.
틱차트에 분봉차트의 keltner channel 지표(단순이평기준이 아닌 가중평균선 기준으로)를 나타내고자 합니다.
수식의 변수값과 분봉의 기간값은 수정가능하게 부탁드립니다. 수고하세요!!!
항상 감사합니다.
2025-03-06
332
글번호 188877
답변완료
종목검색, 검색 문의 드립니다.
안녕하세요. 종목검색 문의 드립니다.
아래 수식으로 종목을 찾고 싶습니다.
예스트레이더의 1,종목검색 및 2,차트 검색 수식 부탁 드립니다.
이격=ma(가격,기간1,종류)-ma(가격,기간2,종류);
이격률=이격/C*100;
CrossUp(이격률,K)
변수
가격 : 종가
기간1 : 5
기간2 : 25
k :1
2025-03-06
365
글번호 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
413
글번호 188875
답변완료
검색식 요청합니다
키움 검색조건을 예스랭귀지로 변환 부탁드립니다
조건 : 월봉 5봉 최고거래량 대비 주봉 50% 이상 종목
2025-03-06
395
글번호 188874