커뮤니티
예스랭귀지 Q&A
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1427
글번호 230811
답변완료
지표식 부탁합니다
안녕하십니까
아래의 식에서 plot2의 조건에 다른 조건을 추가하여 넣으려고 하는데
능력이 부족합니다
도와주시면 고맙겠습니다
If O<min(O[1],C[1]) && C<min(O[1],C[1]) && C<=O Then
var1 = O;
Plot1(var1, "BK", Black);
If C>var1 && C[1]<=O[1] && C>O[1] Then
plot2(L, "Y", Yellow);
추가할 조건은 최근 20거래일 동안 그어진 var1의 최상단을 넘지 못하면
plot2가 실행되지 않도록 식을 수정하여 주시기 바랍니다
예를들면 큐알티(405100)라는 종목에서 3월 12일과 18일의 점은
3월 7일 그려진 plot1의 선보다 아래 있으니 표시되지 않아야 합니다
2024-03-28
704
글번호 178029
배달개미다 님에 의해서 삭제되었습니다.
2024-03-28
20
글번호 178028
답변완료
문의 드립니다
input : starttime(40000),endtime(60000),n(10);
var : Tcond(false),hh(0),h1(0),ll(0),l1(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1]and Tcond == true 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;
hh = h;
ll = l;
h1 = hh[1];
l1 = ll[1];
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
input : 익절틱수(0),손절틱수(0);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx",AtMarket);
if NextBarOpen != C Then
{
Buy("b1",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx1",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx",AtMarket);
if NextBarOpen != C Then
{
Sell("s1",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx1",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b2",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx2",AtMarket);
if NextBarOpen == C Then
{
Buy("b3",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx3",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s2",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx2",AtMarket);
if NextBarOpen == C Then
{
Sell("s3",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx3",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b4",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx4",AtMarket);
if NextBarOpen != C Then
{
Buy("b5",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx5",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s4",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx4",AtMarket);
if NextBarOpen != C Then
{
Sell("s5",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx5",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b6",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx6",AtMarket);
if NextBarOpen == C Then
{
Buy("b7",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx7",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s6",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx6",AtMarket);
if NextBarOpen == C Then
{
Sell("s7",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx7",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b8",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx8",AtMarket);
if NextBarOpen != C Then
{
Buy("b9",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx9",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s8",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx8",AtMarket);
if NextBarOpen != C Then
{
Sell("s9",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx9",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b10",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx10",AtMarket);
if NextBarOpen == C Then
{
Buy("b11",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx11",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s10",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx10",AtMarket);
if NextBarOpen == C Then
{
Sell("s11",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx11",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b12",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx12",AtMarket);
if NextBarOpen != C Then
{
Buy("b13",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx13",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s12",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx12",AtMarket);
if NextBarOpen != C Then
{
Sell("s13",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx13",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b14",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx14",AtMarket);
if NextBarOpen == C Then
{
Buy("b15",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx15",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s14",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx14",AtMarket);
if NextBarOpen == C Then
{
Sell("s15",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx15",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b16",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx16",AtMarket);
if NextBarOpen != C Then
{
Buy("b17",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx17",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s16",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx16",AtMarket);
if NextBarOpen != C Then
{
Sell("s17",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx17",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b18",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx18",AtMarket);
if NextBarOpen == C Then
{
Buy("b19",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx19",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s18",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx18",AtMarket);
if NextBarOpen == C Then
{
Sell("s19",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx19",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b20",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx20",AtMarket);
if NextBarOpen != C Then
{
Buy("b21",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx21",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s20",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx20",AtMarket);
if NextBarOpen != C Then
{
Sell("s21",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx21",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b22",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx22",AtMarket);
if NextBarOpen == C Then
{
Buy("b23",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx23",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s22",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx22",AtMarket);
if NextBarOpen == C Then
{
Sell("s23",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx23",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b24",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx24",AtMarket);
if NextBarOpen != C Then
{
Buy("b25",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx25",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s24",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx24",AtMarket);
if NextBarOpen != C Then
{
Sell("s25",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx25",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b26",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx26",AtMarket);
if NextBarOpen == C Then
{
Buy("b27",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx27",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s26",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx26",AtMarket);
if NextBarOpen == C Then
{
Sell("s27",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx27",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b28",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx28",AtMarket);
if NextBarOpen != C Then
{
Buy("b29",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx29",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s28",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx28",AtMarket);
if NextBarOpen != C Then
{
Sell("s29",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx29",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b30",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx30",AtMarket);
if NextBarOpen == C Then
{
Buy("b31",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx31",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s30",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx30",AtMarket);
if NextBarOpen == C Then
{
Sell("s31",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx31",AtMarket);
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
수식어의 시간설정은 04시부터 06시까지 2시간인데 신호는 00시부터 나옵니다.
수정이 가능한지 문의 드립니다.
2024-03-28
1006
글번호 178027
답변완료
종목검색식 요청드립니다.
안녕하세요? 도움 요청드립니다.
100봉이내에 15%이상 상승한 종목중에서
현재 아래 수식라인 아래로 볼린져밴드(20,2) 상한선이 위치해 있고, 현재 주가가 볼린져밴드 하단선 +-2%이내에 위치하고 있는 종목검색식 요청드립니다. 100봉이내와 +-2%범위는 제가 조정할 수 있도록 부탁드립니다. 감사합니다.
수식
Shift(BBandsC(Period,D1), 26)
2024-03-28
862
글번호 178026
답변완료
종목검색식 요청드립니다.
당일 분봉에서
1. 한번이라도 아래신호가 발생했던 종목을 검색하는 종목검색식
2. N봉 이내에 아래 신호가 발생했던 종목을 검색하는 종목검색식 (N봉은 조정가능하게)
두가지 종목검색식 요청드립니다. 많은 도움에 감사드립니다. 좋은하루 되세요~
신호수식
AA = HighestSince(1, date!=date(1), H);
BB = LowestSince(1, date!=date(1), L);
DD = ValueWhen(1, BB<BB(1), AA);
EE = if(date!=date(1), L, 0);
FF = if(Daylow()==EE, H, DD);
BP = ValueWhen(1, DayLow()==EE or BB<BB(1), FF);
Crossup(C, BP)
2024-03-28
1046
글번호 178025
답변완료
수익 포인트 제어
수익과 손실을 제한하고 싶습니다.
차트 전체가 아니고 당일당일 최대 수익과 최대 손실을 제한하려면 어떻게해야 할까요?
Input : dd(20240101);
var : profit(0);
If profit < 100 and profit > -100 and sDate == sDate[1] Then {
Profit = NetProfit;
If CrossUp(ma(C,5), ma(C,20)) then Buy(B1); }
2024-03-27
902
글번호 178023
답변완료
돌파 조건 검색식 부탁 합니다
A=(npredayclose(2)+npredayclose(1)+dayclose())/3;
B=(npredayclose(4)+npredayclose(3)+npredayclose(2)+
npredayclose(1)+dayclose())/5;
분봉에서 주가가 A선 아래로 내려온 종목 검색식
그리고 분봉에서 주가가 A선을 돌파한종목 검색식
부탁드립니다
..........................................................
PVI
PVI(c)
시그널
avg(PVI(c),Period)
지표조건
period 14
시그널를 돌파하고 PVI가 상승추세인 종목 검색식 부탁 합니다
파워 종목검색 조건 최소봉수 기준봉 도 알려주세요
...............................................................
시가
M=DATE%10000-DATE%100;
D1=M!=M(1);
Valuewhen(1,D1,O);
1봉전 시가 아래주가가 0봉 오늘 시가를 돌파한 종목 검색식 부탁합니다
종목 검색이 가능한 최소봉수 기준봉도 알려주세요
2024-03-28
909
글번호 178022
답변완료
검색식 부탁드립니다
**3분봉**검색식 후행스팬26 선행스팬1,9,26
1 -선행스팬1 양운일때
2 && 후행스팬 이 선행스팬1 돌파,상방 //후행스팬 > 선행스팬
3 && 전환선 > 기준선
4 && O < C
5 && OBV 골드크로스 (Signal 9)
** 3분봉 매수크로스업 25봉앞 강조**
** 3분봉 매도크로스업 25봉앞 강조**
1 - 후행스팬이 선행스팬1 하방이탈
2 &&전환선이 기준선 하방이탈
3 && O > C 시가 > 종가
감사합니다 ,고맙습니다
2024-03-27
928
글번호 178021
답변완료
검색식 부탁드립니다.
도와주심에 많은 감사드립니다.
총 2가지 질문입니다.
첫번째는 주봉이평선을 일봉에서 갭으로 돌파할 때 검색하는 식을 만들고 싶습니다.
1.1봉전 20 >종가 1봉전 60 >종가 1봉전 120 >종가 1봉전 240 >종가
0봉전 20 <시가 0봉전 60 <시가 0봉전 120 <시가 0봉전 240 <시가
일봉상 0봉전 시가<종가, 주가등락율 1봉전 종가대비 0봉전 시가 1프로이상
위 4개의 주 이동평균선을 or로 연결하고 일봉상에서 돌파할 때 검색하는식입니다.
2.두번째는 기 알려주신 수식검색식인
var : 당월시가(0),전월시가(0);
var : 당월종가(0),전월종가(0);
if sDate > sDate[1]+30 Then
{
당월시가 = O;
전월시가 = 당월시가[1];
전월종가 = 당월종가[1];
}
당월종가 = C;
if 전월시가 > 0 Then
{
var1 = ((전월시가+전월종가)/2 + 당월시가)/2;
if CrossUp(C,var1) Then
Find(1);
}
에 일봉상 0봉전 480<240<120<60<20<5 완전정배열을 추가해서 종목검색하고 싶습니다.
부탁드립니다. _(__)_
2024-03-27
989
글번호 178020