커뮤니티
문의드립니다
2004-09-16 21:44:11
1364
글번호 5182
williams`R (14)에서
10분봉으로
현재가가 3시간이전동안 의 최저가보다 작고 그리고 수치가 -50보다 작을때 매도
거래는 하루 2번이하
현재가가 3시간 이전동안 보다 크고 그리고 수치가 -50 보다 클때 매수
거래는 하루 2번이하
그리고 집입신호가 나온후 1시간안에는 청산신호는 나오되 신규신호가 나오지않게
부탁드립니다
답변 1
예스스탁 예스스탁 답변
2004-09-20 10:57:43
안녕하세요
예스스탁입니다.
문의하신 식은 다음과 같습니다.
var : Bcnt1(0), Bcnt2(0), Scnt1(0), Scnt2(0), buypos(0), Bindex(0), Sindex(0),Sellpos(0);
if date != date[1] then{
Bcnt1 = 0;
Bcnt2 = 0;
Scnt1 = 0;
Scnt2 = 0;
}
if Bcnt1 < 1 and index >= Sindex+6 and
WillR(14) > -50 and c > highest(c,19) then{
buy("buy1");
Bindex = index;
Bcnt1 = Bcnt1+1;
}
if Bcnt2 < 1 and index >= Bindex+6 and index >= Sindex+6 and
WillR(14) > -50 and c > highest(c,19) then{
buy("buy2");
Bindex = index;
Bcnt2 = Bcnt2+1;
}
if WillR(14) < -50 and c < Lowest(c,19) then
exitlong("매수청산");
if Scnt1 < 1 and index >= bindex+6 and
WillR(14) < -50 and C < Lowest(c,19) then{
sell("sell1");
Sindex = index;
Scnt1 = Scnt1+1;
}
if Scnt2 < 1 and index >= Sindex+6 and index >= Bindex+6 and
WillR(14) < -50 and C < Lowest(c,19) then{
sell("sell2");
Sindex = index;
Scnt2 = Scnt2+1;
}
if WillR(14) > -50 and C > highest(c,19) then
exitshort("매도청산");
아래의 식은 위의 식이 매수매도 조건식으로 인해 신호가 나지않아
임의로 종가가 5일이평을 상향 하향할때로 바꾸어 드렸습니다.
집입신호가 나온후 1시간안에는 청산신호는 나오되 신규신호가 나오지않게했습니다.
아래의 식으로 확인하시길 바랍니다.
var : Bcnt1(0), Bcnt2(0), Scnt1(0), Scnt2(0), buypos(0), Bindex(0), Sindex(0),Sellpos(0);
var1 = ma(c,5);
if date != date[1] then{
Bcnt1 = 0;
Bcnt2 = 0;
Scnt1 = 0;
Scnt2 = 0;
}
if Bcnt1 < 1 and index >= Sindex+6 and crossup(c,var1) then{
buy("buy1");
Bindex = index;
Bcnt1 = Bcnt1+1;
}
if Bcnt2 < 1 and index >= Bindex+6 and index >= Sindex+6 and
crossup(c, var1) then{
buy("buy2");
Bindex = index;
Bcnt2 = Bcnt2+1;
}
if crossdown(c,var1) then
exitlong("매수청산");
if Scnt1 < 1 and index >= bindex+6 and crossdown(c,var1) then{
sell("sell1");
Sindex = index;
Scnt1 = Scnt1+1;
}
if Scnt2 < 1 and index >= Sindex+6 and index >= Bindex+6 and
crossdown(c, var1) then{
sell("sell2");
Sindex = index;
Scnt2 = Scnt2+1;
}
if crossup(c,var1) then
exitshort("매도청산");
즐거운 하루되세요
> 스페이드퀸 님이 쓴 글입니다.
> 제목 : 문의드립니다
> williams`R (14)에서
10분봉으로
현재가가 3시간이전동안 의 최저가보다 작고 그리고 수치가 -50보다 작을때 매도
거래는 하루 2번이하
현재가가 3시간 이전동안 보다 크고 그리고 수치가 -50 보다 클때 매수
거래는 하루 2번이하
그리고 집입신호가 나온후 1시간안에는 청산신호는 나오되 신규신호가 나오지않게
부탁드립니다
다음글
이전글