커뮤니티
예스랭귀지 Q&A
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1415
글번호 230811
살빼고싶다 님에 의해서 삭제되었습니다.
2024-05-08
123
글번호 179267
살빼고싶다 님에 의해서 삭제되었습니다.
2024-05-08
108
글번호 179266
답변완료
수고많으십니다. 수식 맞는지 질문드립니다.
수고많으십니다.
if문에서 &&와 ||를 같이 쓰고 싶습니다.
if (jin1 < 0 && jin2 > 0) || (jin1 == 0 && jin2 == 0 ) {
Main.PlaySound("C:₩₩EugeneYesTrader₩₩Data₩₩Sound₩₩accept.wav");
}
위에 수식이 맞는지 궁금합니다.
만약 else if 문으로 작성한다면 다음이 맞는지 궁금합니다.
if ((jin1 < 0 && jin2 > 0) {
Main.PlaySound("C:₩₩EugeneYesTrader₩₩Data₩₩Sound₩₩accept.wav");
else if (jin1 == 0 && jin2 == 0 )
Main.PlaySound("C:₩₩EugeneYesTrader₩₩Data₩₩Sound₩₩reject.wav");
}
바쁘신데 감사합니다.
2024-05-08
802
글번호 179265
답변완료
종목검색식 부탁드려요
* 3가지 검색식 문의드립니다.
1. 매수가 매도를 돌파할때의 종목을
예스트레이더 종목검색식 부탁드립니다.(일봉기준)
(수식1) 매수
AA=date/100%100;
대금=(H+O+L+C)/4*V/100000000;
A=IF(C>O,대금,0);
B=SUM(A);
D=ValueWhen(1,AA(1)!=AA,B(1));
B-D;
(수식2) 매도
AA=date/100%100;
대금=(H+O+L+C)/4*V/100000000;
A=IF(C<O,대금,0);
B=SUM(A);
D=ValueWhen(1,AA(1)!=AA,B(1));
B-D;
2. 기준선 0선위에 있는 종목을 예스트레이더 검색식으로 부탁드립니다.
C - C (기간)
지표변수
기간: 11
3. 매수가 매도를 돌파할때 예스트레이더 종목 검색식 부탁드립니다.(분, 일,주,월)
(수식1) 매수
if( (high==low), 0, volume*(close-low)/(high-low))
(수식2) 매도
if( (high==low), 0, volume*(high-close)/(high-low))
2024-05-09
901
글번호 179264
답변완료
문의드립니다.
파라볼릭 매매에서
매수신호후 진입가에서 10틱 밀리면 즉시 청산한 후 반등이 나와 매수신호가 나온 진입가를 돌파하여 10틱 이상 올라가면 즉시 재매수 신호가 나오게 하고 싶습니다.
이때 매도신호로 바뀌기 전까지 처음 매수신호가 나온 봉의 종가인 진입가를 기준으로 조건만족시 매수신호가 반복해서 나오길 원합니다.
(파라볼릭 매수신호가 유지되는 중간에 1) 50틱 상승후 고점대비 30틱 하락시, 2) 첫 매수신호 나온 후 50개봉이 경과하는 2가지 상황이 되면 위의 진입가 기준 재진입이 중단되게도 부탁드립니다)
매도신호는 그 반대입니다.
늘 노고에 감사드립니다~
2024-05-09
964
글번호 179262
답변완료
문의
#{ Heikin Ashi PaintBarStudy
# Heikin-Ashi technique for visualization
# of trend }
inputs: UpColor( RGB(0,255,0)),DnColor( RGB(255,0,0) );
vars: haClose(0),haOpen(0),haHigh(0),haLow(0),color(0);
if index == 1 then
begin
haOpen = open;
haClose = (O+H+L+C)/4;
haHigh = MaxList( high, haOpen, haClose);
haLow = MinList( low, haOpen,haClose);
end;
if index >= 1 then
begin
haClose = (O+H+L+C)/4;
haOpen = (haOpen [1] + haClose [1])/2 ;
haHigh = MaxList(High, haOpen, haClose) ;
haLow = MinList(Low, haOpen, haClose) ;
if haClose > haOpen then
color = DnColor;
else
color = UpColor;
PlotPaintBar(haOpen,haClose,"Ignore-ME-",color);
#SetPlotWidth(2,3);
#SetPlotColor(1,color);
end;
데이타2에 적용하도록 부탁드립니다
2024-05-08
831
글번호 179261
답변완료
수식 변환 가능한지 문의 드립니다.
키움증권의 지표 수식을 예스 랭귀지 검색 수식으로 변환 가능한지 문의드립니다.
키움 증권 수식은 다음과 같습니다.
수식1
rsi(period1)
수식2
a=eavg(rsi(period1),period2);
avg(ma(a,1,단순),p)+d1*stdev(ma(a,1,단순),p)
수식3
a=eavg(rsi(period1),period2);
avg(ma(a,1,단순),p)
수식4
a=eavg(rsi(period1),period2);
avg(ma(a,1,단순),p)-d1*stdev(ma(a,1,단순),p)
2024-05-08
836
글번호 179260
답변완료
개장시 매수
안녕하세요?
아래 수식으로 9시에 진입했는데 첨부 처럼 9시 6초~30초사이에 주문이 됩니다.
이유가 무엇인가요?
input : StartTime(90000),EndTime(90001);
If MarketPosition == 0 and
((NextBarSdate != sDate and NextBarStime >= StartTime) or
(NextBarSdate == sDate and NextBarStime >= StartTime and sTime < StartTime)) Then
Buy("b",AtMarket);
2024-05-08
844
글번호 179257
답변완료
ALMA Smoothed Gaussian Moving Average 수식 변경 요청 합니다
항상 감사 드립니다.
아래의 수식은 트레이딩뷰 사이트 에서 사용되는 수식 입니다.
이 수식을 예스트레이더에서 사용 할수 있도록 변경 부탁드립니다..
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © profitprotrading
//@version=5
indicator("ALMA Smoothed Gaussian Moving Average", shorttitle = "ASGMA", overlay=true)
//ALMA Smoothing
src = input(close, title='Source', group = "ALMA Smoothing")
smooth = input.int(1, title='Smoothing', minval=1, group = "ALMA Smoothing")
length1 = input.int(25, title='Lookback', minval=1, group = "ALMA Smoothing")
offset = 0.85
sigma1 = 7
pchange = ta.change(src, smooth) / src * 100
avpchange = ta.alma(pchange, length1, offset, sigma1)
//RSI
rsi = ta.rsi(close, 14)
rsiL = rsi > rsi[1]
rsiS = rsi < rsi[1]
//Chande Momentum
length11 = 9
src1 = close
momm = ta.change(src1)
f1(m) => m >= 0.0 ? m : 0.0
f2(m) => m >= 0.0 ? 0.0 : -m
m1 = f1(momm)
m2 = f2(momm)
sm1 = math.sum(m1, length11)
sm2 = math.sum(m2, length11)
percent(nom, div) => 100 * nom / div
chandeMO = percent(sm1-sm2, sm1+sm2)
cL = chandeMO > chandeMO[1]
cS = chandeMO < chandeMO[1]
//GAMA credit to author: © LeafAlgo https://www.tradingview.com/v/th7NZUPM/
length = input.int(14, minval=1, title="Length", group = "Gaussian Adaptive Moving Average")
adaptive = input.bool(true, title="Adaptive Parameters", group = "Gaussian Adaptive Moving Average")
volatilityPeriod = input.int(20, minval=1, title="Volatility Period", group = "Gaussian Adaptive Moving Average")
// Calculate Gaussian Moving Average
gma = 0.0
sumOfWeights = 0.0
sigma = adaptive ? ta.stdev(close, volatilityPeriod) : input.float(1.0, minval=0.1, title="Standard Deviation", group = "Gaussian Adaptive Moving Average")
for i = 0 to length - 1
weight = math.exp(-math.pow(((i - (length - 1)) / (2 * sigma)), 2) / 2)
value = ta.highest(avpchange, i + 1) + ta.lowest(avpchange, i + 1)
gma := gma + (value * weight)
sumOfWeights := sumOfWeights + weight
gma := (gma / sumOfWeights) / 2
gma:= ta.ema(gma, 7)
gmaColor = avpchange >= gma ? color.rgb(0, 161, 5) : color.rgb(215, 0, 0)
// Color bars based on signals until the next signal occurs
var int currentSignal = 0
currentSignal := avpchange >= gma ? 1 : -1//le_final ? -1 : currentSignal
var color barColor = na
if currentSignal == 1
barColor := color.rgb(0, 186, 6)
else if currentSignal == -1
barColor := color.rgb(176, 0, 0)
barcolor(barColor)
plotcandle(open, high, low, close, "Bar Color", barColor, barColor, bordercolor = barColor)
//Plotting
ema = ta.ema(close, 7)
plot(ema, color=gmaColor, linewidth=3, title="Gaussian Moving Average")
plotshape(ta.crossover(avpchange,gma) and barstate.isconfirmed, "Buy Signal", text = "B", textcolor = color.white, style = shape.labelup, location = location.belowbar, color = color.rgb(0, 161, 5), offset = -1)
plotshape(ta.crossunder(avpchange,gma) and barstate.isconfirmed, "Sell Signal", text = "S", textcolor = color.white, style = shape.labeldown, location = location.abovebar, color = color.rgb(215, 0, 0), offset = -1)
bgcolor(ta.crossover(avpchange,gma) and barstate.isconfirmed and rsiL and cL ? color.rgb(0, 162, 5, 85): na, offset = -1)
bgcolor(ta.crossunder(avpchange,gma) and barstate.isconfirmed and rsiS and cS ? color.rgb(207, 0, 0, 85): na, offset = -1)
barcolor(gmaColor)
alertcondition(ta.crossover(avpchange,gma) and barstate.isconfirmed, title="Buy Signal", message="Go Long! {{exchange}}:{{ticker}}")
alertcondition(ta.crossunder(avpchange,gma) and barstate.isconfirmed, title="Sell Signal", message="Go Short! {{exchange}}:{{ticker}}")
2024-05-08
1393
글번호 179256