답변완료
문의 드립니다.
안녕하세요
아래의 시스템에서 당일 청산 서식을 넣었는데도 당일 청산이 안되고 있습니다.
일봉 기준으로 매매를 하고 있습니다.
어제의 경우 수익대비 하락으로 강제 청산이 이루어졌고(실제 자동매매)
시스템 상에서도 청산이 표시가 되었습니다.
금일 오전에 다시 접속을 해보니 어제의 포지션(매수)이 그대로 유지가 되고 있습니다.
진입후 당일 청산이 될 수 있도록 검토부탁드립니다.
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
384
글번호 188520
지표
답변완료
수식문의드립니다.
안녕하세요,
진입 후 96봉 이후에 최대 수익이 2%이상일 경우 0.5% 수익보전 전량 청산하고 싶습니다.
수식 부탁드립니다.
if Var2 < Var3 and marketposition == 1 Then {
var4 = highest(H,BarsSinceEntry);
if BarsSinceEntry > 9 and var4 >= EntryPrice*(1.02) Then {
ExitLong("SP",AtStop,EntryPrice*(1.005),"",currentContracts,1);
}
}
이렇게 했더니 수익 보전 할 타이밍이 지나 한참뒤에 손절로 주문이 나가는 것도 있어 문의드립니다.
2025-02-24
306
글번호 188516
시스템
답변완료
종목 검색식 부탁드립니다
다음 수식에 대한 예스트레이더 종목검색식 부탁드립니다
수식1)
대금=(H+O+L+C)/4*V;
A=if(C>O, 대금, 0);
B=Sum(A);
D=Valuewhen(1,Date(1)!=Date,B(1));
매수=B-D;
A1=if(C<O, 대금, 0);
B1=Sum(A1);
D1=Valuewhen(1,Date(1)!=Date,B1(1));
매도=B1-D1;
var1 = 매수/매도*100;
var2 = ma(var1,120);
CrossDown(var2,50)
수식2)
A=ADX(11);
B=Sum(V*((POW((C-L),2)-POW((H-C),2))/(H-L)));
BB=BBandsUp(10,2);
EN=EnvelopeUp(10,2);
S=(Highest(H,26)+Lowest(L,26))/2;
거래대금=V*(H+O+L+C)/4;
X=Sum(V);
Y=Valuewhen(1,DATE(1)!=DATE,X(1));
Z=X-Y;
조건=Valuewhen(1,DATE(1)!=DATE,Z(1));
Highest(H,3,1)<=C &&
ma(C,5)>ma(C,20) && ma(C,20)>ma(C,60) &&
BB=EN && C>BB && C>EN && A>A(1) && C>S && B>=B(1)
&& (거래대금>2000000000 or Sum(V)> 조건)
&& C>C(1) && C<C(1)*1.05
2025-02-24
405
글번호 188515
종목검색
답변완료
새해복많이받으세요
a=c>c(1)*p1;
b=c>h(1);
d=c(1)<l(2);
조건=a && b && d;
고가=VALUEWHEN(1,조건,DAYHIGH());
저가=VALUEWHEN(1,조건,DAYLOW());
중심=(고가+저가)/2;
결과=crossdown(c,저가);
결과2=crossup(c,고가);
s=sum(1);
a_cnt=valuewhen(1,조건,s);
b_cnt=valuewhen(1,결과,s);
c_cnt=valuewhen(1,결과2,s);
결과3=a_cnt<b_cnt && b_cnt<c_cnt;
결과4=결과3(1) && 저가>c;
결과값=countsince(조건,결과4)==1;
결과값2=결과4 && 결과값;
시가=valuewhen(1,결과값2(1),o);
시가2=(시가*p2)*p2;
저가2=시가2*p3;
시가이탈=crossdown(l,시가2);
저가이탈=crossdown(l,저가2);
d_cnt=valuewhen(1,결과값2,s);
e_cnt=valuewhen(1,시가이탈,s);
조건2=d_cnt<e_cnt && 저가이탈;
결과값3=countsince(결과값2,조건2)==1;
결과값4=조건2 && 결과값3
p1 1.02
p2 0.98
p3 0.97
종목검색식으로 변환부탁드립니다
위 조건에 해당하는 봉을 화살표로 표시하는 지표식도 같이 부탁드려요!
새해복많이받으세요!
2025-02-24
334
글번호 188514
지표
답변완료
자동 수식문의
SuperTrend 수식을 차트에 지표생성해 띄어놓은 상태입니다.
시스템 조건
수퍼트렌드 3개를 차트에 띄운후 각각 설정값이 다르게하여, 3개선 매수 일치시 시장가 매수
매수중, 선1개라도 불일치시(매도세) 청산후 대기
반대로 3개선 매도 일치시 시장가 매도 , 매도중 선1개라도 불일치(매수세) 청산후 대기
거래지연시간은 매수,매수청산,매도,매도청산 각각 3초 , 시장가 주문
각 SuperTrend 지표값은 직접넣을것이니 period multiplier 색표시만 부탁드려요
예)
SuperTrend 1 period() multiplier()
SuperTrend 2 period() multiplier()
SuperTrend 3 period() multiplier()
2025-02-24
377
글번호 188512
시스템
답변완료
시스템를 부탁드립니다...
다시질문드립니다,,,감사합니다,,
Input : shortPeriod(5), longPeriod(20);
value1 = ma(C, shortPeriod);
value2 = ma(C, longPeriod);
# 매수/매도청산
If CrossUP(value1, value2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(value1, value2) Then
{
Sell();
}
선물 2분봉 장시작시 전일 마지막 매수매도 시스템 신호가 오늘 시가시 변함 없다면 전일 마지막신호가 매수이면 매수신호를 매도이면 매도신호를 시가봉에 한번더 표시할수있었으면 좋겠습니다..감사합니다
2025-02-24
352
글번호 188511
시스템