커뮤니티

수식 문의

프로필 이미지
에구머니
2014-03-20 17:00:18
149
글번호 73504
답변완료
안녕하세요? 시스템 수식 문의 드립니다. 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2014-03-17 10:46:05

안녕하세요 예스스탁입니다. input : n1(1),n2(1),n3(1),aa(5),TP1(10),Sl1(10),m2(10),K2(10); var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if sdate ==EntryDate(cnt) Then count = count+1; } if count == 0 Then{ if MarketPosition == 0 and 매수조건 Then buy("b",AtStop,VV+PriceScale*aa,n1); if MarketPosition == 0 and 매도조건 Then Sell("s",AtStop,VV-PriceScale*aa,n1); } if MarketPosition == 1 Then{ if MaxEntries == 1 Then{ ExitLong("bx1",Atlimit,EntryPrice+TP1); Buy("B2",AtLimit,EntryPrice-SL1,n2); } if MaxEntries == 2 Then{ ExitLong("bx2",Atlimit,EntryPrice+m2); Buy("B3",AtLimit,(EntryPrice-SL1)-k2,n3); } } if MarketPosition == -1 Then{ if MaxEntries == 1 Then{ ExitShort("sx1",Atlimit,EntryPrice-TP1); Sell("S2",AtLimit,EntryPrice+SL1,n2); } if MaxEntries == 2 Then{ ExitShort("sx2",Atlimit,EntryPrice-m2); sell("S3",AtLimit,(EntryPrice+SL1)+k2,n3); } } 즐거운 하루되세요 > 에구머니 님이 쓴 글입니다. > 제목 : 수식 문의 > 안녕하세요? 시스템 수식 문의 드립니다. 감사합니다.