커뮤니티

수식문의

프로필 이미지
민선생1
2013-12-14 01:05:44
151
글번호 70466
답변완료
안녕하세요 늘 ~ 수고가많으십니다 아래식에서 매수진입후 손절이되면 다음날 매도로 진입하게 해주시구요 진입후 익절이면 계속같은 방향으로 진입하고 손절이면 반대로 진입합니다 그리고 손절이면 다음날에 2배의 수량으로 진입하는데요 최대 8계약까지만 한정되게 해주십시요 감사합니다 if MarketPosition == 0 and stime == 151500 Then buy("b",AtMarket,def,iff(PositionProfit(1) < 0,MaxContracts(1)*2,1)); SetStopLoss(PriceScale*15,PointStop); SetStopProfittarget(PriceScale*20,PointStop); SetStopEndofday(150000);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-12-16 11:03:54

안녕하세요 예스스탁입니다. 청산이 익절,손절외에 당일청산도 있습니다. 손실이면 반대방향으로 진입 이익이면 동일방향으로 진입으로 작성했습니다. 반대방향은 최대 8게약까지로 지정했습니다. #전체 첫진입 if MarketPosition == 0 and stime == 151500 and TotalTrades == 0 Then buy("b1",AtMarket,def,1); #두번째 진입부터 if MarketPosition == 0 and stime == 151500 and TotalTrades > 0 Then{ if MarketPosition(1) == 1 Then{ if PositionProfit(1) > 0 Then buy("bb",AtMarket,def,1); Else sell("BS",AtMarket,def,min(MaxContracts(1)*2,8)); } if MarketPosition(1) == -1 Then{ if PositionProfit(1) > 0 Then sell("sS",AtMarket,def,1); Else Buy("SB",AtMarket,def,min(MaxContracts(1)*2,8)); } } SetStopLoss(PriceScale*15,PointStop); SetStopProfittarget(PriceScale*20,PointStop); SetStopEndofday(150000); 즐거운 하루되세요 > 민선생1 님이 쓴 글입니다. > 제목 : 수식문의 > 안녕하세요 늘 ~ 수고가많으십니다 아래식에서 매수진입후 손절이되면 다음날 매도로 진입하게 해주시구요 진입후 익절이면 계속같은 방향으로 진입하고 손절이면 반대로 진입합니다 그리고 손절이면 다음날에 2배의 수량으로 진입하는데요 최대 8계약까지만 한정되게 해주십시요 감사합니다 if MarketPosition == 0 and stime == 151500 Then buy("b",AtMarket,def,iff(PositionProfit(1) < 0,MaxContracts(1)*2,1)); SetStopLoss(PriceScale*15,PointStop); SetStopProfittarget(PriceScale*20,PointStop); SetStopEndofday(150000);