커뮤니티

수식 수정부탁합니다~

프로필 이미지
데미안리
2011-07-15 00:03:07
659
글번호 40929
답변완료

첨부 이미지

short라는 지표가 장중 최고값일 때 진입을 하는 건데 highest를 쓰면 같은 값에도 진입을 하게됩니다. 전의 최고 지표값이 2이면 그 다음에는 2에는 매수를 하지 않고 3이상에 진입하도록 수정해주세요~ 감사합니다~ if dayindex > 0 and stime < 143000 and short == highest(short10,dayindex+1) and C == Lowest(C,dayindex+1) then{ if short10[dayindex] == 0 Then{#첫봉의 short값 0 if (stime < 140000 and short10 >= 1) or (stime >= 140000 and short10 >= 2) Then buy("b1",OnClose,def,var1);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-07-15 11:09:51

안녕하세요 예스스탁입니다. if dayindex > 0 and stime < 143000 and short == NthHighest(1,short10,dayindex+1) and NthHighest(1,short,dayindex+1) != NthHighest(2,short,dayindex+1) And C == Lowest(C,dayindex+1) then{ if short10[dayindex] == 0 Then{#첫봉의 short값 0 if (stime < 140000 and short10 >= 1) or (stime >= 140000 and short10 >= 2) Then buy("b1",OnClose,def,var1); 즐거운 하루되세요 > 데미안리 님이 쓴 글입니다. > 제목 : 수식 수정부탁합니다~ > short라는 지표가 장중 최고값일 때 진입을 하는 건데 highest를 쓰면 같은 값에도 진입을 하게됩니다. 전의 최고 지표값이 2이면 그 다음에는 2에는 매수를 하지 않고 3이상에 진입하도록 수정해주세요~ 감사합니다~ if dayindex > 0 and stime < 143000 and short == highest(short10,dayindex+1) and C == Lowest(C,dayindex+1) then{ if short10[dayindex] == 0 Then{#첫봉의 short값 0 if (stime < 140000 and short10 >= 1) or (stime >= 140000 and short10 >= 2) Then buy("b1",OnClose,def,var1);