OPEN-SOURCE SCRIPT
AetherEdge - OneButton Trend Master

🖊️ Overview
AE-1BTN is a one-click trend tool stripped to ultimate simplicity. The chart background paints in three colors — green (buy), red (sell), grey (wait) — telling you the regime at a glance. Inside, a two-layer engine (EMA stack + KNN pattern match) decides, but the only user setting is sensitivity. For traders who don't want to fiddle with parameters and just want the verdict.
🔶 Key Features
3-color background: intuitive green / red / grey visualization
Two-layer engine: signal only when EMA stack and KNN match agree
Near-zero parameters: pick one of Conservative / Balanced / Aggressive
BUY/SELL labels on candles at trend flips
Internal complexity fully hidden — beginner-ready
Integrated HUD shows both layers and the final verdict
Built-in alerts
🧠 Technical Architecture
Layer one is the classic EMA stack — short/mid/long EMAs whose ordering gives a bullish/bearish/mixed verdict. Layer two is a genuine KNN (k-nearest-neighbors) algorithm: the current feature vector (return, momentum, volatility) is matched against feature vectors from each of the past 250 bars via Euclidean distance, picking the 7 nearest neighbors. Each neighbor votes by the actual 8-bar move that followed it, and the average becomes the predicted direction. Future leakage is structurally excluded — each neighbor's outcome uses only past data. The final verdict requires both layers to agree; disagreement defaults to WAIT, structurally suppressing noise signals.
⚙️ Recommended Settings & Tuning Guide
Just pick Sensitivity. For intraday or short swings, choose Balanced; for noise-heavy or ranging conditions, Conservative; to catch strong trends fast, Aggressive. All other parameters are pre-tuned internally and need no adjustment.
💡 How to Use in Practice
The simplest workflow is to follow the background. Hold longs while green, consider closing/flipping when it turns red, and stand aside on grey. The BUY/SELL labels mark trend-flip moments — useful as entry references. Combining with structure tools (support/resistance, key levels) and confirming the signal coincides with a relevant level raises conviction.
⚠️ Important Notes
Designed for trend-following, signals can flip frequently in ranges; frequent color changes can themselves be read as an "unstable regime" cue. The KNN layer runs only on the last bar for compute reasons, and historical background coloring uses the EMA stack alone — a design constraint, not repainting.
🚨 Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. No signal guarantees future profit, and past performance does not indicate future results. All trading decisions are made at your own risk.
AE-1BTN is a one-click trend tool stripped to ultimate simplicity. The chart background paints in three colors — green (buy), red (sell), grey (wait) — telling you the regime at a glance. Inside, a two-layer engine (EMA stack + KNN pattern match) decides, but the only user setting is sensitivity. For traders who don't want to fiddle with parameters and just want the verdict.
🔶 Key Features
3-color background: intuitive green / red / grey visualization
Two-layer engine: signal only when EMA stack and KNN match agree
Near-zero parameters: pick one of Conservative / Balanced / Aggressive
BUY/SELL labels on candles at trend flips
Internal complexity fully hidden — beginner-ready
Integrated HUD shows both layers and the final verdict
Built-in alerts
🧠 Technical Architecture
Layer one is the classic EMA stack — short/mid/long EMAs whose ordering gives a bullish/bearish/mixed verdict. Layer two is a genuine KNN (k-nearest-neighbors) algorithm: the current feature vector (return, momentum, volatility) is matched against feature vectors from each of the past 250 bars via Euclidean distance, picking the 7 nearest neighbors. Each neighbor votes by the actual 8-bar move that followed it, and the average becomes the predicted direction. Future leakage is structurally excluded — each neighbor's outcome uses only past data. The final verdict requires both layers to agree; disagreement defaults to WAIT, structurally suppressing noise signals.
⚙️ Recommended Settings & Tuning Guide
Just pick Sensitivity. For intraday or short swings, choose Balanced; for noise-heavy or ranging conditions, Conservative; to catch strong trends fast, Aggressive. All other parameters are pre-tuned internally and need no adjustment.
💡 How to Use in Practice
The simplest workflow is to follow the background. Hold longs while green, consider closing/flipping when it turns red, and stand aside on grey. The BUY/SELL labels mark trend-flip moments — useful as entry references. Combining with structure tools (support/resistance, key levels) and confirming the signal coincides with a relevant level raises conviction.
⚠️ Important Notes
Designed for trend-following, signals can flip frequently in ranges; frequent color changes can themselves be read as an "unstable regime" cue. The KNN layer runs only on the last bar for compute reasons, and historical background coloring uses the EMA stack alone — a design constraint, not repainting.
🚨 Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial or investment advice. No signal guarantees future profit, and past performance does not indicate future results. All trading decisions are made at your own risk.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.