![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
Hi,
I have an EA which opens trade, but I am not able to figure out how to do trilling on it
can someone give me code to do trilling as fallowing condition
1. once i am xx pips in profit I want to close half position
and put stoploss on 1 pip profit
ex:
if I buy 1lot at 1.4400 once market is at 1.4410 i want to close .50 lots
and put stoploss at 1.4401 for remaining .50 lots