커뮤니티
부탁 드립니다.
2017-06-20 09:57:37
186
글번호 110577
실행결과
지정된 일시 이전의
var11,var31의 값이 zero가 나옵니다.
이 데이터가 보이지 않게 가능한지요?
미리 경배로 감사 인사 올립니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
plot1(var11,"H1",red,def,0);
plot31(var31,"L1",blue,def,0);
답변 3
예스스탁 예스스탁 답변
2017-06-20 11:45:06
안녕하세요
예스스탁입니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
if Tcond == true then{
plot1(var11,"H1",red,def,0);
plot31(var31,"L1",blue,def,0);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 실행결과
지정된 일시 이전의
var11,var31의 값이 zero가 나옵니다.
이 데이터가 보이지 않게 가능한지요?
미리 경배로 감사 인사 올립니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
plot1(var11,"H1",red,def,0);
plot31(var31,"L1",blue,def,0);
yes
2017-06-20 13:19:47
답변 수식은
원하는 대로 정상이나
var12와 var32를 추가하니 역시
zero값이 나와 정상이 아닙니다.
정정 부탁 드립니다.
미리 경배로 감사 인사 올립니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
###############이하 추가 한 부분
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var12 = H;
}
###############이상 추가 한 부분
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
###############이하 추가 한 부분
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var32 = L;
}
###############이상 추가 한 부분
if Tcond == true then{
plot1(var11,"H1",red,def,0);
plot2(var12,"H2",yellow,def,0);
###############이하 추가 한 부분
plot31(var31,"L1",blue,def,0);
plot32(var32,"L2",yellow,def,0);
###############이상 추가 한 부분
}
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 부탁 드립니다.
> 안녕하세요
예스스탁입니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
if Tcond == true then{
plot1(var11,"H1",red,def,0);
plot31(var31,"L1",blue,def,0);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 실행결과
지정된 일시 이전의
var11,var31의 값이 zero가 나옵니다.
이 데이터가 보이지 않게 가능한지요?
미리 경배로 감사 인사 올립니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
plot1(var11,"H1",red,def,0);
plot31(var31,"L1",blue,def,0);
예스스탁 예스스탁 답변
2017-06-20 13:32:32
안녕하세요
예스스탁입니다.
지정한 날짜 이후에도 0값이 발생할수 있는 내용이면
if조건으로 해당변수 > 0 조건을 주시면 됩니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
###############이하 추가 한 부분
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var12 = H;
}
###############이상 추가 한 부분
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
###############이하 추가 한 부분
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var32 = L;
}
###############이상 추가 한 부분
if Tcond == true then{
if var11 > 0 then
plot1(var11,"H1",red,def,0);
if var12 > 0 then
plot2(var12,"H2",yellow,def,0);
###############이하 추가 한 부분
if var31 > 0 then
plot31(var31,"L1",blue,def,0);
if var32 > 0 then
plot32(var32,"L2",yellow,def,0);
###############이상 추가 한 부분
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : Re : Re : 부탁 드립니다.
> 답변 수식은
원하는 대로 정상이나
var12와 var32를 추가하니 역시
zero값이 나와 정상이 아닙니다.
정정 부탁 드립니다.
미리 경배로 감사 인사 올립니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
###############이하 추가 한 부분
if HH2 > 0 and H == HH2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var12 = H;
}
###############이상 추가 한 부분
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
###############이하 추가 한 부분
if LL2 > 0 and L == LL2 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var32 = L;
}
###############이상 추가 한 부분
if Tcond == true then{
plot1(var11,"H1",red,def,0);
plot2(var12,"H2",yellow,def,0);
###############이하 추가 한 부분
plot31(var31,"L1",blue,def,0);
plot32(var32,"L2",yellow,def,0);
###############이상 추가 한 부분
}
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 부탁 드립니다.
> 안녕하세요
예스스탁입니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
if Tcond == true then{
plot1(var11,"H1",red,def,0);
plot31(var31,"L1",blue,def,0);
}
즐거운 하루되세요
> yes 님이 쓴 글입니다.
> 제목 : 부탁 드립니다.
> 실행결과
지정된 일시 이전의
var11,var31의 값이 zero가 나옵니다.
이 데이터가 보이지 않게 가능한지요?
미리 경배로 감사 인사 올립니다.
input : 일자(20170615),시간(120000);
var : HV1(0),HV2(0),HV3(0);var : HH1(0),HH2(0),HH3(0);var : LL1(0),LL2(0),LL3(0);
var : Tcond(False);
if sdate == 일자 and (stime == 시간 or (stime > 시간 and stime[1] < 시간)) Then
Tcond = true;
if Tcond == true and Tcond != Tcond[1] then
{
HV1 = V;
HV2 = 0;
HV3 = 0;
HH1 = H;
HH2 = 0;
HH3 = 0;
LL1 = L;
LL2 = 99999999;
LL3 = 99999999;
Condition1 = false;
Condition31 = false;
}
if Tcond == true and Tcond == Tcond[1] then{
if V > HV1 Then{
HV1 = V;
HV2 = HV1[1];
HV3 = HV2[1];}
if V < HV1 and V > HV2 Then{
HV2 = V;
HV3 = HV2[1];}
if H > HH1 Then{
HH1 = H;
HH2 = HH1[1];
HH3 = HH2[1];
}
if H < HH1 and H > HH2 Then{
HH2 = H;
HH3 = HH2[1];
}
if L < LL1 Then{
LL1 = L;
LL2 = LL1[1];
LL3 = LL2[1]; }
if L > LL1 and L < LL2 Then
LL2 = L;
LL3 = LL2[1];}
if HH1 > 0 and H == HH1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3) ) Then{
// Condition1 = true;
var11 = H;
}
if LL1 > 0 and L == LL1 and
((HV1 > 0 and V >= HV1) or
(HV2 > 0 and V >= HV2) or
(HV3 > 0 and V >= HV3)) Then{
// Condition31 = true;
var31 = L;
}
plot1(var11,"H1",red,def,0);
plot31(var31,"L1",blue,def,0);