답변완료
검색식으로 변환 부탁드립니다 ^^
키움 신호수식인데, 분봉 검색식으로 변환하고 싶습니다. 부탁드리겠습니다.
가=HighestSince(1,date!=date(1),V);
나=Valuewhen(1,가==V && C>O,H);
다=Valuewhen(1,가==V && C>O,L);
라=(나-다)*3/4+다;
마=ma(c,20);
바=ma(c,60);
사=(마-바);
신호=마>바 && 사>사(1) && 라>=L && H(1)>H && L(1)<L && C>마;
cnt=CountSince(date!=date(1),신호);
cnt==1 && cnt(1)==0 && time>=090000 && time<133000
2025-02-25
393
글번호 188529
종목검색
답변완료
종목검색식 요청드립니다.
안녕하세요? 항상 도움에 감사드립니다. 어제 만들어 주신 종목검색식인데
날짜별로 종목조회가 안되고, 0일,1일전, 2일전, 3일전 종목 모두가 검색되는거 같습니다.
오늘 신호발생종목(0일), 어제 신호발생했던종목(1일), 2일전 신호발생했던종목...
이렇게 조회가 가능하게 부탁드리겠습니다.
================================================================================
안녕하세요
예스스탁입니다.
최대 10일전까지 검색되게 작성해 드립니다.
다만 종목검색 최대가 500봉입니다. 3분봉으로 며칠되지 않습니다.
input : n(0);
var : a(0),b(0),cnt(0);
Array : cond[11](False);
a = BollBandUp(20,1);
b = (a/c) - (a[1]/c);
if sDate != sDate[1] Then
{
For cnt = 10 DownTo 1
{
cond[cnt] = cond[cnt-1];
}
}
if b>0.03 Then
cond[0] = true;
if cond[n] == true Then
Find(1);
===============================================================================
2025-02-25
433
글번호 188522
종목검색
답변완료
문의 드립니다.
안녕하세요
아래의 시스템에서 당일 청산 서식을 넣었는데도 당일 청산이 안되고 있습니다.
일봉 기준으로 매매를 하고 있습니다.
어제의 경우 수익대비 하락으로 강제 청산이 이루어졌고(실제 자동매매)
시스템 상에서도 청산이 표시가 되었습니다.
금일 오전에 다시 접속을 해보니 어제의 포지션(매수)이 그대로 유지가 되고 있습니다.
진입후 당일 청산이 될 수 있도록 검토부탁드립니다.
input : len(0.37), atrlen(50), len1(3), len2(2.2), len3(2.9), break(3), level(0.5), big(8);
# 기초진입전략
Var1 = dayHigh(1)-dayLow(1);
Condition1= date==exitdate(1) And marketposition(1)==1; //최근청산날짜가 금일이고 직전이 매수
Condition2= date==exitdate(1) And marketposition(1)==-1;//최근청산날짜가 금일이고 직전이 매도
If stime<150000 then {
IF Condition1==false and MarketPosition<>1 then
buy("매수",ATstop,dayOpen(0)+var1*len);
IF Condition2==false and MarketPosition<>-1 then
sell("매도",ATstop,dayOpen(0)-var1*len);
}
# Range5stop1 매수청산전략
Var2=high-low;
Var3=ma(Var2,atrlen);
IF marketposition==1 then {
Var50 = highest(high,BarsSinceEntry+1);
Exitlong("매수추적",Atstop,Var50-var3*len1);
Exitlong("매수변동성",Atstop,close-var3*len2);
If Var50>= Entryprice+var3*break then {
Exitlong("매수손익분기",ATstop,Entryprice+Var3*level);
Exitlong("매수추적1",Atstop,Var50-var3*len3);
}
IF Var50>=Entryprice+var3*big then
exitlong("매수초과수익",ATstop,lowest(low,3));
}
# Range5stop1 매도청산전략
IF marketposition==-1 then {
Var50 = lowest(low,BarsSinceEntry+1);
Exitshort("매도추적",Atstop,Var50+var3*len1);
Exitshort("매도변동성",Atstop,close+var3*len2);
If Var50>= Entryprice-var3*break then {
Exitshort("매도손익분기",ATstop,Entryprice-Var3*level);
Exitshort("매도추적1",Atstop,Var50+var3*len3);
}
IF Var50>=Entryprice-var3*big then
exitshort("매도초과수익",ATstop,highest(high,3));
}
SetStopEndofday(1520);
2025-02-25
411
글번호 188520
지표