커뮤니티
문의
2013-01-09 14:45:17
265
글번호 57949
시가 시장가에
틱차트로
서로 다른 계좌에서
A 계좌는 5계약 매도
B 계좌는 5계약 매수
0.1포인트 이익 나면 한계약씩 식 수익 실현.
0.25 손절
마지막 수익 실현한 계약 보다 0.2 아래로( 매도청산에서는 0.2포인트 위로) 가면
모두 수익 실현 ..
감사합니다
답변 1
예스스탁 예스스탁 답변
2013-01-09 15:11:36
안녕하세요
예스스탁입니다.
해당 내용 첫봉완성시에 신호가 진입신호가
발생되게 작성해야 합니다.
첫봉 완성시에 진입하고 이후에
말씀하신 내용으로 청산됩니다.
1. 매수
if dayindex == 0 Then
buy("b",OnClose,def,5);
if MarketPosition == 1 Then{
exitlong("bx1",AtStop,EntryPrice+0.1);
exitlong("bx2",AtStop,EntryPrice+0.2);
exitlong("bx3",AtStop,EntryPrice+0.3);
exitlong("bx4",AtStop,EntryPrice+0.4);
exitlong("bx5",AtStop,EntryPrice+0.5);
if CurrentContracts == 4 Then
exitlong("bx11",AtStop,(EntryPrice+0.1)-0.2);
if CurrentContracts == 2 Then
exitlong("bx21",AtStop,(EntryPrice+0.2)-0.2);
if CurrentContracts == 2 Then
exitlong("bx31",AtStop,(EntryPrice+0.3)-0.2);
if CurrentContracts == 1 Then
exitlong("bx41",AtStop,(EntryPrice+0.4)-0.2);
}
SetStopLoss(0.25,PointStop);
2.매도
if dayindex == 0 Then
Sell("s",OnClose,def,5);
if MarketPosition == -1 Then{
ExitShort("bx1",AtStop,EntryPrice-0.1);
ExitShort("bx2",AtStop,EntryPrice-0.2);
ExitShort("bx3",AtStop,EntryPrice-0.3);
ExitShort("bx4",AtStop,EntryPrice-0.4);
ExitShort("bx5",AtStop,EntryPrice-0.5);
if CurrentContracts == 4 Then
ExitShort("bx11",AtStop,(EntryPrice-0.1)+0.2);
if CurrentContracts == 2 Then
ExitShort("bx21",AtStop,(EntryPrice-0.2)+0.2);
if CurrentContracts == 2 Then
ExitShort("bx31",AtStop,(EntryPrice-0.3)+0.2);
if CurrentContracts == 1 Then
ExitShort("bx41",AtStop,(EntryPrice-0.4)+0.2);
}
SetStopLoss(0.25,PointStop);
즐거우 하루되세요
> 구다이전설 님이 쓴 글입니다.
> 제목 : 문의
> 시가 시장가에
틱차트로
서로 다른 계좌에서
A 계좌는 5계약 매도
B 계좌는 5계약 매수
0.1포인트 이익 나면 한계약씩 식 수익 실현.
0.25 손절
마지막 수익 실현한 계약 보다 0.2 아래로( 매도청산에서는 0.2포인트 위로) 가면
모두 수익 실현 ..
감사합니다