NRBar (Function)
The NRBar function determines the number bars in which the CurrentBar range is less than preceding bars (including the current bar).
For example, if the CurrentBar range is larger than the prior bar range, the function returns 1. If the CurrentBar range is the smallest of the last 5 bars (including the current bar), the function returns 5.
Syntax
NRBar(RangeOption_0_1_or_2, NRLength)
Returns (Integer)
A numeric count of the number of bars where the current bar range is less than preceding bars.
Parameters
| Name | Type | Description |
| RangeOption_0_1_or_2 | Numeric | Set to 0 to use high-low range. Set to 1 to use true range. Set to 2 to use open-close range. |
| NRLength | Numeric | Sets the number of bars over which to evaluate the range, including the current bar. |
Reference
Linda Bradford Raschke and Laurence A. Connors, Street Smarts: High Probability Short-Term Trading Strategies, M. Gordon Publishing Group, Inc., 1995.