You can set a price alert manually by right-clicking on the chart, and selecting "Trading>Alert".
If you want to code it for your indicator or expert advisor, you can follow these steps:
- You have to control the close condition on every tick inside the "OnTick()" function of your indicator or expert advisor.
- Then you can send any type of alert you want every time the condition is met. If it's an expert advisor, you can use "PositionClosePartial()" function inside "Trade.mqh" library to close the positions partially.
You can set a price alert manually by right-clicking on the chart, and selecting "Trading>Alert".
If you want to code it for your indicator or expert advisor, you can follow these steps:
- You have to control the close condition on every tick inside the "OnTick()" function of your indicator or expert advisor.
- Then you can send any type of alert you want every time the condition is met. If it's an expert advisor, you can use "PositionClosePartial()" function inside "Trade.mqh" library to close the positions partially.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is there any way of taking partial TP at limit order. Or any workaround for the same so that we do not have to watch charts all the time. Setting notifications is a way but it also requires pc terminal of MT5, can we set alerts from mobile phone?