NinjaTrader Williams Percent Range + ADX Indicator

ninjatrader indicator williams percent range adx
NinjaTrader WPR + ADX Indicator is a flat trading system based on the WPR (Williams Percent Range) oscillator. To detect flat periods, the ADX (Average Directional Movement Index) line is used. The indicator is designed to identify trading opportunities in market conditions characterised by a lack of directional movement.

NinjaTrader Williams Percent Range + ADX Indicator

Some traders focus solely on trends, ignoring promising signals within horizontal channels. Ignoring opportunities during a flat market can lead to the loss of a significant part of profitable trades. 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 find optimal entry points for trading in a flat market.

williams percent range adx ninjatrader indicator


WPR (Williams Percent Range) indicator indicates the percentage position of the current market price within the current market price fluctuation range, 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 is an indicator of a stable upward price reversal. Consequently, crossing the -20 level from top to bottom is an indicator of a stable downward reversal.

If the market is in a flat, then after crossing the level -80 from bottom to top or -20 from top to bottom, the price, typically, reaches the opposite boundary of the range. However, in the presence of a trend, trading signals may arise when the price rolls back slightly after a strong unidirectional impulse. The ADX indicator allows you to filter out such WPR signals.

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. When the ADX value reaches approximately 25, there is a flat in the market, which is the best condition for using the WPR indicator.

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 trade using 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 is the condition for opening a long position. Accordingly, the WPR line crossing the -20 level from top to bottom with an ADX value of up to 25 is a sell signal.


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 upgrade the presented indicator to suit your needs – add new functions, change the algorithm for calculating signals, or combine it with your other indicator, turning it into a single powerful tool for your trading strategy.

We can also turn the indicator into an Automated Trading Strategy with an extended set of custom functions (stop loss, take profit, trailing stop, risk management parameters, trading time limit, and others).

Request a free consultation from our team of professional programmers and find out the cost and timing of your project development.


Nordman Algorithms is not liable for any risk that you face using the software. Please, use the software on your own responsibility. The software is coded in accordance with a common known concept and Nordman Algorithms does not guarantee accuracy or trading performance of the software signals.

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