Download MetaTrader 5
To add comments, please log in or register
Sign up to publish an article and receive 200 USD
Sila Obegi
112
Sila Obegi 2013.08.26 04:51 
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
17975
Simon Gniadkowski 2013.08.26 09:48  
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 2013.08.26 09:52  
RaptorUK:
Where are you stuck ?  
Already solved the problem. Thank you though. Had entered the wrong parameters in OrderSend()
Simon Gniadkowski
Moderator
17975
Simon Gniadkowski 2013.08.26 11:04  
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