[MT4]Indicator to display volatility

Have you ever used MT4 and wanted to intuitively display the volatility of the chart you are monitoring as a numerical value?
For such people, I would like to introduce an Indicator that displays volatility.

When used in combination with an Indicator that changes the timeframes of multiple charts at once, it becomes possible to easily check the volatility of various timeframes.

Contents

Indocator specification

  1. Display of Volatility values
    1. Volatility can be selected from one of the following three values
      1. Value of difference of ± 2α of Bollinger band
      2. Value of Volume
      3. Value of ATR
    2. The volatility calculation is based on the timeframe of the chart to which the Indicator is added.
    3. You can select the background color of the displayed BOX and the color of the characters.
    4. You can change the position of the displayed BOX.

How to use

Indicator download

First of all, please download Indicator from the following.

download page for LU_DispVol.ex4

Addition of Indicator to MT4

Please add the downloaded Indicator to MT4 by referring to “How to add Indicator“.

Parameter setting

Set the display settings you like on the parameter input tab.

The Paramter that can be changed with the Indicator introduced this time is roughly divided into three types: “button arrangement”, “volatility value calculation method”, and “button color”.

Button placement・・・(A)

Meaning of Parameter:

X_DST_BASE:
You can change the position of the horizontal axis of the button arrangement.
If you enter a positive number, the button position will move to the right by that number.

Y_DST_BASE:
You can change the position of the vertical axis of the button layout.
If you enter a positive number, the button position will move down by that number.

How to calculate Volatility value・・・(B)

Meaning of Parameter:

vol_mode:
Specifies how to calculate Volatility.
Volatility calc from Bollinger Bands : Shows the difference of ± 2α of Bollinger Band(pips unit)
Volatility calc from Volume : Displays the value of Volume.
Volatility calc from ATR : Shows the value of ATR.

Button color・・・(C)

Meaning of Parameter:

CHAR_COLOR:
Specifies the color of the Volatility number.

BG_COLOR:
Specify the background color of the BOX displaying the Volatility value.

Display of Volatility values

Once the Paramter is set, the Volatility value will be displayed in the automatically displayed BOX.
(Based on the displayed time bar, the calculated value for the previous bar is displayed.)