안녕하세요
아래 수식은 잘 사용중입니다.
국내선물 개장이 15분 빨라졌는데 아래 수식은 개장시간과 더불어 30 분이 시작됩니다.
아래 수식을 9시부터 9시 30분까지를 30분으로 시작하는 수식으로 수정 부탁드립니다
감사합니다.
input : ntime(30);
var : S1(0),D1(0),TM(0),TF(0);
var : HH(0),LL(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
hh = h;
ll = l;
}
if hh > 0 and h > hh Then
hh = h;
if ll > 0 and l < ll Then
ll = l;
답변 1
예스스탁
예스스탁 답변
2023-12-22 08:45:32
안녕하세요
예스스탁입니다.
input : ntime(30);
var : S1(0),D1(0),TM(0),TF(0);
var : HH(0),LL(0);
if sdate != sdate[1] Then
{
S1 = TimeToMinutes(0);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
TL_New(sDate,sTime,0,sDate,sTime,999999999);
hh = h;
ll = l;
}
if hh > 0 and h > hh Then
hh = h;
if ll > 0 and l < ll Then
ll = l;
}
즐거운 하루되세요
> 라몬 님이 쓴 글입니다.
> 제목 : 수정부탁드립니다.
> 안녕하세요
아래 수식은 잘 사용중입니다.
국내선물 개장이 15분 빨라졌는데 아래 수식은 개장시간과 더불어 30 분이 시작됩니다.
아래 수식을 9시부터 9시 30분까지를 30분으로 시작하는 수식으로 수정 부탁드립니다
감사합니다.
input : ntime(30);
var : S1(0),D1(0),TM(0),TF(0);
var : HH(0),LL(0);
if Bdate != Bdate[1] Then
{
S1 = TimeToMinutes(stime);
D1 = sdate;
}
if D1 > 0 then
{
if sdate == D1 Then
TM = TimeToMinutes(stime)-S1;
Else
TM = TimeToMinutes(stime)+1440-S1;
TF = TM%ntime;
if Bdate != Bdate[1] or
(Bdate == Bdate[1] and ntime > 1 and TF < TF[1]) or
(Bdate == Bdate[1] and ntime > 1 and TM >= TM[1]+ntime) or
(Bdate == Bdate[1] and ntime == 1 and TM > TM[1]) Then
{
hh = h;
ll = l;
}
if hh > 0 and h > hh Then
hh = h;
if ll > 0 and l < ll Then
ll = l;