--- title: "Vertical Horizontal Filter (VHF)" slug: "vertical-horizontal-filter" description: "The Vertical Horizontal Filter (VHF) distinguishes trending from ranging markets. Rising VHF signals trends, while falling indicates price stability." updated: 2024-10-31T16:14:01Z published: 2024-10-31T16:14:01Z canonical: "devexperts.com/vertical-horizontal-filter" --- > ## Documentation Index > Fetch the complete documentation index at: https://devexperts.com/dxcharts-docs/llms.txt > Use this file to discover all available pages before exploring further. # Vertical Horizontal Filter (VHF) [![](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/v1.webp)](https://devexperts.com/dxcharts/?utm_source=kb&utm_medium=banner&utm_campaign=dxcharts) --- The **Vertical Horizontal Filter (VHF)** indicator determines whether prices are trending (VHF rises) or are stabilizing around a specific range (VHF falls). VHF values are calculated as the difference between the highest close and the lowest close for a specified period. The difference is then divided by the sum of an absolute value of daily close changes over the same period. *VHF = (HCPn - LCPn) / (Sum of absolute values for n periods)* where: HCP – highest closing price LCP – lowest closing price n – number of periods ![Stoller Average Range Channel Bands](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/Vertical_Horizontal_Filter.png)*Vertical Horizontal Filter* ### INPUTS | Input | Description | | --- | --- | | Length | The number of bars used to calculate VHF | ### PLOTS The plot renders the data you are working with on the chart. You can show/hide a plot by clicking the corresponding item in the settings. Every plot has a set of basic settings that you can change: color, weight, and type. | Plot | Description | | --- | --- | | VHF | The Vertical Horizontal Filter plot | | Color | | --- | | Click the color rectangle under the plot's name to open the palette. Use the slider at the bottom to set the opacity of the color. ![](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/Color_picker.png)*Palette* To create a custom color: 1. Click![](https://cdn.document360.io/50ec49af-63d7-47b5-a626-625abdd7cece/Images/Documentation/add_custom_color_icon.png)to open the color picker 2. By using the slider at the bottom, adjust the main color 3. Then, set a shade for the main color on the palette The custom-created colors are added to your palette. To remove a custom color, drag it out of the palette. | | Weight | | Change the value (in px) to adjust the thickness of the plot. | | Type | | The following plot types are available: - **Linear.** The plot is displayed as a line. - **Column.** The plot is displayed as a histogram. - **Difference**. The plot is displayed as a line which represents the difference between High and Low prices of the bar. - **Points**. The plot is displayed as points. - **Text above candle**. The plot is displayed as the price labels above candles on the chart. - **Text below candle**. The plot is displayed as the price labels below candles on the chart. - **Triangle above candle**. The plot is displayed as triangles above candles on the chart. - **Color candle**. The candles on candle-type charts are highlighted with specified colors. | ### OVERLAYING Check **Overlaying** to display the indicator on the chart. Otherwise, the indicator is shown in a study pane down below. **Note**: To reset the settings, click **Restore to Default** next to the *SETTINGS: INDICATOR'S TITLE*