커뮤니티

문의

프로필 이미지
목마와숙녀
2019-03-30 05:31:34
333
글번호 127494
답변완료
빠른 답변 고맙습니다. 답변1과 답변3은 시뮬레이션이 잘 됩니다. 그런데 답변 2가 시뮬레이션이 되지 않습니다. 다시 한번 부탁드립니다. 매월 1일부터 옵션옵션만기일 전날까지 거래하는 수식 var : nday(0),week(0),Xdate(0); nday = date - int(date/100)*100; week = DayOfWeek(date); if nday >= 8 and nday <= 14 and week == 4 then Xdate = sdate; if nday >= 1 and sdate < Xdate Then { 진입청산수식 } *********************************************************************************** 안녕하세요 예스스탁입니다. 1 var : nday(0),week(0),Xdate(0); nday = date - int(date/100)*100; week = DayOfWeek(date); if nday >= 8 and nday <= 14 and week == 4 then Xdate = sdate; if sdate == Xdate then { 진입청산수식 } 2 var : nday(0),week(0),Xdate(0); nday = date - int(date/100)*100; week = DayOfWeek(date); if nday >= 8 and nday <= 14 and week == 4 then Xdate = sdate; if nday >= 1 and sdate < Xdate Then { 진입청산수식 } 3 var : nday(0),week(0),month(0),Xdate(0),XMonth(0); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; week = DayOfWeek(date); if nday >= 8 and nday <= 14 and week == 4 then { Xdate = sdate; XMonth = Month; } if sdate > Xdate and month == XMonth Then { 진입청산수식 } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 최근 3년간 시뮬레이션을 위해 기간설정 수식을 부탁드립니다. 1. 매월 옵션만기일만 거래하는 수식 2. 매월 1일부터 옵션옵션만기일 전날까지 거래하는 수식 3. 옵션만기일 다음 날부터 매월말까지 거래하는 수식 항상 고맙습니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-04-01 08:42:42

안녕하세요 예스스탁입니다. 식을 수정했습니다. var : nday(0),week(0),Xdate(0),entry(false); nday = date - int(date/100)*100; week = DayOfWeek(date); if bdate > bdate[1]+30 Then entry = true; if nday >= 8 and nday <= 14 and week == 4 then { entry = false; } if entry == true Then { 진입청산수식 } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 빠른 답변 고맙습니다. 답변1과 답변3은 시뮬레이션이 잘 됩니다. 그런데 답변 2가 시뮬레이션이 되지 않습니다. 다시 한번 부탁드립니다. 매월 1일부터 옵션옵션만기일 전날까지 거래하는 수식 var : nday(0),week(0),Xdate(0); nday = date - int(date/100)*100; week = DayOfWeek(date); if nday >= 8 and nday <= 14 and week == 4 then Xdate = sdate; if nday >= 1 and sdate < Xdate Then { 진입청산수식 } *********************************************************************************** 안녕하세요 예스스탁입니다. 1 var : nday(0),week(0),Xdate(0); nday = date - int(date/100)*100; week = DayOfWeek(date); if nday >= 8 and nday <= 14 and week == 4 then Xdate = sdate; if sdate == Xdate then { 진입청산수식 } 2 var : nday(0),week(0),Xdate(0); nday = date - int(date/100)*100; week = DayOfWeek(date); if nday >= 8 and nday <= 14 and week == 4 then Xdate = sdate; if nday >= 1 and sdate < Xdate Then { 진입청산수식 } 3 var : nday(0),week(0),month(0),Xdate(0),XMonth(0); month = int(date/100)-int(date/10000)*100; nday = date - int(date/100)*100; week = DayOfWeek(date); if nday >= 8 and nday <= 14 and week == 4 then { Xdate = sdate; XMonth = Month; } if sdate > Xdate and month == XMonth Then { 진입청산수식 } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 최근 3년간 시뮬레이션을 위해 기간설정 수식을 부탁드립니다. 1. 매월 옵션만기일만 거래하는 수식 2. 매월 1일부터 옵션옵션만기일 전날까지 거래하는 수식 3. 옵션만기일 다음 날부터 매월말까지 거래하는 수식 항상 고맙습니다.