커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
4637
글번호 230811
답변완료
질문입니다,
질문1.
선물일봉에서 거래시 SetStopTrailing은 당일 진입부터 감시를 하는 것인가요?
아님 진입후 다음봉부터 감시를 하는 것인가요?
만약 다음봉부터 감시를 시작한다면,
진입당일부터 감시를 하는 수식이 있다면 예시로 부탁드립니다.
질문2.
setstoptrailing(a, b, percentstop, 1);
이 수식에서 a, b의 의미
percentstop, pointstop의 의미,
1자리에 다른 숫자(예를들어 0)가 올때 의미 차이를 자세히 설명부탁드립니다.
2016-04-28
106
글번호 97539
답변완료
수식 수정 부탁드립니다.
안녕하세요.
손절이 나온 경우 당일에 진입을 금지할 수 있도록 수식 수정 부탁드리겠습니다.
감사합니다.
--------------------------------------------------------------------------------
input: 매수금액1(10000000),매수금액2(10000000),지정일(20160426);
var : Ev(0),Xv(0);
if MarketPosition == 0 and NextBarSdate > sdate and NextBarSdate == 지정일 Then
buy("b",AtMarket,def,Floor(매수금액1/C));
if MarketPosition == 1 Then{
if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "BL1" Then
Condition11 = true;
if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "BL2" Then
Condition12 = true;
if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "BP1" Then
Condition21 = true;
if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "BP2" Then
Condition22 = true;
if CurrentContracts < CurrentContracts[1] and LatestExitName(0) == "BP3" Then
Condition23 = true;
if MaxEntries == 1 and CurrentContracts >= CurrentContracts[1] and Condition12 == false Then
buy("bb",Atlimit,EntryPrice*0.97,Floor(매수금액2/C));
if CurrentContracts > CurrentContracts[1] Then{
Ev = AvgEntryPrice;
Xv = Floor(MaxContracts*(1/3));
}
if MaxEntries == 2 Then{
if Condition11 == false Then
exitlong("BL1",AtStop,AvgEntryPrice*0.97,"",xv,1);
if Condition12 == false Then
exitlong("BL3",AtStop,AvgEntryPrice*0.94);
if Condition21 == false Then
exitlong("BP1",AtLimit,AvgEntryPrice*1.05,"",xv,1);
if Condition22 == false Then
exitlong("BP2",AtLimit,AvgEntryPrice*1.10,"",xv,1);
if Condition23 == false Then
exitlong("BP3",AtLimit,AvgEntryPrice*1.15);
}
if sdate > EntryDate and stime == 143000 Then
exitlong();
}
else{
Condition11 = false;
Condition12 = false;
Condition21 = false;
Condition22 = false;
Condition23 = false;
}
2016-04-28
144
글번호 97538
답변완료
수식 문의
수식좀 부탁드립니다.
감사합니다.
2016-05-02
146
글번호 97537
답변완료
지표식
47296 질문과 관련하여
해외선물에서
3분봉 차트에 30분봉 이평선(5,10,20,60,120 240 이평선)을 추가로 구현하고 싶습니다.
항상 감사 드리며..
2016-04-28
165
글번호 97536
에구머니 님에 의해서 삭제되었습니다.
2016-04-28
0
글번호 97535
답변완료
글번호 47444번 재질문
안녕하세요?
글번호 47444번 재질문입니다.
아래의 식에다가도 똑같이 적용부탁드립니다.
input : xtime(60000);
var : tcond(false),cond1(false),cond2(false);
if stime == xtime or (stime > xtime and stime[1] < Xtime) Then{
Tcond = false;
}
if bdate != bdate[1] Then{
Tcond = true;
Condition1 = false;
Condition2 = false;
}
var1 = ma(c,5);
var2 = ma(c,20);
cond1 = C > var1 and var1 > var2;
cond2 = C < var1 and var1 < var2;
if cond1 == true and cond1[1] == false then
Condition1 = true;
if cond2 == true and cond2[1] == false then
Condition2 = true;
if Tcond == true And
Condition1 == true and cond1 == true and
var1 > var1[1] and var2 > var2[1] Then
buy("B");
if Tcond == true And
Condition2 == true and Cond2 == true and
var1 < var1[1] and var2 < var2[1] Then
sell("S");
2016-04-28
128
글번호 97534
답변완료
글번호47445재질문
안녕하세요?
글번호 47445번 재질문입니다.
아래의 식에다가도 똑같은 식을 적용 부탁드립니다.
input : xtime(60000);
var : tcond(false),cond1(false),cond2(false);
if stime == xtime or (stime > xtime and stime[1] < Xtime) Then{
Tcond = false;
}
if bdate != bdate[1] Then{
Tcond = true;
Condition1 = false;
Condition2 = false;
}
var1 = ma(c,5);
var2 = ma(c,20);
cond1 = C > var1 and var1 > var2;
cond2 = C < var1 and var1 < var2;
if cond1 == true and cond1[1] == false then
Condition1 = true;
if cond2 == true and cond2[1] == false then
Condition2 = true;
if Tcond == true And
Condition1 == true and cond1 == true and
var1 > var1[1] and var2 > var2[1] Then
SELL("S");
if Tcond == true And
Condition2 == true and Cond2 == true and
var1 < var1[1] and var2 < var2[1] Then
BUY("B");
SetStopLoss(1,PercentStop);
SetStopProfittarget(3.2,PercentStop);
2016-04-28
123
글번호 97533
1000억모으기 님에 의해서 삭제되었습니다.
2016-04-27
4
글번호 97532
이의정 님에 의해서 삭제되었습니다.
2016-04-27
38
글번호 97531