Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

WeightOscillator_Alert - MetaTrader 5 Script - MT4/MT5 Resource

author EAcpu | 3 reads | 0 comments |

WeightOscillator_Alert - indicator for MetaTrader 5

WeightOscillator_Alert - indicator for MetaTrader 5

WeightOscillator_Alert - indicator for MetaTrader 5

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.

WeightOscillator_Alert - indicator for MetaTrader 5

Figure 1. WeightOscillator_Alert indicator on the chart

WeightOscillator_Alert - indicator for MetaTrader 5

Figure 2. WeightOscillator_Alert indicator. Generate breakout signal alerts

WeightOscillator_Alert - indicator for MetaTrader 5

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

Verification code Refresh