커뮤니티

문의드립니다.

프로필 이미지
영삼이
2012-10-23 20:57:18
287
글번호 55867
답변완료
input:period1(5),period2(20),period3(60),period4(120),period5(200); var : 이평이격1(0),이평이격2(0),이평이격3(0),이평이격4(0),VALUE(0); 이평이격1=ma(c,period1)/ma(c,period2)*100; 이평이격2=ma(c,period2)/ma(c,period3)*100; 이평이격3=ma(c,period3)/ma(c,period4)*100; 이평이격4=ma(c,period4)/ma(c,period5)*100; if 이평이격1<=100 and 이평이격2>=100 and 이평이격3>=100 and 이평이격4>=100 and 이평이격3>이평이격4 and 이평이격4>이평이격2 and 이평이격2>100-이평이격1+100 then value = 1; Else value = 0; find(Value); 위와 같은 의미로 조건검색을 하면 20~30종목은 검색이 되어야 할텐데 0~2종목 밖에 검색이 안됩니다. if문 이하 조건이 문제가 있는지 살펴봐 주시기 바랍니다.
검색
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-10-24 10:57:27

안녕하세요 예스스탁입니다. if 조건에 이상은 없습니다. 종목검색 설정창에서 업종과 당일 거래량 등의 설정여부를 확인하시기 바랍니다. 즐거운 하루되세요 > 영삼이 님이 쓴 글입니다. > 제목 : 문의드립니다. > input:period1(5),period2(20),period3(60),period4(120),period5(200); var : 이평이격1(0),이평이격2(0),이평이격3(0),이평이격4(0),VALUE(0); 이평이격1=ma(c,period1)/ma(c,period2)*100; 이평이격2=ma(c,period2)/ma(c,period3)*100; 이평이격3=ma(c,period3)/ma(c,period4)*100; 이평이격4=ma(c,period4)/ma(c,period5)*100; if 이평이격1<=100 and 이평이격2>=100 and 이평이격3>=100 and 이평이격4>=100 and 이평이격3>이평이격4 and 이평이격4>이평이격2 and 이평이격2>100-이평이격1+100 then value = 1; Else value = 0; find(Value); 위와 같은 의미로 조건검색을 하면 20~30종목은 검색이 되어야 할텐데 0~2종목 밖에 검색이 안됩니다. if문 이하 조건이 문제가 있는지 살펴봐 주시기 바랍니다.