Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2017.01.18 09:02

BoDi - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 20
BoDi.mq5 (6.04 KB)view

Real author:


The principles of plotting this indicator, calculation formula, interpretation, algorithm for Expert Advisors and suggested parameters are described in the Forex Magazine №438.

This indicator is calculated as the difference between the upper and lower Bollinger Bands. You may find that during upward or downward impulse movement of the price the bands expand (the difference between them increases), and when the movement fades they narrow (the difference decreases). In my opinion, it is impossible to use this for determining the start of the movement, as it becomes evident only at the end.

Narrowing of the Bollinger Bands channel often coincides withe the moment of lull in the battle between bears and bulls, and this last moment can be utilized for searching the end point of the movement. The BoDi indicator displayed in a separate window of the chart as a histogram.

This indicator was first implemented in MQL4 and published in CodeBase at on 17.08.2012.

Fig1. The BoDi indicator

Fig1. The BoDi indicator

Translated from Russian by MetaQuotes Software Corp.
Original code:


Moving average wing averaging of the linear combination of the input price timeseries.

DownloadHistory DownloadHistory

Symbol for downloading the history data for the current symbol with indication of progress.

Switching charts Switching charts

The script switches all opened charts at a certain interval. It is also possible to display only the charts of certain symbols.

Stat Stat

The script displays the brief statistics for trading on the instrument over the specified period - the number of deals, profit, profit factor.