커뮤니티

옵션만기 익일 진입식 문의

프로필 이미지
2승3패
2005-12-23 19:33:56
1384
글번호 9025
답변완료
수고하십니다. 옵션만기 다음날 종가에 진입하고, 익월 옵션만기일 종가에 청산하는 식을 부탁드립니다. 답변주심에 미리 감사드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2005-12-26 13:40:53

안녕하세요 예스스탁입니다. 문의하신 식은 다음과 같습니다. 1.분봉용 var : daily(0),weekday(0),expiration(0),expiration1(0); daily = date - int(date/100)*100; weekday = DayOfWeek(date); if daily >= 8 and daily <= 14 and weekday == 4 then expiration = 1; else expiration = 0; if date != date[1] then{ expiration1 = expiration[1]; } if expiration == 0 and expiration1 == 1 and stime == 145000 then buy("매수"); if expiration == 1 and stime == 143000 then exitlong("청산"); 2.일봉용 var : daily(0),weekday(0),expiration(0); daily = date - int(date/100)*100; weekday = DayOfWeek(date); if daily >= 8 and daily <= 14 and weekday == 4 then expiration = 1; else expiration = 0; if expiration == 0 and expiration[1] == 1 then buy(); if expiration == 1 then exitlong(); 즐거운 하루되세요 > 2승3패 님이 쓴 글입니다. > 제목 : 옵션만기 익일 진입식 문의 > 수고하십니다. 옵션만기 다음날 종가에 진입하고, 익월 옵션만기일 종가에 청산하는 식을 부탁드립니다. 답변주심에 미리 감사드립니다.