Three ThinkorSwim studies, full source code:
• Nadaraya-Watson Envelope, NON-repainting (arrows never move), with alerts. Use this one live.
• Nadaraya-Watson Envelope, classic repainting look (for studying charts only)
• Nadaraya-Watson Smoother (estimator) with turning-point arrows
Also included: the 4-page backtest report from our YouTube test (8 markets, since 2002):
chart vs real time, the win-rate trap, and the random-timing test.
Honest note: in our daily backtest, no version beat buy & hold as a stand-alone system. One rule showed a small
timing edge vs random entries. The report shows exactly where, and where our own test could be wrong.
Based on LuxAlgo’s open-source TradingView indicators (CC BY-NC-SA 4.0). Free, non-commercial, credits kept.
Educational tools, not financial advice.