Real author: Khlistov Vladimir
The indicator shows the moment of successive appearance of several unidirectional candles in a row activating alerts and sending email and push notifications.
//+----------------------------------------------+ //| Indicator inputs                | //+----------------------------------------------+ input uint CandleTotal=3;  //Number of unidirectional candles input uint NumberofBar=1;//Number of a bar for delivering a signal input bool SoundON=true; //Allow the alert input uint NumberofAlerts=2;//Number of alerts input bool EMailON=false; //Allow sending signals by email input bool PushON=false; //Allow sending signals to a mobile device
The original indicator was developed in the MQL4 language and published in the CodeBase on 31.01.2017.
Fig. 1. DirectCandlesCounter indicator