커뮤니티

질문드립니다

프로필 이미지
공부중
2011-09-01 15:52:54
562
글번호 42385
답변완료
최고가 이면 1로 표시하고 최고가 5봉이후 최고가 아래이면 0으로 표시하는 지표식을 작성했습니다 var:hcond(0),hindex(0),hvalue(0); if date<>date[1] Then{ hcond=0; } if crossup(c, highest(c, dayindex+1)[1]) and hcond==0 Then{ hvalue=c; hcond=1; hindex=index; } if hcond==1 and index-hindex>5 and c<hvalue Then hcond=0; plot1(hcond); 지표식작성후 보니 제대로 나오는 날이 있고 아닌 날이 있어 잘못된 부분을 수정부탁드립니다
지표
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-09-01 18:10:19

안녕하세요 예스스탁입니다. 수정한 식입니다. var:hcond(0),hindex(0),hvalue(0); if date<>date[1] Then{ hcond = 0; hvalue = C; Hindex = index; } if dayindex > 0 and c > Hvalue Then{ hvalue=c; hcond=1; hindex=index; } if hcond==1 and index-hindex >= 5 and c<hvalue Then hcond=0; plot1(hcond); 즐거운 하루되세요 > 공부중 님이 쓴 글입니다. > 제목 : 질문드립니다 > 최고가 이면 1로 표시하고 최고가 5봉이후 최고가 아래이면 0으로 표시하는 지표식을 작성했습니다 var:hcond(0),hindex(0),hvalue(0); if date<>date[1] Then{ hcond=0; } if crossup(c, highest(c, dayindex+1)[1]) and hcond==0 Then{ hvalue=c; hcond=1; hindex=index; } if hcond==1 and index-hindex>5 and c<hvalue Then hcond=0; plot1(hcond); 지표식작성후 보니 제대로 나오는 날이 있고 아닌 날이 있어 잘못된 부분을 수정부탁드립니다