커뮤니티
무엇이 문제인지?
2004-07-30 11:52:43
878
글번호 4712
input:starttime(090000),endtime(092959),x(0.5)
var1 = timehigh(starttime,endtime);
var2 = timelow(starttime,endtime);
if stime >= 93000 and stime <143000 and var2> dayclose(1)+x then buy();
if stime >= 93000 and stime <143000 and var1> dayclose(1)-x then sell();
if stime== 145000 then {exitlong(); exitshort();}
2줄에서 문법오류가 났는데 도데체 무엇이 문제인지 모르겠네요?
답변 1
예스스탁 예스스탁 답변
2004-07-30 13:09:25
안녕하세요
예스스탁입니다.
1줄 외부변수 선언에 세미콜론이 있어야 문장의 마침이 됩니다.
input:starttime(090000),endtime(092959),x(0.5);
var1 = timehigh(starttime,endtime);
var2 = timelow(starttime,endtime);
if stime >= 93000 and stime <143000 and var2> dayclose(1)+x then
buy();
if stime >= 93000 and stime <143000 and var1> dayclose(1)-x then
sell();
if stime== 145000 then {
exitlong();
exitshort();
}
즐거운 하루되세요
> eel 님이 쓴 글입니다.
> 제목 : 무엇이 문제인지?
> input:starttime(090000),endtime(092959),x(0.5)
var1 = timehigh(starttime,endtime);
var2 = timelow(starttime,endtime);
if stime >= 93000 and stime <143000 and var2> dayclose(1)+x then buy();
if stime >= 93000 and stime <143000 and var1> dayclose(1)-x then sell();
if stime== 145000 then {exitlong(); exitshort();}
2줄에서 문법오류가 났는데 도데체 무엇이 문제인지 모르겠네요?
다음글
이전글