if data2(crossup(c,0)) then
buy();
if data2(crossdown(c,0)) then
sell();
--------------------
엑셀연계부터 시험적용으로 잘 작동됨을 확인하였습니다.
HTS는 9:00에 켰지만,
9:30분부터 매매를 시작하고 15:30에 올청산후 매매를 종료시키고 있습니다.
9:00~9:30 사이의 cross는 무시하고
9:30분 이후부터 첫진입 1개, 다시 스위칭2개씩, 15:30에는 매매스탑
감사합니다!!!!!!!!!!!!!!
답변 1
예스스탁
예스스탁 답변
2021-01-26 15:09:08
안녕하세요
예스스탁입니다.
input : StartTime(93000),EndTime(153000);
var : Tcond(false,Data1);
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;
if Tcond == true Then
{
if data2(crossup(c,0)) then
buy();
if data2(crossdown(c,0)) then
sell();
}
SetStopEndofday(EndTime);
즐거운 하루되세요
> 캣피쉬 님이 쓴 글입니다.
> 제목 : 수식 질문드립니다.
> if data2(crossup(c,0)) then
buy();
if data2(crossdown(c,0)) then
sell();
--------------------
엑셀연계부터 시험적용으로 잘 작동됨을 확인하였습니다.
HTS는 9:00에 켰지만,
9:30분부터 매매를 시작하고 15:30에 올청산후 매매를 종료시키고 있습니다.
9:00~9:30 사이의 cross는 무시하고
9:30분 이후부터 첫진입 1개, 다시 스위칭2개씩, 15:30에는 매매스탑
감사합니다!!!!!!!!!!!!!!