커뮤니티
문의드립니다.
2018-02-07 11:48:45
145
글번호 116398
항상 수고가 많으십니다.
청산과 손절에 대한 수식도 가능한지요?
가능하다면
2계약 운용시
1. 매수 or 매도 2계약 진입후 손절10틱
2. 10틱1차청산--->1차청산들어가면 손절을 진입값으로 바꿈
3. 20틱2차청산
수식부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2018-02-07 14:38:15
안녕하세요
예스스탁입니다.
if MarketPosition == 1 then{
ExitLong("bp1",atlimit,EntryPrice+PriceScale*10,"",1,1);
ExitLong("bp2",atlimit,EntryPrice+PriceScale*20,"",1,1);
if CurrentContracts == MaxContracts then
ExitLong("bl2",AtStop,EntryPrice-PriceScale*20);
else
ExitLong("bl1",AtStop,EntryPrice);
}
if MarketPosition == -1 then{
ExitShort("sp1",atlimit,EntryPrice-PriceScale*10,"",1,1);
ExitShort("sp2",atlimit,EntryPrice-PriceScale*20,"",1,1);
if CurrentContracts == MaxContracts then
ExitShort("sl2",AtStop,EntryPrice+PriceScale*20);
else
ExitShort("sl1",AtStop,EntryPrice);
}
즐거운 하루되세요
> 쿠쿠쿠 님이 쓴 글입니다.
> 제목 : 문의드립니다.
> 항상 수고가 많으십니다.
청산과 손절에 대한 수식도 가능한지요?
가능하다면
2계약 운용시
1. 매수 or 매도 2계약 진입후 손절10틱
2. 10틱1차청산--->1차청산들어가면 손절을 진입값으로 바꿈
3. 20틱2차청산
수식부탁드립니다.