커뮤니티
문의
2008-08-27 01:38:12
798
글번호 16809
항상 친절한 답변 감사합니다.
Input : af(0.02), maxAF(0.2);
var : cnt1(0),cnt2(0);
if date != date[1] Then{
cnt1 = 0;
cnt2 = 0;
}
if stime >= 90000 and stime < 110000 Then{
if MarketPosition() == 0 Then{
If data2(C) > data2(sar(af,maxAF)) and cnt1 <3 Then {
Buy();
cnt1 = cnt1+1;
}
}
if stime >= 110000 and stime < 130000 Then{
if if data2(C,20) < data2(c,200) and cnt2 < 3 Then{
buy();
cnt2 = cnt2+1;
}
}
단순하게 데이타2 분봉만으로
데이타1에서 매매하고자 합니다.
9시부터11시까지는
데이타2의 자료만으로 파라볼릭 매수시그널이 나오면
데이타1에서 매수하는데 매수횟수는 3회로제한
11시부터 13시까지는
데이터2의 자료만으로
20ma가 200ma을 상향하는 시그널이 나오면
데이터1에서 메수하는데 매수횟수는 3회로 제한
어디가 잘못되었는지 수정바랍니다.
미리감사드립니다.
답변 1
예스스탁 예스스탁 답변
2008-08-27 08:54:30
안녕하세요
예스스탁입니다.
참조종목의 이동평균은 data2(ma(c,20))과 같이 작성하셔야 합니다.
식을 조금 수정했습니다.
즐거운 하루되세요
Input : af(0.02), maxAF(0.2);
var : cnt1(0),cnt2(0),count(0);
cnt1 = 0;
cnt2 = 0;
for count = 1 to 10{
if IsEntryName("매수1",count) == True and sdate == EntryDate(count) Then
cnt1 = cnt1+1;
if IsEntryName("매수2",count) == True and sdate == EntryDate(count) Then
cnt2 = cnt2+1;
}
if MarketPosition() == 0 Then{
If data2(stime) >= 90000 and data2(stime) < 110000 and
data2(C) > data2(sar(af,maxAF)) and cnt1 < 3 Then {
Buy("매수1");
cnt1 = cnt1+1;
}
if data2(stime) >= 110000 and data2(stime) < 130000 and
crossup(data2(ma(C,20)),data2(ma(c,200))) and cnt2 < 3 Then{
buy("매수2");
cnt2 = cnt2+1;
}
}
즐거운 하루되세요
> 주식달인 님이 쓴 글입니다.
> 제목 : 문의
> 항상 친절한 답변 감사합니다.
Input : af(0.02), maxAF(0.2);
var : cnt1(0),cnt2(0);
if date != date[1] Then{
cnt1 = 0;
cnt2 = 0;
}
if stime >= 90000 and stime < 110000 Then{
if MarketPosition() == 0 Then{
If data2(C) > data2(sar(af,maxAF)) and cnt1 <3 Then {
Buy();
cnt1 = cnt1+1;
}
}
if stime >= 110000 and stime < 130000 Then{
if if data2(C,20) < data2(c,200) and cnt2 < 3 Then{
buy();
cnt2 = cnt2+1;
}
}
단순하게 데이타2 분봉만으로
데이타1에서 매매하고자 합니다.
9시부터11시까지는
데이타2의 자료만으로 파라볼릭 매수시그널이 나오면
데이타1에서 매수하는데 매수횟수는 3회로제한
11시부터 13시까지는
데이터2의 자료만으로
20ma가 200ma을 상향하는 시그널이 나오면
데이터1에서 메수하는데 매수횟수는 3회로 제한
어디가 잘못되었는지 수정바랍니다.
미리감사드립니다.