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 | BarTimerCLineRoundedVertical HTF

Real author: Art Royal s.r.o.

The vertical version of the BarTimer indicator implemented using the classes of libraries that were described in detail in the article "Custom indicators and infographics in CCanvas", with the possibility to set a fixed timeframe, data from which the indicator displays in input parameters, and producing a sound alert when the bar changes. Two classes has been added to the library:

class CLineRoundedVerticalDn : public CCanvasBase
  {
  };
class CLineRoundedVerticalUp : public CCanvasBase
  {
  };

It provides the ratio between time elapsed since bar beginning and the duration of the entire bar in percent. The indicator is performed in two variants: rising and falling. Also the color of the indicator scale changes during indicator growth and fall.

To correctly compile the indicator, save the MQL5 folder from the MQL5.zip archive to the the MetaTrader 5 terminal root folder.

This indicator was first implemented in MQL4 and published in Code Base at mql4.com on 01.12.2008.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. The BarTimerCLineRoundedVerticalDn_HTF indicator

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. The BarTimerCLineRoundedVerticalUp_HTF indicator

18792

Best MetaTrader Indicators + Profitable Expert Advisors