커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
3549
글번호 230811
사공하늘 님에 의해서 삭제되었습니다.
2025-04-21
126
글번호 190279
답변완료
문의드립니다.
안녕하세요.
특정시간 09:00~13:00의 고점 저점을 16:00이후에
돌파시 진입하도록 작성했는데 제대로 신호가 나오지 않는데
제가 작성한 코드 점검 부탁드립니다.
종목은 나스닥 입니다
var: ST(160000), ET(060000), baselineST(090000), baselineET(130000);
var: HH(0), LL(0), Tcond(False), BlineCond(false);
if sTime >= baselineST && sTime <= baselineET && BlineCond == false then
{
HH = TimeHigh(baselineST,baselineET);
LL = Timelow(baselineST,baselineET);
}
else
{
BlineCond = false;
}
if (sdate != sdate[1] and stime >= ST) or
(sdate == sdate[1] and stime >= ST and stime[1] < ST) Then
Tcond = true;
if (sdate != sdate[1] and stime >= ET) or
(sdate == sdate[1] and stime >= ET and stime[1] < ET) Then
Tcond = False;
Condition1 = CrossUp(C,HH) ;
Condition2 = CrossDown(C,LL) ;
If Tcond && condition1 && MarketPosition != 1 Then
{
Buy();
}
If Tcond && condition2 && MarketPosition != -1 Then
{
Sell();
}
SetStopEndOfday(ET);
2025-04-21
356
글번호 190277
답변완료
질문드리겠습니다
안녕하세요
아래 수식은 조건만족봉 사이가 5거래일 이상 차이가 날때 (조건A) 만 tl을 표시하게 했는데요
제가 원하는건
가장 최근만족봉 기준으로 이전만족봉들을 누적 계산해서 5거래일 차이가 날때 추세선 표시를 하고자 합니다
예를들어서 조건문을 배열함수 A 에 넣었을때, 가장 최근봉이 A[0]이고 A[1] 이 1일전에 나오고, A[2]가 2일전, A[3] 가 3일전에 나왔다면 모두 합산을 해서 6일전에 나왔으니 A[3] 에만 표시를 하고, A[3]를 기준으로 다시 계산을 해서 반복을 하고자 합니다.
이런식으로 "가장 최근봉만" 가지고 5거래일 차이가 나는 경우들을 if문, 혹은 새로운 배열 변수에 대입해서 구현 가능하지 않는지 궁금합니다..
** 이 방식이 안된다면 단순히 5거래일에 한번씩 나오게 부탁드립니다
아래는 작성한 수식인데 수정을 부탁드립니다
감사합니다
var : cnt(0), sum1(0), sumi1(0),summ(0),tt(0),hh(0),ll(0),tl(0),tl1(0),n(0);
var: sum2(0),sumi2(0),sumaa(0);
var : t(0),StartBarIndex(0),dd(0),d1(0),d2(0),ee(0),e1(0),e2(0);
Array : ii[50](0),aa[50](0),cc[50](0),vv[150](0),ttl[30](0),tttl[40](0),tttl1[40](0),tttl2[40](0),sd[45](0),st[45
](0);
Var33=Money/100000000;
if Bdate != Bdate[1] Then
{
DD = DD+1;
}
#H>vi(1)*0.95 h>l*1.07 CrossUp(h,ma(h,240))
if h>l*1.08 Then
{
d1 = dd;
d2 = d1[1];
if d2 == 0 or (d2 > 0 and d1 >= d2+5) Then
{
var1 = Index;
Var2 = var1[1];
Var3= Var2[1];
tl=TL_NEW(sDatE,sTimE,100,sDatE,sTimE,999999);
TL_SetSize(tl,0);
TL_SetColor(tl,Black);
}
}
2025-04-21
328
글번호 190275
답변완료
plot
수고하십니다.
질문 :당일의 시가와 고가를 라인으로 표시하고, 시가라인과 고가라인의 사이를 원하는 색
으로 채우는 식
2025-04-21
311
글번호 190274
사공하늘 님에 의해서 삭제되었습니다.
2025-04-21
190
글번호 190273
답변완료
변환 부탁 합니다.
안녕하세요.트레이딩뷰 지표인데 죄송합니다.
//input ------
src = input(close, title="source")
len1 = input(3, title="short 1")
len2 = input(5, title="short 2")
len3 = input(7, title="short 3")
len4 = input(9, title="short 4")
len5 = input(10, title="short 5")
len6 = input(12, title="short 6")
len7 = input(17, title="long 1")
len8 = input(20, title="long 2")
len9 = input(23, title="long 3")
len10 = input(26, title="long 4")
len11 = input(29, title="long 5")
len12 = input(32, title="long 6")
trend_color = input(false, title="trend color")
//ema -----
s1 = ema(src, len1)
s2 = ema(src, len2)
s3 = ema(src, len3)
s4 = ema(src, len4)
s5 = ema(src, len5)
s6 = ema(src, len6)
l1 = ema(src, len7)
l2 = ema(src, len8)
l3 = ema(src, len9)
l4 = ema(src, len10)
l5 = ema(src, len11)
l6 = ema(src, len12)
//trend
trend_up_s = s1 > s2 and s2 > s3 and s3 > s4 and s4 > s5 and s5 > s6
trend_up_l = l1 > l2 and l2 > l3 and l3 > l4 and l4 > l5 and l5 > l6
trend_down_s = s1 < s2 and s2 < s3 and s3 < s4 and s4 < s5 and s5 < s6
trend_down_l = l1 < l2 and l2 < l3 and l3 < l4 and l4 < l5 and l5 < l6
color_s = trend_color and trend_up_s ? #32cd32 : trend_color and trend_down_s ? red : trend_color ? gray : #32cd32
color_l = trend_color and trend_up_l ? #32cd32 : trend_color and trend_down_l ? red : trend_color ? gray : red
//plot -----
p_l1 = plot(l1, color=color_l, title="long 1", linewidth=2)
p_l2 = plot(l2, color=color_l, title="long 2")
p_l3 = plot(l3, color=color_l, title="long 3")
p_l4 = plot(l4, color=color_l, title="long 4")
p_l5 = plot(l5, color=color_l, title="long 5")
p_l6 = plot(l6, color=color_l, title="long 6", linewidth=2)
p_s1 = plot(s1, color=color_s, title="short 1", linewidth=2)
p_s2 = plot(s2, color=color_s, title="short 2")
p_s3 = plot(s3, color=color_s, title="short 3")
p_s4 = plot(s4, color=color_s, title="short 4")
p_s5 = plot(s5, color=color_s, title="short 5")
p_s6 = plot(s6, color=color_s, title="short 6", linewidth=2)
//fill -----
fill(p_l1, p_l6, color_l, 80, "fill long 1-6")
fill(p_s1, p_s6, color_s, 80, "fill short 1-6")
감사합니다.
2025-04-21
336
글번호 190272
답변완료
부틱드립니다
수고하십니다
아래수식을 예스로 부탁드립니다
//@version=6
indicator(title="Volume Weighted Moving Average", shorttitle="VWMA", overlay=true, timeframe="", timeframe_gaps=true)
len = input.int(20, "Length", minval=1)
src = input(close, "Source")
ma = ta.vwma(src, len)
offset = input.int(0, "Offset", minval = -500, maxval = 500)
plot(ma, title="VWMA", color=#2962FF, offset = offset)
2025-04-21
356
글번호 190271
답변완료
부탁드립니다.
분봉상 8시45분부터 9시 44분까지, 9시45분부터 10시44분까지,... 이런 식으로 장마감까지 한시간의 시가를 표시하는 지표를 부탁드립니다.
2025-04-20
320
글번호 190270
답변완료
문의 드립니다.
파라볼릭 매수신호에 매수진입하여 익절을 하게되면 매수신호가 유지중에는 재진입하지 않는다.
(파라볼릭 매수신호 후 매도신도 후 매수신호 순서면 각 신호에 모두 진입한다)
2025-04-20
289
글번호 190269