예스스탁
예스스탁 답변
2020-02-27 14:48:50
안녕하세요
예스스탁입니다.
if MarketPosition == 1 and EntryPrice+PriceScale*up익절1 Then
if문에서 EntryPrice+PriceScale*up익절1는 값입니다. 조건이 아닙니다.
신호타입으로 atlimit을 사용하셨으므로 해당 계산식이 신호가격으로 들어가야 합니다.
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);
즐거운 하루되세요
> 좌오비우오비 님이 쓴 글입니다.
> 제목 : 피라미딩 분할 익절
> input : up익절1(150),up익절2(200);
if MarketPosition == 1 and EntryPrice+PriceScale*up익절1 Then
exitlong("bx1",AtLimit,def,"",Floor(MaxContracts*0.50),1);
if MarketPosition == 1 and EntryPrice+PriceScale*up익절2 Then
exitlong("bx2",AtLimit);
input : dn익절1(150),dn익절2(200);
if MarketPosition == -1 and EntryPrice-pricescale*dn익절1 Then
exitshort("sx1",AtLimit,def,"",Floor(MaxContracts*0.50),1);
if MarketPosition == -1 and EntryPrice-pricescale*dn익절2 Then
exitshort("sx2",AtLimit);
1.피라미딩 2개 되었을 때 분할익절 수식입니다. 맞는지요?
2.맥스계약비율을 맥스계약수량으로 변경하는 수식도 요청합니다.