커뮤니티
예스랭귀지 Q&A
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
1374
글번호 230811
답변완료
검색식 부탁드립니다. 감사합니다.
키움식 period(14),multiplier(3),기간(14),간격봉수(26)
S = supertrend(period, multiplier);
M = ma(C,기간);
조건 = M>M(1) && Crossup(S,M);
//이평선이 상승중이며 수퍼트랜드가 이평선돌파
bs = Barssince(조건);
//bs라는 변수에 조건이 발생하고 지나간 봉의개수를 알수있다
//1보다크면 먼저발생
bs > 0 && bs < 간격봉수 &&
Crossdown(S,M) &&
M>M(1) &&
C(1)<S(1)
1.키움의 supertrend 지표식부탁드립니다.
2.종목검색식 부탁드립니다.
항상 감사드립니다. 즐거운 명절 보내세요~
2024-09-13
1189
글번호 183456
행복만땅 님에 의해서 삭제되었습니다.
2024-09-16
75
글번호 183455
답변완료
부탁드립니다
일봉에서
몸통 표기하는식 부탁합니다.
1. 몸통 위가격
2. 몸통 아래가격
2024-09-13
659
글번호 183454
답변완료
문의 드립니다
안녕하세요
1.볼밴1(20,2)는 단순이평종가로, 볼밴2(10,5)는 단순이평시가로 만드고자합니다.
볼밴변수는 변경가능하게 부틱드립니다
볼밴 상단,하단,중심선의 기울기가 상향이면 빨강, 하향이면 파랑으로 표시하고자 합
니다 기울기가 0 이면 흰색으로
2.해선에서 아시아장, 유럽장,미국장의 첫 시작 1시간봉( 시간변경가능)의 시가,고가,저가,중심가(몸통)에
수평선을 그리고 각선의 색은 변경가능하고 싶습니다
각 시장의 시가을 그리고 싶습니다
감사합니다
2024-09-19
626
글번호 183453
답변완료
수식 문의 드립니다
수고하십니다.
Band%B 지표식에서 “기준선20 이하” 종목을 찾고 싶습니다.
종목검색식을 부탁드립니다.
2024-09-13
740
글번호 183452
2wnwn 님에 의해서 삭제되었습니다.
2024-09-13
113
글번호 183450
답변완료
6중4 두번째 진입변수 제어
아래수식은 진입변수를 사용하여 2번 거래하는 수식입니다.
요청내용)
두번째 거래할 때는 진입변수를 달리하여 진입하고 싶습니다.
input : d1(0),d2(200),d3(0),d4(12),d5(15000),d6(5000);//첫번째 진입변수
input : dd1(0),dd2(200),dd3(0),dd4(12),dd5(15000),dd6(5000);//두번째 진입변수
이런식으로 첫번째 진입과 두번째 진입의 변수를 제어하는 수식을 추가해 주십시요.
항상 고맙습니다.
***********************************************************************************
input : 횟수(2);
input : d1(0),d2(200),d3(0),d4(12),d5(15000),d6(5000);//진입변수
input : n(6);
var : T1(0),entry(0);
if Bdate != Bdate[1] Then
T1 = TotalTrades;
if MarketPosition == 0 Then
entry = TotalTrades-T1;
Else
entry = (TotalTrades-T1)+1;
var : Cond1(False),Cond2(False),Cond3(False),Cond4(False),Cond5(False),Cond6(False);
var : count(0);
Cond1 = data1(c>lowd(0)+d1); //매수조건1
Cond2 = data2(c>lowd(0)+d2); //매수조건2
Cond3 = data3(c>lowd(0)+d3); //매수조건3
Cond4 = data4(c>lowd(0)+d4); //매수조건4
Cond5 = data5(c>lowd(0)+d5); //매수조건5
Cond6 = data6(c<highd(0)-d6); //매수조건6
count = 0;
if cond1 == true Then
count = count+1;
if cond2 == true Then
count = count+1;
if cond3 == true Then
count = count+1;
if cond4 == true Then
count = count+1;
if cond5 == true Then
count = count+1;
if cond6 == true Then
count = count+1;
if count >= n and entry<횟수 then
Buy("b");
2024-11-06
603
글번호 183449
답변완료
검색식 부탁드립니다.
안녕하세요
오늘의 주가가 선행스팬1의 선행된 25일중의 최저점을 돌파하는 종목검색
오늘의 주가가 선행스팬1의 선행된 25일중의 최고점을 돌파하는 종목검색
현재봉기준 과거 100봉중에 52번째봉이 최저점인 졸목검색 (저가기준, 종가기준)
(과거 100봉--------------52번째봉(최저점,저가기준과 종가기준)-----------현재봉)
검색식부탁드립니다.
2024-09-16
839
글번호 183448
답변완료
부탁드립니다.
트레이딩 뷰 수식입니다.
적용가능하도록 부탁 드립니다.
indicator("Sentiment Range MA [ChartPrime]", overlay = true, timeframe = "", timeframe_gaps = false)
simple_filter(float source, int length, bool duel_filter)=>
switch duel_filter
false => ta.wma(source, length)
true => ta.wma(ta.sma(source, length), length)
sr_ma(float source = close, int output_smoothing = 3, int trigger_smoothing = 1, int atr_length = 50, float multiplier = 1, string range_switch = "Body", bool duel_filter = false)=>
candle_top = range_switch != "Body" ? high : math.max(open, close)
candle_bottom = range_switch != "Body" ? low : math.min(open, close)
smooth_top = ta.sma(candle_top, trigger_smoothing)
smooth_bottom = ta.sma(candle_bottom, trigger_smoothing)
tr = candle_top - candle_bottom
atr = ta.sma(tr, atr_length)
var float sr_ma = na
var float current_range = na
var float top_range = na
var float bottom_range = na
flag = smooth_top > top_range or smooth_bottom < bottom_range or na(current_range)
if flag
sr_ma := source
current_range := atr * multiplier
top_range := sr_ma + current_range
bottom_range := sr_ma - current_range
out = simple_filter(sr_ma, output_smoothing, duel_filter)
smooth_top_range = simple_filter(top_range, output_smoothing, duel_filter)
smooth_bottom_range = simple_filter(bottom_range, output_smoothing, duel_filter)
[out, smooth_top_range, smooth_bottom_range]
source = input.source(close, "Source", group = "Settings")
output_smoothing = input.int(20, "Length", minval = 0, group = "Settings") + 1
use_double = input.bool(true, "Double Filter", group = "Settings")
smoothing = input.int(4, "Trigger Smoothing", minval = 0, group = "Settings") + 1
atr_length = input.int(200, "ATR Length", minval = 1, group = "Settings")
multiplier = input.float(6, "Range Multiplier", minval = 0, step = 0.125, group = "Settings")
range_switch = input.string("Body", "Range Style", ["Body", "Wick"], group = "Settings")
style = input.string("MA Direction", "Color Style", ["MA Direction", "MA Cross", "Solid"], group = "Color")
bullish_color = input.color(color.rgb(33, 255, 120), "Bullish Color", group = "Color")
bearish_color = input.color(color.rgb(255, 33, 33), "Bearish Color", group = "Color")
neutral_color = input.color(color.rgb(137, 137, 137), "Neutral Color", "This doubles as the solid color.", group = "Color")
[sr_ma, top_range, bottom_range] = sr_ma(source, output_smoothing, smoothing, atr_length, multiplier, range_switch, use_double)
var color ma_delta = na
var color ma_cross = na
plot_neutral = high > sr_ma and low < sr_ma
plot_bullish = low > sr_ma
plot_bearish = high < sr_ma
if plot_bullish
ma_cross := bullish_color
if plot_bearish
ma_cross := bearish_color
if plot_neutral
ma_cross := neutral_color
ma_delta_neutral = sr_ma - nz(sr_ma[1]) == 0
ma_delta_bullish = sr_ma - nz(sr_ma[1]) > 0
ma_delta_bearish = sr_ma - nz(sr_ma[1]) < 0
if ma_delta_bullish
ma_delta := bullish_color
if ma_delta_bearish
ma_delta := bearish_color
if ma_delta_neutral
ma_delta := neutral_color
ma_color = style == "MA Cross"? ma_cross : style == "MA Direction" ? ma_delta : neutral_color
alpha = color.new(color.red, 100)
ma = plot(sr_ma, "SR MA", ma_color, 3)
top = plot(top_range, "Top Range", alpha)
bottom = plot(bottom_range, "Bottom Range", alpha)
fill(ma, top, top_value = top_range, bottom_value = sr_ma, bottom_color = color.new(ma_color, 82), top_color = alpha)
fill(ma, bottom, top_value = sr_ma, bottom_value = bottom_range, top_color = color.new(ma_color, 82), bottom_color = alpha)
2024-09-12
793
글번호 183447