Download MetaTrader 5

Opening Multiple Trades

To add comments, please log in or register
Sila Obegi
112
Sila Obegi  
Please help me write the simplest code that when my signal is triggered it opens one market order and four other pending orders at an interval of 25 pips at the same time. The target for all the five orders is 50 pips from the entry price. No stop loss for all the orders.
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
Simon Gniadkowski
Moderator
18025
Simon Gniadkowski  
Silah:
Please help me write the simplest code that when my signal is triggered it opens one market order and four other pending orders at an interval of 25 pips at the same time. The target for all the five orders is 50 pips from the entry price. No stop loss for all the orders.
Where are you stuck ?  
Sila Obegi
112
Sila Obegi  
RaptorUK:
Where are you stuck ?  
Already solved the problem. Thank you though. Had entered the wrong parameters in OrderSend()
Simon Gniadkowski
Moderator
18025
Simon Gniadkowski  
Silah:
Already solved the problem. Thank you though. Had entered the wrong parameters in OrderSend()
Do not double post,  even across Forums:  https://www.mql5.com/en/forum/146527  this forum is for MT5 mql5 questions and general trading
Opening Multiple Trades - MQL4 forum
  • www.mql5.com
Opening Multiple Trades - MQL4 forum
To add comments, please log in or register