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
Fig1. Stochastic_Histogram_Alert. Intersection of the main and signal lines
Fig. 2. Stochastic_Histogram_Alert. Activating an alert.