예스스탁
예스스탁 답변
2024-03-27 14:40:10
안녕하세요
예스스탁입니다.
input : nTime1(100000),nTime2(120000),nTime3(140000);
var : TL1(0),TL2(0),TL3(0);
if (sdate != sdate[1] and stime >= nTime1) or
(sdate == sdate[1] and stime >= nTime1 and stime[1] < nTime1) Then
{
TL1 = TL_New(sDate,sTime,0,sDate,sTime,99999999);
TL_SetColor(TL1,Red);
}
if (sdate != sdate[1] and stime >= nTime2) or
(sdate == sdate[1] and stime >= nTime2 and stime[1] < nTime2) Then
{
TL2 = TL_New(sDate,sTime,0,sDate,sTime,99999999);
TL_SetColor(TL2,Blue);
}
if (sdate != sdate[1] and stime >= nTime3) or
(sdate == sdate[1] and stime >= nTime3 and stime[1] < nTime3) Then
{
TL3 = TL_New(sDate,sTime,0,sDate,sTime,99999999);
TL_SetColor(TL3,Green);
}
즐거운 하루되세요
> 느림보 님이 쓴 글입니다.
> 제목 : 지표식구합니다-일정시간에 표시
> 챠트에 일정 시간 a, b, c 에 세로선을 긋고자합니다
각 색깔을 다르게 표시할수있게 해주세요
감사합니다