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
- www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
- Web version features
- Flexible MetaTrader 5 trading system with all order types
- MetaTrader 5 for your employees
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 ?
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.
RaptorUK:
Where are you stuck ?
Already solved the problem. Thank you though. Had entered the wrong parameters in OrderSend()
Where are you stuck ?
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
Already solved the problem. Thank you though. Had entered the wrong parameters in OrderSend()

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