This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

Possible to have OrderSend several lots with different takeprofits?


Back to topics list
avatar
85
bubo 2007.04.08 11:51 
I want to open several lots at the same time in an EA, but each with a different takeprofit value.

I had problems doing so and read in the forum that others have experienced that only one OrderSend will be processed at the time.

I don't see how i can split orders later and modify the takeprofits of some of these lots. I only know how to close a portion of the order upon a condition, and then modify the remainder. But I don't want to do that, because I need a takeprofit to harvest accurate price targets (I use bar by bar processing particulalry for backtesting). If I close upon reaching a condition, the price will have slipped by the time I can modify.

Does anybody know how to create several lots with different takeprofits?

avatar
4464
Slawa 2007.04.09 12:00 
With consecutive orders only
avatar
85
bubo 2007.04.12 20:46 
Thank you Slawa, this seems to work
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets