Realtime Non-Repaint PathName:
Realtime Non-Repaint Path
Searchable Name:
Realtime Non-Repaint Path
Technical name:
Realtime Non-Repaint Percentage-Reversal Path
Short title:
RT NR Path
Summary
Realtime Non-Repaint Path is a standalone path-visualization and path-state script designed to show live non-repainting directional path structure and a simplified hidden path reveal. It uses a percentage-reversal path model to classify live path direction, maintain a live anchor/candidate structure, draw a live eased path, rebuild a simplified hidden path from reversal pivots, and display state labels, alerts, and a compact status table. Its strongest advantages are live path clarity, non-repainting state transitions on closed bars, simpler path interpretation, and visual structure that can complement entry-focused scripts. Its main known weakness is that it is not a full trading engine: it does not perform full pivot confirmation, trade management, advanced filtering, replay-state reconstruction, or broader regime/stat handling.
This script is best understood as a path-focused operational visualization and state-classification script rather than a complete trading engine. It is designed to be useful on its own while remaining simple enough to inspect, test, and modify.
How it works
The script begins with a simple percentage-reversal path model. It tracks a live anchor price, a live candidate extreme, and a current live path direction. When price moves far enough away from the current anchor by the user-defined reversal percentage, a live directional path is established. As long as price continues making new extremes in that direction, the live candidate continues updating. When price reverses enough from that candidate extreme by the same percentage threshold, the live path flips and a new anchor/candidate cycle begins.
The displayed live path is not drawn as a raw straight jump between points. Instead, it is eased between the current live anchor and live candidate so that the path remains visually readable while still staying tied to the current live state model. Because the live state is updated bar by bar using only information available so far, the live path is intended to function as a non-repainting path-state view on closed bars rather than as a hindsight-only reconstruction.
In addition to the live path, the script can also reveal a simplified hidden path. That hidden path is rebuilt from percentage-reversal pivots over a user-defined recent history window. It detects reversal pivots using the same percentage-reversal logic and then draws an eased pivot-to-pivot hidden path across the selected history range. This keeps the script path-focused, visually useful, and easier to interpret.
The script also displays optional confirmed turn labels, a last-bar live state label, path-up/path-down alerts, background coloring based on current path direction, and a compact status table showing the current live state, anchor, candidate, and percentage distances. These features make it useful as a visual path-state companion script rather than as a full signal-and-execution engine.
Path model note
This script’s path model is based on percentage reversal. That makes it intentionally simpler and easier to understand, but it also means it does not attempt to replicate the broader complexity of a full trading engine. The hidden path shown here should be interpreted as a simplified path reveal, not as a complete trade-selection or execution model.
Features
Live non-repainting path state machine
User-defined percentage reversal threshold
Live anchor and candidate path structure
Eased live path display
Simplified hidden path reveal over recent history
Confirmed path turn labels
Last-bar live state label
Background coloring by live path direction
Path-up and path-down alerts
Compact status table with anchor/candidate/path-distance information
Strengths
Path Clarity edge — provides a cleaner live view of path direction than raw candles alone.
Non-Repainting State edge — live path direction and flips are based on the current bar-by-bar percentage-reversal model rather than hindsight-only reconstruction.
Simplicity edge — simpler structure makes it easier to inspect, test, and modify.
Companion Script edge — pairs naturally with entry-oriented scripts by showing whether path direction is currently up, down, or neutral.
Visual Structure edge — live path, hidden path, labels, background, and status table make path structure easier to read quickly.
Interpretability edge — the script is straightforward enough to be useful as both a live visual aid and a path-study tool.
Weaknesses
Not a full trading engine weakness — does not include full trade management, entry/exit handling, or execution logic.
No advanced filtering weakness — does not include broader filtering or replay/stat reconstruction layers.
Threshold sensitivity weakness — path behavior depends heavily on the user-selected reversal percentage, so different settings can materially change the path and turn structure.
Path-state, not profit-state weakness — path direction does not guarantee profitable entries or strong follow-through.
Simplified hidden path weakness — the hidden path is intentionally simplified and should not be mistaken for a complete internal market model.
No regime/stat engine weakness — does not contain broader regime scoring, detailed replay diagnostics, or a larger state/stat engine.
Who it’s for
This script is best suited for traders and TradingView users who want a simpler live path script, users interested in non-repainting path direction on closed bars, users who want a visual companion to entry-focused scripts, users who want to inspect market path structure with less complexity than a full trading engine, and users interested in learning from or modifying a smaller path-focused script. It is especially suited for users who want a practical path/state layer rather than a complete trading engine.
Who it’s not for
This script is not best suited for:
users looking for a complete pre-built trading engine
users expecting advanced pre-entry classification
users expecting full entry/exit/trade management
users looking for advanced regime, replay, and state/stat reconstruction
users expecting this script by itself to solve the false-pivot or follow-through problem
users looking for a complete trade-selection and execution workflow rather than a smaller standalone path script
Known limitations
Realtime Non-Repaint Path is much better at showing live path direction and simplified path structure than it is at acting as a complete trading system. The live path is driven by a percentage-reversal state machine and the hidden path is rebuilt from simplified percentage-reversal pivots with eased pivot-to-pivot connections. Because of that, it should be viewed primarily as a path/state visualization and classification script, not as a complete trade-selection or execution engine. Different reversal-percentage settings can also materially change how often the path flips and how sensitive the script is to movement.
Final note
This is a standalone path script, not a guaranteed predictive system and not a full operational trading engine. Its strengths are concentrated in live path visibility, simplified hidden path structure, non-repainting state handling on closed bars, and quick visual interpretation. It is best used as a path-focused companion or as a simpler standalone script for studying live path behavior rather than as a substitute for a more complete engine.
Penunjuk Pine Script®











