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 | DirectCandlesCounter

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.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. DirectCandlesCounter indicator

21389