답변완료
문의 드립니다
input : starttime(60000),endtime(0000),n(10);
var : Tcond(false),hh(0),h1(0),ll(0),l1(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1]and Tcond == true Then
SetStopEndofday(Endtime);
}
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;
hh = h;
ll = l;
h1 = hh[1];
l1 = ll[1];
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
input : 익절틱수(0),손절틱수(0);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx",AtMarket);
if NextBarOpen != C Then
{
Buy("b1",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx1",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx",AtMarket);
if NextBarOpen != C Then
{
Sell("s1",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx1",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b2",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx2",AtMarket);
if NextBarOpen == C Then
{
Buy("b3",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx3",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s2",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx2",AtMarket);
if NextBarOpen == C Then
{
Sell("s3",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx3",AtMarket);
----------
위 수식어을 일봉매매에 사용하고 있습니다.
잔고가 있을시 장종료 10분전 (아침 5시 50분) 강제 청산 기능을 넣을 수있는지요 ?
아님 별도의 수식어가 있어도 상관없습니다.
2024-03-21
897
글번호 177769
시스템
답변완료
도움 요청드립니다.
아래 조건검색식에서 검색된 종목이 조건충족되어 검색된 시점을 알고 싶은데
분봉에서 검색된 시점에서의 신호를 표시하고 싶습니다. 도움 요청드립니다.
아니면 다른 방법(검색시점 가격표시를 검색기에도 할 수 있으면?)이 있으시면 알려주시면 감사하겠습니다.
항상 많은 도움에 감사드립니다.
input : PD(30),RR(1.15);
var : Period(14),EPeriod(20);
var : R(0),E(0);
R = RSI(Period);
E = Ema(C,EPeriod);
if R < PD Then
var1 = H;
if var1 > 0 and
CountIf(C>=C[1]*RR, 15) >= 1 and
CrossUp(C,var1) and CrossUp(C,E) Then
Find(1);
2024-03-21
976
글번호 177754
검색
답변완료
수식수정
예스스탁 BI
로그아웃 | 회원정보 | 회사소개 | 사이트맵
시스템트레이딩
시스템시장
매매신호
제품소개
주요기능
주요기능
프로그램사용법 Q&A 메뉴
예스스팟 Q&A 메뉴
자유게시판 메뉴
시스템시장 토론실
공지사항
시스템트레이딩 교육
Inputs : DDD(20150309), LEN(300), HL_ED(60), CC(Black);
Vars : DBN1(0), KK1(0), DD1(0), KK2(0), DD2(0),HP(0);
If STime >= 080000 And STime[1] < 080000 Then Begin
DBN1 = 0;
KK1 = 0;
DD1 = 0;
KK2 = 0;
DD2 = 0;
End;
DBN1 = DBN1 + 1;
/*If Date == DDD Then Begin*/
If STime >= 083000 And DD1 == 0 Then Begin
Value2 = O;
DD1 = 1;
KK1 = DBN1;
End;
If DBN1 > KK1 + 1 And DD1 == 1 Then
HP = Value2;
Else
HP = Value2;
Inputs : Period(20), Sence(1.5), CC_DN(Yellow);
Vars:
VLineUp(0),
VLineDn(0),
HHighest(0),
LLowest(0),
JustChanged(FALSE),
VLine(0), DBN(0),T(0);
Array:
Highs[35](0),
Lows[35](0),
RRange[35](0),
UpWave[1](FALSE),
DnWave[1](FALSE);
If STime == 180000 Then
DBN = 0;
DBN = DBN + 1;
Var1 = Period;
Var2 = Var1 - 1;
Var3 = Var1 - 2;
Var5 = Sence;
Var6 = H-L;
JustChanged = FALSE;
if CurrentBar <= Var2 then begin
Highs[CurrentBar] = Close;
Lows[CurrentBar] = Close;
RRange[CurrentBar] = (H-L) /2;
end;
if CurrentBar == Var1 then begin
if Highs[Var2] >= Highs[Var3] then begin
UpWave[1] = TRUE;
HHighest = Highs[Var2];
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
#Plot1(VLineUp,"VLineUp");
end;
if Highs[Var2] < Highs[Var3] then begin
DnWave[1] = TRUE;
LLowest = Lows[Var2];
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
#Plot2(VLineDn,"VLineDn");
end;
end;
if CurrentBar > Var1 then begin
if DnWave[1] and Close > VLineDn then begin
DnWave[1] = FALSE;
UpWave[1] = TRUE;
JustChanged = TRUE;
HHighest = Close;
LLowest = 0;
end;
if UpWave[1] and Close < VLineUp and JustChanged == FALSE then begin
UpWave[1] = FALSE;
DnWave[1] = TRUE;
JustChanged = TRUE;
LLowest = Close;
HHighest = 0;
end;
if JustChanged == FALSE then begin
if Close > HHighest then
HHighest = Close;
else if Close < LLowest then
LLowest = Close;
end;
VLineUp = HHighest - (Var5 * MA(Var6,Var2));
VLineDn = LLowest + (Var5 * MA(Var6,Var2));
if UpWave[1] then
T = 1;
else if DnWave[1] then
T = -1;
end;
Input : BBP(120), MultiD(2);
var : BBmd(0),BBup(0),BBdn(0);
BBmd = ma(C,Period);
BBup = BollBandUp(BBP,MultiD);
BBdn = BollBandDown(BBP,MultiD);
if MarketPosition <= 0 and
HP > ma(C,60) and CrossUp(c,HP) and T == 1 Then
Buy();
if MarketPosition >= 0 and HP < ma(C,60) and T == -1 Then
Sell();
if MarketPosition == 1 and CrossDown(HP,ma(C,60)) Then
ExitLong();
if MarketPosition == -1 and CrossUP(HP,ma(C,60))
안녕하세요
위식 수정부탁드립니다
볼밴 삭제
매수
이평60선위에 hp선이 있는상태에서
Hp선을 가격이 터치나 하락후 Hp선을 상향돌파시 매수
매수청산및 손절
Hp선을 가격이 하락돌파시
매도
이평선 아래에 hp선이 있는상태에서
Hp선을 가격이 터치나 상승후 Hp선을 하락돌파시 매도
청산손절 Hp선을 가격이 상승돌파시
2024-03-21
811
글번호 177748
시스템