커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
8249
글번호 230811
답변완료
이런 함수가 있을까요?
안녕하세요.
yt에서 미결제 야정에 대한 함수는 있지만 이렇게 세분화된 함수가 있는지 궁금합니다.
http://cafe.naver.com/ArticleRead.nhn?clubid=12504224&page=1&boardtype=L&articleid=15022
2008-12-28
1126
글번호 19058
답변완료
수식문의
차트도구에 보면 자동 추세선이 있는데..
그식을 메일로 받았으면 합니다.
메일주소는 doneki@naver.com 입니다.
미리 감사드립니다.
2008-12-28
907
글번호 19057
답변완료
매수청산식 좀 더해주세요~
매수청산식 좀 부탁드립니다~
밑에 식에다 매수청산식 하나만 더해주세요
아무(첫번째,두번째......만번째) 매수진입이던간에
1.------------------------------------
현재가 >= 아무 매수진입 * 2% and
현재가 >= 첫번째 매수진입 * 0.5%
이면 보유한 수량 모두 매수청산
----------------------------------------------
을 부탁드립니다. 예를들면
13ma 매수진입이 10주 나오고
16ma 매수진입이 10주 나오고
20ma 매수진입이 10주 나왔는데
현재가가
셋중 아무거나 예를들어
현재가 >= (20 or 16 or 13)ma매수진입 * 2% and
현재가 >= 13ma매수진입 *0.5%
가 되면
13,16,20ma서 산것도 포함해서 30주가 전부 매수청산이 나오게 해주세요
가진 수량이 전부 나오는것이 중요합니다~
부탁드려요~
==================================
input : 날짜(20080902),P1(4),P2(5),P3(10),P4(11),P5(13),p6(16),p7(20);
input : L1(14),L2(15), L4(17),L5(18),L6(19),L7(21),L8(22),L9(23);
var : cnt(0),mav4(0),mav5(0),mav10(0),mav11(0),mav13(0),mav16(0),mav20(0);
var : Bcnt1(0),Bcnt2(0),Bcnt3(0),Bcnt4(0),Bcnt5(0),Bcnt6(0),Bcnt7(0),Bcnt8(0),Bcnt9(0),Bcnt10(0),Bcnt11(0);
var : buycond1(False),buycond2(False),buycond3(false),buycond4(false),buycond5(false),buycond6(false),buycond7(false),buycond8(false),buycond9(false),buycond10(false),buycond11(false);
var : sellcond1(False),sellcond2(False),sellcond3(false);
var : mav14(0), mav15(0),mav17(0),mav18(0),mav19(0),mav21(0),mav22(0),mav23(0);
var1 = 0;
var2 = 0;
var3 = 0;
var4 = 0;
var5 = 0;
var6 = 0;
var7 = 0;
var11 = 0;
var12 = 0;
var13 = 0;
var14 = 0;
var15 = 0;
var16 = 0;
var17 = 0;
var18 = 0;
var19 = 0;
for cnt = 0 to L9-1{
if cnt < P1 Then
var1 = var1 + dayclose(cnt);
if cnt < P2 Then
var2 = var2 + dayclose(cnt);
if cnt < P3 Then
var3 = var3 + dayclose(cnt);
if cnt < P4 then
var4 = var4 + dayclose(cnt);
if cnt < P5 then
var5 = var5 + dayclose(cnt);
if cnt < P6 then
var6 = var6 + dayclose(cnt);
if cnt < P7 then
var7 = var7 + dayclose(cnt);
if cnt < L1 Then
var11 = var11 + dayclose(cnt);
if cnt < L2 Then
var12 = var12 + dayclose(cnt);
if cnt < L4 then
var14 = var14 + dayclose(cnt);
if cnt < L5 then
var15 = var15 + dayclose(cnt);
if cnt < L6 then
var16 = var16 + dayclose(cnt);
if cnt < L7 then
var17 = var17 + dayclose(cnt);
if cnt < L8 then
var18 = var18 + dayclose(cnt);
if cnt < L9 then
var19 = var19 + dayclose(cnt);
}
mav4 = var1/P1;
mav5 = var2/p2;
mav10 = var3/P3;
mav11 = var4/P4;
mav13 = var5/P5;
mav16 = var6/P6;
mav20 = var7/P7;
mav14 = var11/L1;
mav15 = var12/L2;
mav17 = var14/L4;
mav18 = var15/L5;
mav19 = var16/L6;
mav21 = var17/L7;
mav22 = var18/L8;
mav23 = var19/L9;
buyCond1 =dayclose(1) >= 1025 and
C > dayclose(1)*0.89 and
c <= mav13*1.005;
buyCond2 = dayclose(1) >= 1025 and
C > dayclose(1)*0.89 and
c <= mav14*1.005;
buyCond3 = dayclose(1) >= 1025 and
C > dayclose(1)*0.89 and
c <= mav15*1.005;
buyCond4 = dayclose(1) >= 1025 and
C > dayclose(1)*0.87 and
c <= mav16*1.005;
buyCond5 = dayclose(1) >= 1025 and
C > dayclose(1)*0.87 and
c <= mav17*1.005;
buyCond6 = dayclose(1) >= 1025 and
C > dayclose(1)*0.87 and
c <= mav18*1.005;
buyCond7 = dayclose(1) >= 1025 and
C > dayclose(1)*0.87 and
c <= mav19*1.005;
buyCond8 = dayclose(1) >= 1025 and
C > dayclose(1)*0.87 and
c <= mav20*1.005;
buyCond9 = dayclose(1) >= 1025 and
C > dayclose(1)*0.87 and
c <= mav21*1.005;
buyCond10 = dayclose(1) >= 1025 and
C > dayclose(1)*0.87 and
c <= mav22*1.005;
buyCond11 = dayclose(1) >= 1025 and
C > dayclose(1)*0.87 and
c <= mav23*1.005;
sellcond1 = C >= mav4*0.99;
sellcond2 = C >= mav5*0.99;
sellcond3 = mav4 >= mav10*0.99 and mav4 <= mav10*1.01 and
C >= mav10*0.988;
if dayopen() >= mav11 Then{
if buyCond1 == true and Sdate >= 날짜 and Bcnt1 < 1 Then{
buy("13ma");
Bcnt1 = 1;
}
}
if dayopen() >= mav11 Then{
if buyCond2 == true and Sdate >= 날짜 and Bcnt2 < 1 Then{
buy("14ma");
Bcnt2 = 1;
}
}
if dayopen() >= mav11 Then{
if buyCond3 == true and Sdate >= 날짜 and Bcnt3 < 1 Then{
buy("15ma");
Bcnt3 = 1;
}
}
if dayopen() > mav18 then{
if buyCond4 == true and Sdate >= 날짜 and Bcnt4 < 1 Then{
buy("16ma");
Bcnt4 = 1;
}
}
if dayopen() > mav18 then{
if buyCond5 == true and Sdate >= 날짜 and Bcnt5 < 1 Then{
buy("17ma");
Bcnt5 = 1;
}
}
if dayopen() > mav19 then{
if buyCond6 == true and Sdate >= 날짜 and Bcnt6 < 1 Then{
buy("18ma");
Bcnt6 = 1;
}
}
if dayopen() > mav20 then{
if buyCond7 == true and Sdate >= 날짜 and Bcnt7 < 1 Then{
buy("19ma");
Bcnt7 = 1;
}
}
if dayopen() > mav22 then{
if buyCond8 == true and Sdate >= 날짜 and Bcnt8 < 1 Then{
buy("20ma");
Bcnt8 = 1;
}
}
if buyCond9 == true and Sdate >= 날짜 and Bcnt9 < 1 Then{
buy("21ma");
Bcnt9 = 1;
}
if buyCond10 == true and Sdate >= 날짜 and Bcnt10 < 1 Then{
buy("22ma");
Bcnt10 = 1;
}
if buyCond11 == true and Sdate >= 날짜 and Bcnt11 < 1 Then{
buy("23ma");
Bcnt11 = 1;
}
if MarketPosition() == 1 and sellcond1 == true Then {
exitlong("4maEX1");
Bcnt1 = 1;
Bcnt2 = 1;
Bcnt3 = 1;
Bcnt4 = 1;
Bcnt5 = 1;
Bcnt6 = 1;
Bcnt7 = 1;
Bcnt8 = 1;
Bcnt9 = 1;
Bcnt10 = 1;
Bcnt11 = 1;
}
if MarketPosition() == 1 and sellcond2 == true Then {
exitlong("5maEX2");
Bcnt1 = 1;
Bcnt2 = 1;
Bcnt3 = 1;
Bcnt4 = 1;
Bcnt5 = 1;
Bcnt6 = 1;
Bcnt7 = 1;
Bcnt8 = 1;
Bcnt9 = 1;
Bcnt10 = 1;
Bcnt11 = 1;
}
if MarketPosition() == 1 and sellcond3 == true Then {
exitlong("10maEX3");
Bcnt1 = 1;
Bcnt2 = 1;
Bcnt3 = 1;
Bcnt4 = 1;
Bcnt5 = 1;
Bcnt6 = 1;
Bcnt7 = 1;
Bcnt8 = 1;
Bcnt9 = 1;
Bcnt10 = 1;
Bcnt11 = 1;
}
if MarketPosition() == 1 and C >= AvgEntryPrice()*1.015 Then {
exitlong("평단가");
}
2008-12-28
807
글번호 19056
답변완료
돌파식 문의 드립니다.
시스템식 문의드립니다.
매수조건
시가부터 9:30까지의 고가를 돌파하면 매수
매도조건
매수가에서 5%상승하면 50%매도
매수가에서 10%상승하면 나머지 50%매도
시가부터 9:30까지의 고가와 저가의 중간값이 손절가격
이상입니다. 부탁들비니다.
2008-12-27
833
글번호 19055
카시오 님에 의해서 삭제되었습니다.
2008-12-28
208
글번호 19054
답변완료
식 수정 부탁합니다.
var : count(0);
count = 0;
if count < 1 then {
if C >= DayOpen()+1 then
buy("매수", OnClose, DEF, 1);
if C <= DayOpen()-1 then
sell("매도", OnClose, DEF, 1);
}
SetStopEndofday(1500);
다음과 같이 수식을 구현하고자 합니다.
1. 하루에 한번 매매
2. 시가대비 1포인트 상승시 매수, 하락시 매도
3. 당일 종가로 청산
감사합니다.
2008-12-27
808
글번호 19053
답변완료
호가잔량
단독의 호가잔량이평,오실레이터외에
제공되고있는 지표중
호가잔량의 데이타를 이용(포함)하고있는 지표는 무었이 있나요?
2008-12-27
929
글번호 19052
답변완료
진입 전봉의 가격 표시 방법
진입한 봉의 하나 앞의봉의 가격표시 방법을 알고 싶습니다.
부탁드립니다.
2008-12-27
971
글번호 19051
답변완료
buyCond 나 cond 를 쓰는 이유는 무엇인가요?
buyCond 나 cond 를 쓰는 이유는 무엇인가요?
제가 쓰는 수식을 보니
================================
cond1 = 어쩌구
buyCond1 =저쩌구
if cond1 == true Then{
if buyCond1 == true Then{
buy("13ma");
}
===============================================
이런식의 수식이 있더라구요
그러면 buyCond 나 cond 쓰지 않고
==============================================
if 어쩌구 and 저쩌구 Then{
buy("13ma");
}
===============================================
이거랑 뭐가 틀린가요? 조건이 복잡할 경우
buyCond 나 cond 를 쓰는 게 컴퓨터가 더 빠르게 처리하나요?
2008-12-27
785
글번호 19050