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 4 Indicator | UpDownBars

The indicator counts the Up bars (Close-Open) and Down bars (Open-Close).

Calculation:

n = Up bars (Close>Open, first bar=1, last bar=n)

m = Down bars (Close<Open)

MetaTrader Experts, Indicators, Scripts and Libraries

Oscillator indicator, my opinion - use it for filtering of entry, when UpDownBars is above 0 go only short and when UpDownBars is below 0 go only long.

Inputs:

  • UpDown_Period = 20     // period for calculation UpDown bar indicator
  • Average_Period = 10     // period for calculation Moving Average on indicator
  • Average_Method = Simple // method of Moving Average

MetaTrader Experts, Indicators, Scripts and Libraries

10559

Best MetaTrader Indicators + Profitable Expert Advisors