커뮤니티
당일매매 첫진입
2009-02-04 09:58:35
861
글번호 19979
안녕하세요.
종가>(첫봉에서 10봉 사이의 고가 or 09:00~09:10 사이의 고가) and
종가>이평5일선 and
종가>이평5일선이 상승할 때
매수(매도는 반대)식에서 하루에 2회만 진입하고 목표수익(1.5pt) 후 반대신호 때까지 동일신호 금지하고 손절매 0.8pt적용,15:00 당일청산,15:00 이후 진입금지하는
식을 부탁합니다.
(10봉,시간,5일선,목표수익,진입횟수는 외부변수로 해주세요)
답변 1
예스스탁 예스스탁 답변
2009-02-04 18:12:43
안녕하세요
예스스탁입니다.
input : N(10),loss(0.8),Profit(1.5),매수진입횟수(2),매도진입횟수(2);
var : cnt(0),Bcount(0),Scount(0);
Bcount = 0;
Scount = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) and MarketPosition(cnt) == 1 Then
Bcount = Bcount+1;
if sdate == EntryDate(cnt) and MarketPosition(cnt) == -1 Then
Scount = Scount+1;
}
if dayindex() > N Then{
var1 = highest(H,N);
var2 = lowest(L,N);
}
if dayindex >= N and stime < 150000 and (Bcount+Scount) < 1 Then{
if C > var1 and
C > ma(C,5) and
ma(c,5) > ma(C,5)[1] Then
buy();
if C < var2 and
C < ma(C,5) and
ma(c,5) < ma(C,5)[1] Then
sell();
}
if dayindex >= N and stime < 150000 and (Bcount+Scount) >= 1 Then{
if Bcount < 매수진입횟수 and
MarketPosition(1) != 1 and
C > var1 and
C > ma(C,5) and
ma(c,5) > ma(C,5)[1] Then
buy();
if Scount < 매도진입횟수 and
MarketPosition(1) != -1 and
C < var2 and
C < ma(C,5) and
ma(c,5) < ma(C,5)[1] Then
sell();
}
SetStopProfittarget(Profit,PointStop);
SetStopLoss(loss,PointStop);
SetStopEndofday(150000);
즐거운 하루되세요
> 필승맨 님이 쓴 글입니다.
> 제목 : 당일매매 첫진입
> 안녕하세요.
종가>(첫봉에서 10봉 사이의 고가 or 09:00~09:10 사이의 고가) and
종가>이평5일선 and
종가>이평5일선이 상승할 때
매수(매도는 반대)식에서 하루에 2회만 진입하고 목표수익(1.5pt) 후 반대신호 때까지 동일신호 금지하고 손절매 0.8pt적용,15:00 당일청산,15:00 이후 진입금지하는
식을 부탁합니다.
(10봉,시간,5일선,목표수익,진입횟수는 외부변수로 해주세요)
다음글
이전글