Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Stochastic_Histogram_Alert

Indicator Stochastic_Histogram provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud.

//+-----------------------------------+  //|   INDICATOR INPUT PARAMETERS      |  //+-----------------------------------+  input int KPeriod=5;  input int DPeriod=3;  input int Slowing=3;  input ENUM_MA_METHOD MA_Method=MODE_SMA;  input ENUM_STO_PRICE Price_field=STO_LOWHIGH;  input uint HighLevel=60;                       // overbought level  input uint LowLevel=40;                        // oversold level  input int Shift=0;                             // Horizontal shift of the indicator in bars  input uint NumberofBar=1;       // Bar number to activate a signal  input bool SoundON=true;        // Enable an alert  input uint NumberofAlerts=2;    // Number of alerts  input bool EMailON=false;       // Enable mailing the signal  input bool PushON=false;        // Enable sending the signal to mobile devices  

MetaTrader Experts, Indicators, Scripts and Libraries

Fig1. Stochastic_Histogram_Alert. Intersection of the main and signal lines

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Stochastic_Histogram_Alert. Activating an alert.

22864