커뮤니티

수식질문드립니다.

프로필 이미지
올독
2022-05-20 11:53:42
1007
글번호 159086
답변완료
Count1 = 0; if Plot1 > Plot1[1] Then Count1 = Count1+1; if Plot2 > Plot2[1] Then Count1 = Count1+1; if Plot3> Plot3[1] Then Count1 = Count1+1; if Plot4 > Plot4[1] Then Count1 = Count1+1; if Plot5 > Plot5[1] Then Count1 = Count1+1; if Plot6 > Plot6[1] Then Count1 = Count1+1; { TX1 = Text_New(sDate,sTime,H,NumToStr(Count1,0)); Text_SetStyle(TX1,2,1); Text_SetColor(TX1,Orange); } 위 수식에서 조건 성립 안될때 카운트 0 표시 출력이 계속 되는데 카운트 0 표시는 출력 안되게 할려면 어떻게 해야되나요? 아니라면 다른 방법으로 100일선 위에서만 표시 밑에서는 표지안되게라도 가능할까요? 감사드립니다!!
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-05-20 15:08:32

안녕하세요 예스스탁입니다. Count1 = 0; if Plot1 > Plot1[1] Then Count1 = Count1+1; if Plot2 > Plot2[1] Then Count1 = Count1+1; if Plot3> Plot3[1] Then Count1 = Count1+1; if Plot4 > Plot4[1] Then Count1 = Count1+1; if Plot5 > Plot5[1] Then Count1 = Count1+1; if Plot6 > Plot6[1] Then Count1 = Count1+1; if Count1 > 0 Then { TX1 = Text_New(sDate,sTime,H,NumToStr(Count1,0)); Text_SetStyle(TX1,2,1); Text_SetColor(TX1,Orange); } 즐거운 하루되세요 > 올독 님이 쓴 글입니다. > 제목 : 수식질문드립니다. > Count1 = 0; if Plot1 > Plot1[1] Then Count1 = Count1+1; if Plot2 > Plot2[1] Then Count1 = Count1+1; if Plot3> Plot3[1] Then Count1 = Count1+1; if Plot4 > Plot4[1] Then Count1 = Count1+1; if Plot5 > Plot5[1] Then Count1 = Count1+1; if Plot6 > Plot6[1] Then Count1 = Count1+1; { TX1 = Text_New(sDate,sTime,H,NumToStr(Count1,0)); Text_SetStyle(TX1,2,1); Text_SetColor(TX1,Orange); } 위 수식에서 조건 성립 안될때 카운트 0 표시 출력이 계속 되는데 카운트 0 표시는 출력 안되게 할려면 어떻게 해야되나요? 아니라면 다른 방법으로 100일선 위에서만 표시 밑에서는 표지안되게라도 가능할까요? 감사드립니다!!