커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1541
글번호 230811
2wnwn 님에 의해서 삭제되었습니다.
2023-04-15
107
글번호 168202
답변완료
문의드립니다1
안녕하세요!
1, 아래 수식1은 "당일분 누적총건수" 수식인데요
이것을 아래와같이 2가지 수식으롤 각각 수정부탁드립니다
(1) 이수식을 "당일분 data2-data3의 누적총건수" 수식으로 수정
(2) 이 수정된 수식과 원본수식을 하나의 수식으로 통합
* 2개선 사이에 색상을 입히기위함입니다
2, 수식2는 다음과 같이 수정 부탁합니다
(1) 캔들이 상방(혹은 하방)돌파시 N봉 이후부터(예: 10개봉 이후) 지속적인 알람신호가 발생
*캔들이 반대방향으로 전환되기전까지 지속
(2) 동시에 N봉 이후부터는 해당방향으로 색상도 같이 나타났으면 합니다
* 예: 상방 돌파시 선기준 상방으로 빨간색, 하방 돌파시 선기준 하방으로 파란색
환절기 건강에 유의하시고 항상 행복하시길 바랍니다!!!
------------------------------------------------------------------------
(수식 1)
var : sum(0,Data2),ii(0,Data2);
if data2(Bdate != Bdate[1]) Then
{
sum = 0;
ii = 0;
}
sum = sum + (Data2(c)*2);
ii = ii +1;
Plot1(sum/ii);
(수식 2)
input : Periods(10),Multiplier(3.0),changeATR(true),showsignals(true),highlighting(true);
var : src(0),ATR2(0),ATrv(0),upv(0),dnv(0),trend(1);
src = (h+l)/2;
atr2 = ma(TrueRange, Periods);
atrv = iff(changeATR, atr(Periods), atr2);
upv = src-(Multiplier*atrv);
upv = iff(close[1] > upv[1],max(upv,upv[1]), upv);
dnv = src+(Multiplier*atrv);
dnv = iff(close[1] < dnv[1],min(dnv, dnv[1]), dnv);
trend = iff(trend == -1 and close > dnv[1] , 1 ,IFf(trend == 1 and close < upv[1] , -1 , trend));
if trend == 1 Then
plot1(upv,"Trend",MAGENTa);
Else
plot1(dnv,"Trend",blue);
2023-04-17
826
글번호 168201
답변완료
수식 전환 부탁드립니다
안녕하세요
항상 감사드립니다
아래수식 전환부탁드립니다
study("RB_ReversalTabs", overlay=true)
//Developer: Andrew Palladino
//Owner: Rob Booker
//Date Modified: 11/25/2018
macd_fast_period = input(title="MACD Fast Period", defval=12, type=integer)
macd_slow_period = input(title="MACD Slow Period", defval=26, type=integer)
macd_signal_period = input(title="MACD Signal Period", defval=9, type=integer)
stoch_period = input(title="Stochastic RSI Period", defval=70, type=integer)
prc_k_period = input(title="%K Period", defval=30, type=integer)
prc_d_period = input(title="%D Period", defval=30, type=integer)
stoch_ob = input(title="Stochastic Overbought Level", defval=70, type=integer)
stoch_os = input(title="Stochastic Oversold Level", defval=30, type=integer)
[macd_line, signal_line, hist_line] = macd(close, macd_fast_period, macd_slow_period, macd_signal_period)
fast_prc_k = 100*(close - lowest(low, stoch_period))/(highest(high, stoch_period) - lowest(low, stoch_period))
fast_prc_d = sma(fast_prc_k, prc_d_period)
slow_prc_k = sma(fast_prc_k, prc_k_period)
slow_prc_d = sma(slow_prc_k, prc_d_period)
full_prc_k = sma(fast_prc_k, prc_k_period)
full_prc_d = sma(full_prc_k, prc_d_period)
is_buy_reversal = crossover(macd_line, 0) and full_prc_k < stoch_os
is_sell_reversal = crossunder(macd_line, 0) and full_prc_k > stoch_ob
plotshape(is_buy_reversal, style=shape.triangleup, color=green, size=size.small, location=location.belowbar)
plotshape(is_sell_reversal, style=shape.triangledown, color=red, size=size.small, location=location.abovebar)
alertcondition(is_buy_reversal, title='Buy Reversal Tab Alert', message='Reversal Tab BUY ALERT!')
alertcondition(is_sell_reversal, title='Sell Reversal Tab Alert', message='Reversal Tab SELL ALERT!')
alertcondition(is_sell_reversal or is_buy_reversal, title='Buy or Sell Reversal Tab Alert', message='Reversal Tab BUY OR SELL ALERT!')
//plot(full_prc_k, color=blue)
//plot(full_prc_d, color=red)
//plot(macd_line, color=blue)
2023-04-14
1317
글번호 168200
답변완료
해외선물 지표수식 부탁드립니다.
키움수식을 변경부탁드립니다.
지표명: 시초가 저점
지표조건:TOP(24457)
BOT(24344)
수식1:DIP=TOP-BOT;
BOT
수식2:BOT+DIP*(-1.888)
수식3:BOT+DIP*(-3.068)
수식4:BOT+DIP*(-4.956)
수식5:BOT+DIP*(-8.024)
지표명: 시초가 고점
지표조건:TOP(24457)
BOT(24344)
수식1:DIP=TOP-BOT;
TOP
수식2:BOT+DIP*1.888
수식3:BOT+DIP*3.068
수식4:BOT+DIP*4.956
수식5:BOT+DIP*8.024
라인설정: 색상변경가능
지표조건:TOP( )
BOT( )
수치변경 기록 가능 하도록 부탁드립니다.
감사합니다.
2023-04-14
1087
글번호 168199
답변완료
문의
주식선물종목을 검색하고 싶습니다.
관심종목에 편히 넣고 싶거든요..
종목변경이 많이 불편합니다.
2023-04-14
1358
글번호 168198
답변완료
이격도의 이동평균선에 대하여 다시 문의드립니다
안녕하세요
이격도 20ma를
다시 5ma로 이동평균한
이격도 이동평균선의 지표식을 문의드립니다
예를들면
ma(이격도(20),Period(5)),
이렇게 표현한
이격도(20)를
5ma로 다시한번 이동평균한 지표식이 필요합니다
감사합니다
2023-04-14
1108
글번호 168197
답변완료
안녕하세요
안녕하세요
이격도의
(5ma 이동평균선)의 지표식을 부탁드립니다
감사합니다
2023-04-14
1319
글번호 168181
답변완료
문의 드립니다.
아래와 반대인 매도용으로 부탁드립니다.
input : price(335.70);
if MarketPosition == 0 and H < Price Then
Buy("b",AtStop,Price);
ExitLong("Bp",AtLimit,Price+PriceScale*40);
ExitLong("Bl",AtStop,Price-PriceScale*40);
2023-04-14
1467
글번호 168180
답변완료
수식 문의 드립니다.
안녕하세요
아래 수식에서 매수와 매도 조건에 따라 "b" "b2" "b3" 와 "s" "s2" "s3"가 있는데
"b"의 조건으로 매수한 후 "s2"나 "s3"의 조건이 와서 진입하더라도 b의 조건과 겹쳐서
다음 3분봉에서 바로 "b"로 진입하게 돼서 원래의 의도와는 다르게 진입하게 됩니다.
만약 "s2" "s3" 되어서 진입하게 되면 진입한 봉 이후 3번째 봉까지는 "b"의 진입 조건을 무시하고 싶습니다.
반대로 "b2"나 "b3" 되어서 진입하게 되면 진입한 봉 이후 3번째 봉까지는 "s"의 진입 조건을 무시하고 싶습니다.
이 경우 수식을 어떻게 작성해야 하는지 문의 드립니다.
항상 도와주셔서 감사합니다.
if MarketPosition >= 0 and mav1 < mav2 and c>=avgv Then
Sell("s",AtMarket,Def,1);
if MarketPosition <= 0 and mav1 > mav2 and c<=avgv Then
Buy("b",AtMarket,Def,1);
if Condition3 == False Then
{
# 매수 2번 연속 손절이면 매도로 진입
if MarketPosition == 0 and
entry > 1 and
(MarketPosition(1) == 1 and ExitName(1) == "StopLoss") and
(MarketPosition(2) == 1 and ExitName(2) == "StopLoss") Then
{
Sell("s2",AtMarket);
}
# 매도 2번 연속 손절이면 매수로 진입
if MarketPosition == 0 and
entry > 1 and
(MarketPosition(1) == -1 and ExitName(1) == "StopLoss") and
(MarketPosition(2) == -1 and ExitName(2) == "StopLoss") Then
{
Buy("b2",AtMarket);
}
# 매수 후 20 포인트 이상 상승 후 하락하여 진입가에 오면 스위칭
if MarketPosition == 1 and highest(H,BarsSinceEntry) >= EntryPrice+20 Then
{
Sell("s3",AtStop,EntryPrice(0)+10);
}
# 매도 후 20 포인트 이상 하락 후 상승하여 진입가에 오면 스위칭
if MarketPosition == -1 and Lowest(L,BarsSinceEntry) <= EntryPrice-20 Then
{
Buy("b3",AtStop,EntryPrice(0)-10);
}
2023-04-14
1095
글번호 168176