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

Indicator UDP (Up/Down Percentage) displays the direction of candlesticks, i.e., up/down, as a percentage over the selected period.

It has two configurable parameters:

  • Period - calculation period;
  • Applied price - price used for calculations.

Calculations:

UP = SMA(UpF, Period)  DN = SMA(DnF, Period)  

where:

If Price > PrevPrice:

UpF = 1

otherwise:

UpF = 0

If Price < PrevPrice:

DnF = 1

otherwise:

DnF = 0

MetaTrader Experts, Indicators, Scripts and Libraries

21168

Best MetaTrader Indicators + Profitable Expert Advisors