커뮤니티

시스템식 문의

프로필 이미지
에구머니
2014-06-04 17:19:57
174
글번호 75591
답변완료
시스템식 부탁드립니다. 늘 감사한 마음입니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-06-05 13:58:30

안녕하세요 예스스탁입니다. $로는 가능하지 않습니다. 모드 포인트 단위입니다. 1. 일봉에서 해당 내용 구현되지 않습니다. 시간청산은 분봉이하 에서만 구현됩니다. 2. input : n1(50),n2(100),n3(200); var : pip(0); Pip = PriceScale*10; if stime >= 070000 or stime < 060000 Then{ if MarketPosition == 0 and 매수조건 Then buy("b",AtLimit,dayclose(1)-Pip*n1); if MarketPosition == 0 and 매도조건 Then sell("s",AtLimit,dayclose(1)+Pip*n1); } SetStopLoss(Pip*n2,PointStop); SetStopProfittarget(Pip*n3,PointStop); if DayOfWeek(sdate) != 6 and stime == 060000 Then{ ExitLong(); ExitShort(); } if DayOfWeek(sdate) == 6 and stime == 053000 Then{ ExitLong(); ExitShort(); } 2. input : n1(30),n2(100),n3(50),n4(80),n5(50),k1(1),k2(1); var : pip(0); Pip = PriceScale*10; if stime >= 070000 or stime < 060000 Then{ if MarketPosition == 0 and 매수조건 Then buy("b",AtLimit,vv-Pip*n1,k1); if MarketPosition == 0 and 매도조건 Then sell("s",AtLimit,vv+Pip*n1,k1); } if MarketPosition == 1 Then{ if MaxEntries == 1 Then buy("bb",atlimit,EntryPrice-Pip*n3,k2); if MaxEntries == 1 Then{ ExitLong("bP1",Atlimit,LatestEntryPrice(0)+Pip*n2); } if MaxEntries == 2 Then{ ExitLong("bP2",Atlimit,LatestEntryPrice(0)+Pip*n4); ExitLong("bL2",Atlimit,LatestEntryPrice(0)-Pip*n5); } } if MarketPosition == -1 Then{ if MaxEntries == 1 Then{ sell("ss",atlimit,EntryPrice+Pip*n3,k2); ExitShort("sP1",Atlimit,LatestEntryPrice(0)-Pip*n2); } if MaxEntries == 2 Then{ ExitShort("sP2",Atlimit,LatestEntryPrice(0)-Pip*n4); ExitShort("sL2",Atlimit,LatestEntryPrice(0)+Pip*n5); } } 즐거운 하루되세요 > 에구머니 님이 쓴 글입니다. > 제목 : 시스템식 문의 > 시스템식 부탁드립니다. 늘 감사한 마음입니다.