OPEN-SOURCE SCRIPT
Cập nhật Realtime Non-Repainting Entries

Name:
Realtime Non-Repainting Entries
Short title:
RT NP Entries

Summary
Realtime Non-Repainting Entries is a focused entry-only market-structure tool built around a causal transform path and reversal-confirmation logic. It is designed to mark live entry opportunities and preserve confirmed historical entry markers without turning into a full trade-management engine. Its main purpose is to provide a cleaner, more structured entry framework than raw price alone while remaining simpler and more universal than a full operational system.
This script is intentionally narrower than a full transform engine. It does not include exits, split trade management, replay reconstruction, forecast candles, or the broader integrated state logic used in a larger operational engine. Instead, it concentrates on one problem only: producing realtime entry markers from a causal transform path while keeping closed-bar historical signals stable.
How it works
The script first builds a causal transform line from raw price using ATR-scaled adaptive movement. That transform is not meant to be a full hindsight best-fit reconstruction. It is a live-updating, causal path that tries to reduce some raw-price noise while staying responsive enough to expose directional shifts.
From there, the script tracks transform swing state. When transform direction changes, it arms a reversal candidate from the prior swing extreme. That candidate is then evaluated by a small set of confirmation rules, including:
When those conditions are satisfied on a closed bar, the script prints a confirmed historical entry marker. While the current bar is still forming, it can also show a live candidate marker, which may update until the bar closes. That means the script is causal and historically non-repainting on closed bars, while still being allowed to update on the current live bar.
Important behavior note
This script is best understood as:
So “non-repainting” here means confirmed historical entry markers do not rewrite after bar close. It does not mean the current unfinished bar cannot update before confirmation.
Features
Strengths
Weaknesses
Who it’s for
This script is best suited for:
Who it’s not for
This script is not best suited for:
Known limitations
This script is better at:
than it is at:
It should be viewed as an entry-focused structure tool, not as a complete predictive engine or full trade-management system.
Final note
Realtime Non-Repainting Entries is a focused, entry-only script built around realtime causal entry structure and historically stable confirmed entry markers. It is designed to be useful and clear without turning into a full operational engine. Its value is in structuring entries more cleanly than raw price alone, not in solving the entire trading problem.
Realtime Non-Repainting Entries
Short title:
RT NP Entries
Summary
Realtime Non-Repainting Entries is a focused entry-only market-structure tool built around a causal transform path and reversal-confirmation logic. It is designed to mark live entry opportunities and preserve confirmed historical entry markers without turning into a full trade-management engine. Its main purpose is to provide a cleaner, more structured entry framework than raw price alone while remaining simpler and more universal than a full operational system.
This script is intentionally narrower than a full transform engine. It does not include exits, split trade management, replay reconstruction, forecast candles, or the broader integrated state logic used in a larger operational engine. Instead, it concentrates on one problem only: producing realtime entry markers from a causal transform path while keeping closed-bar historical signals stable.
How it works
The script first builds a causal transform line from raw price using ATR-scaled adaptive movement. That transform is not meant to be a full hindsight best-fit reconstruction. It is a live-updating, causal path that tries to reduce some raw-price noise while staying responsive enough to expose directional shifts.
From there, the script tracks transform swing state. When transform direction changes, it arms a reversal candidate from the prior swing extreme. That candidate is then evaluated by a small set of confirmation rules, including:
- minimum transform movement away from the pivot in ATR terms
- optional close-beyond-pivot-close confirmation
- optional transform-direction agreement
- optional raw-trend agreement
- and a cooldown to reduce immediate repeat signals
When those conditions are satisfied on a closed bar, the script prints a confirmed historical entry marker. While the current bar is still forming, it can also show a live candidate marker, which may update until the bar closes. That means the script is causal and historically non-repainting on closed bars, while still being allowed to update on the current live bar.
Important behavior note
This script is best understood as:
- historically stable on closed bars
- live-updating on the current bar
So “non-repainting” here means confirmed historical entry markers do not rewrite after bar close. It does not mean the current unfinished bar cannot update before confirmation.
Features
- causal transform path
- realtime regime/state coloring
- armed reversal candidates
- confirmed historical long and short entries
- optional live candidate markers
- minimum move-away filter
- optional close-beyond-pivot-close filter
- optional transform agreement filter
- optional raw-trend agreement filter
- cooldown filter
- long and short alertconditions
- compact status table
Strengths
- cleaner entry framing than raw-price-only flips
- easy to understand and visually inspect
- useful as a standalone entry tool
- historically stable confirmed markers on closed bars
- live candidate visibility before confirmation
- simpler and more universal than a full integrated engine
- does not require trade-management complexity to be useful
Weaknesses
- does not solve the false-pivot problem universally
- entry quality will still vary by market and timeframe
- no exits, no profit handling, no loss handling
- no replay-based trade-state reconstruction
- no full forecast/probability layer
- some filters may still remove both good and bad signals
- current-bar live candidates can update before bar close
Who it’s for
This script is best suited for:
- traders who want a cleaner entry-only tool
- users looking for realtime directional shift markers
- traders who want historically stable confirmed entry markers
- users who want a simpler transform-based script
- users interested in market-structure style entries without a full operational engine
Who it’s not for
This script is not best suited for:
- users wanting full trade management
- users expecting exits and complete automation
- users expecting universal high-accuracy winner/loser separation
- users wanting a full replay/stat engine
- users wanting a complete forecast system
- users looking for a guaranteed low-false-signal solution
Known limitations
This script is better at:
- structuring entries
- cleaning up directional state
- and showing stable historical entry markers
than it is at:
- reliably separating all future winners from losers before entry
It should be viewed as an entry-focused structure tool, not as a complete predictive engine or full trade-management system.
Final note
Realtime Non-Repainting Entries is a focused, entry-only script built around realtime causal entry structure and historically stable confirmed entry markers. It is designed to be useful and clear without turning into a full operational engine. Its value is in structuring entries more cleanly than raw price alone, not in solving the entire trading problem.
Phát hành các Ghi chú
Switched from the older single-transform filtered entry model to a dual-transform structural path model that attempts to reduce false pivots, filter out more noise, and reduce entry delay. Simplified filters, improved pivot-state handling, and clarified inputs.Phát hành các Ghi chú
Update SummaryMajor rebuild of the entry-only tool
The script has been reworked to make entries more reliable, more stable on closed bars, and more selective against weak pivots that do not follow through, while trying to maintain similar delay and reduce delay where possible.
What changed
- Rebuilt the entry-side structure around a stronger fast/confirm transform process
- Improved pivot-confirm / entry-confirm handling
- Added stronger filtering visibility through BUY FILTERED / SELL FILTERED behavior
- Added follow-through measurement and recommendation logic
- Expanded status/debug information to make the script easier to understand and evaluate
- Improved live candidate and historical entry presentation
- Kept the script focused on entry-only structure rather than turning it into a full trade-management engine
Important note
This update is intended to improve entry quality, stability, and false-pivot filtering, but it does not fully eliminate false pivots in every market or timeframe.
Phát hành các Ghi chú
Rebuilt the public entry-only release to be more useful as a standalone tool. This version removes the older causal-approximation dependency from the public release, adds stronger structural agreement filtering, improves replay/readout behavior, and expands follow-through measurement so the script can better distinguish stronger vs weaker recent conditions. This update also attempts to improve entry filtering further while keeping the script non-repainting and standalone-usable.Phát hành các Ghi chú
Rebuilt the script from the older fast/confirm entry-only structure into a stronger standalone maximum-path entries release.Changes:
• Replaced the older fast/confirm transform agreement model with a maximum-path state model.
• Added replayed BUY / SELL labels using the maximum-path signal structure.
• Added optional path permanence / follow-through filtering.
• Added BUY FILTERED / SELL FILTERED label visibility for blocked events.
• Added adaptive follow-through multiplier controls.
• Added maximum-path candle / hidden-path reveal visualization.
• Added standalone trade lifecycle controls, including expansion/trend sizing, envelope exits, giveback logic, raw-profit gating, and adverse-transform loss-exit gating.
• Added 5-page status table: Summary, Trades, Signals, Path, Help.
• Added replay/stat performance controls for heavier charts.
• Removed duplicate alert toggles so BUY/SELL lifecycle alerts are cleaner.
• Cleaned unused variables, stale compatibility code, and outdated wording.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.