커뮤니티

보합추세1

프로필 이미지
회원
2005-10-10 19:56:48
1488
글번호 8484
답변완료
수고많으십니다. 지난번 답변 고마웠습니다. 아래와 같이 1%~-1%사이의 종목은 검색 되었는데 2%~-2%사이의 종목은 식2처럼 하면 맞는지요. 잘못되였다면 방법 부탁드립니다. 1. input : percent(1); if dayhigh() < dayopen()*(1+percent/100) and daylow() > dayopen()*(1- percent/100) then find(1); 2. input : percent(2); if dayhigh() < dayopen()*(2+percent/100) and daylow() > dayopen()*(2- percent/100) then find(1);
기타
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2005-10-11 11:36:21

안녕하세요 예스스탁입니다. 2. input : percent(2); if dayhigh() < dayopen()*(2+percent/100) and daylow() > dayopen()*(2- percent/100) then find(1); percent값만 바꿔주시면 2%~-2% 사이의 종목이 검색됩니다. (2+percent/100)와 같이 작성할 경우 2+2/100 으로 2.02라는 값이 나옵니다. 202%므로 의도와는 다른 종목이 검색됩니다. 1+percent/100 숫자 1은 고정된 상태에서 Percent값만 변경해 주시면됩니다. 1+2/100 = 1.02 식을 수정해서 올려드립니다. input : percent(2); if dayhigh() < dayopen()*(1+percent/100) and daylow() > dayopen()*(1- percent/100) then find(1); 즐거운 하루되세요 > HH_csh0109 님이 쓴 글입니다. > 제목 : 보합추세1 > 수고많으십니다. 지난번 답변 고마웠습니다. 아래와 같이 1%~-1%사이의 종목은 검색 되었는데 2%~-2%사이의 종목은 식2처럼 하면 맞는지요. 잘못되였다면 방법 부탁드립니다. 1. input : percent(1); if dayhigh() < dayopen()*(1+percent/100) and daylow() > dayopen()*(1- percent/100) then find(1); 2. input : percent(2); if dayhigh() < dayopen()*(2+percent/100) and daylow() > dayopen()*(2- percent/100) then find(1);