커뮤니티

문의

프로필 이미지
좌오비우오비
2020-02-28 14:37:36
337
글번호 136454
답변완료
아래 수식이 피라미딩이 최대 2개가 되어 있을 때 최대 진입수량의 50%를 익절1 나머지를 익절2 하는 수식이라면 요청드린 내용은 피라미딩이 최대 2개가 되어 있을 때 최대 진입수량의 1개를 익절1 나머지를 익절2 하는 수식을 요청드립니다. (비율이 아니라 수량으로 정리) ************************************************************************************* input : up익절1(150),up익절2(200); if MarketPosition == 1 Then exitlong("bx1",AtLimit,EntryPrice+PriceScale*up익절1,"",Floor(MaxContracts*0.50),1); if MarketPosition == 1 Then exitlong("bx2",AtLimit,EntryPrice+PriceScale*up익절2); input : dn익절1(150),dn익절2(200); if MarketPosition == -1 Then exitshort("sx1",AtLimit,EntryPrice-pricescale*dn익절1,"",Floor(MaxContracts*0.50),1); if MarketPosition == -1 Then exitshort("sx2",AtLimit,EntryPrice-pricescale*dn익절2);
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-03-02 12:39:54

안녕하세요 예스스탁입니다. input : up익절1(150),up익절2(200); if MarketPosition == 1 Then exitlong("bx1",AtLimit,EntryPrice+PriceScale*up익절1,"",1,1); if MarketPosition == 1 Then exitlong("bx2",AtLimit,EntryPrice+PriceScale*up익절2); input : dn익절1(150),dn익절2(200); if MarketPosition == -1 Then exitshort("sx1",AtLimit,EntryPrice-pricescale*dn익절1,"",1,1); if MarketPosition == -1 Then exitshort("sx2",AtLimit,EntryPrice-pricescale*dn익절2); 즐거운 하루되세요 > 좌오비우오비 님이 쓴 글입니다. > 제목 : 문의 > 아래 수식이 피라미딩이 최대 2개가 되어 있을 때 최대 진입수량의 50%를 익절1 나머지를 익절2 하는 수식이라면 요청드린 내용은 피라미딩이 최대 2개가 되어 있을 때 최대 진입수량의 1개를 익절1 나머지를 익절2 하는 수식을 요청드립니다. (비율이 아니라 수량으로 정리) ************************************************************************************* input : up익절1(150),up익절2(200); if MarketPosition == 1 Then exitlong("bx1",AtLimit,EntryPrice+PriceScale*up익절1,"",Floor(MaxContracts*0.50),1); if MarketPosition == 1 Then exitlong("bx2",AtLimit,EntryPrice+PriceScale*up익절2); input : dn익절1(150),dn익절2(200); if MarketPosition == -1 Then exitshort("sx1",AtLimit,EntryPrice-pricescale*dn익절1,"",Floor(MaxContracts*0.50),1); if MarketPosition == -1 Then exitshort("sx2",AtLimit,EntryPrice-pricescale*dn익절2);