커뮤니티

문의 드립니다.~~~~

프로필 이미지
예스요
2023-09-17 21:11:54
776
글번호 172523
답변완료
수고 많으십니다~~ 아래식으로 cme 종목을 거래할 때 한국시간 오전 9시에서 11시 오후 3시에서 6시 오후 10시에서 오전 2시 사이에서만 진입을 허용하고 잔고가 있다면 오전 4시에 일괄 청산하는 식을 추가하고 싶습니다. 부탁드립니다. input : N(100); input : 익절틱수(100),손절틱수(100); if C > O Then Sell("s",AtLimit,c+PriceScale*n); if C < O Then Buy("b",AtLimit,c-PriceScale*n); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-09-18 15:31:50

안녕하세요 예스스탁입니다. var : Tcond(False); if sDate != sDate[1] Then SetStopEndofday(040000); if Bdate != Bdate[1] Then SetStopEndofday(0); input : N(100); input : 익절틱수(100),손절틱수(100); if (sTime >= 090000 and sTime < 110000) or (sTime >= 150000 and sTime < 180000) or (sTime >= 220000 or sTime < 020000) Then { if C > O Then Sell("s",AtLimit,c+PriceScale*n); if C < O Then Buy("b",AtLimit,c-PriceScale*n); } SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop); 즐거운 하루되세요 > 예스요 님이 쓴 글입니다. > 제목 : 문의 드립니다.~~~~ > 수고 많으십니다~~ 아래식으로 cme 종목을 거래할 때 한국시간 오전 9시에서 11시 오후 3시에서 6시 오후 10시에서 오전 2시 사이에서만 진입을 허용하고 잔고가 있다면 오전 4시에 일괄 청산하는 식을 추가하고 싶습니다. 부탁드립니다. input : N(100); input : 익절틱수(100),손절틱수(100); if C > O Then Sell("s",AtLimit,c+PriceScale*n); if C < O Then Buy("b",AtLimit,c-PriceScale*n); SetStopProfittarget(PriceScale*익절틱수,PointStop); SetStopLoss(PriceScale*손절틱수,PointStop);