## Bar Length Solver

The Bar Length solver is used to detect the bar’s total range (vertical length) from low to high. Similar to the Range indicator. An output value is given in both directions.

### Parameters

#### Range

#### Output

#### Period

**Average**

Uses the average bar length (bar range) over the period to compute the range.

**Largest**

Pick the largest bar over the period to use as the computed range.

**Smallest**

Pick the smallest bar over the period to use as the computed range.

### Video Tutorial

### Examples

#### Example 1: The Basics

This demonstrates the basic function of the Bar Length solver by testing for a bar range (High – Low) of 10 ticks or greater. A simultaneous output of 1 & -1 indicates a bar length is 10 ticks or more.

- Add the Bar Length Solver.
- Set the Max to 10 Ticks.

#### Example 2: News Volatility

In this next example let’s look for a possible news event affecting price volatility. This could be done by searching for a bar range that exceeds the ATR by a certain factor. This example will use 400 percent. And, lets give the market 15 minutes or 5 bars afterwards to settle down.

- Add the Bar Length Solver.
- Set the Mode to Largest. This will track bars with the largest range.
- Set the Period to 6. The “signal” bar is 1, plus 5 more bars afterwards.
- Set the Max to 4 ATRs.

As seen in the chart, a racing stripe occurs when the bar range is 4 times or greater than the ATR. 1.778 x 4 = 7.152, rounded to the nearest tick size = 7.2pts. Note that several bars after the signal still had high ranges, although the bar did not quite meet the racing stripe threshold, which, for these examples, is set to 0.8.