커뮤니티
문의
2019-04-22 17:41:33
210
글번호 128030
1
if (sdate != sdate[1] and stime >= 101500) or
(sdate != sdate[1] and stime >= 101500 and stime[1] < 101500) Then
{
var1 = O;
var2 = TimeToMinutes(101500);
Condition1 = false;
Condition2 = false;
}
if TimeToMinutes(stime) <= var2+5 then
{
if H >= var1+20 Then
Condition1 = true;
if L <= var1-20 Then
Condition1 = true;
}
if Condition1 == true then
{
plot1(var1+20);
plot2(var1+40);
plot3(var1+60);
}
if Condition2 == true then
{
plot3(var1-20);
plot4(var1-40);
plot5(var1-60);
}
이수식에서 오전10시15분 시가가 더해져야되는데 안되어서 그런지 단순하게 20.40.60이렇게 나옵니다, 예를들면 10시15분 첫번째 오전장이 시작햇을때 시가가 21000이라면 21000+20인 21020, 시가+40인 경우는 ,21040이런식으로 나와야 되는데 그냥 단순하게 20,40,60이런식으로 나오니 교정부탁드립니다
답변 1
예스스탁 예스스탁 답변
2019-04-23 12:41:50
안녕하세요
예스스탁입니다.
시간지정에 오류가 있어 수정했습니다.
if (sdate != sdate[1] and stime >= 101500) or
(sdate == sdate[1] and stime >= 101500 and stime[1] < 101500) Then
{
var1 = O;
var2 = TimeToMinutes(101500);
Condition1 = false;
Condition2 = false;
}
if var1 > 0 then
{
if TimeToMinutes(stime) <= var2+5 then
{
if H >= var1+20 Then
Condition1 = true;
if L <= var1-20 Then
Condition2 = true;
}
if Condition1 == true then
{
plot1(var1+20);
plot2(var1+40);
plot3(var1+60);
}
if Condition2 == true then
{
plot4(var1-20);
plot5(var1-40);
plot6(var1-60);
}
}
즐거운 하루되세요
> 레전드 님이 쓴 글입니다.
> 제목 : 문의
> 1
if (sdate != sdate[1] and stime >= 101500) or
(sdate != sdate[1] and stime >= 101500 and stime[1] < 101500) Then
{
var1 = O;
var2 = TimeToMinutes(101500);
Condition1 = false;
Condition2 = false;
}
if TimeToMinutes(stime) <= var2+5 then
{
if H >= var1+20 Then
Condition1 = true;
if L <= var1-20 Then
Condition1 = true;
}
if Condition1 == true then
{
plot1(var1+20);
plot2(var1+40);
plot3(var1+60);
}
if Condition2 == true then
{
plot3(var1-20);
plot4(var1-40);
plot5(var1-60);
}
이수식에서 오전10시15분 시가가 더해져야되는데 안되어서 그런지 단순하게 20.40.60이렇게 나옵니다, 예를들면 10시15분 첫번째 오전장이 시작햇을때 시가가 21000이라면 21000+20인 21020, 시가+40인 경우는 ,21040이런식으로 나와야 되는데 그냥 단순하게 20,40,60이런식으로 나오니 교정부탁드립니다