커뮤니티

검토 부탁드립니다.

프로필 이미지
소드노
2023-08-16 08:23:02
1336
글번호 171492
답변완료
1. 매달 20~31일 사이에 매수 진입 (20~31일 변수로) 2. 달이 변경될때 매도진입으로 전환 3. 매달 1~5일 사이 매도청산 (1~5일 변수로) 예시) 이지랭귀지에서 사용하던 변수있데 예스에 적용 부탁드립니다. if dayofmonth(date)>= 변수 then 매수진입 if month(date)<>month(date[1]) then 매도진입 If dayofmonth(date)> 변수 then 매도청산
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-08-17 14:42:52

안녕하세요 예스스탁입니다. input : BuyStart(20),BuyEnd(31); input : SXStart(20),SXEnd(31); var : nday(0); nday = bdate%100; if nday >= BuyStart and nday <= BuyEnd Then { Buy(); } if Bdate > Bdate[1]+30 Then Sell(); if nday >= SXStart and nday <= SXEnd Then { ExitLong(); } 즐거운 하루되세요 > 소드노 님이 쓴 글입니다. > 제목 : 검토 부탁드립니다. > 1. 매달 20~31일 사이에 매수 진입 (20~31일 변수로) 2. 달이 변경될때 매도진입으로 전환 3. 매달 1~5일 사이 매도청산 (1~5일 변수로) 예시) 이지랭귀지에서 사용하던 변수있데 예스에 적용 부탁드립니다. if dayofmonth(date)>= 변수 then 매수진입 if month(date)<>month(date[1]) then 매도진입 If dayofmonth(date)> 변수 then 매도청산