← Back to all indicators

MT5Separate windowOscillatorsRange & bands

Deviation Band %B

Turns into a number where the close sits within a deviation band. %B and Z-Score can be switched, and smoothing of the main line, an average line and notification on confirmed bars can be combined.

Coming soon · MT5 only · no licence file needed

Download and installation · Manual

Deviation Band %B default settings
MetaTrader 5 display example (default settings) — Blue is %B and the orange dashed line is EMA 50. The main line can go below 0 or above 1 in some parts.
Examples with changed settings are in the manual.

Main settings

InputDefault
Bands Period20
Deviation Multiplier2
Band SourceClose
Output%B
Smoothing Period (1 = off)1
Average Period (0 = off)50
Average MethodEMA
Alert on Closed-Bar Average Crossfalse
Alert on Closed-Bar Turnfalse

Detailed description of the settings (manual)

Usage specifications

The same information on a different scale

With Close and the same smoothing conditions, Z-Score = 2×multiplier×(%B−0.5). Do not apply this formula to High/Low. It is also not the position within the band of EMA Deviation Envelope.

Level lines not visible

%B uses 0, 0.25, 0.5, 0.75 and 1; Z-Score uses −multiplier, −multiplier/2, 0, multiplier/2 and multiplier. The vertical axis is automatic, so all 5 lines are not always visible. If the period is shorter than multiplier²+1, then with Close, %B does not reach 0 or 1, and Z-Score does not reach ±multiplier.

Differences from the start of the average

EMA and SMMA calculate by carrying over the first value. If the history starts at a different point, past average lines also differ, and the difference gradually shrinks. There is no guarantee of an exact match after a certain number of bars. The main line and SMA/LWMA can be calculated under the same conditions if the required window is the same.

Notification timing and order

On the first price update of the next bar, it evaluates the 1 closed bar just before. The first calculation only records. If several bars advance on reconnection, events in between are not notified retroactively. If both conditions are met on the same bar, 2 lines appear in the order crossing → reversal.

The forming bar changes

The value of the latest bar changes with price updates. If past prices or the start of the history change, values after recalculation may also change. This is not a guarantee of no repainting.

Do not judge by the 0 in the header alone

Even when a line is not drawn because the required history is insufficient, the header may show 0 at the display precision. Check whether the line exists together with the number of bars required. %B is shown with 3 decimal places and the other 3 products with 2 decimal places.

It does not start with out-of-range inputs

Check the input values and their combinations. If it cannot start, a 1-line reason in English appears in the MT5 Experts tab.

Only 1 instance of the same product on 1 chart

This manual describes adding 1 instance of this product to 1 chart. To compare different settings, use separate charts.

For on-screen display only

Displays, marks and notifications are records of calculation results. They do not direct trading decisions and do not guarantee future price movements.

Usage specifications (manual)

Full manual

How to read the display, the settings, installation and what to check when something goes wrong, on one page. The product is in preparation for release; the manual is published so that you can review its content.

Open the manual

  1. MT5 display and examples of changed settings
  2. How to read it in 30 seconds
  3. What it measures
  4. Situations for reading the display
  5. Steps for checking the display
  6. Installation and checking the package contents
  7. Settings
  8. Usage specifications
  9. Troubleshooting and usage notes
  10. Technical information and specification details