커뮤니티

시스템식 정정

프로필 이미지
에구머니
2019-05-15 01:28:10
183
글번호 128677
답변완료
안녕하세요? 시스템식 오류 수정과, 한가지 추가 사항 부탁드립니다. 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-05-15 14:49:29

안녕하세요 예스스탁입니다. input : kri(3); var : SSS(0); if dayindex == 0 Then sss = 1; if dayindex == 1 Then sss = 1; if dayindex == 2 Then sss = 2; if dayindex == 3 Then sss = 5; if dayindex == 4 Then sss = 4; if dayindex == 5 Then sss = 3; if dayindex == 6 Then sss = 2; if dayindex == 7 Then sss = 0; if dayindex == 8 Then sss = -1; if dayindex == 9 Then sss = -5; if dayindex == 10 Then sss = -7; if dayindex == 11 Then sss = -10; if SSS >= 0 Then { if MarketPosition == 0 and abs(SSS) >= kri Then buy("b1",OnClose,def,abs(SSS)); if MarketPosition == -1 and (abs(SSS)+CurrentContracts) >= kri Then buy("b2",OnClose,def,abs(SSS)); if MarketPosition == 1 then { if abs(SSS) >= CurrentContracts+kri Then buy("bb",OnClose,def,abs(SSS)-CurrentContracts); if abs(SSS) <= CurrentContracts-kri Then { ExitLong("bx",OnClose,def,"",CurrentContracts-abs(SSS),2); } } } if SSS <= 0 Then { if MarketPosition == 0 and abs(SSS) >= kri Then sell("s1",OnClose,def,abs(SSS)); if MarketPosition == 1 and (abs(SSS)+CurrentContracts) >= kri Then sell("s2",OnClose,def,abs(SSS)); if MarketPosition == -1 then { if abs(SSS) >= CurrentContracts+kri Then sell("ss",OnClose,def,abs(SSS)-CurrentContracts); if abs(SSS) <= CurrentContracts-kri Then { ExitShort("sx",OnClose,def,"",abs(abs(SSS)-CurrentContracts),2); } } } SetStopEndofday(144000); 즐거운 하루되세요 > 에구머니 님이 쓴 글입니다. > 제목 : 시스템식 정정 > 안녕하세요? 시스템식 오류 수정과, 한가지 추가 사항 부탁드립니다. 감사합니다.