커뮤니티
조건검색식 문의
2003-11-04 23:09:58
3218
글번호 1210
아래와 같은 조건으로 매수매도를 하고 있읍니다.
이 때 조건 검색식은 어떻게 작성하면 되는지요.
감사합니다.
============================================================================
Input: P(30), n(10), 급락가(20), 급등가(5), sp1(0.90), sp2(0.88);
Var: Formula0(0), Formula1(0);
Formula0 = ((C[n]-C)/C[n]*100 > 급락가 && Close > Open * (1+급등가/100) )||
(C > highest(H[1],P) && C[1] <= highest(H[2], P))||
(C > (highest(H[26], 9) + lowest(L[26], 9)) / 2 && C[1] <= (highest(H[27], 9) + lowest(L[27], 9)) / 2);
Formula1 = (C < lowest(L[1],P) && C[1] >= lowest(L[2],P) )||
((o[0]*sp1>c[0])||(h[0]*sp2>c[0])) ;
if Formula0 Then
{
Buy();
Exitshort();
}
if Formula1 Then
{
Exitlong();
Sell();
}
답변 1
예스스탁 예스스탁 답변
2003-11-05 09:45:30
안녕하세요? 예스스탁입니다.....
매수조건을 보이는 종목을 검색하기 위해서는 아래와 같이 식을 작성하시면 됩니다.
Input: P(30), n(10), 급락가(20), 급등가(5), sp1(0.90), sp2(0.88);
Var: Formula0(0), Formula1(0);
Formula0 = ((C[n]-C)/C[n]*100 > 급락가 && Close > Open * (1+급등가/100) )||
(C > highest(H[1],P) && C[1] <= highest(H[2], P))||
(C > (highest(H[26], 9) + lowest(L[26], 9)) / 2 && C[1] <= (highest(H[27], 9) + lowest(L[27], 9)) / 2);
Formula1 = (C < lowest(L[1],P) && C[1] >= lowest(L[2],P) )||
((o[0]*sp1>c[0])||(h[0]*sp2>c[0])) ;
if Formula0 then
var1 = 1;
else
var1 = 0;
Find(var1);
즐거운 하루 되세요...
> 추공 님이 쓴 글입니다.
> 제목 : 조건검색식 문의
>
아래와 같은 조건으로 매수매도를 하고 있읍니다.
이 때 조건 검색식은 어떻게 작성하면 되는지요.
감사합니다.
============================================================================
Input: P(30), n(10), 급락가(20), 급등가(5), sp1(0.90), sp2(0.88);
Var: Formula0(0), Formula1(0);
Formula0 = ((C[n]-C)/C[n]*100 > 급락가 && Close > Open * (1+급등가/100) )||
(C > highest(H[1],P) && C[1] <= highest(H[2], P))||
(C > (highest(H[26], 9) + lowest(L[26], 9)) / 2 && C[1] <= (highest(H[27], 9) + lowest(L[27], 9)) / 2);
Formula1 = (C < lowest(L[1],P) && C[1] >= lowest(L[2],P) )||
((o[0]*sp1>c[0])||(h[0]*sp2>c[0])) ;
if Formula0 Then
{
Buy();
Exitshort();
}
if Formula1 Then
{
Exitlong();
Sell();
}