커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1643
글번호 230811
답변완료
지표 부탁 드립니다
기준선 0 양대금과 음대금 지표수식 부탁드립니다 선물에서 사용하고
싶어요
대금=(H+O+L+O)/4*V/100000000;
A=IF(C>O,대금,0);
B=SUM(A);
D=Valuewhen(1,date(1)!=date,B(1));
양대금=B-D;
A1=IF(C<O,대금,0);
B1=SUM(A1);
D1=Valuewhen(1,date(1)!=date,B1(1));
음대금=B1-D1;
2번 거래량 매수 매도
P=V*(C+L)/(H+L);
VF=if(C>O,P,if(C<O,-N,0));
Mp=Sum(VF,기간)/Sum(V,기간)*100
지표조건
기간 50
기준선 0 양거래량과 음거래량 지표수식 부탁드립니다
2024-12-15
658
글번호 186271
답변완료
스톡캐스틱+RSI
안녕하세요
요즘 유행하는 스톡캐스틱+RSI 합성 지표 작성
문의 합니다
2024-12-14
699
글번호 186270
답변완료
HAM50
HAM50상승
A=wavg(2*wavg(scr,len/2)-wavg(scr,len),floor(sqrt(len)));
HAM50하락
A=wavg(2*wavg(scr,len/2)-wavg(scr,len),floor(sqrt(len)));
if(A(1)>A,A,0)
지표조건
scr 종가
len 50
잘 부탁드려요^^
2024-12-14
625
글번호 186269
답변완료
수고하십니다
항상노고에감사드리며
변환 부탁드립니다
indicator("Dynamic Price Oscillator (Zeiierman)", precision=0)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Tooltips {
t1 = "Defines the lookback period for the oscillator and Bollinger Bands calculation. Increasing this value will consider a longer history, potentially smoothing out the oscillator and making the Bollinger Bands wider, leading to fewer signals. Decreasing this value will make the oscillator more sensitive to recent price changes, and the Bollinger Bands will become narrower, possibly increasing the number of signals."
t2 = "Determines how much the oscillator's calculation is smoothed. A higher smoothing factor reduces noise and makes the oscillator's line smoother, which may help in identifying the dominant trend more clearly but can delay signal generation. A lower smoothing factor makes the oscillator more responsive to recent price movements, which can be beneficial for short-term trading strategies but may increase the risk of false signals."
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Inputs {
length = input.int(33, "Length", minval=1,group="Dynamic Price Oscillator", inline="",tooltip=t1)
smoothFactor = input.int(5, "Smoothing Factor", minval=1,group="Dynamic Price Oscillator", inline="",tooltip=t2)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Function to calculate True Range {
trueRange(h, l, c) =>
tr1 = h - l
tr2 = math.abs(h - c[1])
tr3 = math.abs(l - c[1])
math.max(tr1, tr2, tr3)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Function to calculate Bollinger Bands {
bollingerBands(src, length, mult) =>
basis = ta.sma(src, length)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
[upper, lower]
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Adjusted Price based on True Range {
volAdjPrice = ta.ema(trueRange(high, low, close), length)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Price calculation {
priceChange = (close - close[length])
priceDelta = (close - volAdjPrice)
oscillator = ta.ema(math.avg(priceDelta, priceChange), smoothFactor)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Bollinger Bands on Oscillator {
[bbHigh, bbLow] = bollingerBands(oscillator, length*5, 1)
[bbHighExp, bbLowExp] = bollingerBands(oscillator, length*5, 2)
mean = math.avg(bbHighExp,bbLowExp)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
// ~~ Plot {
p1 = plot(oscillator, "Dynamic Price Oscillator", color = color.rgb(227, 161, 54))
plot(mean, "Dynamic Mean", color = color.new(#f7cb85,0))
p2 = plot(bbHigh, "Bollinger High", color = color.new(#089981, 60))
p3 = plot(bbHighExp, "Expanded Bollinger High", color = color.new(#089981, 0))
p4 = plot(bbLow, "Bollinger Low", color = color.new(#f23645, 60))
p5 = plot(bbLowExp, "Expanded Bollinger Low", color = color.new(#f23645, 0))
fill(p1, p2, oscillator > bbHigh ? color.new(#089981, 80) : na, "Oscillator Above Bollinger High")
fill(p1, p3, oscillator > bbHighExp ? color.new(#089981, 80) : na, "Oscillator Above Expanded Bollinger High")
fill(p1, p4, oscillator < bbLow ? color.new(#f23645, 80) : na, "Oscillator Below Bollinger Low")
fill(p1, p5, oscillator < bbLowExp ? color.new(#f23645,80) : na, "Oscillator Below Expanded Bollinger Low")
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
2024-12-14
907
글번호 186268
답변완료
키움수식 변환 요청합니다.
수고많으십니다. 키움 영웅문에서 사용중인 신호 수식을 예스트레이더 시스템 수식으로 변경 부탁합니다.
/매수/
A=BBandsUp(20,2);
A1=BBandsDown(20,2);
A2=Eavg(C, 40);
A3=MA(C,50);
A4=Eavg(C, 15);
B=((RSI(R기간)- lowest(RSI(R기간),S기간)) / (highest(RSI(R기간),S기간)-(lowest(RSI(R기간),S기간))))*100;
(A2>=A3 OR A4>=A3) && (L<= A1*1.01 OR L(1)<= A1(1)*1.01) && (B<=20 OR B(1)<=20) && C>O
##R기간 : 13
##S기간 : 10
/매도/
A=BBandsUp(20,2);
A1=BBandsDown(20,2);
A2=Eavg(C, 40);
A3=MA(C,50);
A4=Eavg(C, 15);
B=((RSI(R기간)- lowest(RSI(R기간),S기간)) / (highest(RSI(R기간),S기간)-(lowest(RSI(R기간),S기간))))*100;
(A2<A3 OR A4<A3) && (H>=A*0.99 OR H(1)>=A(1)*0.99) && (B>=80 OR B(1)>=80) && C<O
##R기간 : 13
##S기간 : 10
2024-12-14
730
글번호 186267
답변완료
문의드립니다
if Bdate != Bdate[1] Then
{
var1 = 0;
Var2 = 0;
Var3 = 0;
}
var1 = var1+(h+l+c)/3;
var2 = var2+1;
Var3 = var1/Var2;
---------------------
var3 의 이동평균을 구할수 있을까요?
ma(var3. n); 이렇게 해봤는데 안되네요
감사합니다
2024-12-14
738
글번호 186266
답변완료
파라3파 전환
Input : af(0.02), maxAF(0.2);
var : T(0),B(0),S(0),tx(0),txx(0),HH(0),LL(0),box(0),B1(0),S1(0),B2(0),S2(0),H1(0),L1(0),H2(0),L2(0),TL(0);
var1 = CSar(af,maxAF);
plot1(var1, "CSAR",IFF(c>var1,Red,Blue));
if CrossUp(C,var1) Then
{
T = 1;
B = var1;
B1 = B[1];
B2 = B1[1];
HH = H;
H1 = HH[1];
H2 = H1[1];
Condition1 = False;
}
if CrossDown(C,var1) Then
{
T = -1;
S = var1;
S1 = S[1];
S2 = S1[1];
LL = L;
L1 = LL[1];
L2 = L1[1];
Condition1 = False;
}
Else
{
if T == 1 Then
{
if H > HH Then
HH = H;
if B1 > 0 and B > B1 and H > H1 and B1 > B2 and H1 > H2 and Condition1 == False Then
{
Condition1 = true;
txx = Text_New(sdate,sTime,HH+0.1,"●");
Text_SetStyle(txx,2,2);
Text_SetColor(txx,Green);
Text_SetSize(txx,20);
}
}
if T == -1 Then
{
if L < LL Then
LL = L;
if S1 > 0 and S < S1 and L < L1 and S1 < S2 and L1 < L2 and Condition1 == False Then
{
Condition1 = true;
txx = Text_New(sdate,sTime,LL-0.1,"●");
Text_SetStyle(txx,2,2);
Text_SetColor(txx,Magenta);
Text_SetSize(txx,20);
}
}
}
하락 3파 직후에 양전환되거나, 상승 3파 직후에 음전환되면 세로선. 감사합니다.
2024-12-14
685
글번호 186265
답변완료
dayindex 진입제한
국내선물 1분봉
데이트레이딩 기준
개장 후 봉발생이 15개 생기면 진입을 못하게 하는 수식을 부탁드립니다.
input : 진입제한봉수(15);
if c>opend(0)+0.5 and 진입제한봉수 then
buy();
항상 고맙습니다.
2025-01-07
591
글번호 186264
답변완료
수식요청
수고 많으십니다
볼린저밴드(30),(2) 와 (50),(3) 그리고 RSI(14)를 이용하고 싶습니다
..## 매수 조건 ##..
반드시 캔들 1개이상이 완전히 (30),(2)하단선을 하향 이탈 후 RSI(14)가 30 이하에서만 볼밴(30),(2)를 상향 조건만족 돌파시
..## 매도 조건 ##
RSI70 이상에서만 (50),(3) 상단 톨파후 하향이탈시 50% 매도,나머지는 (30),(2) 이탈하거나 혹은 이전 양봉 몸통 길이의75% 이상 클때 양봉에 청산 수식 부탁합니다.
이전 양봉 윗꼬리길이 포함 75%이상 클때 Sell,하단 반대상황도 2회분할 Buy 추기 부탁해요
수고하세요
2024-12-16
595
글번호 186263