커뮤니티

수식 검토 부탁드립니다.

프로필 이미지
쌀사비팔
2009-12-29 10:41:37
672
글번호 27057
답변완료
아래 수식 확인 좀 해주십시오. 작동이 안됩니다. 감사합니다. ---------------------------------------- 현물, 분봉 적용 예정입니다. *매수조건 -당일 시가에 1주 매수(최초매수) -최초 매수가 대비 1%하락시 1주 추가 매수 -최초 매수가 대비 2%하락시 2주 추가 매수 -최초 매수가 대비 3%하락시 3주 추가 매수 -최초 매수가 대비 4%하락시 5주 추가 매수 *매수 청산 조건 -당일 종가에 매도(14시 48분) if dayindex == 0 and MarketPosition == 0 Then buy("b1",OnClose,def,1); if MarketPosition == 1 and CurrentContracts == 1 and stime < 150000 Then buy("b2",AtLimit,EntryPrice*0.99,1); if MarketPosition == 1 and CurrentContracts == 2 and stime < 150000 Then buy("b3",AtLimit,EntryPrice*0.98,2); if MarketPosition == 1 and CurrentContracts == 3 and stime < 150000 Then buy("b4",AtLimit,EntryPrice*0.97,3); if MarketPosition == 1 and CurrentContracts == 4 and stime < 150000 Then buy("b5",AtLimit,EntryPrice*0.96,4); SetStopEndofday(1500000);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2009-12-29 17:44:37

안녕하세요 예스스탁입니다. if dayindex == 0 and MarketPosition == 0 Then buy("b1",OnClose,def,1); if MarketPosition == 1 and CurrentContracts == 1 and stime < 150000 Then buy("b2",AtLimit,EntryPrice*0.99,1); if MarketPosition == 1 and CurrentContracts == 2 and stime < 150000 Then buy("b3",AtLimit,EntryPrice*0.98,2); if MarketPosition == 1 and CurrentContracts == 3 and stime < 150000 Then buy("b4",AtLimit,EntryPrice*0.97,3); if MarketPosition == 1 and CurrentContracts == 4 and stime < 150000 Then buy("b5",AtLimit,EntryPrice*0.96,4); SetStopEndofday(150000); 시스템 트레이딩 설정창 피라미딩 탭에서 다른진입신호만 허용으로 설정하시면 됩니다. 당일청산시간이 1500000으로 설정되어 있어 150000으로 수정했습니다. 삼성물산에 테스트 결과 정상적으로 신호 발생합니다. 즐거운 하루되세요 > 쌀사비팔 님이 쓴 글입니다. > 제목 : 수식 검토 부탁드립니다. > 아래 수식 확인 좀 해주십시오. 작동이 안됩니다. 감사합니다. ---------------------------------------- 현물, 분봉 적용 예정입니다. *매수조건 -당일 시가에 1주 매수(최초매수) -최초 매수가 대비 1%하락시 1주 추가 매수 -최초 매수가 대비 2%하락시 2주 추가 매수 -최초 매수가 대비 3%하락시 3주 추가 매수 -최초 매수가 대비 4%하락시 5주 추가 매수 *매수 청산 조건 -당일 종가에 매도(14시 48분) if dayindex == 0 and MarketPosition == 0 Then buy("b1",OnClose,def,1); if MarketPosition == 1 and CurrentContracts == 1 and stime < 150000 Then buy("b2",AtLimit,EntryPrice*0.99,1); if MarketPosition == 1 and CurrentContracts == 2 and stime < 150000 Then buy("b3",AtLimit,EntryPrice*0.98,2); if MarketPosition == 1 and CurrentContracts == 3 and stime < 150000 Then buy("b4",AtLimit,EntryPrice*0.97,3); if MarketPosition == 1 and CurrentContracts == 4 and stime < 150000 Then buy("b5",AtLimit,EntryPrice*0.96,4); SetStopEndofday(1500000);