커뮤니티
시스템식 질문입니다
2009-03-17 10:37:37
772
글번호 20977
선물 틱차트
볼린져밴드 800 2.2
앤벨롭 300 0.3
매수
볼린져 상단선 위에서
앤벨롭 상단선 크로스업 할때
매수청산
앤벨롭 중앙선 크로스다운
매도
볼린져 하단선 아래에서
앤벨롭 하단선 크로스다운 할때
매도청산
앤벨롭 중앙선 크로스 업
매매시간
9시10분부터 3시까지
매매횟수
2회
손절
0.3포인트
최대수익하락
0.2pt ~ 0.4pt 수익구간에서 0.4pt 하락시 익절
0.4 ~ 0.8 수익구간에서 0.3 하락시 익절
0.8 이상 수익구간에서 0.2 하락시 익절
답변 1
예스스탁 예스스탁 답변
2009-03-17 14:12:59
안녕하세요
예스스탁입니다.
var : cnt(0),count(0);
var1 = BollBandUp(800,2.2);
var2 = BollBandDown(800,2.2);
value1 = EnvelopeUp(300,0.3);
value2 = EnvelopeDown(300,0.3);
value3 = ma(c,300);
count = 0;
for cnt = 0 to 10{
if sdate == EntryDate(cnt) Then
count = count+1;
}
if count < 2 Then{
if C > var1 and crossup(c,value1) Then
buy();
if C < var1 and CrossDown(c,value2) Then
Sell();
}
if CrossDown(c,value3) Then
exitlong();
if CrossUp(c,value3) Then
ExitShort();
if MarketPosition == 1 Then{
if highest(H,BarsSinceEntry) >= EntryPrice+0.2 and highest(H,BarsSinceEntry) < EntryPrice+0.4 Then
exitlong("BX1",AtStop,Highest(H,BarsSinceEntry)-0.4);
if highest(H,BarsSinceEntry) >= EntryPrice+0.4 and highest(H,BarsSinceEntry) < EntryPrice+0.8 Then
exitlong("BX2",AtStop,Highest(H,BarsSinceEntry)-0.3);
if highest(H,BarsSinceEntry) >= EntryPrice+0.8 Then
exitlong("BX3",AtStop,Highest(H,BarsSinceEntry)-0.2);
}
if MarketPosition == -1 Then{
if Lowest(L,BarsSinceEntry) <= EntryPrice-0.2 and Lowest(L,BarsSinceEntry) > EntryPrice-0.4 Then
ExitShort("SX1",AtStop,Lowest(L,BarsSinceEntry)+0.4);
if Lowest(L,BarsSinceEntry) <= EntryPrice-0.4 and Lowest(L,BarsSinceEntry) > EntryPrice-0.4 Then
ExitShort("SX2",AtStop,Lowest(L,BarsSinceEntry)+0.3);
if Lowest(L,BarsSinceEntry) <= EntryPrice-0.8 Then
ExitShort("SX3",AtStop,Lowest(L,BarsSinceEntry)+0.2);
}
SetStopLoss(0.3,PointStop);
즐거운 하루되세요
> 파인애플 님이 쓴 글입니다.
> 제목 : 시스템식 질문입니다
> 선물 틱차트
볼린져밴드 800 2.2
앤벨롭 300 0.3
매수
볼린져 상단선 위에서
앤벨롭 상단선 크로스업 할때
매수청산
앤벨롭 중앙선 크로스다운
매도
볼린져 하단선 아래에서
앤벨롭 하단선 크로스다운 할때
매도청산
앤벨롭 중앙선 크로스 업
매매시간
9시10분부터 3시까지
매매횟수
2회
손절
0.3포인트
최대수익하락
0.2pt ~ 0.4pt 수익구간에서 0.4pt 하락시 익절
0.4 ~ 0.8 수익구간에서 0.3 하락시 익절
0.8 이상 수익구간에서 0.2 하락시 익절
다음글
이전글