커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
7716
글번호 230811
답변완료
문의드립니다.
안녕하세요?
종가가 주봉120 이평선과 일봉 240 이평선과의 비교로
종가>주봉120 이평선 && 종가>일봉240
어떻게 표현하는지
예스의 종목검색식 문의드립니다.
2024-07-23
656
글번호 181821
답변완료
예스랭귀지로 변환부탁드립니다
아래는 전월고가돌파, 전월종가돌파, 당월시가돌파 의 키움수식입니다.
3종의 예스랭귀지로 변환 부탁드립니다.
[전월고가돌파]
A1 = floor(date / 100);
A2 = A1 % 100;
A3 = HighestSince(1,A2 !=A2(1) && A2 != 12, H);
A4 = Valuewhen(1, A2 != A2(1), A3(1))
Crossup(c,A4)
[전월종가돌파]
A1 = floor(date / 100);
A2 = A1 % 100;
A3 = HighestSince(1,A2 !=A2(1) && A2 != 12, C);
A4 = Valuewhen(1, A2 != A2(1), A3(1))
Crossup(c,A4)
[당월시가돌파]
A = floor(date / 100);
A2 = A% 100;
A3 = ValueWhen(1, A2!=A2(1), O)
Crossup(c,A3)
또한, 수식으로 전월평균고가를 어떻게 표현하면되나요?
2024-07-23
896
글번호 181820
관리자에 의해 예스스팟 QnA로 이동되었습니다
2024-07-25
22
글번호 181819
답변완료
문의 드립니다.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © FX365_Thailand
//Revision history
//v100.0 First release
//v101.0 Added alert conditions for swing high/low creation
//v107.0 Added alert conditions for liquidity raid
//v110.0 20240119
// Added an option to display liquidity pools
//@version=5
indicator('Liquidity Pools', shorttitle='Liquidity Pools(SABAI SABAI FX)', max_lines_count=500,overlay=true)
//Users' input ------
len_l = input.int(4, 'Left bar&Right bar', minval=1,group="Swing High Low Setting")
flg_shsl = input.bool(true, 'Show Swing High Swing Low')
flg_lq = input.bool(true, 'Show Liquidity Pools',group="Liquidity Pools Settings")
i_width = input.int(1, 'Line Width', minval=1,maxval=6)
i_linestyle = input.string(defval=line.style_dotted,options=[line.style_solid,line.style_dashed,line.style_dotted],title="Line Style")
i_linecolor_bs = input.color(color.new(#ff5252,65),title="Buy Side Liquidity Color")
i_linecolor_ss = input.color(color.new(#0ef30e,65),title="Sell Side Liquidity Color")
h = high
l = low
//Identify swingh high/low -----
swing_h = barstate.isconfirmed ? ta.pivothigh(h, len_l, len_l) : na
swing_l = barstate.isconfirmed ? ta.pivotlow(l, len_l, len_l) : na
//Value of Swing High/Swing Low
LSH = ta.valuewhen(swing_h, high[len_l], 0)
LSL = ta.valuewhen(swing_l, low[len_l], 0)
plotshape(flg_shsl ? swing_h : na, color=color.new(color.gray, 0), style=shape.labeldown, title='Swing High', text='SH', textcolor=color.new(color.white, 0), location=location.abovebar, offset=-len_l,size=size.tiny)
plotshape(flg_shsl ? swing_l : na, color=color.new(color.gray, 0), style=shape.labelup, title='Swing Low', text='SL', textcolor=color.new(color.white, 0), location=location.belowbar, offset=-len_l,size=size.tiny)
//Draw liquidity pools
//Variables
var line lin_BSLQ_upper = na
var line lin_BSLQ_lower = na
var line lin_SSLQ_upper = na
var line lin_SSLQ_lower = na
//Threshold
thresh = timeframe.isseconds ? 1.0001 : (timeframe.period == "60" and timeframe.period=="240") ? 3 : (timeframe.isminutes and timeframe.period != "60" and timeframe.period != "240") ? 1.0001 : timeframe.isdaily ? 1.005 : timeframe.isweekly ? 1.01 : timeframe.ismonthly ? 1.01 : 1.001
thresh_ = timeframe.isseconds ? 0.9999 : (timeframe.period == "60" and timeframe.period=="240") ? 3 : (timeframe.isminutes and timeframe.period != "60" and timeframe.period != "240") ? 0.9999 : timeframe.isdaily ? 0.995 : timeframe.isweekly ? 0.99 : timeframe.ismonthly ? 0.99 : 0.999
//Lines
if swing_h
lin_BSLQ_lower := flg_lq ? line.new(x1=bar_index-len_l,x2=bar_index, y1=LSH,y2=LSH,color=i_linecolor_bs,style= i_linestyle,width = i_width) : na
if swing_h
lin_BSLQ_upper := flg_lq ? line.new(x1=bar_index-len_l,x2=bar_index, y1=LSH*thresh,y2=LSH*thresh,color=i_linecolor_bs,style= i_linestyle,width = i_width) : na
if swing_l
lin_SSLQ_lower := flg_lq ? line.new(x1=bar_index-len_l,x2=bar_index, y1=LSL*thresh_,y2=LSL*thresh_,color=i_linecolor_ss,style=i_linestyle,width = i_width) : na
if swing_l
lin_SSLQ_upper := flg_lq ? line.new(x1=bar_index-len_l,x2=bar_index, y1=LSL,y2=LSL,color=i_linecolor_ss,style= i_linestyle,width = i_width) : na
//Fill
linefill.new(lin_BSLQ_upper,lin_BSLQ_lower,color=i_linecolor_bs)
linefill.new(lin_SSLQ_upper,lin_SSLQ_lower,color=i_linecolor_ss)
//Alert conditions
//Swing high low creation
alertcondition(swing_h,message="Swing High Created", title="Swing High")
alertcondition(swing_l,message="Swing Low Created", title="Swing Low")
//Reach liquidity zone
alertcondition(ta.crossover(high,LSH),message="Price reached buy side liquidity", title="Buy Side Liquidity Raid")
alertcondition(ta.crossunder(low,LSL),message="Price reached sell side liquidity", title="Sell Side Liquidity Raid")
트레이딩뷰 지표인데 예스로 좀 바꿔주세요.
2024-07-23
1474
글번호 181818
답변완료
문의드립니다.
120봉신고가를 종가를 처음으로 돌파한 120봉신고가값을 "돌파전고가"로 정하여 이후 종가가 돌파전고가에 근접했을 때 종목검색으로 찾고 싶은데 아래와 같은 식으로 작성하면 문제가 있습니다.
신고가 돌파한후 계속 상승하면 신고가가 계속 갱신되니까 돌파전고가선도 따라서 계속 상승해 버립니다.
따라서 처음으로 120봉신고가 돌파한 그 값을 돌파전고가로 고정하여 그 값에 근접했을 때 종목검색이 되게 하려면 어떻게 해야 할지 도움을 부탁드립니다.
주석도 같이 해 주시면 감사하겠습니다.
if C>Highest(H,120)[1] Then
{
돌파전고가 = Highest(H,120)[1];
인덱스1 = Index;
Condition1 = true;
상단선= 돌파전고가*1.50;
하단선= 돌파전고가*0.99;
}
Else
{
if (하단선> 0 and C< 하단선) OR (상단선>0 && C>상단선) Then
Condition1 = False;
경과봉수=Index-인덱스1;
if Condition1 == true &&
C<=돌파전고가*1.05 && C>=돌파전고가
Then
Find(경과봉수);
}
2024-07-23
894
글번호 181817
답변완료
문의드립니다.
늘 감사합니다.
현물 입니다.
최근 10봉이네 종가가 10% 이상인봉의 시가, 봉의 1/2 가격을 저장후
중심가(1/2가격)에 1차 매수, 시가에 2차매수
2024-07-23
824
글번호 181816
답변완료
진입신호 수식 부탁드립니다
이격도 50을 상향돌파 할 때 매수 진입하는 수식
이격도 150을 하향붕괴 할 때 매도 진입하는 수식
2024-07-23
837
글번호 181815
답변완료
sdate
sdate[right]
에 right 가 무슨 의미인가요?
h[1] 전일 고점을 날짜로 잡을 때는 sdate[?] 을 어떻게 표현하죠?
h[2] 전전일 고점을 시작일로 하라고 할 때 sdate[ ? ]
물음표 부분에 뭘 넣어야 하나요?
sdate[right-1]
sdate[right-2] 이렇게 하나요?
2024-07-23
795
글번호 181814
답변완료
검색식 부탁 드려요
1. 다시 정리해서 보냅니다
3가지 조건에 만족한 검색식 부탁드려요.
1) 캔들이 (기준) 20일 이평(단순)을 돌파 하고,
2) 돌파한 캔들의 일목균형표 선행스팬1 이 같이 상승하고,
상승한 선행스팬1 (기준) 에 선을 일직선으로 그어
그 선을 기준으로 20이평을 돌파한 현재봉 을 판단하되
그 선보다 큰 (선을 넘는 캔들 또는 선보다 위에 있는 캔들)
20이평 돌파 종목.
( 20이평을 돌파한 봉의 종가와 연결하는게 아니고
20이평을 돌파한 봉의 종가에 선을 긋는게 아닙니다.)
3) 돌파한 캔들의 (26일 뒤)일목균형표 후행스팬이 20일 이평 위에 있을때,
2. 10 이평이(단순) 60이평을 골든크로스 할때 검색식
3. 10 이평이(단순) 60 이평을 돌파하기전 캔들이 60이평을 먼저 돌파하는 검색식
부탁드려요.
4. 단순) "10 이평 또는 캔들이" 60 이평 을 데드 및 골드크로스 반복할때,
" 데드에서 골드까지 30봉이내" 조건에서 , 데드크로스 후
"0봉전 캔들 또는 10 이평선"이 60 이평을 골든 크로스 할때
("10 이평 또는 캔들이" 60 이평선을 돌파) 의 검색식 부탁드립니다.
** 데드 크로스일때- 캔들과 10 이평 (2가지경우 캔들로 데드크로스/ 10 이평 데드)
** 골드 크로스일때- 캔들과 10 이평 (2가지경우 캔들로 골드/ 10 이평 골드)
5. 20 이평이(단순) 상승추세 일때 종목 검색식 부탁 드립니다
2024-07-24
1341
글번호 181813