커뮤니티
수식부탁드립니다.
2015-07-03 14:04:56
172
글번호 87958
틱차트에서
9시 10 시 이렇게 매 시간 시초가를 나타내려고 합니다.
그런데 다음 식에 뭐가 잘못 되넜는지
일 시초가만 나오네요.
수정 부탁드립니다.
if stime == 090000 then var1 = o;
if (stime[1] < 095900 and stime >= 100000) then var1 = o;
if (stime[1] < 105900 and stime >= 110000) then var1 = o;
if (stime[1] < 115900 and stime >= 120000) then var1 = o;
if (stime[1] < 125900 and stime >= 130000) then var1 = o;
if (stime[1] < 135900 and stime >= 140000) then var1 = o;
plot1(var1,"1시간시초가");
답변 1
예스스탁 예스스탁 답변
2015-07-03 15:55:51
안녕하세요
예스스탁입니다.
한봉전의 시간이 지정한 시간보다 클수가 있습니다.
수정한 식입니다.
if stime == 090000 then var1 = o;
if (stime[1] < 100000 and stime >= 100000) then var1 = o;
if (stime[1] < 110000 and stime >= 110000) then var1 = o;
if (stime[1] < 120000 and stime >= 120000) then var1 = o;
if (stime[1] < 130000 and stime >= 130000) then var1 = o;
if (stime[1] < 140000 and stime >= 140000) then var1 = o;
plot1(var1,"1시간시초가");
즐거운 하루되세요
> 무지개나날들 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다.
> 틱차트에서
9시 10 시 이렇게 매 시간 시초가를 나타내려고 합니다.
그런데 다음 식에 뭐가 잘못 되넜는지
일 시초가만 나오네요.
수정 부탁드립니다.
if stime == 090000 then var1 = o;
if (stime[1] < 095900 and stime >= 100000) then var1 = o;
if (stime[1] < 105900 and stime >= 110000) then var1 = o;
if (stime[1] < 115900 and stime >= 120000) then var1 = o;
if (stime[1] < 125900 and stime >= 130000) then var1 = o;
if (stime[1] < 135900 and stime >= 140000) then var1 = o;
plot1(var1,"1시간시초가");