커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
6351
글번호 230811
답변완료
수식 변환 부탁 드립니다.
안녕하세요!
수식 변환 부탁드립니다. 감사합니다^
/@version=5
indicator(overlay=true)
// ** ---> Inputs ------------- {
var bool positive = false
var bool negative = false
string RSI_group = "RSI Settings"
string mom_group = "Momentum Vales"
string visual = "Visuals"
int Len2 = input(14,"RSI 1️⃣",inline = "rsi",group = RSI_group)
int pmom = input(65," Positive above",inline = "rsi1",group =RSI_group )
int nmom = input(32,"Negative below",inline = "rsi1",group =RSI_group )
bool showlabels = input(true,"Show Momentum ❓",inline = "001",group =visual )
color p = input(color.rgb(76, 175, 79, 62),"Positive",inline = "001",group =visual )
color n = input(color.rgb(255, 82, 82, 66),"Negative",inline = "001",group =visual )
bool filleshow = input(true,"Show highlighter ❓",inline = "002",group =visual )
color bull = input(color.rgb(76, 175, 79, 62),"Bull",inline = "002",group =visual )
color bear = input(color.rgb(255, 82, 82, 66),"Bear",inline = "002",group =visual )
rsi = ta.rsi(close, Len2)
//------------------- }
// ** ---> Momentums ------------- {
p_mom = rsi[1] < pmom and rsi > pmom and rsi > nmom and ta.change(ta.ema(close,5)) > 0
n_mom = rsi < nmom and ta.change(ta.ema(close,5)) < 0
if p_mom
positive:= true
negative:= false
if n_mom
positive:= false
negative:= true
// ** ---> Entry Conditions ------------- {
a = plot(filleshow ? ta.ema(high,5) : na,display = display.none,editable = false)
b = plot(filleshow ? ta.ema(low,10) : na,style = plot.style_stepline,color = color.red,display = display.none,editable = false)
// fill(a,b,color = color.from_gradient(rsi14,35,pmom,color.rgb(255, 82, 82, 66),color.rgb(76, 175, 79, 64)) )
fill(a,b,color = positive ? bull :bear ,editable = false)
//plotting
pcondition = positive and not positive[1]
ncondition2 = negative and not negative[1]
plotshape(showlabels ? pcondition: na , title="Positive Signal",style=shape.labelup, color=p, location= location.belowbar , size=size.tiny,text= "Positive",textcolor = color.white)
plotshape(showlabels ? ncondition2: na , title="Negative Signal",style=shape.labeldown, color=n, location= location.abovebar , size=size.tiny,text = "Negative",textcolor = color.white)
// Alerts //
alertcondition(pcondition,"Positive Trend")
alertcondition(ncondition2,"Negative Trend")
//
2024-05-04
1144
글번호 179144
답변완료
검색식 부탁 드립니다
분봉거래대금=v* ((o+h+l+c)/4)/100000000;
분봉거래대금>=20
and
분봉거래대금>=(분봉거래대금(1)+분봉거래대금(2))/2*3
and
c > o
and
c - o > (h -c )*1.2
지표수식과 종목 검색식 부탁드립니다
2024-05-03
1216
글번호 179137
답변완료
문의 드립니다.
아래 식에서 수량 추가할 수 있도록 부탁드립니다.
Input : Period(10), Period1(5);
Var : value(0);
value = StochasticsK(Period,Period1);
If CrossUP(value, 20) Then
{
Buy();
}
if MarketPosition == 1 Then
{
If CrossDown(value, 20) Then
ExitLong();
If CrossDown(value, 80) Then
ExitLong();
}
Input : Period(10), Period1(5);
Var : value(0);
value = StochasticsK(Period,Period1);
If CrossDown(value, 80) Then
Sell();
if MarketPosition == -1 Then
{
If CrossUP(value, 80) Then
ExitShort();
If CrossUP(value, 20) Then
ExitShort();
}
2024-05-03
997
글번호 179129
답변완료
지표문의
1.지표문의
주식에서 30%가 상한가 이잖아요
5%,10%,15%,20%,25% ,30% 해당하는
수평선 좀 만들어 주세요
색상두 정해서요
2.그럼 즐거운 하루 되세요
2024-05-03
1209
글번호 179124
답변완료
부탁 드립니다
도움에 감사 드립니다,
작성해주신 기존식을 다음을 추가 하여 수정 부탁 드립니다.
if Condition1[n봉전] == true Then
if Condition2[n봉전+1] == true Then
if Condition3[n봉전+2] == true Then
.
.
.
if Condition_yy[n봉전+yy] == true Then
Find(1);
위의 Condition1 Condition2 . . Condition_yy 중에
어느것 하나라도 만족 한다면...
cnt to와같이 간략히 하여 종목 검색이 되는 수식 부탁 드립니다.
***기존식
input : n봉전(10),mm(15),yy(2);
#mm기간 거래량 이평
var1 = ma(v,mm);
#현재봉 거래량이 1봉전 기준 mm기간 거래량의 yy배보다 크면 true 아니면 false
Condition1 = v > var1[1]*yy;
#n봉전에 만족한 종목을 검색
if Condition1[n봉전] == true Then
Find(1);
2024-05-03
906
글번호 179121
답변완료
문의드립니다
1,외국인과기관이 따로 10,000주 이상씩 매수한종목이 5일이상인종목을 찾고싶습니다
2,외국인이 누적으로 500,000주이상인종목을찾고싶습니다
3,기관이 5일연속매수하고 5일평균 매수수량의 1.5배이상매수한 종목을찾고싶습니다
2024-05-03
856
글번호 179120
답변완료
문의드립니다.
수고많습니다.
이전 질문에 하나더 추가해 문의드립니다.
if CrossUp(R,40) Then
{
B = 1;
if B[1] == -1 and ll < 30 Then
Buy();
}
if CrossDown(R,40) Then
{
B = -1;
ll = R;
}
if B == -1 Then
{
if R < ll Then
ll = R;
}
if CrossDown(R,60) Then
{
S = -1;
if S[1] == 1 and hh > 70 Then
Sell();
}
if CrossUp(R,60) Then
{
S = 1;
HH = R;
}
if S == 1 Then
{
if R > hh Then
hh = R;
}
위의 식에서 매수조건을 만족하더라도 추가로 5이평선을 돌파할 때 매수, 매도조건을 만족하더라도 추가로 5이평선을 이탈할 때 매도하고 싶습니다.
즉, 조건만족 상태가 되더라도 5이평선 돌파/이탈시까지 조건만족 상태로 있다가 5선을 돌파/이탈시 신호가 나오게 하고 싶습니다.
이경우 1. 종가에 진입과 2. 5선 돌파/이탈시 즉시 진입 다 가능하다면 둘 다 부탁드리겠습니다.
2024-05-03
926
글번호 179119
답변완료
수식추가
Inputs : Period(20), Sence(1.5), CC_DN(Yellow);
Vars:
VLineUp(0),
VLineDn(0),
HHighest(0),
LLowest(0),
JustChanged(FALSE),
VLine(0), DBN(0),T(0);
Array:
Highs[35](0),
Lows[35](0),
RRange[35](0),
UpWave[1](FALSE),
DnWave[1](FALSE);
If STime == 180000 Then
DBN = 0;
DBN = DBN + 1;
Var1 = Period;
Var2 = Var1 - 1;
Var3 = Var1 - 2;
Var5 = Sence;
Var6 = H-L;
JustChanged = FALSE;
if CurrentBar <= Var2 then begin
Highs[CurrentBar] = Close;
Lows[CurrentBar] = Close;
RRange[CurrentBar] = (H-L) /2;
end;
if CurrentBar == Var1 then begin
if Highs[Var2] >= Highs[Var3] then begin
UpWave[1] = TRUE;
HHighest = Highs[Var2];
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
#Plot1(VLineUp,"VLineUp");
end;
if Highs[Var2] < Highs[Var3] then begin
DnWave[1] = TRUE;
LLowest = Lows[Var2];
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
#Plot2(VLineDn,"VLineDn");
end;
end;
if CurrentBar > Var1 then begin
if DnWave[1] and Close > VLineDn then begin
DnWave[1] = FALSE;
UpWave[1] = TRUE;
JustChanged = TRUE;
HHighest = Close;
LLowest = 0;
end;
if UpWave[1] and Close < VLineUp and JustChanged == FALSE then begin
UpWave[1] = FALSE;
DnWave[1] = TRUE;
JustChanged = TRUE;
LLowest = Close;
HHighest = 0;
end;
if JustChanged == FALSE then begin
if Close > HHighest then
HHighest = Close;
else if Close < LLowest then
LLowest = Close;
end;
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
if UpWave[1] then
T = 1;
else if DnWave[1] then
T = -1;
end;
Input : BBP(20), MultiD(2);
var : BBmd(0),BBup(0),BBdn(0);
BBmd = ma(C,Period);
BBup = BollBandUp(BBP,MultiD);
BBdn = BollBandDown(BBP,MultiD);
if CrossDown(C,BBup) and t == -1 Then
sell();
if crossup(C,BBdn) and t == 1 Then
buy();
안녕하세요
위식에추가 부탁드림니다.
이평60선추가
매수 기존식 + 이평60선위에서는 매수.
손절청산 이평60선 하향돌파시.
매도 기존식 + 이평60선아래에서 매도.
손절청산 이평60선 상향돌파시
2024-05-03
1100
글번호 179118
답변완료
진입봉 이후 최고가 봉 인덱스
안녕하세요
종가 데이터 Close를 사용할 때처럼 현재봉의 인덱스가 0, 직전봉이 1, 이런식으로 인덱스 값을 부여한다고 했을 때 매수 진입신호가 나온 봉부터 현재봉 사이에서 최고가가 나온 봉의 인덱스 값을 구하고 싶습니다.
감사합니다.
2024-05-03
917
글번호 179117