커뮤니티
오류
2019-05-20 13:31:44
221
글번호 128794
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+30 then
{
if H >= var1+40 Then
Condition1 = true;
if L <= var1-40 Then
Condition1 = true;
}
if Condition1 == true then
{
plot1(var1-20);
plot2(var1+60);
plot3(var1+80);
}
if Condition2 == true then
{
plot4(var1+20);
plot5(var1-60);
plot6(var1-80);
}
실제로 챠트에 나타나지않고 20.60.80 글자만 나타납니다.수식은 문외한이라서 어떻게 고쳐야 될지 몰라서 그러니 양해부탁합니다
답변 1
예스스탁 예스스탁 답변
2019-05-20 14:48:35
안녕하세요
예스스탁입니다.
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 and TimeToMinutes(stime) <= var2+30 then
{
if H >= var1+40 Then
Condition1 = true;
if L <= var1-40 Then
Condition2 = true;
}
if Condition1 == true then
{
plot1(var1-20);
plot2(var1+60);
plot3(var1+80);
}
if Condition2 == true then
{
plot4(var1+20);
plot5(var1-60);
plot6(var1-80);
}
즐거운 하루되세요
> 레전드 님이 쓴 글입니다.
> 제목 : 오류
> 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+30 then
{
if H >= var1+40 Then
Condition1 = true;
if L <= var1-40 Then
Condition1 = true;
}
if Condition1 == true then
{
plot1(var1-20);
plot2(var1+60);
plot3(var1+80);
}
if Condition2 == true then
{
plot4(var1+20);
plot5(var1-60);
plot6(var1-80);
}
실제로 챠트에 나타나지않고 20.60.80 글자만 나타납니다.수식은 문외한이라서 어떻게 고쳐야 될지 몰라서 그러니 양해부탁합니다