예스스탁
예스스탁 답변
2026-01-08 14:48:59
안녕하세요
예스스탁입니다.
var : oo(Nan),hh(Nan),ll(Nan),cc(Nan),ii(0);
var : box(0),tl1(0),tl2(0);
if (sDate != sDate[1] and sTime >= 90000) or
(sDate == sDate[1] and sTime >= 90000 and sTime[1] < 90000) Then
{
oo = o;
hh = h;
ll = l;
cc = c;
ii = 0;
box = Box_New(sDate,sTime,oo,NextBarSdate,NextBarStime,cc);
tl1 = TL_New(sDate,sTime,max(cc,oo),sDate,sTime,hh);
tl2 = TL_New(sDate,sTime,min(cc,oo),sDate,sTime,ll);
}
if (sDate != sDate[1] and sTime >= 160000) or
(sDate == sDate[1] and sTime >= 160000 and sTime[1] < 160000) Then
{
oo = o;
hh = h;
ll = l;
cc = c;
ii = 0;
box = Box_New(sDate,sTime,oo,NextBarSdate,NextBarStime,cc);
tl1 = TL_New(sDate,sTime,max(cc,oo),sDate,sTime,hh);
tl2 = TL_New(sDate,sTime,min(cc,oo),sDate,sTime,ll);
}
if (sDate != sDate[1] and sTime >= 223000) or
(sDate == sDate[1] and sTime >= 223000 and sTime[1] < 223000) Then
{
oo = o;
hh = h;
ll = l;
cc = c;
ii = 0;
box = Box_New(sDate,sTime,oo,NextBarSdate,NextBarStime,cc);
tl1 = TL_New(sDate,sTime,max(cc,oo),sDate,sTime,hh);
tl2 = TL_New(sDate,sTime,min(cc,oo),sDate,sTime,ll);
}
ii = ii +1;
if h > hh Then
hh = h;
if l < ll Then
ll = l;
cc = c;
TL_SetBegin(tl1,sDate[Ceiling(ii/2)],sTime[Ceiling(ii/2)],max(cc,oo));
TL_SetEnd(tl1,sDate[Ceiling(ii/2)],sTime[Ceiling(ii/2)],hh);
TL_SetBegin(tl2,sDate[Ceiling(ii/2)],sTime[Ceiling(ii/2)],min(cc,oo));
TL_SetEnd(tl2,sDate[Ceiling(ii/2)],sTime[Ceiling(ii/2)],ll);
TL_SetColor(tl1,IFf(CC>OO,Red,IFF(CC<OO,Blue,Green)));
TL_SetColor(tl2,IFf(CC>OO,Red,IFF(CC<OO,Blue,Green)));
Box_SetColor(box,IFf(CC>OO,Red,IFF(CC<OO,Blue,Green)));
Box_SetEnd(box,NextBarSdate,NextBarStime,CC);
Box_SetFill(box,true);
즐거운 하루 되세요