커뮤니티
수식부탁드립니다.
2010-02-02 11:11:18
668
글번호 27808
갭업일때 3일간의 평균TR만큼 상승하면 매수진입.
갭다운일때 3일간의 평균TR만큼 하락하면 매도진입.
답변 1
예스스탁 예스스탁 답변
2010-02-02 12:12:38
안녕하세요
예스스탁입니다.
input : Period(3);
var : sumV(0), maV(0), cnt(0);
sumV = 0;
For cnt = 0 to Period-1 {
sumV = sumV + max(dayhigh(cnt)-dayLow(cnt),abs(dayClose(cnt+1)-dayhigh(cnt)),abs(dayClose(cnt+1)-dayLow(cnt)));
}
maV = sumV/Period;
if dayopen > DayClose(1) Then
buy("b",AtStop,dayopen+mav);
if dayopen < DayClose(1) Then
Sell("s",AtStop,dayopen-mav);
즐거운 하루되세요
> 슬러거03 님이 쓴 글입니다.
> 제목 : 수식부탁드립니다.
> 갭업일때 3일간의 평균TR만큼 상승하면 매수진입.
갭다운일때 3일간의 평균TR만큼 하락하면 매도진입.
다음글
이전글