Good afternoon. Dear programmers, help us add an arrow and an alert to the indicator. 
Conditions for arrows and alerts in purchases: 
1. the price must break through or touch the top line. 
2. on a pullback, the candle should close below the midline. 
3. if the candle did not close below the midline, but simply broke through, this is not a signal. 
Similarly, a sales signal.