답변완료
시간 수정
늘 감사합니다.
아래 수식을 수정해 주세요.
1. 색상을 지정할 수 있도록
2. 굵기를 조절 할수 있도록
3. 0 이하에서도 표현되도록
*양수 쪽은 표현이 되는데 음수 쪽은 않나오네요
if data4((sdate != sdate[1] and stime >= 시간1) or
(sdate == sdate[1] and stime >= 시간1 and stime[1] < 시간1)) Then
TL_New_Self(data4(sdate),data4(stime),99999999,data4(sdate),data4(stime),0);
if data4((sdate != sdate[1] and stime >= 시간2) or
(sdate == sdate[1] and stime >= 시간2 and stime[1] < 시간2)) Then
TL_New_Self(data4(sdate),data4(stime),99999999,data4(sdate),data4(stime),0);
감사합니다.
2024-10-08
698
글번호 184079
지표
답변완료
수식 부탁드립니다.
안녕하세요
항상 친절한 답변 감사드립니다.
아래의 서식에서
"선물 5포인트 또는 1% 이상 전일 종가대비 갭상승(하락)시작에는
진입시간을 9시30분 이후로 한다."
이 서식을 아래의 서식에 포함시켜 주시면 감사하겠습니다.
# KOSPI 선물 10분봉
input: tt(150000);
var: chkP(3), reChkP(30), stopChk(35);
var: HH(0), LL(0), BS(0), SS(0);
var: dayChk(0);
if BarIndex == 0 then ClearDebug();
if dayindex == chkP then {
HH = Highest(Max(C,O), chkP+1);
LL = Lowest(Min(C,O), chkP+1);
#if date == 20240612 then messageLog("--HH %.2f, LL: %.2f", HH, LL);
}
#if High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then messageLog("HH %.2f, High: %.2f", HH, High);
if DayIndex >= chkP
and Time < 95000
and sDate == NextBarSdate
and EntryDate(0) < Date
and EntryDate(1) < Date
Then {
Buy("B1", AtStop, HH);
Sell("S1", AtStop, LL);
}
//if dayChk == 0 and High >= HH and MarketPosition == 0 and ExitDate(1) < Date and time > 93000 then {
// messageLog("HH %.2f, High: %.2f", HH, High);
// dayChk = 1;
//}
if ExitDate(1) == Date
and Time < 150000
// and LatestEntryName(1) != "B2"
// and LatestEntryName(1) != "S2"
// and LatestEntryName(0) != "B2"
// and LatestEntryName(0) != "S2"
Then {
if DayIndex < reChkP Then {
HH = Highest(Max(C,O), DayIndex+1);
LL = Lowest(Min(C,O), DayIndex+1);
}
Else {
HH = Highest(Max(C,O), reChkP);
LL = Lowest(Min(C,O), reChkP);
}
Buy("B2", AtStop, HH);
Sell("S2", AtStop, LL);
}
if (MarketPosition == 1) Then {
if DayIndex < stopChk Then {
BS = Lowest(Min(C,O), DayIndex+1);
}
Else {
BS = Lowest(Min(C,O), stopChk);
}
ExitLong("EL", AtStop, BS);
}
if (MarketPosition == -1) Then {
if DayIndex < stopChk Then {
SS = Highest(Max(C,O), DayIndex+1);
}
Else {
SS = Highest(Max(C,O), stopChk);
}
#messageLog(" SS %.2f", SS);
ExitShort("ES", AtStop, SS);
}
SetStopEndofday(1530);
2024-10-08
755
글번호 184074
시스템