커뮤니티
수식 문의 드립니다
2006-06-02 01:31:35
865
글번호 10150
대신에서 예스로 바꾸어주시면 감사하겠습니다.
- 1. 대신.txt (0.00 MB)
답변 1
예스스탁 예스스탁 답변
2006-06-02 08:49:24
안녕하세요
예스스탁입니다.
문의하신 식은 다음과 같습니다.
input : Len(1),s1(1),s3(1);
var : cond11(0),cond1(0),cond2(0);
Var1 = high-low;
Cond11 = Var1 == nthlowest(1,Var1,len) And stime < 150000 ;
Cond1 = sdate == exitdate(1) And marketposition(1) == 1 ;
Cond2 = sdate == exitdate(1) And marketposition(1) == -1 ;
If stime < 150000 Then{
If !(Cond1) Then{
If Cond11 And !(Cond11[1]) Then {
If dayopen()+(dayhigh(1)-daylow(1))*s1 < close Then {
buy("매수",Atstop,high+var1*s3);
}
}
}
If !(Cond2) Then{
If Cond11 And !(Cond11[1]) Then{
If dayopen()-(dayhigh(1)-daylow(1))*s1 > close Then {
sell("매도",Atstop,low-var1*s3) ;
}
}
}
}
즐거운 하루되세요
> ether 님이 쓴 글입니다.
> 제목 : 수식 문의 드립니다
> 대신에서 예스로 바꾸어주시면 감사하겠습니다.