커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
3394
글번호 230811
답변완료
수식문의(HA)
수고하십니다.
아래 수식을 하이켄아시 차트에서 검색할 수식으로 변환 가능할까요?
A=BBandsUp(17,2);
B=BBandsUp(40,2);
M=EnvelopeUp(20,2);
(c>ma(h,5) and Crossup(A,M)) or
(c>ma(h,5) and B>M and Crossup(A,B)) or
(A>B and B>M and Crossup(C,A)) or
Crossup(C,A) and
Crossup(C,B) and
Crossup(C,M)
2025-09-29
212
글번호 194381
답변완료
신호수식을 종목검색식으로 부탁드립니다
A=BWI(20,2);
CROSSUP(A,5) &&
crossup(c,bbandsup(20,2))
2025-09-29
200
글번호 194380
답변완료
부탁드립니다
수고하십니다
예스로 부탁드립니다
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// Credits to the original s c ript - Range Filter DonovanWall https://www.tradingview.com/s c ript/lut7sBgG-Range-Filter-DW/
// This version is the old version of the Range Filter with less settings to tinker with
//@version=4
study(title="Range Filter - B&S Signals", shorttitle="RF - B&S Signals", overlay=true)
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
//Functions
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
//Range Size Function
rng_size(x, qty, n)=>
// AC = Cond_EMA(abs(x - x[1]), 1, n)
wper = (n*2) - 1
avrng = ema(abs(x - x[1]), n)
AC = ema(avrng, wper)*qty
rng_size = AC
//Range Filter Function
rng_filt(x, rng_, n)=>
r = rng_
var rfilt = array.new_float(2, x)
array.set(rfilt, 1, array.get(rfilt, 0))
if x - r > array.get(rfilt, 1)
array.set(rfilt, 0, x - r)
if x + r < array.get(rfilt, 1)
array.set(rfilt, 0, x + r)
rng_filt1 = array.get(rfilt, 0)
hi_band = rng_filt1 + r
lo_band = rng_filt1 - r
rng_filt = rng_filt1
[hi_band, lo_band, rng_filt]
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
//Inputs
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
//Range Source
rng_src = input(defval=close, type=input.source, title="Swing Source")
//Range Period
rng_per = input(defval=20, minval=1, title="Swing Period")
//Range Size Inputs
rng_qty = input(defval=3.5, minval=0.0000001, title="Swing Multiplier")
//Bar Colors
use_barcolor = input(defval=false, type=input.bool, title="Bar Colors On/Off")
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
//Definitions
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
//Range Filter Values
[h_band, l_band, filt] = rng_filt(rng_src, rng_size(rng_src, rng_qty, rng_per), rng_per)
//Direction Conditions
var fdir = 0.0
fdir := filt > filt[1] ? 1 : filt < filt[1] ? -1 : fdir
upward = fdir==1 ? 1 : 0
downward = fdir==-1 ? 1 : 0
//Trading Condition
longCond = rng_src > filt and rng_src > rng_src[1] and upward > 0 or rng_src > filt and rng_src < rng_src[1] and upward > 0
shortCond = rng_src < filt and rng_src < rng_src[1] and downward > 0 or rng_src < filt and rng_src > rng_src[1] and downward > 0
CondIni = 0
CondIni := longCond ? 1 : shortCond ? -1 : CondIni[1]
longCondition = longCond and CondIni[1] == -1
shortCondition = shortCond and CondIni[1] == 1
//Colors
filt_color = upward ? #05ff9b : downward ? #ff0583 : #cccccc
bar_color = upward and (rng_src > filt) ? (rng_src > rng_src[1] ? #05ff9b : #00b36b) :
downward and (rng_src < filt) ? (rng_src < rng_src[1] ? #ff0583 : #b8005d) : #cccccc
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
//Outputs
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
//Filter Plot
filt_plot = plot(filt, color=filt_color, transp=67, linewidth=3, title="Filter")
//Band Plots
h_band_plot = plot(h_band, color=color.new(#05ff9b, 100), title="High Band")
l_band_plot = plot(l_band, color=color.new(#ff0583, 100), title="Low Band")
//Band Fills
fill(h_band_plot, filt_plot, color=color.new(#00b36b, 92), title="High Band Fill")
fill(l_band_plot, filt_plot, color=color.new(#b8005d, 92), title="Low Band Fill")
//Bar Color
barcolor(use_barcolor ? bar_color : na)
//Plot Buy and Sell Labels
plotshape(longCondition, title = "Buy Signal", text ="BUY", textcolor = color.white, style=shape.labelup, size = size.normal, location=location.belowbar, color = color.new(color.green, 0))
plotshape(shortCondition, title = "Sell Signal", text ="SELL", textcolor = color.white, style=shape.labeldown, size = size.normal, location=location.abovebar, color = color.new(color.red, 0))
//Alerts
alertcondition(longCondition, title="Buy Alert", message = "BUY")
alertcondition(shortCondition, title="Sell Alert", message = "SELL")
2025-09-29
550
글번호 194379
답변완료
수식좀 부탁합니다
우선 늘 감사합니다
오전 11시 기준
총 계약수 3개약 매매입니다
이평선 60 100 사용합니다
매수가 한번 들어가면 다른 매수 들어가지 않습니다
손절 익절이 있어야 다음 매수든 매도든 들어갑니다
매수1 -- 2봉의 고가를 현재봉이 돌파로 완성하면 매수
단(현재봉의 2/1 이상이 2봉의 고가 위에 있어야 합니다)
매수2 -- 60 이평선 돌파시 매수(봉 완전히(지가 시가 종가 고가) 돌파시
매도1 -- 매수1의 반대
매도2 -- 매수2의 반대
매수손절1 -- 첫봉의 저가 이탈수 손절
단(현재봉의 2/1 이상이 저가 아래 있어야 합니다)
매수손절2 -- 100 이평선 이탈시 손절 (봉 완전히(지가 시가 종가 고가) 이탈시
매도손절1 -- 매수1손절의 반대
매도손절2 -- 매수2손절의 반대
익절 -- 100틱에 1계약 정리 200틱에 1계약 정리 300틱에 1계약 정리
각 줄 주석좀 부탁합니다
2025-09-29
200
글번호 194378
답변완료
다시 문의 드립니다.
예스_스탁(250928)
- 94452
안녕하십니까?
수식 부탁 드립니다
-------------------------------------------
보내주신 수식에는
1.상단선의 고점과 저점만 표시 됨니다
[ 추가 ]
1. 하단선의 고점과 저점
2. 중심선의 고점과 저점
3. 상단고점. 상단저점
4. 하단고점. 하단저점
5. 중심고점. 중심저점
으로 표시해 주십시요
추가 하여주시면 감사 하겠읍니다
항상 감사 합니다
명절 잘 보내 십시요
-----------------------------------------
예스_스탁(250928)
- 94452
안녕하십니까?
수식 부탁 드립니다
1.상단선
AA = atr(a_period);
A = eavg(가격 + AA*ratio, 기간);
2. 하단선
AA = atr(a_period);
B = eavg(가격 - AA*ratio, 기간);
3.중심
(A + B)/2
4. 상단선_고점
AA = atr(a_period);
A = eavg(가격 + AA*ratio, 기간);
Valuewhen(1, A > A(1), A)
5. 하단선_저점
AA = atr(a_period);
A = eavg(가격 - AA*ratio, 기간);
Valuewhen(1, A < A(1), A)
-------------------------------------
A_period = 10
ratio = 1
가격 = (H+L)/2
기간 = 5
=========================
2025-09-29
195
글번호 194372
답변완료
30분봉참조
5분봉챠트 수식에서 30분챠트의 분봉 시가가 60평 이격할때 참조하는 수식 부탁드립니다
2025-09-29
197
글번호 194357
답변완료
강조 수식 질문
예스스탁이 처음입니다.
Var: gap1(0), gap2(0), tx(0);
Input: Th(3);
gap1 = (Ma(Close, 1) - Close) / Close * 100;
gap2 = (Ma(Close, 2) - Close) / Close * 100;
If (gap1 - gap2) > Th Then
{
tx = Text_New(sDate, sTime, Low, "▲");
Text_SetColor(tx, Green);
Text_SetSize(tx, 15);
}
위처럼 강조를 짜봤는데요. 화살표가 캔들의 가운데에 안오고 좌측에 붙어 나옵니다.
혹시 가운데 정렬처럼 가운데 오게 할 수 있을까요????
2025-09-29
200
글번호 194356
답변완료
안녕하세요
3202 파워종목에서
거래대금 상위 30개 + 제가 만든 종목검색 수식을 적용하여
분봉에서 조건에 충족하는 종목을
영웅문 0156 조건검색실시간 화면같이 실시간으로 종목 검색이 가능하도록
확인이 가능한지 궁금합니다.
혹시 가능하다면 방법 문의드리고자 합니다. 감사합니다.
2025-09-29
225
글번호 194355
답변완료
청산 조건식 부탁드립니다.
매수 후 한번이라도 이동평균선(5,10,20일)이 정배열 되었다면 매도조건이 충족되는 조건식을 부탁드립니다.
2025-09-29
205
글번호 194354