커뮤니티
청산식
2009-10-28 23:38:14
614
글번호 25716
옵션 청산식입니다..
1.진입후 손절가는 진입가격에서 -11틱
2.11틱이상 수익일경우 진입가+1틱에 손절가 이동
3.이후부터 손절가 6틱 트레일링스탑
4.옵션만기 2주전부터는
1.진입후 손절가는 진입가격에서 -16틱
2.16틱이상 수익일경우 진입가+1틱에 손절가 이동
3.이후부터 손절가 8틱 트레일링스탑
식부탁합니다.
답변 1
예스스탁 예스스탁 답변
2009-10-29 11:20:26
안녕하세요
예스스탁입니다.
만기2주전 시작날짜를 입력하시기 바랍니다.
input : 날짜(20091102);
if sdate < 날짜 Then{
if MarketPosition == 1 Then{
if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*11 Then
exitlong("bx1",AtStop,EntryPrice-PriceScale*11);
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*11 Then{
exitlong("bx2",AtStop,EntryPrice+PriceScale*1);
ExitLong("bx3",AtStop,highest(H,BarsSinceEntry)-PriceScale*6);
}
}
if MarketPosition == -1 Then{
if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*11 Then
ExitShort("sx1",AtStop,EntryPrice+PriceScale*11);
if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*11 Then{
ExitShort("sx2",AtStop,EntryPrice-PriceScale*1);
ExitShort("sx3",AtStop,Lowest(L,BarsSinceEntry)+PriceScale*6);
}
}
}
Else{
if MarketPosition == 1 Then{
if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*16 Then
exitlong("bbx1",AtStop,EntryPrice-PriceScale*16);
if highest(H,BarsSinceEntry) >= EntryPrice+PriceScale*16 Then{
exitlong("bbx2",AtStop,EntryPrice+PriceScale*1);
ExitLong("bbx3",AtStop,highest(H,BarsSinceEntry)-PriceScale*8);
}
}
if MarketPosition == -1 Then{
if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*16 Then
ExitShort("ssx1",AtStop,EntryPrice+PriceScale*16);
if Lowest(L,BarsSinceEntry) <= EntryPrice-PriceScale*16 Then{
ExitShort("ssx2",AtStop,EntryPrice-PriceScale*1);
ExitShort("ssx3",AtStop,Lowest(L,BarsSinceEntry)+PriceScale*8);
}
}
}
즐거운 하루되세요
> redfox 님이 쓴 글입니다.
> 제목 : 청산식
> 옵션 청산식입니다..
1.진입후 손절가는 진입가격에서 -11틱
2.11틱이상 수익일경우 진입가+1틱에 손절가 이동
3.이후부터 손절가 6틱 트레일링스탑
4.옵션만기 2주전부터는
1.진입후 손절가는 진입가격에서 -16틱
2.16틱이상 수익일경우 진입가+1틱에 손절가 이동
3.이후부터 손절가 8틱 트레일링스탑
식부탁합니다.