안녕하세요
예스스탁입니다.
선물 야간시장 거래가 가능합니다.
차트를 복합차트로 설정하고 적용하시면 됩니다.
input : starttime(180000),Endtime(54500);
var : Tcond(False);
var : DH(0),DL(0),NO(0),value(0);
if (sDate != sDate[1] and sTime >= 84500) or
(sDate == sDate[1] and sTime >= 84500 and sTime[1] < 84500) Then
{
DH = H;
DL = L;
}
if sTime >= 84500 and sTime <= 154500 Then
{
if DH > 0 and H > DH Then
DH = H;
if DL > 0 and L < DL Then
DL = L;
}
//야간 시고저종가
if (sDate != sDate[1] and sTime >= starttime) or
(sDate == sDate[1] and sTime >= starttime and sTime[1] < starttime) Then
{
NO = O;
value = (DH-DL)*0.45+NO;
Tcond = true;
}
if (sdate != sDate[1] and sTime >= Endtime) or
(sdate == sDate[1] and sTime >= Endtime and sTime[1] < Endtime) Then
{
Tcond = False;
if MarketPosition == 1 Then
ExitLong("bx",AtMarket);
}
if Tcond == true Then
{
if MarketPosition == 0 and h < value Then
Buy("b",AtStop,value);
}
즐거운 하루되세요