Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? Order your application from a developer!
DCCreation
7
DCCreation 2011.01.09 14:43 

Hi,

I worked on MT4 automatic trading, and I work now on MT5. And, I've a problem with my automatic trading operations.

On MT4, you can open a buying order without closing a previous opened selling order... You must close the order with OrderClose(...).

But, on MT5, if you have an opened selling order, and if you open a buying order, it's automaticly close the previous opened selling order, but I don't want to close it !

I need to open selling and buying orders at same time, without closing some order.

Does anyone can help me please ? What function must I use for that ?


Thanks.

Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Trade Orders in DOM
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Trade Orders in DOM - Documentation on MQL5
Alexander Piechotta
6910
Alexander Piechotta 2011.01.09 16:54  
A Virtual Order Manager to track orders within the position-centric MetaTrader 5 environment
  • 2010.05.13
  • Paul
  • www.mql5.com
This class library can be added to an MetaTrader 5 Expert Advisor to enable it to be written with an order-centric approach broadly similar to MetaTrader 4, in comparison to the position-based approach of MetaTrader 5. It does this by keeping track of virtual orders at the MetaTrader 5 client terminal, while maintaining a protective broker stop for each position for disaster protection.
DCCreation
7
DCCreation 2011.01.11 16:25  

Thank you for all. It's exactly what i needed.

Have a good day,


/
To add comments, please log in or register