Multiple positions

 
Please where can I get a robot or a script that will open multiple positions based on the position I open myself. Say I open a position with 1lot and fixed stop loss and take profit levels, it just takes these parameters and open the same position on the same pair like 10 or more times.
 
Feranmi Omokayode:
Please where can I get a robot or a script that will open multiple positions based on the position I open myself. Say I open a position with 1lot and fixed stop loss and take profit levels, it just takes these parameters and open the same position on the same pair like 10 or more times.

Have a search in the Market, I believe you will find a utility or expert that can help you with that.

 
Feranmi Omokayode:
Please where can I get a robot or a script that will open multiple positions based on the position I open myself. Say I open a position with 1lot and fixed stop loss and take profit levels, it just takes these parameters and open the same position on the same pair like 10 or more times.
// Repeater

sinput int AmountPositions = 3;
input string OrderComment = "";

void OnTradeTransaction( const MqlTradeTransaction &Trans, const MqlTradeRequest &Request, const MqlTradeResult &Result )
{
  if ((Trans.type == TRADE_TRANSACTION_REQUEST) && (!Request.position) && (Request.comment == OrderComment))
  {
    MqlTradeResult MyResult;
    MqlTradeRequest MyRequest = Request;        
    
    bool Res = true;
    
    for (int i = 1; Res && (i <= AmountPositions); i++)
    {
      MyRequest.comment = Request.comment + "_" + (string)i;;

      Res = OrderSendAsync(MyRequest, MyResult);
    }
  }
}
 
Eleni Anna Branou:

Have a search in the Market, I believe you will find a utility or expert that can help you with that.

Thanks
 
fxsaber:
Does the above string work independently or needs to be combined with another code
 
Feranmi Omokayode:
Does the above string work independently or needs to be combined with another code

Both options can be used.

 
I'm looking forward to work with you Sir
 
fxsaber:

Both options can be used.

Thanks will try it.
Reason: