Job finished
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Specification
Good day!
Is it possible to add a code to the indicator so that alerts about the signal appear when the conditions are reached and fulfilled? You also need to add the ability to receive signal notifications to the phone, and make sure that the phone must be specified when the indicator is activated in the indicator settings window.
Conditions for BYU signal
1. The candlestick crosses the MA line upwards and closes above this line with a green circle.
2. After the previous candle closes, the next candle is expected to close with a green signal circle, regardless of where it is above or below the MA line.
If these conditions are met, a BUY signal is sent in the form of an alert on the main screen and to the specified phone number with the text (BUY currency)
Conditions for the Sell signal
1.The candlestick crosses the MA line downward and closes below this line with a pink circle.
2. After the previous candle closes, the next candle is expected to close with a signal circle of pink color, regardless of where it is above or below the MA line.
When these conditions are met, the Sell signal is sent in the form of an alert on the main screen and to the specified phone number with the text (Sell currency).
Task number 2 For an expert.
Based on the indicator that was indicated above and for which the conditions for the alert were specified, write an Expert Advisor.
Transactions are also executed when the conditions specified above are reached.
It is worth adding stop loss and take profit for the deal.
Set restriction: When opening a buy or sell position, the next deal is not possible until the previous one is closed. That is, only one transaction is possible. This feature must be turned on and off in the settings.
Stop Loss and Take Profit must also be indicated by the trader when activating the indicator.