double lot trading

 

is there a function/program available to do the following:

Open an order with 2 lots, where one closes at Target-1, and the other closes at Target-2

 

If you want two TakeProfits, you must open two orders with a different TP on each.

You can partially close an order, but that doesn't use TakeProfit.

 

Somehow like this maybe?

if (Bid-OrderOpenPrice()> TakeProfitLow*Point && OrderLots()==2&&TakeProfitLow>0)
{
ticket=OrderClose(OrderTicket(),1,Bid,0,CLR_NONE);
if(ticket<0)Print("OrderSend failed with error #",GetLastError());
} //if (OrderOpenPrice..

When the Price is x Points over the OpenPrice and the Lots are still the same (f.e. 2) then close 1 Lot.

brgds

 
Looks like you have the right idea.