Categories

NRTR Indicator MT4
NRTR is a free, instant-download MT4 overlay that plots a self-adjusting trailing stop-and-reverse line directly on the price chart, flipping from support to resistance the moment price breaks the trail. This is a straightforward MT4 conversion of the classic Nick Rypock Trailing Reversal concept, built around just two inputs, so it's easy to drop on…
Download the NRTR Indicator MT4NRTR is a free, instant-download MT4 overlay that plots a self-adjusting trailing stop-and-reverse line directly on the price chart, flipping from support to resistance the moment price breaks the trail. This is a straightforward MT4 conversion of the classic Nick Rypock Trailing Reversal concept, built around just two inputs, so it’s easy to drop on any chart and see immediately what it’s doing.
What NRTR Actually Calculates
The indicator uses two buffers: value1 (blue arrows, labeled “NRTRUp”) plotted during uptrends, and value2 (red arrows, labeled “NRTRDown”) plotted during downtrends. Both are drawn with DRAW_ARROW using arrow code 159, which renders as a small dot that traces along the trend.
Step 1 — Average Range
On every calculation pass, the code sums |High[i] - Low[i]| for the last AveragePeriod closed bars (default 10) and divides by that period to get an average bar range, AvgRange.
Step 2 — The Distance Factor (dK)
That average range becomes the trailing distance, dK = AvgRange / AveragePeriod. There’s one quirk worth knowing: for USDJPY, GBPJPY, and EURJPY, the code divides dK by an additional 100, a hard-coded adjustment for the different pip scale of yen pairs. If you run this on a yen cross, the trail will sit proportionally closer to price than it would on a non-JPY pair with an identical average range.
Step 3 — The Recursive Trail
Starting from the oldest bar in the calculation window and walking forward to the current bar, the code tracks a running extreme price — the highest close since the last flip in an uptrend, or the lowest close since the last flip in a downtrend — and computes a trigger level of price * (1 - dK) (uptrend) or price * (1 + dK) (downtrend). When Close crosses that trigger, the trend flips, the extreme price resets to the current Close, and the opposite buffer takes over.
How to Read and Trade It
- Blue dots trailing below/near price = the indicator considers the market to be in an uptrend, with the dots acting as a visual trailing stop/support level.
- Red dots trailing above/near price = downtrend, dots acting as trailing resistance/stop.
- A flip from blue to red (or vice versa) is the reversal signal — it’s the moment Close broke through the trigger level described above.
Most traders use NRTR either as a visual trailing-stop reference for an existing trend trade, or as a standalone stop-and-reverse system, entering in the direction of whichever color is currently printing.
A Practical Note on Chart Load
Because the entire recursion runs across the full CountBars window every single tick rather than stepping forward incrementally, applying NRTR with a large CountBars value on a chart with a long history means the terminal re-walks that whole recursive sequence from scratch each time a new price update arrives. On lower timeframes with fast tick flow, this can be noticeably heavier on CPU than indicators that only touch the newest bar. It’s rarely a problem at the default of 300 bars, but worth knowing if you push the setting much higher.
Input Parameters
- AveragePeriod (default 10) — number of recent closed bars used to compute the average range that drives the trailing distance (dK).
- CountBars (default 300) — how many historical bars the indicator recalculates and displays; automatically capped down to the number of bars actually available on the chart.
Repaint Behavior
NRTR repaints. The entire recursive trail — from the oldest bar in the CountBars window down to the current bar — is recalculated from scratch on every single tick, using whatever dK value the most recent 10-bar average range produces at that moment. Because dK shifts slightly every time a new bar closes, and the trend-flip logic is a sequential recursion that depends entirely on that value, a small change in dK can move the trigger levels enough to flip the recorded trend at a different bar than before. In practice this means dots you saw plotted an hour ago can silently reposition or change color once more price data arrives — the defining behavior of a repainting indicator.
Limitations
- Because it repaints, NRTR is not reliable for strict backtesting or for any strategy that needs its historical signal positions to stay fixed once printed.
- The full history within
CountBarsis recomputed on every tick rather than incrementally, which is heavier on terminal resources than modern MT4 indicators that useIndicatorCounted()to only process new bars. - The JPY-pair scaling adjustment is hard-coded to three specific symbols (USDJPY, GBPJPY, EURJPY); other JPY crosses (e.g., AUDJPY, CHFJPY) do not receive the adjustment.
- There is no alert or sound notification built in — trend flips must be watched visually.
- AveragePeriod (default 10) — Number of recent closed bars used to calculate the average High-Low range that sets the trailing distance (dK).
- CountBars (default 300) — Number of historical bars the indicator recalculates and displays; auto-capped to the bars available on the chart.
FAQs About the MT4 NRTR Indicator MT4
Does the NRTR indicator repaint?
Yes. It recalculates its entire trailing trend line from scratch on every tick using a moving average-range value (dK), so historical dot positions can shift once new bars form and dK updates.
What does the AveragePeriod input actually control?
It sets how many recent closed bars are used to compute the average high-low range, which in turn sets how far the trailing dots sit from price. A larger value produces a wider, slower trail; a smaller value hugs price more tightly.
Why does the code treat USDJPY, GBPJPY, and EURJPY differently?
The dK distance factor is divided by an extra 100 for those three symbols to account for the yen’s different pip scale. Other JPY pairs like AUDJPY or CHFJPY are not covered by this adjustment in the code.
What does CountBars do, and can I increase it past 300?
CountBars limits how many historical bars the indicator recalculates and displays. You can raise it above the default 300, but the code automatically caps it to however many bars are actually loaded on the chart.
How is this different from Parabolic SAR?
Both are trailing stop-and-reverse overlays, but NRTR’s trail distance is driven by a simple average of recent High-Low ranges rather than SAR’s acceleration-factor formula, and NRTR fully recomputes its whole history on every tick rather than stepping forward bar by bar.
