Как повысить позицию в Хеджирование счете?

 

Я не скорость России, этот текст transated с помощью Google. Я надеюсь, что это имеет смысл. Извините за это, но я в отчаянии и не может получить ответы на английском форуме.

Как повысить позицию в счет Хеджирование (без создания новой позиции)?

void OnTick()
  {
   if(mode!=ACCOUNT_MARGIN_MODE_RETAIL_HEDGING)
     {
      Print("The account must be Hedging!");
      ExpertRemove();
     }

   MqlTradeRequest request={0};
   request.action=TRADE_ACTION_DEAL;
   request.symbol=_Symbol;
   request.type_filling=ORDER_FILLING_FOK;

   double volume=SymbolInfoDouble(_Symbol,SYMBOL_VOLUME_MIN);

   MqlTradeResult result;

// Open a 2x volume position
   request.volume=volume*2;
   request.type=ORDER_TYPE_BUY;
   OrderSend(request,result);

// Get the position Id [OK]
   PositionSelect(_Symbol); // I know that I should select it by ticket, but for this example it's enough
   request.position=PositionGetInteger(POSITION_TICKET);

// Reduce the position to 1 [OK]
   Print("### Selling "+(volume));
   request.volume=volume;
   request.type=ORDER_TYPE_SELL;
   OrderSend(request,result);

// Reselect position [OK]
   PositionSelect(_Symbol); // I know that I should select it by ticket, but for this example it's enough
   request.position=PositionGetInteger(POSITION_TICKET);

// Increase the position back to 2 [HERE'S THE ERROR!!!]
   Print("### Buying "+(volume));
   request.volume=volume;
   request.type=ORDER_TYPE_BUY;
   OrderSend(request,result);

   ExpertRemove();
  }

 

 огромное спасибо

 
Henrique Vilela:

Как повысить позицию в счет Хеджирование (без создания новой позиции)?

Никак.
 
Henrique Vilela:

Как повысить позицию в счет Хеджирование (без создания новой позиции)?

огромное спасибо

if you work with hedge account, it is not possible.
 
close order and open new from bigger of lot
 
Andrey Dik:
close order and open new from bigger of lot
In that case he will pay additional spread for closed and reopened one half of lot.
 
Я хотел бы, чтобы держать его организовал с одной позиции на Expert Advisor.
Но Хорошо, спасибо за ваше время.
 
Henrique Vilela:
Я хотел бы, чтобы держать его организовал с одной позиции на Expert Advisor.
Но Хорошо, спасибо за ваше время.
You have to open netting account.
 
Alexey Volchanskiy:
You have to open netting account.
I'm migrating from a netting account to an heading account just because I'm trying to keep one separated position for each robot in the same symbol, so a netting account really can't help me here.
 
Henrique Vilela:
I'm migrating from a netting account to an heading account just because I'm trying to keep one separated position for each robot in the same symbol, so a netting account really can't help me here.
The only difference between hedging and netting accounts is that you can't increase or reverse a position in a hedging account. ) You can only open another separate one.
 
Henrique Vilela:
I'm migrating from a netting account to an heading account just because I'm trying to keep one separated position for each robot in the same symbol, so a netting account really can't help me here.
It's my opiniont about netting. If u use foreх, please use heding. My rebater that I'm developing now use only heading. 
Причина обращения: