MFI_Histogram_Round – indicator MetaTrader 5

Standard MFI oscillator implemented as a histogram rounding its values to the standard range:

  • 1 β€” no rounding;
  • 2 β€” all values from 0 to 100 divided by 2;
  • 5 β€” all values from 0 to 100 divided by 5;
  • 10 β€” all values from 0 to 100 divided by 10;
  • 20 β€” all values from 0 to 100 divided by 20;
  • 50 β€” 0, 50, 100.

For all MFI values less than 50, rounding occurs to the lower side, while for all RSI values exceeding 50 β€” to the greater one.

The following input is used for rounding in the indicator:

input ENAM_ROUND_MODE Round=X5; // rounding level

Fig.1. MFI_Histogram_Round indicator

Fig.1. MFI_Histogram_Round indicator


πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks