커뮤니티

아래 시스템식에서 오류를 찾아주세요

프로필 이미지
수민아빠
2009-10-15 17:33:18
564
글번호 25438
답변완료
안녕하세요 아래 식에서 중간에 if 가 잘못된 토큰이라고 나오는데 어디가 문제일까요? if trix(11) < 0 and countif(crossup(Value1,Value2),2) ==1 and countif(ma(c,3) >= ma(c,4),1) ==1 and if stime<091000 and dayindex == 0 and dayopen-dayclose(1)>1 Then atr(14)>1; Else atr(14)>0.35 or atr(14)<0.2; and c>ma(c,20) and L>L[1] and Value3>Value3[1] Then buy("B1");
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2009-10-15 18:00:57

안녕하세요 예스스탁입니다. 식에 if ~then 안에는 또다른 if~then이 들어갈 수 없습니다. if ~if ~then~then(x) 내용을 정확히 몰라 문법적으로만 식을 수정했습니다. 식 내용을 살펴보시기 바랍니다. if trix(11) < 0 and countif(crossup(Value1,Value2),2) ==1 and countif(ma(c,3) >= ma(c,4),1) ==1 and iff(stime<091000 and dayindex == 0 and dayopen-dayclose(1)>1,atr(14)>1,atr(14)>0.35 or atr(14)<0.2) and c>ma(c,20) and L>L[1] and Value3>Value3[1] Then buy("B1"); 즐거운 하루되세요 > 수민아빠 님이 쓴 글입니다. > 제목 : 아래 시스템식에서 오류를 찾아주세요 > 안녕하세요 아래 식에서 중간에 if 가 잘못된 토큰이라고 나오는데 어디가 문제일까요? if trix(11) < 0 and countif(crossup(Value1,Value2),2) ==1 and countif(ma(c,3) >= ma(c,4),1) ==1 and if stime<091000 and dayindex == 0 and dayopen-dayclose(1)>1 Then atr(14)>1; Else atr(14)>0.35 or atr(14)<0.2; and c>ma(c,20) and L>L[1] and Value3>Value3[1] Then buy("B1");