커뮤니티
2시스템 질문입니다
2009-04-09 05:51:26
734
글번호 21569
일반주식
1초차트
매수
앤벨롭 300.3 상단선 크로스업
매수조건
당일 시가가 앤벨300.3 상단선 이내
매매시간 090030 - 1440000
매매수량 100만원내의 최대수량
매매횟수 1회
손절 3%
수익최대하락
수익 5%수익시 80%하락 익절
수익 10%수익시 50%하락 익절
상한가 진입시 바로청산
(상한가 = 14%라는 당일특정퍼센트까지 현재재가 올라가면 수익퍼센트에 상관없이 바로청산 )
감사합니다
수고하세요
답변 1
예스스탁 예스스탁 답변
2009-04-09 10:06:18
안녕하세요
예스스탁입니다.
input : capital(1000000),Period(300),Per(3),P(14);
var : cnt(0),count(0);
count = 0;
for cnt = 0 to 10{
if sdate == EntryDate(cnt) Then
count = count+1;
}
if date != date[1] Then {
Condition1 = false;
if O <= EnvelopeUp(Period,Per) Then
Condition1 == True;
}
if MarketPosition == 0 and count == 0 and stime >= 90030 and stime <= 144000 Then{
if crossup(c,EnvelopeUp(Period,Per)) and Condition1 == True Then
buy("b",OnClose,def,int(capital/(C*100000)));
}
if MarketPosition == 1 Then{
exitlong("bx3",atlimit,DayClose(1)*(1+P/100));
if highest(H,BarsSinceEntry) >= EntryPrice*1.05 and Highest(h,BarsSinceEntry) < EntryPrice*1.1 Then
exitlong("bx1",AtStop,highest(H,BarsSinceEntry)-(highest(H,BarsSinceEntry)-EntryPrice)*0.8);
if highest(H,BarsSinceEntry) >= EntryPrice*1.1 Then
exitlong("bx2",AtStop,highest(H,BarsSinceEntry)-(highest(H,BarsSinceEntry)-EntryPrice)*0.5);
}
SetStopLoss(3);
즐거운 하루되세요
> 파인애플 님이 쓴 글입니다.
> 제목 : 2시스템 질문입니다
> 일반주식
1초차트
매수
앤벨롭 300.3 상단선 크로스업
매수조건
당일 시가가 앤벨300.3 상단선 이내
매매시간 090030 - 1440000
매매수량 100만원내의 최대수량
매매횟수 1회
손절 3%
수익최대하락
수익 5%수익시 80%하락 익절
수익 10%수익시 50%하락 익절
상한가 진입시 바로청산
(상한가 = 14%라는 당일특정퍼센트까지 현재재가 올라가면 수익퍼센트에 상관없이 바로청산 )
감사합니다
수고하세요
다음글
이전글