WeightOscillator_Alert - MetaTrader 5 Script - MT4/MT5 Resource



This weight oscillator trend indicator features alerts, emails and push notifications to mobile devices.
In order to implement alerts, email messages and push notifications, the following changes were made to the indicator code:
where ColorBuffer is the name of the color index buffer used to store the indicator color. Values 0 and 4 are the number of colors in this buffer when the oscillator is in the overbought and oversold zones respectively.
It is assumed that the only calls to the BuySignal() and SellSignal() functions will be used in the OnCalculate() block of the indicator code.
The indicator uses classes from the SmoothAlgorithms.mqh library (copy it to <terminal data folder> \MQL5\include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

Figure 1. WeightOscillator_Alert indicator on the chart

Figure 2. WeightOscillator_Alert indicator. Generate breakout signal alerts

Figure 3. WeightOscillator_Alert indicator. Generate trend signal alerts
Attachment download
📎 SmoothAlgorithms.mqh (130.2 KB)
📎 WeightOscillator_Alert.mq5 (42.09 KB)
Source: MQL5 #17091
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •