![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I have an EA as below.
I want:
- limit the number of ending order = 20 (EA place ~200 order)
- When there is a profit of 200 points (20 pips), shift the SL and TP by 20 pips (using CheckAndAdjustProfitableOrders() and ModifyPosition())
- At the same time, close half the volume of active position. (using CloseHalfPosition())
But it seems these functions don't work.
No order can be closed at half volume.
No SL TP moved (still 500 & 300)
Help me please!
Thank so muchhhh!!!!!!!