커뮤니티

피라미딩 진입제한

프로필 이미지
tao
2012-04-17 10:27:50
274
글번호 50120
답변완료
아래 시스템에서 피라미딩진입을 CurrentEntries<=1 로 1회로 제한하려하는데 실제로는 2회이상 진입하게되네요. 점검 요청드림니다.(데이트레이딩은 아니고 몇일간의 포지션트레이딩입니다) If MarketPosition==0 Then{ If C<1.5 and C>1.0 Then Sell("s"); } If MarketPosition= -1 And CurrentEntries<=1 Then{ If C<EntryPrice*0.7 Then Sell("p"); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2012-04-17 12:52:40

안녕하세요 예스스탁입니다. 분할청산을 하시는 경우인것 같습니다. 아래와 같이 작성하시면 됩니다. If MarketPosition==0 Then{ If C<1.5 and C>1.0 Then Sell("s"); } If MarketPosition == -1 Then{ if CurrentContracts < CurrentContracts[1] Then Condition1 = true; If Condition1 == false and CurrentEntries == 1 and C<EntryPrice*0.7 Then Sell("p"); } 즐거운 하루되세요 > tao 님이 쓴 글입니다. > 제목 : 피라미딩 진입제한 > 아래 시스템에서 피라미딩진입을 CurrentEntries<=1 로 1회로 제한하려하는데 실제로는 2회이상 진입하게되네요. 점검 요청드림니다.(데이트레이딩은 아니고 몇일간의 포지션트레이딩입니다) If MarketPosition==0 Then{ If C<1.5 and C>1.0 Then Sell("s"); } If MarketPosition= -1 And CurrentEntries<=1 Then{ If C<EntryPrice*0.7 Then Sell("p"); }