커뮤니티
문의
2008-09-24 22:10:56
866
글번호 17222
항상 친절한 답변 감사드립니다.
var : Bcount(0);
Bcount = 0;
for Value1 = 0 to 10 {
if EntryDate( Value1 ) == sdate and MarketPosition(value1) == 1 then
BCount = BCount + 1;
}
if stime > 130000 and Bcount < 2 Then{
if accumn(iff(crossup(C,openD(0)*1.05),1,0),dayindex) >= 1 and
accumn(iff(crossdown(C,highD(0)*.97),1,0),dayindex) == 0 and
crossup(c,highD(0)[1]) Then
buy("C");
}
SetStopEndofday(140000);
SetStopLoss(1);
일단 상기수식이 실행이 안됩니다.
시가 대비 5%이상 상승하였다가
20캔들이상 3%이하로 조정후
고점을 재돌파하면 매수하는 수식으로 수정보완을 부탁합니다.
미리 감사드립니다.
답변 1
예스스탁 예스스탁 답변
2008-09-25 10:01:14
안녕하세요
예스스탁입니다.
var : Cnt(0);
if date != date[1] Then
cnt = 0;
if cnt == 0 and //최초 5%돌파시점
C >= dayopen()*1.05 Then{
cnt = 1;
var1 = dayindex(); //당일인덱스 저장
var2 = dayhigh(); //돌파시점 최고가 저장
}
if cnt == 1 and //당일시가 5% 돌파 후
dayindex() >= var1+20 and //20봉이상 경과
highest(H,dayindex()-var1) <= lowest(L,dayindex()-var1)*1.03 Then //돌파이후 3% 횡보
cnt = 2;
if cnt == 2 and crossup(C,dayhigh()[1]) Then //당일 최고점 갱싱
buy();
즐거운 하루되세요
> 주식달인 님이 쓴 글입니다.
> 제목 : 문의
> 항상 친절한 답변 감사드립니다.
var : Bcount(0);
Bcount = 0;
for Value1 = 0 to 10 {
if EntryDate( Value1 ) == sdate and MarketPosition(value1) == 1 then
BCount = BCount + 1;
}
if stime > 130000 and Bcount < 2 Then{
if accumn(iff(crossup(C,openD(0)*1.05),1,0),dayindex) >= 1 and
accumn(iff(crossdown(C,highD(0)*.97),1,0),dayindex) == 0 and
crossup(c,highD(0)[1]) Then
buy("C");
}
SetStopEndofday(140000);
SetStopLoss(1);
일단 상기수식이 실행이 안됩니다.
시가 대비 5%이상 상승하였다가
20캔들이상 3%이하로 조정후
고점을 재돌파하면 매수하는 수식으로 수정보완을 부탁합니다.
미리 감사드립니다.
다음글
이전글