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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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