커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
5490
글번호 230811
답변완료
수식 수정좀 부탁드려요
안녕하세요.
아래 수식이 원하는대로 작동은 하는데, 박스가 그려질때 세로줄이 생기는게
신경쓰여서 수정을 해보려고 해도 잘안돼네요.
세로줄이 생기지 않도록 수정좀 부탁드려요.
공부를 위해 왜 세로줄이 생겼는지, 해결은 어떻게 되는건지 주석좀 남겨주시면
감사드립니다.
input : st(240),sel(1);
var : cnt(0),ut(0),dt(0),uv(0),dv(0),calcu(0),calcd(0),calcu1(0);
var : uth(0),utl(0),dth(0),dtl(0),ccu(0),ccd(0),sdte(0),sdtt(0),edte(0),edtt(0);
var : ubox1(0),ubox2(0),ubox3(0),ubox4(0),ubox5(0),dbox1(0),dbox2(0),dbox3(0),dbox4(0),dbox5(0);
array : uh[20](0),ul[20](0),dh[20](0),dl[20](0),uc[20](0);;
ut = Upticks;
dt = Downticks;
uv = Upvol;
dv = DownVol;
if sel == 1 Then
{
calcu = ut * uv;
}
if sel == 2 Then
{
calcu = Ticks * Volume;
}
calcd = dt * dv;
if BarIndex%st == 0 Then
{
uth = 0;
utl = 0;
ccu = 0;
//dte = 0;
//dtt = 0;
uh[0] = h;
ul[0] = l;
edte = sdate;
edtt = stime;
}
if calcu > ccu Then
{
uth = h;
utl = l;
ccu = calcu;
sdte = sdate;
sdtt = stime;
For cnt = 1 to 19
{
uh[cnt] = uh[cnt-1][1];
ul[cnt] = ul[cnt-1][1];
uc[cnt] = uc[cnt-1][1];
}
}
Else
{
if ccu > uc[0] Then
uh[0] = uth;
ul[0] = utl;
uc[0] = ccu;
//sortArray(uc,19,1);
//SortArray(ul,20,1);
}
ubox1 =
Box_New(sdate,stime,uh[0],NextBarSdate,NextBarStime,ul[0]);
Box_SetColor(ubox1,Red);
Box_SetFill(ubox1,true);
ubox2 =
Box_New(sdate,stime,uh[1],NextBarSdate,NextBarStime,ul[1]);
Box_SetColor(ubox2,Blue);
Box_SetFill(ubox2,true);
ubox3 =
Box_New(sdate,stime,uh[2],NextBarSdate,NextBarStime,ul[2]);
Box_SetColor(ubox3,Black);
Box_SetFill(ubox3,true);
2025-06-05
440
글번호 191424
땅끝 님에 의해서 삭제되었습니다.
2025-06-04
157
글번호 191423
땅끝 님에 의해서 삭제되었습니다.
2025-06-04
132
글번호 191422
답변완료
수식 부탁드립니다
지표식 부탁 드립니다.
//@version=5
indicator("HTF Ribbon", overlay = false)
// ───── INPUTS ─────
length = input.int(10, "Trend Length", minval = 1)
htf_tf = input.timeframe("", "HTF Timeframe")
htf_color_up = input.color(#00ffaa, "HTF Up Color")
htf_color_dn = input.color(#e91e63, "HTF Down Color")
// ───── FUNCTION: HTF TREND ─────
getHTFTrend(tf, len) =>
atr = request.security(syminfo.tickerid, tf, ta.sma(ta.atr(200), 200)) * 0.8
smaHigh = request.security(syminfo.tickerid, tf, ta.sma(high, len)) + atr
smaLow = request.security(syminfo.tickerid, tf, ta.sma(low, len)) - atr
crossUp = request.security(syminfo.tickerid, tf, ta.crossover(close, smaHigh))
crossDn = request.security(syminfo.tickerid, tf, ta.crossunder(close, smaLow))
var bool trend = na
trend := crossUp ? true : crossDn ? false : trend
trend
// ───── TREND STATES ─────
htf_trend = getHTFTrend(htf_tf, length)
// ───── RIBBON LEVELS ─────
base = 0
height = 2
// ───── RIBBON PLOTS ─────
plot(htf_trend ? base + height : na, title = "HTF Up", color = htf_color_up, style = plot.style_columns, histbase = base)
plot(htf_trend == false ? base + height : na, title = "HTF Down", color = htf_color_dn, style = plot.style_columns, histbase = base)
2025-06-04
368
글번호 191421
회원 님에 의해서 삭제되었습니다.
2025-06-06
66
글번호 191420
회원 님에 의해서 삭제되었습니다.
2025-06-04
3
글번호 191419
답변완료
부탁드립니다
아래 30분단위가 아니라 15분 단위로 수정 부탁드립니다
var : cnt1(0), cnt2(0);
var : S1(0),D1(0),TM(0),TF(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%60;
if TF >= 0 and TF < 30 Then
{
cnt2 = 0;
cnt1 = cnt1+1;
}
if TF >= 30 Then
{
cnt1 = 0;
cnt2 = cnt2+1;
}
if cnt1 == 1 or cnt2 == 1 Then
Var3 = C;
plot2(Var3);
}
2025-06-04
283
글번호 191418
답변완료
항상 죄송스럽네요 지표변환 부탁드려요 건강하세요
항상 감사하고 있습미다 건강하세요
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © ceyhun
//@version=4
study("Top Bottom Indicator",overlay=false)
per = input(14, title="Bottom Period")
loc = low < lowest(low[1], per) and low <= lowest(low[per], per)
bottom = barssince(loc)
plot(bottom,color=color.blue)
per2 = input(14, title="Top Period")
loc2 = high > highest(high[1], per2) and high >= highest(high[per2], per2)
top = barssince(loc2)
plot(top,color=color.red)
Buy = crossover(bottom,top)
Sell = crossunder(bottom,top)
plotshape(Buy,title="Buy", style=shape.triangleup,location=location.bottom, color=#008000, text="Buy",size=size.tiny)
plotshape(Sell,title="Sell",style=shape.triangledown,location=location.top, color=#FF0000, text="Sell",size=size.tiny)
background = top < bottom ? color.new(#0000FF,80) : top > bottom ? color.new(#FF0000,80) : na
bgcolor(color=background)
alertcondition(Buy, title="Buy Signal", message="Buy")
alertcondition(Sell, title="Sell Signal", message="Sell")
2025-06-04
602
글번호 191417
답변완료
궁금한게 생겼어요...
음...보니까,
랭귀지에서도 시간을 정하는게 있고,
스팟에서도 시간을 정하는게 있는데,
예를들어, 어떤검색식을 9시30분부터 10시30분까지만 검색하고 싶을때,
둘중에 어떤거로 해야 하나요?
두개가 다른가요?
효율적인 면인가요?
같은가요?
궁금합니다...ㅎ
답변 감사합니다...ㅎ
수고하세요...ㅎㅎㅎ
2025-06-04
265
글번호 191416