커뮤니티
예스랭귀지 Q&A
답변완료
[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내
안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
2026-02-27
6143
글번호 230811
배움이 님에 의해서 삭제되었습니다.
2022-06-08
145
글번호 159692
답변완료
안녕하세요 문의드립니다!
안녕하세요
예스스탁입니다.
if Bdate != Bdate[1] Then
{
Condition1 = False;
}
if M >= 5000000000 Then
{
Condition1 = true;
var1 = O;
Var2 = C;
Var3 = (O+C)/2;
}
if Condition1 == true Then
{
Plot1(var1);
Plot2(var2);
Plot3(var3);
}
Else
{
NoPlot(1);
NoPlot(2);
NoPlot(3);
}
즐거운 하루되세요
> 해선에이스 님이 쓴 글입니다.
> 제목 : 안녕하세요 지표 문의드립니다
> 안녕하세요,
주식차트 분봉에서
당일 거래대금이 50억 이상 터진 캔들의
중심선,종가,시가를 선으로 긋고 싶습니다.
사진 확인 부탁드립니다.
최대한 이해되시기 쉽게 그렸는데 잘 전달되었으면 좋겠습니다..
------------
이렇게 답변 주셨는데
수식 적용하니 BDATE 가 정의되지 않았다고 나옵니다.
그리고 함수정의에 오류가 있다고 나오는데 확인부탁드릴게요!
항상 감사합니다^^
2022-06-08
1223
글번호 159691
답변완료
77566 재문의 드립니다.
딱 제가 원하는 수식을 짜 주셔서 정말 감사드립니다.
한가지만 더 부탁드리자면,
가끔가다 매도매수가 같은 시간에 나오는 신호가 있는데(청산과 동시에 진입),
1계약으로 매매를 하고 싶은데, 어떻게 수정이 가능할까요?
2022-06-08
1193
글번호 159690
답변완료
수식부탁드립니다
안녕하세요
아래수식은 종가가 H와 닿았을때 "띵"소리가 발생하는 검색수식입니다
이수식을 종가가 H와 닿았을때 "띵"소리가 발생하다가 종가가 전봉H와 닿으면 (C == H[1])
다른 알람음 (예를 들어 "뿅"소리)이 발생되는 수식으로 수정부탁드립니다
감사합니다
if C == H Then {
begin
PlaySound("C:₩Users₩kim₩Desktop₩소리₩띵.wav");
end
}
else {
NoPlot(1);
}
2022-06-08
1401
글번호 159689
답변완료
부탁드립니다.
안녕하세요
현재봉을 제외한 전봉부터 그이전 20개봉중(변수로) 큰양봉과
음봉에 중심선을 표시할수 있도록 가능하면 작성 부탁 드립니다.
항상 감사 합니다.
2022-06-09
1071
글번호 159688
답변완료
if조건식 가격조건유무
안녕하세요.
간단히 상향돌파하는 전략에서
if stime<특정시간 and crossup(c,ma(C,5)) then
buy("돌파매수",atmarket)
if stime<특정시간 then
buy("돌파매수",atstop, ma(C,5))
으로 하는경우 백테스트상 약간의 차이가 발생하는 걸 발견했습니다만, (후자가 진입이 좀더 늘어남)
상방돌파전략의 특성상, atstop으로 쓰는것이 더 맞을것 같기는 합니다만(가격조건만 만족되면 바로 주문나가므로...)
차이에 대해서 좀 설명부탁드립니다~
2022-06-08
1174
글번호 159687
답변완료
수식 문의
아래는 슈퍼 시그널 채널이라는 지표의 MQL5 수식입니다.
이 수식을 예트 수식으로 변환하고 싶습니다.
본 수식의 사용법에 대한 설명을 아래 링크에 첨부하였습니다.
여러 회원님들 도움 되시기 바랍니다.
부탁 드리겠습니다. 감사합니다.
//+------------------------------------------------------------------+
//| super-signals-channel.mq4 |
//| Copyright © 2006, Nick Bilak, beluck[AT]gmail.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Nick Bilak"
#property link "http://www.forex-tsd.com/"
// hacked into a channel ind. by t_david sometime in early 2007
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 Red
#property indicator_width1 1
#property indicator_color2 Lime
#property indicator_width2 1
#property indicator_color3 Red
#property indicator_width3 1
#property indicator_color4 Lime
#property indicator_width4 1
extern int SignalGap = 4;
extern int ShowBars = 50;
extern int BBPeriod=20;
int dist=24;
int Win = 0,Loss= 0;
double b1[];
double b2[];
double b3[];
double b4[];
int init() {
SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1); //
SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,1); // cross
SetIndexStyle(2,DRAW_ARROW,STYLE_SOLID,1); // down arrow
SetIndexStyle(3,DRAW_ARROW,STYLE_SOLID,1); // up arrow
SetIndexBuffer(0,b1);
SetIndexBuffer(1,b2); //
SetIndexBuffer(2,b3); // Down arrow
SetIndexBuffer(3,b4); // Up arrow
SetIndexArrow(2,234); // Down arrow
SetIndexArrow(3,233); // Up arrow
return(0);
}
int start()
{
int hhb,llb, count;
for (count=0;count<500;count++)
{
b1[count]=0; b2[count]=0; b3[count]=0; b4[count]=0;
hhb = iHighest(Symbol(),0,MODE_HIGH,dist,count-dist/2);
llb = iLowest(Symbol(),0,MODE_LOW,dist,count-dist/2);
if ((count==hhb))
{
{
b3[count]= High[hhb]+SignalGap*Point;
if(((Open[count-1])) > ((Close[count-1]))) // GREEN Candlestick
{
Win++;
// Print("SUPER SIGNAL CHANNELWin::",Win);
}
else
{
Loss++;
// Print("SUPER SIGNAL CHANNEL Loss::",Loss);
}
}
}
if (count==llb)
{
{
b4[count]=Low[llb]-SignalGap*Point;
if(((Open[count-1]))< ((Close[count-1]))) // RED Candlestick
{
Win++;
Print("SUPER SIGNAL CHANNEL Win::",Win);
}
else
{
Loss++;
Print("SUPER SIGNAL CHANNEL Loss::",Loss);
}
}
}
b1[count]=High[hhb];//+SignalGap*Point; //draws horiz line for sale (RED)
b2[count]=Low[llb];//-SignalGap*Point; //draws horiz line for buy (GREEN)
}
return(0);
}
2022-06-08
1514
글번호 159684
관리자에 의해 프로그램 사용법 QnA로 이동되었습니다
2022-06-08
4
글번호 159681
답변완료
수식 문의
아래는 Jurik Volatility Bands 라는 지표입니다.
아래 수식을 예트 수식으로 변환하고 싶습니다.
링크를 첨부 하였으니 한번 읽어보시고
여러 회원님들께도 도움되시기 바랍니다.
부탁 드리겠습니다. 감사합니다.
//PRC_Jurik Volatility Bands | indicator
//31.08.2020
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
//converted from MT4
//https://www.prorealcode.com/topic/jurik-volatility-bands/
//// --- settings
Length = 14
Shift = 0
ShowMiddle = 1
ZeroBind = 1
Normalize = 0
// --- end of settings
Price = customclose
if barindex>Length then
vprice = average[1](Price)[shift]
cprice = average[1](Price)
hprice = highest[length](vprice)
lprice = lowest[length](vprice)
len1 = Max(Log(Sqrt(0.5*(length-1)))/Log(2.0)+2.0,0)
pow1 = Max(len1-2.0,0.5)
del1 = hprice - bsmax[1]
del2 = lprice - bsmin[1]
volty = 0
if(Abs(del1) > Abs(del2)) then
volty = Abs(del1)
endif
if(Abs(del1) < Abs(del2)) then
volty = Abs(del2)
endif
vsum = vsum[1] + 0.1*(volty-volty[10])
avg = vsum
avgLen=65
for k=1 to avgLen-1 do
avg = avg+vsum[k]
next
avg = avg/k
avolty = avg
if avolty > 0 then
dVolty = volty/avolty
else
dVolty = 0
endif
if dVolty>exp((1/pow1)*log(len1)) then
dVolty=exp((1/pow1)*log(len1))
endif
if (dVolty < 1) then
dVolty = 1.0
endif
pow2 = exp(pow1*log(dVolty))
len2 = Sqrt(0.5*(length-1))*len1
Kv = exp(sqrt(pow2)*log(len2/(len2+1)))
if (del1 > 0) then
bsmax = hprice
else
bsmax = hprice - Kv*del1
endif
if (del2 < 0) then
bsmin = lprice
else
bsmin = lprice - Kv*del2
endif
dnValue = bsmin
upValue = bsmax
miValue = (upValue+dnValue)/2.0
////
if (ZeroBind) then
if (Normalize) then
upValues = 1
dnValues = -1
diff = (upValue-miValue)
if (diff <> 0) then
price = (cprice-miValue)/diff
else
price = 0
endif
else
upValues = upValue-miValue
dnValues = dnValue-miValue
price = (cprice-miValue)
endif
else
upValues = upValue
dnValues = dnValue
price = cprice
endif
if (ShowMiddle) then
if (ZeroBind) then
miValues = 0
else
miValues = miValue
endif
endif
endif
return upValues coloured(0,191,255) as "up value", dnValues coloured(219,112,147) as "dn value", miValues coloured(105,105,105) style(dottedline) as "mi value", price coloured(0,191,255) style(line,2) as "price"
2022-06-08
1358
글번호 159680