커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
8107
글번호 230811
2wnwn 님에 의해서 삭제되었습니다.
2023-11-29
16
글번호 174428
답변완료
문의드립니다.
아래수식에서
무포지션에서 매수를 할 때의 매수봉의 저가와 매수봉 바로 직전봉의 저가를 비교해서
2개 저가중 작은 값을 변수 c를 새로 추가하여
저장하려고 합니다.
변수 c 에 저장하는 수식을 부탁드립니다.
input : P(20),dv(2);
var : bbup(0),bbmd(0),bbdn(0);
bbup = BollBandUp(P,dv);
bbmd = ma(C,P);
bbdn = BollBandDown(P,dv);
if MarketPosition == 0 and L[1] <= BBdn and H[1] > BBdn and C > C[1] and C > BBdn Then
{
Buy("b",OnClose,Def,4);
ExitLong("bp",AtLimit,C+PriceScale*20);
ExitLong("bl",AtStop,L);
}
if MarketPosition == 1 Then
{
ExitLong("Bp1",AtLimit,EntryPrice+PriceScale*20,"",2,1);
ExitLong("Bp2",AtLimit,BBup);
if CurrentContracts == MaxContracts Then
ExitLong("bl1",AtStop,L[BarsSinceEntry]);
Else
ExitLong("bl2",AtStop,EntryPrice);
}
if MarketPosition == 0 and L[1] <= BBup and H[1] > BBup and C < C[1] and C < BBup Then
{
Sell("s",OnClose,Def,4);
ExitShort("sp",AtLimit,C-PriceScale*20);
ExitShort("sl",AtStop,H);
}
if MarketPosition == -1 Then
{
ExitShort("sp1",AtLimit,EntryPrice-PriceScale*20,"",2,1);
ExitShort("sp2",AtLimit,BBdn);
if CurrentContracts == MaxContracts Then
ExitShort("sl1",AtStop,H[BarsSinceEntry]);
Else
ExitShort("sl2",AtStop,EntryPrice);
}
2023-11-29
1067
글번호 174424
답변완료
이평선 가장높은지점 찾기
5분봉상 20일 이평선이 오늘 중 가장높은상태인 것을 찾고 싶어요
지금 찾는 현재가 오늘중 가장 높은 상태인 것을 찾고 싶어요 부탁드립니다
2023-11-29
950
글번호 174423
답변완료
전월최고거래봉첫돌파 종목 검색
안녕하세요.
아래 수식은 전월 중 일봉상 최고거래량을 당일 거래량이 돌파하는 수식인데요.
당월 첫 번째 만족하는 봉만 검색하고 싶습니다.
감사합니다.
------------------------------------------------------
var : hv(0),hv1(0);
if sDate > sDate[1]+30 Then
{
hv = v;
hv1 = hv[1];
}
Else
{
if hv > 0 and v > hv Then
{
hv = v;
}
Condition1 = False;
}
if Hv1 > 0 and CrossUp(V,Hv1) Then
Condition1 = true;
if Condition1 == true Then
Find(1);
2023-11-29
1080
글번호 174420
답변완료
수식문의
1. 분봉에서 당일 마지막봉에 매수할 수 있는 방법이 있을까요?
2. 실제 매매에서 당일 마지막 봉에 매수하고 익일 시가에 청산하려면 어떻게 해야하나요?
2023-11-29
1078
글번호 174413
답변완료
문의 드립니다
안녕하세요
보조지표 rsi에서 7,14,21을 동시 표시하고자 합니다
rsi변수는 변형이 가능하게 부탁드립니다
감사합니다
2023-11-29
1142
글번호 174412
답변완료
문의 드립니다.
study(title="RSI OverBought/Sold Price Predict", shorttitle="RSI", overlay=true, format=format.price, precision=2, resolution="")
len = input(14, minval=1, title="Length")
src = input(close, "Source", type = input.source)
on5 = input(true,"RSI 50 Line")
on73 = input(true,"RSI OB/S 1 Line On/Off")
on82 = input(true,"RSI OB/S 2 Line On/Off")
on91 = input(false,"RSI OB/S 3 Line On/Off")
r70 = input(70, "OverBought 1",maxval=99,minval=1)
r30 = input(30, "OverSold 1",maxval=99,minval=1)
r80 = input(80, "OverBought 2",maxval=99,minval=1)
r20 = input(20, "OverSold 2",maxval=99,minval=1)
r90 = input(90, "OverBought 3",maxval=99,minval=1)
r10 = input(10, "OverSold 3",maxval=99,minval=1)
smooth = input(false,"Smoothing")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
a = 1/len
rc70 = 100/(100-r70)-1
rc30 = 1/(100/(100-r30)-1)
rc80 = 100/(100-r80)-1
rc20 = 1/(100/(100-r20)-1)
rc90 = 100/(100-r90)-1
rc10 = 1/(100/(100-r10)-1)
c70e = (1-a)/a*(rc70*down-up)+close
c30e = close-(1-a)/a*(rc30*up-down)
c80e = (1-a)/a*(rc80*down-up)+close
c20e = close-(1-a)/a*(rc20*up-down)
c90e = (1-a)/a*(rc90*down-up)+close
c10e = close-(1-a)/a*(rc10*up-down)
c50 = (1-a)/a*(down-up)+close
lens = floor(len/3)
c70 = if smooth == true
sma(c70e,lens)
else
c70e
c30 = if smooth == true
sma(c30e,lens)
else
c30e
c80 = if smooth == true
sma(c80e,lens)
else
c80e
c20 = if smooth == true
sma(c20e,lens)
else
c20e
c90 = if smooth == true
sma(c90e,lens)
else
c90e
c10 = if smooth == true
sma(c10e,lens)
else
c10e
plot(on73? c70:na,color=color.orange, style=plot.style_stepline,offset=1)
plot(on73? c30:na,color=color.orange,style=plot.style_stepline,offset =1)
plot(on82? c80:na,color=color.yellow,style=plot.style_stepline,offset=1)
plot(on82? c20:na,color=color.yellow,style=plot.style_stepline,offset =1)
plot(on91? c90:na,color=color.green,style=plot.style_stepline,offset=1)
plot(on91? c10:na,color=color.green,style=plot.style_stepline,offset =1)
plot(on5? c50:na,color=color.white,style=plot.style_stepline,offset=1)
트레이딩뷰 지표입니다.
예스 수식으로 좀 변환해주세요.
2023-11-29
1170
글번호 174411
답변완료
문의드립니다
수고가 많으십니다.
다름이아니라 아래식중 b1중 수량30%가 1단위로 끝날경우
올림하여 갯수를 10단위로 매도할수있게 부탁드립니다.
추운날씨에 건강조심하세요.
감사합니다.
input : short1(12),long1(26),sig1(9);
input : short2(12),long2(26),sig2(9);
input : Per(30);
var : MACDO1(0,Data1),MACDO2(0,Data2);
MACDO1 = Data1(MACD_OSC(short1,long1,sig1));
MACDO2 = Data2(MACD_OSC(short2,long2,sig2));
if MarketPosition == 0 and Data2(CrossUp(MACDO2,0)) Then
Buy();
if MarketPosition == 1 Then
{
if data1(CrossDown(MACDO1,0)) Then
ExitLong("bx1",OnClose,Def,"",Ceiling(MaxContracts*(Per/100)),2);
if data2(CrossDown(MACDO2,0)) Then
ExitLong("bx2");
}
2023-11-29
1064
글번호 174410
답변완료
수식수정
input : P(20),dv(2),t(100),n(10);
var : bbup(0),bbdn(0),bbmd(0);
bbup = BollBandUp(P,dv);
bbdn = BollBandDown(P,dv);
bbmd = ma(C,P);
if MarketPosition <= 0 and CrossUp(C,bbup) and CountIf(BBup-bbdn <= PriceScale*t,10)[1] == 10 Then
Buy();
if MarketPosition >= 0 and CrossDown(C,bbdn) and CountIf(BBup-bbdn <= PriceScale*t,10)[1] == 10 Then
Sell();
추가식
위식에서 현매수조건 100틱이내 10봉 이내를 =10봉 이상으로 수정해주세요
일일누적수익 50틱 매매스톱
2023-11-29
1129
글번호 174409