NinjaTrader Williams Percent Range + ADX Indicator

ninjatrader indicator williams percent range adx
The NinjaTrader WPR + ADX Indicator is a technical analysis tool for consolidation conditions. It combines the Williams Percent Range — which measures price position within a recent high-low range — and the Average Directional Index, which identifies the presence or absence of directional movement. Together they evaluate market structure during low-volatility, range-bound periods

NinjaTrader Williams Percent Range + ADX Indicator

Some traders focus solely on trends, ignoring analytical conditions within consolidation periods. Flat market conditions represent a distinct market structure that trend-focused approaches may not fully account for. Flat trading requires different rules as prices remain in a narrow range, often with low liquidity. The combination of WPR + ADX indicators allows traders to evaluate market conditions during periods of low directional movement.

williams percent range adx ninjatrader indicator

 

The Williams Percent Range (WPR) measures where the current price sits within the recent high-low range, expressed as a percentage, considered as 100%. A special feature of the WPR indicator is its inverted scale. If the price is at the upper limit of the range, the indicator indicates the value 0, and if at the lower limit, then it indicates -100%. If the indicator line crosses the -80 level from bottom to top, this reflects a shift from compressed to expanding momentum in an upward direction. Consequently, crossing the -20 level from top to bottom reflects a shift from compressed to expanding momentum in a downward direction.

If the market is in a flat, then after crossing the level -80 from bottom to top or -20 from top to bottom, price has historically tended to move toward the opposite boundary of the range. However, in the presence of a trend, analytical conditions may emerge when price retraces after a strong directional move. The ADX indicator allows you to filter out such WPR conditions.

The ADX indicator consists of three lines: a positive component PDI (Plus Direction Index), a negative component MDI (Minus Direction Index), the third line, called the ADX line, shows the ratio of these components. The ADX line is independent of the direction of price movement, but only on the strength of its movement. Thus, the ADX line will allow you to detect trend and flat intervals in the market, regardless of their direction. The 25 threshold reflects an empirically observed boundary in ADX behavior: below this level, the directional components PDI and MDI tend to remain close to each other, indicating that neither buying nor selling pressure is dominant. This makes ADX < 25 a structurally meaningful reference for identifying consolidation — not an arbitrary cutoff, but a level at which the balance between directional forces is effectively neutral. When the ADX value reaches approximately 25, there is a flat in the market, which is a market context where the WPR indicator operates within its intended parameters.

The indicator allows for customisation of notification settings by choosing how you want to receive notifications: for audio notifications (with the ability to select a sound file), email messages, or pop-ups.

 

How to interpret and use the Williams Percent Range + ADX Indicator?

ninjatrader williams percent range adx indicator

 

The NinjaTrader WPR + ADX Indicator displays in a separate subwindow the line of the WPR oscillator and its levels that determine overbought / oversold zones: on top – level -20 (above this level there is an overbought zone ), below – level -80 (below this level there is an oversold zone).

The WPR line crossing the -80 level from bottom to top when the ADX indicator value is less than 25 registers an upward condition for further evaluation. Accordingly, the WPR line crossing the -20 level from top to bottom with an ADX value of up to 25 registers a downward condition.

Indicator Limitations. The WPR + ADX indicator is designed specifically for consolidation conditions. In trending markets — where ADX rises above 25 and directional movement becomes dominant — the WPR component may generate frequent threshold crossings that reflect trend momentum rather than range reversals. The indicator does not assess the strength or duration of a consolidation period, does not account for sudden volatility expansions or news-driven breakouts, and does not predict how far price will move within or beyond the range. All registered conditions should be evaluated within the trader’s own analytical framework.

 

WPR + ADX Indicator input parameters

The indicator has the following parameters:

ninjatrader adx wpr indicator settings

Alerts – setting up various types of alerts.

Williams_%R_BUY – setting the oversold level value.

Williams_%R_SELL – setting the overbought level value.

Williams_%R_Min_Candles – minimum number of bars of  Williams Percent Range is above/below zone -20/-80.

ADX_Signal_Level – setting the value of the ADX level, at which the market state is determined as flat.

 

Custom Programming

mt4 custom programming

We can customize this indicator to your needs — adding functions, modifying logic, or integrating it with other tools for your workflow.

We also convert indicators into Automated Trading Strategies with advanced functions (trailing stops, risk management, filters) tailored to your trading style strictly according to your specifications.

Request a free consultation to discuss the technical scope and timeline of your project.

 

We Value Your Feedback

We are committed to the ongoing development and refinement of our indicators. If you’ve spotted a bug, feel that something essential is missing, or have ideas that could make the indicator even better, just send us a message. Your feedback helps us improve and deliver tools that truly meet traders’ needs.

 

See other indicators on a single subscription
NinjaTrader Candlestick Patterns Indicator
NinjaTrader Support & Resistance Breakout Indicator
NinjaTrader Opening Range Breakout Indicator