커뮤니티
관리자님 수식 수정 부탁드립니다.
수식 만들어 주셔서 잘 사용하고 있습니다.
수평선 선 굵기를 2로 변경하고 싶습니다.
감사합니다.
input : s1(90000),e1(130000);
input : s2(150000),e2(181111);
input : s3(210000),e3(220000);
input : s4(223000),e4(230000);
var : d1(0),t1(0),hh(0),ll(0),tcond(False),tl1(0),tl2(0);
if ((sDate != sDate[1] and sTime >= s1) or
(sDate == sDate[1] and sTime >= s1 and sTime[1] < s1)) Then
{
d1 = sDate;
t1 = sTime;
hh = h;
ll = l;
tcond = true;
tl1 = tl_new(sDate,sTime,hh,NextBarSdate,NextBarStime,hh);
tl2 = tl_new(sDate,sTime,ll,NextBarSdate,NextBarStime,ll);
TL_SetColor(tl1,Cyan);
TL_SetColor(tl2,Cyan);
}
if ((sDate != sDate[1] and sTime >= s2) or
(sDate == sDate[1] and sTime >= s2 and sTime[1] < s2)) Then
{
d1 = sDate;
t1 = sTime;
hh = h;
ll = l;
tcond = true;
tl1 = tl_new(sDate,sTime,hh,NextBarSdate,NextBarStime,hh);
tl2 = tl_new(sDate,sTime,ll,NextBarSdate,NextBarStime,ll);
TL_SetColor(tl1,Violet);
TL_SetColor(tl2,Violet);
}
if ((sDate != sDate[1] and sTime >= s3) or
(sDate == sDate[1] and sTime >= s3 and sTime[1] < s3)) Then
{
d1 = sDate;
t1 = sTime;
hh = h;
ll = l;
tcond = true;
tl1 = tl_new(sDate,sTime,hh,NextBarSdate,NextBarStime,hh);
tl2 = tl_new(sDate,sTime,ll,NextBarSdate,NextBarStime,ll);
TL_SetColor(tl1,White);
TL_SetColor(tl2,White);
}
if ((sDate != sDate[1] and sTime >= s4) or
(sDate == sDate[1] and sTime >= s4 and sTime[1] < s4)) Then
{
d1 = sDate;
t1 = sTime;
hh = h;
ll = l;
tcond = true;
tl1 = tl_new(sDate,sTime,hh,NextBarSdate,NextBarStime,hh);
tl2 = tl_new(sDate,sTime,ll,NextBarSdate,NextBarStime,ll);
TL_SetColor(tl1,Red);
TL_SetColor(tl2,Red);
}
if ((sDate != sDate[1] and sTime >= e1) or
(sDate == sDate[1] and sTime >= e1 and sTime[1] < e1)) or
((sDate != sDate[1] and sTime >= e2) or
(sDate == sDate[1] and sTime >= e2 and sTime[1] < e2)) or
((sDate != sDate[1] and sTime >= e3) or
(sDate == sDate[1] and sTime >= e3 and sTime[1] < e3)) or
((sDate != sDate[1] and sTime >= e4) or
(sDate == sDate[1] and sTime >= e4 and sTime[1] < e4)) Then
{
tcond = False;
}
if tcond == true Then
{
if h > hh then
{
hh = h;
TL_SetBegin(tl1,d1,t1,hh);
}
if l < ll Then
{
ll = l;
TL_SetBegin(tl2,d1,t1,ll);
}
TL_SetEnd(tl1,NextBarSdate,NextBarStime,hh);
TL_SetEnd(tl2,NextBarSdate,NextBarStime,ll);
}
- 1. 2026-09-02 23;45;50.PNG (0.03 MB)
답변 1
예스스탁 예스스탁 답변
2026-09-03 15:43:23