커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
3490
글번호 230811
캣피쉬 님에 의해서 삭제되었습니다.
2021-03-02
5
글번호 146714
답변완료
차트에서 고점과 저점을 저장해서 그때의 시점과 가격을 알고싶습니다.
아래 그림에표시한거처럼 순간순간의 고점과 저점을 배열에 저장하고 이를 매매에 사용하고싶은데 어떻게 하면좋을지 수식작성부탁드립니다.
이런식으로 저장해볼라고했는데 저장은 할수있어도 이를 매매에 사용하기가 어렵더라고요..
혜안 부탁드립니다.
var : triger(0),lasthigh(0),lasthightime(0),lastlow(0),lastlowtime(0),bong(0);
array : everhigh[100](0),everhightime[100](0),everlow[100](0),everlowtime[100](0);
lasthigh = H;
lasthightime = time;
lastlow = L;
lastlowtime = time;
for bong = 1 to 100
{
if lasthigh < H[bong] then
{
lasthigh = H[bong];
lasthightime = time[bong];
everhigh[bong] = H[bong];
everhightime[bong] = time[bong];
}
if lastlow > L[bong] then
{
lastlow = L[bong];
lastlowtime = time[bong];
everlow[bong] = L[bong];
everlowtime[bong] = time[bong];
}
if bong > 6 and everhightime[bong] == 0 and everhightime[bong-1] == 0 and everhightime[bong-2] == 0 and everhightime[bong-3] == 0 and everhightime[bong-4] == 0 and everhightime[bong-5] == 0 then
{
lastlow = L[bong];
}
if bong > 6 and everlowtime[bong] == 0 and everlowtime[bong-1] == 0 and everlowtime[bong-2] == 0 and everlowtime[bong-3] == 0 and everlowtime[bong-4] == 0 and everlowtime[bong-5] == 0 then
{
lasthigh = H[bong];
}
}
2021-03-01
905
글번호 146713
답변완료
양봉 누적 지표
안녕하세요
양봉일 때만 거래량이 누적되는 지표도 만들 수 있을까요
일반적인 누적이 아니라 음봉이 뜨면 그 다음 양봉에서 0부터 다시 누적되는 지표를 만들고 싶습니다
--------------------
양봉 음봉 양봉 양봉 양봉 음봉 양봉 .....
거래량 1000 X 1200 1500 1000 X 1500 .....
누적 1000 X 1200 2700 3700 X 1500 .....
--------------------
이런 식으로 누적되는 지표도 만들 수 있을까요
감사합니다
2021-03-01
843
글번호 146712
답변완료
문의 드립니다.
안녕하세요 항상 도움을 주시는 노고에 감사드립니다.
트레이딩뷰에서 본 차트인데.. 공개되어 있는데 수식인것 같구요..
이것을 혹여 예스 수식으로 변환이 가능할런지요???
캡쳐해서 수식적용한 화면도 같이 남겨놓겠습니다.
아래는 수식인것 같아요..
도움좀 부탁드립니다. 감사합니다.
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © CryptoComrade
//@version=4
avg_candle(n)=> sma(abs(high - low), n)
is_support(c, level)=> c > level
prox_check(x, up_levels, down_levels, multiplier)=>abs(x - array.get(up_levels, 0)) > multiplier * avg_candle(100) and abs(x - array.get(down_levels, 0)) > multiplier * avg_candle(100)
study("Median CrossOver Levels", overlay=true)
n = input(100)
prox_mult = input(2.5)
var float[] cross_up_points = array.new_float(3, 0.0)
var float[] cross_dn_points = array.new_float(3, 0.0)
// Check if price has closed above median.
med = percentile_nearest_rank(high, n, 50)
above_med = close > med
// Crossed over median.
cross_above = not above_med[1] and above_med
// Crossed below median.
cross_below = above_med[1] and not above_med
if cross_above and prox_check(low, cross_up_points, cross_dn_points, prox_mult)
array.unshift(cross_up_points, low)
if cross_below and prox_check(high, cross_up_points, cross_dn_points, prox_mult)
array.unshift(cross_dn_points, high)
barcolor(close > med ? color.green : color.red)
plot(array.get(cross_up_points, 0), color=is_support(close, array.get(cross_up_points, 0)) ? color.green : color.red, linewidth=2, style=plot.style_cross, transp=0)
plot(array.get(cross_dn_points, 0), color=is_support(close, array.get(cross_dn_points, 0)) ? color.green : color.red, linewidth=2, style=plot.style_cross, transp=0)
plot(array.get(cross_up_points, 1), color=is_support(close, array.get(cross_up_points, 1)) ? color.green : color.red, style=plot.style_cross, transp=0)
plot(array.get(cross_dn_points, 1), color=is_support(close, array.get(cross_dn_points, 1)) ? color.green : color.red, style=plot.style_cross, transp=0)
2021-03-01
883
글번호 146711
답변완료
고가 저기 비교식
안녕하세요
data1의 당일 고가 와 저가 갱신시 data2 당일고가 고가와 저가 갱신하면 이면 1 아니면-1
의 식을 만들고 싶습니다.
감사합니다.
2021-03-01
815
글번호 146710
답변완료
전략식 합치는거 가능할까요?
같은 엑셀 data를 쓰는 세개의 차트입니다.
너무 공간을 차지하고 예트가 너무 느려지는 요인이 됩니다.ㅜㅜ
시스템 합성 관리자 써보려고했는데 잘 안되네요..
피라미딩은아니고,
차트당 1개씩 진입/청산, 최대 동시 포지션은 3개진입이 되겠네요..
꼭 부탁합니다.
-----------------------------
input : StartTime(90000),EndTime(151000);
Input : shortPeriod(6), longPeriod(50);
input : aaa(-0.40),bbb(0.40);
input : 손절(2.5);
input : 익절(5.0);
input : sellfilter(0.28);
input : buyfilter(-0.55);
var : Tcond(false,Data1);
var : C2(0,Data2);
var : C3(0,Data3);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
Tcond = true;
C2 = Data2(c);
C3 = Data3(c);
# 매수/매도청산
If data2(c) <= aaa and c3<buyfilter and CrossUP(value1, value2) Then
{
Buy();
}
If data2(c) >= bbb and c3<sellfilter and CrossDown(value1, value2) Then
{
Sell();
}
#
SetStopEndofday(EndTime);
SetStoploss(손절,PointStop);
SetStopProfittarget(익절,PointStop);
-------------------------------------------------------------
input : StartTime(91000),EndTime(150000);
Input : shortPeriod(6), longPeriod(50);
Input : s1(7), s2(24);
input : aaa(-0.40),bbb(0.35);
input : 손절(2.4);
input : 익절(5.4);
input : sellfilter(0.23);
input : buyfilter(-0.45);
var : Tcond(false,Data1);
var : C2(0,Data2);
var : C3(0,Data3);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
Value3 = ma(C2, s1);
Value4 = ma(C2, s2);
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
Tcond = true;
C2 = Data2(c);
C3 = Data3(c);
# 매수/매도청산
If data2(c) <= aaa and c3<buyfilter and CrossUP(value3, value4)
and CrossUP(value1, value2) Then
{
Buy();
}
If data2(c) >= bbb and c3<sellfilter and CrossDown(value3, value4)
and CrossDown(value1, value2) Then
{
Sell();
}
#
SetStopEndofday(EndTime);
SetStoploss(손절,PointStop);
SetStopProfittarget(익절,PointStop);
----------------------------------------------------------------------
input : StartTime(91000),EndTime(150000);
Input : shortPeriod(6), longPeriod(50);
Input : s1(7), s2(24);
input : aaa(-0.40),bbb(0.35);
input : 손절(2.4);
input : 익절(5.4);
input : sellfilter(0.23);
input : buyfilter(-0.45);
#
var : Tcond(false,Data1);
var : C2(0,Data2);
var : C3(0,Data3);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
Value3 = ma(C2, s1);
Value4 = ma(C2, s2);
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
Tcond = true;
C2 = Data2(c);
C3 = Data3(c);
# 매수/매도청산
If data2(c) <= aaa and c3<buyfilter and CrossUP(value3, value4)
Then
{
Buy();
}
If data2(c) >= bbb and c3<sellfilter and CrossDown(value3, value4)
Then
{
Sell();
}
#
SetStopEndofday(EndTime);
SetStoploss(손절,PointStop);
SetStopProfittarget(익절,PointStop);
2021-03-01
937
글번호 146709
답변완료
수식부탁드립니다.
안녕하세요? 수식두가지 부탁드립니다.
[1]
진입 : 이평선2개(외부변수)
정배열에서 아랫꼬리가 없는 양봉 출현이후, 윗꼬리가 없는 음봉에 매도진입
역배열에서 윗꼬리가 없는 음봉 출현이후, 아랫꼬리가 없는 양봉에 매수진입
청산 : 손/익절 (외부변수)
청산전까지 재진입 금지
횟수 : 하루매매횟수 (외부변수)
---------------------------------------------------------------------------------
[2]
진입 : 이평선2개(외부변수)
정배열에서 양봉 출현이후, 윗꼬리가 없는 음봉에 매도진입
역배열에서 음봉 출현이후, 아랫꼬리가 없는 양봉에 매수진입
청산 : 손/익절 (외부변수)
청산전까지 재진입 금지
횟수 : 하루매매횟수 (외부변수)
감사합니다.
2021-03-01
944
글번호 146708
답변완료
일봉에서 시스템 전략
안녕하세요?
일봉에서 시스템 전략을 만들어보고 싶은데요,
가격 돌파시스템 입니다.
buy("b",AtStop, NextBarOpen + avgV);
위와 같은식으로 쓰려고 하는데요.
가격조건을 하나 더 걸고 싶습니다.
만약 NextBarOpen + avgV 가 30000이상일때 저 조건이 발동되게 하려면 어떻게 하면 될까요?
2021-03-01
935
글번호 146707
답변완료
문의 드립니다
60분 단위로의 평균가를 곡선(이평선처럼)으로 표현할 수 있나요?
수식 부탁드립니다.
감사합니다.
2021-03-01
782
글번호 146706