
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
Greetings,
I am new to MQL5 and would like to know the code for an order management EA that does the following:
When a trade is above a certain profit, close the trade and place a new one.
When a trade is below a certain loss, place a new trade without closing the original trade.
On every loss level triggered the lot size of the trade must be increased by 0.1.
I will be able to code further conditions and parameters but I am struggling to understand how the order placement is done and how scanning for orders is done in MQL5.
My sincere thanks for any help.