OPEN-SOURCE SCRIPT
已更新 Aegis Kinetic Trend Matrix [wjdtks255]

Aegis Kinetic Trend Matrix [EMA + HalfTrend + NWE]
■ OVERVIEW
The Aegis Kinetic Trend Matrix is a professional-grade trend-following framework designed to unify macroeconomic bias filters, micro-execution entry triggers, and volatility boundaries into a single, cohesive candle-overlay system.
By integrating three robust open-source concepts—CM_EMA Trend Bars, HalfTrend, and the Nadaraya-Watson Envelope (NWE)—this system provides traders with a multi-layered filtration process to capture structural market swings with precision.
■ KEY FEATURES
CM_EMA Trend Bars: Dynamically shifts candlestick colors based on a 34-period EMA algorithm to isolate core macro direction and eliminate market noise.
HalfTrend Execution Spine: High-precision trailing anchor that tracks micro-trend pivots, offering distinct, instant BUY and SELL execution labels.
Nadaraya-Watson Envelope: Uses non-parametric kernel regression bounds to highlight overextended pricing and filter volatility exhaustion zones at major structural extremes.
■ 개요 (Korean)
Aegis Kinetic Trend Matrix는 거시적 추세 필터링, 미세 타점 포착, 그리고 변동성의 한계 구간을 단 하나의 캔들 오버레이 시스템으로 결합한 하이브리드 트레이딩 프레임워크입니다.
CM_EMA 트렌드 바, 하프트렌드(HalfTrend), 나다라야-왓슨 엔벨로프(NWE) 시스템을 유기적으로 결합하여, 거친 시장 소음을 여과하고 구조적 변곡점을 정밀하게 잡아내도록 설계되었습니다.
■ 핵심 기능
CM_EMA 트렌드 바: 34선 기준 가격 배열에 따라 캔들 색상을 직관적으로 변경하여 시장의 대추세 방향성을 명확히 정의합니다.
하프트렌드 실행 축: 단기적인 마이크로 추세 전환을 정밀하게 추적하며, 즉각적인 BUY/SELL 진입 라벨을 제공합니다.
Nadaraya-Watson 엔벨로프: 커널 회귀 분석 기반의 동적 밴드를 통해 가격의 과도한 이격을 감지하고 추세적 극한 구간의 반전 포인트를 필터링합니다.
■ Credits & Acknowledgments
This indicator is a combined integration based on public domain open-source works. Special credits and gratitude go to the original authors of CM_EMA, HalfTrend, and Nadaraya-Watson Envelope (AlexGrozav) for sharing their invaluable source code with the global community.
■ OVERVIEW
The Aegis Kinetic Trend Matrix is a professional-grade trend-following framework designed to unify macroeconomic bias filters, micro-execution entry triggers, and volatility boundaries into a single, cohesive candle-overlay system.
By integrating three robust open-source concepts—CM_EMA Trend Bars, HalfTrend, and the Nadaraya-Watson Envelope (NWE)—this system provides traders with a multi-layered filtration process to capture structural market swings with precision.
■ KEY FEATURES
CM_EMA Trend Bars: Dynamically shifts candlestick colors based on a 34-period EMA algorithm to isolate core macro direction and eliminate market noise.
HalfTrend Execution Spine: High-precision trailing anchor that tracks micro-trend pivots, offering distinct, instant BUY and SELL execution labels.
Nadaraya-Watson Envelope: Uses non-parametric kernel regression bounds to highlight overextended pricing and filter volatility exhaustion zones at major structural extremes.
■ 개요 (Korean)
Aegis Kinetic Trend Matrix는 거시적 추세 필터링, 미세 타점 포착, 그리고 변동성의 한계 구간을 단 하나의 캔들 오버레이 시스템으로 결합한 하이브리드 트레이딩 프레임워크입니다.
CM_EMA 트렌드 바, 하프트렌드(HalfTrend), 나다라야-왓슨 엔벨로프(NWE) 시스템을 유기적으로 결합하여, 거친 시장 소음을 여과하고 구조적 변곡점을 정밀하게 잡아내도록 설계되었습니다.
■ 핵심 기능
CM_EMA 트렌드 바: 34선 기준 가격 배열에 따라 캔들 색상을 직관적으로 변경하여 시장의 대추세 방향성을 명확히 정의합니다.
하프트렌드 실행 축: 단기적인 마이크로 추세 전환을 정밀하게 추적하며, 즉각적인 BUY/SELL 진입 라벨을 제공합니다.
Nadaraya-Watson 엔벨로프: 커널 회귀 분석 기반의 동적 밴드를 통해 가격의 과도한 이격을 감지하고 추세적 극한 구간의 반전 포인트를 필터링합니다.
■ Credits & Acknowledgments
This indicator is a combined integration based on public domain open-source works. Special credits and gratitude go to the original authors of CM_EMA, HalfTrend, and Nadaraya-Watson Envelope (AlexGrozav) for sharing their invaluable source code with the global community.
發行說明
[Bug Fix & Performance Update / 오류 수정 및 기능 개선]■ English
1. Fixed Main Chart Overlay Bug
- Fixed an issue where the indicator was detached and displayed in a separate sub-window at the bottom. It now correctly overlays directly on the main candlestick chart.
2. Fixed NWE Band Plotting Bug
- Resolved a logical rendering issue where the Nadaraya-Watson Envelope bands failed to draw properly on historical bars due to an unassigned variable error.
* Note: If you already have this indicator on your chart, please refresh or remove and re-add it to apply the updates!
---
■ 한국어
1. 메인 차트 표시(오버레이) 오류 수정
- 지표가 캔들 차트가 아닌 하단 보조지표 창에 분리되어 생성되던 현상을 해결했습니다. 이제 추가 시 캔들 위에 정상적으로 오버레이되어 표시됩니다.
2. NWE 밴드 작도 및 수식 버그 수정
- 과거 차트 구간에서 특정 변수 초기화 문제로 인해 Nadaraya-Watson Envelope 밴드 라인이 누락되거나 정상적으로 그려지지 않던 논리적 연산 오류를 전면 수정했습니다.
* 기존에 차트에 등록해두신 분들은 지표를 새로고침하거나, 삭제 후 다시 추가하시면 정상 반영됩니다!
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。