커뮤니티

식이 안먹히네요.

프로필 이미지
털보
2009-01-28 17:12:32
717
글번호 19817
답변완료
진입식은 잘 되는데 청산식이 안먹히네요 다시한번 요약하자면요, 추가매수후 마지막 추가진입한 지점에서 +1포 수익이면 전부청산. ***마지막 추가진입가 기준에서 1포수익나면 첫진입가까지 전부 청산입니다 . if crossup(ma(c,5),ma(c,20)) and CurrentEntries == 0 Then buy(); if MarketPosition() == 1 and CurrentEntries < 5 Then{ buy("b",AtLimit,EntryPrice()-(0.2*CurrentEntries),1); } if CurrentEntries == 1 Then exitlong("X1",atlimit,EntryPrice-(0.2*(CurrentEntries-1))+1);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2009-01-28 17:25:24

안녕하세요 예스스탁입니다. 식을 수정했습니다. if crossup(ma(c,5),ma(c,20)) and CurrentEntries == 0 Then buy(); if MarketPosition() == 1 and CurrentEntries < 5 Then{ buy("b",AtLimit,EntryPrice()-(0.2*CurrentEntries),1); } if CurrentEntries == 1 Then exitlong("X1",atlimit,EntryPrice+1); if CurrentEntries == 2 Then exitlong("X2",atlimit,EntryPrice+0.8); if CurrentEntries == 3 Then exitlong("X3",atlimit,EntryPrice+0.6); if CurrentEntries == 4 Then exitlong("X4",atlimit,EntryPrice+0.4); if CurrentEntries == 5 Then exitlong("X5",atlimit,EntryPrice+0.2); 즐거운 하루되세요 > 털보 님이 쓴 글입니다. > 제목 : 식이 안먹히네요. > 진입식은 잘 되는데 청산식이 안먹히네요 다시한번 요약하자면요, 추가매수후 마지막 추가진입한 지점에서 +1포 수익이면 전부청산. ***마지막 추가진입가 기준에서 1포수익나면 첫진입가까지 전부 청산입니다 . if crossup(ma(c,5),ma(c,20)) and CurrentEntries == 0 Then buy(); if MarketPosition() == 1 and CurrentEntries < 5 Then{ buy("b",AtLimit,EntryPrice()-(0.2*CurrentEntries),1); } if CurrentEntries == 1 Then exitlong("X1",atlimit,EntryPrice-(0.2*(CurrentEntries-1))+1);