커뮤니티

수식문의드립니다.

프로필 이미지
dandy
2017-02-01 20:43:51
90
글번호 106420
답변완료
안녕하세요. 연결선물 당일청산 피라미딩 시스템에서 누적진입횟수 5회로 총진입수량 15EA 일경우 1차진입->3EA, 2차진입->2EA, 3차진입->1EA, 4차진입->4EA, 5차진입->5EA 진입수식으로 변경 요청 드립니다. 감사합니다. #피라미딩진입수식 Input : i증감(0.3),진입수량(1),누적진입횟수(5); if MarketPosition == 1 and MaxEntries < 누적진입횟수 and Bxcond == false Then Buy("PB",AtStop,LatestEntryPrice(0)+i증감,진입수량); if MarketPosition == -1 and MaxEntries < 누적진입횟수 and SxCond == false Then sell("PS",AtStop,LatestEntryPrice(0)-i증감,진입수량);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-02-02 09:37:44

안녕하세요 예스스탁입니다. Input : i증감(0.3),누적진입횟수(5); var : 진입수량(0); if MarketPosition <= 0 and 매수조건 Then{ 진입수량 = 3; buy("b",OnClose,def,진입수량); } if MarketPosition == 1 and MaxEntries < 누적진입횟수 and Bxcond == false Then{ if MaxEntries == 1 then 진입수량 = 2; if MaxEntries == 2 then 진입수량 = 1; if MaxEntries == 1 then 진입수량 = 4; if MaxEntries == 1 then 진입수량 = 5; Buy("PB",AtStop,LatestEntryPrice(0)+i증감,진입수량); } if MarketPosition >= 0 and 매도조건 Then{ 진입수량 = 3; sell("s",OnClose,def,진입수량); } if MarketPosition == -1 and MaxEntries < 누적진입횟수 and SxCond == false Then{ if MaxEntries == 1 then 진입수량 = 2; if MaxEntries == 2 then 진입수량 = 1; if MaxEntries == 1 then 진입수량 = 4; if MaxEntries == 1 then 진입수량 = 5; sell("PS",AtStop,LatestEntryPrice(0)-i증감,진입수량); } 즐거운 하루되세요 > dandy 님이 쓴 글입니다. > 제목 : 수식문의드립니다. > 안녕하세요. 연결선물 당일청산 피라미딩 시스템에서 누적진입횟수 5회로 총진입수량 15EA 일경우 1차진입->3EA, 2차진입->2EA, 3차진입->1EA, 4차진입->4EA, 5차진입->5EA 진입수식으로 변경 요청 드립니다. 감사합니다. #피라미딩진입수식 Input : i증감(0.3),진입수량(1),누적진입횟수(5); if MarketPosition == 1 and MaxEntries < 누적진입횟수 and Bxcond == false Then Buy("PB",AtStop,LatestEntryPrice(0)+i증감,진입수량); if MarketPosition == -1 and MaxEntries < 누적진입횟수 and SxCond == false Then sell("PS",AtStop,LatestEntryPrice(0)-i증감,진입수량);