커뮤니티
문의
2013-02-07 15:55:35
245
글번호 59245
시초가에 서로 다른 계좌에서(a는 매도만 하는 계좌, b는 매수, 매수청산만 하는계좌)
시장가로 진입 ,
매수잔량이 매도 잔량보다 더많으면 매수 10계약 , 매도 5계약 ,0.05포인트 마다 청산,
매도 잔량이 더 많으면 매수 5계약 , 매도 10계약 , 0.05포인트 마다 청산 ,
손절 1포인트,
2시 49분 정리 ,
감사합니다
답변 1
예스스탁 예스스탁 답변
2013-02-07 17:02:36
안녕하세요
예스스탁입니다.
첫번째 봉에서 진입합니다.
1틱차트등 최대한 짧은 주기의 차트에 적용하시면 됩니다.
1 매수
if dayindex == 0 and bids > Asks Then
buy("b10",OnClose,def,10);
if dayindex == 0 and bids < Asks Then
buy("b5",OnClose,def,5);
if MarketPosition == 1 Then{
exitlong("bx1",AtLimit,EntryPrice+(0.05*1),"",1,1);
exitlong("bx2",AtLimit,EntryPrice+(0.05*2),"",1,1);
exitlong("bx3",AtLimit,EntryPrice+(0.05*3),"",1,1);
exitlong("bx4",AtLimit,EntryPrice+(0.05*4),"",1,1);
exitlong("bx5",AtLimit,EntryPrice+(0.05*5),"",1,1);
exitlong("bx6",AtLimit,EntryPrice+(0.05*6),"",1,1);
exitlong("bx7",AtLimit,EntryPrice+(0.05*7),"",1,1);
exitlong("bx8",AtLimit,EntryPrice+(0.05*8),"",1,1);
exitlong("bx9",AtLimit,EntryPrice+(0.05*9),"",1,1);
exitlong("bx10",AtLimit,EntryPrice+(0.05*10),"",1,1);
}
SetStopLoss(1,PointStop);
SetStopEndofday(144900);
2.매도
if dayindex == 0 and bids > Asks Then
sell("s5",OnClose,def,5);
if dayindex == 0 and bids < Asks Then
sell("s10",OnClose,def,10);
if MarketPosition == -1 Then{
ExitShort("sx1",AtLimit,EntryPrice-(0.05*1),"",1,1);
ExitShort("sx2",AtLimit,EntryPrice-(0.05*2),"",1,1);
ExitShort("sx3",AtLimit,EntryPrice-(0.05*3),"",1,1);
ExitShort("sx4",AtLimit,EntryPrice-(0.05*4),"",1,1);
ExitShort("sx5",AtLimit,EntryPrice-(0.05*5),"",1,1);
ExitShort("sx6",AtLimit,EntryPrice-(0.05*6),"",1,1);
ExitShort("sx7",AtLimit,EntryPrice-(0.05*7),"",1,1);
ExitShort("sx8",AtLimit,EntryPrice-(0.05*8),"",1,1);
ExitShort("sx9",AtLimit,EntryPrice-(0.05*9),"",1,1);
ExitShort("sx10",AtLimit,EntryPrice-(0.05*10),"",1,1);
}
SetStopLoss(1,PointStop);
SetStopEndofday(144900);
즐거운 하루되세요
> 구다이전설 님이 쓴 글입니다.
> 제목 : 문의
> 시초가에 서로 다른 계좌에서(a는 매도만 하는 계좌, b는 매수, 매수청산만 하는계좌)
시장가로 진입 ,
매수잔량이 매도 잔량보다 더많으면 매수 10계약 , 매도 5계약 ,0.05포인트 마다 청산,
매도 잔량이 더 많으면 매수 5계약 , 매도 10계약 , 0.05포인트 마다 청산 ,
손절 1포인트,
2시 49분 정리 ,
감사합니다