커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1693
글번호 230811
답변완료
수식 문의
아래의 수식을 예트의 수식으로
변환해 주시기를 요청 드립니다.
엔밸롭지표에 RSI와 ART 변동성을 추가한 지표라고 합니다.
아래 링크를 참고 하시기 바랍니다.
https://www.tradingview.com/scr ipt/MKPAvSrz-RS-MTF-RSI-Weighted-Range-Envelope-V0/
덕분에 예트에서 벗어나지 못하고 있습니다.
항상 친절한 답변 미리 감사드립니다.
//@version=2
study(title='[RS]MTF RSI Weighted Range Envelope V0', shorttitle='E', overlay=true)
tf = input('5')
src = input(open)
ema_length = input(1)
rsi_length = input(20)
atr_length = input(20)
atr_offset = input(1)
ob_value = input(70)*0.01
os_value = input(30)*0.01
rsi = rsi(ema(src, ema_length), rsi_length)
range = atr(atr_length)[atr_offset] * (0.01*rsi_length)
h = src + ((100 - rsi) * range)
l = src - (rsi * range)
sh = security(tickerid, tf, h)
sl = security(tickerid, tf, l)
sob = sl + ((sh - sl)*ob_value)
sm = sl + ((sh - sl)*0.50)
sos = sl + ((sh - sl)*os_value)
p100 = plot(series=sh, title='', color=black, style=line, transp=0, linewidth=1)
pob = plot(series=sob, title='', color=red, style=circles, transp=0, linewidth=1)
pm = plot(series=sm, title='', color=black, style=circles, transp=0, linewidth=1)
pos = plot(series=sos, title='', color=lime, style=circles, transp=0, linewidth=1)
p0 = plot(series=sl, title='', color=black, style=line, transp=0, linewidth=1)
fill(pos, pob, color=purple, transp=90)
2022-07-01
1481
글번호 160341
답변완료
수식 문의
아래의 수식을 예트의 수식으로
변환해 주시기를 요청 드립니다.
엔밸롭지표를 커널 필터로 평활화한 지표라고 합니다.
아래 링크를 참고 하시기 바랍니다.
https://www.tradingview.com/scr ipt/Iko0E2kL-Nadaraya-Watson-Envelope-LUX/
덕분에 예트에서 벗어나지 못하고 있습니다.
항상 친절한 답변 미리 감사드립니다.
indicator("Nadaraya-Watson Envelope [LUX]",overlay=true,max_bars_back=1000,max_lines_count=500,max_labels_count=500)
length = input.float(500,'Window Size',maxval=500,minval=0)
h = input.float(8.,'Bandwidth')
mult = input.float(3.)
src = input.source(close,'Source')
up_col = input.color(#39ff14,'Colors',inline='col')
dn_col = input.color(#ff1100,'',inline='col')
//----
n = bar_index
var k = 2
var upper = array.new_line(0)
var lower = array.new_line(0)
lset(l,x1,y1,x2,y2,col)=>
line.set_xy1(l,x1,y1)
line.set_xy2(l,x2,y2)
line.set_color(l,col)
line.set_width(l,2)
if barstate.isfirst
for i = 0 to length/k-1
array.push(upper,line.new(na,na,na,na))
array.push(lower,line.new(na,na,na,na))
//----
line up = na
line dn = na
//----
cross_up = 0.
cross_dn = 0.
if barstate.islast
y = array.new_float(0)
sum_e = 0.
for i = 0 to length-1
sum = 0.
sumw = 0.
for j = 0 to length-1
w = math.exp(-(math.pow(i-j,2)/(h*h*2)))
sum += src[j]*w
sumw += w
y2 = sum/sumw
sum_e += math.abs(src[i] - y2)
array.push(y,y2)
mae = sum_e/length*mult
for i = 1 to length-1
y2 = array.get(y,i)
y1 = array.get(y,i-1)
up := array.get(upper,i/k)
dn := array.get(lower,i/k)
lset(up,n-i+1,y1 + mae,n-i,y2 + mae,up_col)
lset(dn,n-i+1,y1 - mae,n-i,y2 - mae,dn_col)
if src[i] > y1 + mae and src[i+1] < y1 + mae
label.new(n-i,src[i],'▼',color=#00000000,style=label.style_label_down,textcolor=dn_col,textalign=text.align_center)
if src[i] < y1 - mae and src[i+1] > y1 - mae
label.new(n-i,src[i],'▲',color=#00000000,style=label.style_label_up,textcolor=up_col,textalign=text.align_center)
cross_up := array.get(y,0) + mae
cross_dn := array.get(y,0) - mae
alertcondition(ta.crossover(src,cross_up),'Down','Down')
alertcondition(ta.crossunder(src,cross_dn),'Up','Up')
2022-07-01
1286
글번호 160340
배움이 님에 의해서 삭제되었습니다.
2022-07-01
97
글번호 160339
회원 님에 의해서 삭제되었습니다.
2022-07-01
262
글번호 160338
회원 님에 의해서 삭제되었습니다.
2022-07-01
160
글번호 160337
답변완료
문의합니다
안녕하세요 수식 질문합니다
이전 20개봉 중 최저가 봉 대비 5포인트 이상 올랐을 때
매수진입하지 않는다.
수식 부탁드립니다
2022-07-01
1353
글번호 160336
2wnwn 님에 의해서 삭제되었습니다.
2022-06-30
18
글번호 160335
마데카솔줘 님에 의해서 삭제되었습니다.
2022-06-30
0
글번호 160334
답변완료
77886 수식어 수정 바랍니다
input : n(1),손절틱수(200);
var : DD(0),Year(0),V1(0),V2(0),V3(0),V4(0),summer(False);
var : ST(0),ET(0),entry(0),Tcond(False);
var : cnt(0),hh(0),ll(0);
if NextBarSdate != sDate Then
{
DD = DayOfWeek(NextBarSdate);
Year = Floor(NextBarSdate/10000);
V1 = (10000 * Year) + (100 * 3) + 1;
V2 = 15 - dayofweek(v1);
v3 = (10000 * Year) + (100 * 11) + 1;
v4 = 8 - dayofweek(v3);
Summer = NextBarSdate > (10000 * Year) + (100 * 3) + v2
And NextBarSdate < (10000 * Year) + (100 * 11) + v4;
if summer == true Then
{
ST = 70000;
ET = 55000;
}
Else
{
ST = 80000;
ET = 65000;
}
}
if Year > 0 Then
{
hh = 0;
ll = 0;
For cnt = 0 to n-1
{
if hh == 0 or (hh > 0 and DayHigh(cnt) > hh) Then
hh = DayHigh(cnt);
if ll == 0 or (ll > 0 and DayLow(cnt) < ll) Then
ll = DayLow(cnt);
}
IF ET > ST Then
SetStopEndofday(ET);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(ET);
}
if ((sDate != sDate[1] and Stime >= ET) or
(sDate == sDate[1] and Stime >= ET and sTime < ET)) Then
Tcond = False;
if Bdate != Bdate[1] Then
{
Tcond = true;
entry = 0;
if ST <= ET Then
SetStopEndofday(0);
}
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if Tcond == true Then
{
if entry < 1 Then
Buy("b",AtLimit,hh-(hh-ll)*0.764);
ExitLong("sx",AtLimit,hh-(hh-ll)*0.240);
}
SetStopLoss(PriceScale*손절틱수,PointStop);
}
---------------------------------
전일폭의 기준을 한국시간 24시~ 익일23시59분으로 되어 있고
그걸 기준으로 다음 수열 수식어로 신호가 나오는것 같습니다.
전일을 미국 매매시간인 07시부터 익일 05시 30분까지로 수정해 주시고
이걸 기준으로 다음신호가 나오도록 부탁 드립니다.
2022-06-30
1565
글번호 160333