가령 어제의 09:00~11:00시까지의 고가와 저가를
오늘 지표로 구현하고 싶습니다.
항상 감사드립니다.
답변 1
예스스탁
예스스탁 답변
2023-11-16 16:15:07
안녕하세요
예스스탁입니다.
input : StartTime(90000),EndTime(110000);
var : Tcond(false);
var : hh(0),ll(0),hh1(0),ll1(0);
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;
hh1 = hh[1];
ll1 = ll[1];
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
{
Tcond = False;
}
if Tcond == true Then
{
if h > hh Then
hh = h;
if l < ll Then
ll = l;
}
if hh1 > 0 and ll1 > 0 Then
{
Plot1(hh1);
plot2(ll1);
}
즐거운 하루되세요
> 마녀58 님이 쓴 글입니다.
> 제목 : 어제의 특정 시간대의 고가와 저가를 구현하고 싶습니다.
> 가령 어제의 09:00~11:00시까지의 고가와 저가를
오늘 지표로 구현하고 싶습니다.
항상 감사드립니다.