OPEN-SOURCE SCRIPT
NEXFEL – Quantum Adaptive MACD System v2.0

# NEXFEL – Quantum Adaptive MACD System v2.0
## 📌 Overview
The **NEXFEL – Quantum Adaptive MACD System v2.0** is an advanced, fully integrated decision-support tool built upon an enhanced adaptive MACD engine.
Unlike traditional MACD implementations that rely on fixed parameters, this system uses **R² correlation** to dynamically adjust sensitivity based on current market behavior.
This indicator **does not simply merge tools**; it unifies:
- Adaptive MACD calculation
- Multi-timeframe sentiment (1H + 4H)
- Market regime detection
- Volume confirmation
- Confidence scoring (0–100%)
- ATR stop-loss visualization
- Session filtering
- Daily trade limit control
into a **single coherent trading framework**.
This publication replaces my previous “Adaptive MACD Flow PRO”, as this version is a complete rewrite with new logic, improved structure, and expanded analytical capabilities.
---
## ⚙️ How It Works
### **1. Adaptive MACD Core (R²-Based)**
The MACD sensitivity is adjusted using R² correlation:
- High R² → smoother & more stable response
- Low R² → more reactive & faster response
This adaptation allows the oscillator to naturally adjust to different volatility environments.
---
### **2. Multi-Timeframe Sentiment**
The system analyzes:
- **1H EMAs (10/30)**
- **4H EMAs (20/50)**
A directional sentiment score is generated, allowing signals only when the local timeframe aligns with the higher timeframe structure.
---
### **3. Market Regime Detection**
The indicator identifies whether the market is:
- **TRENDING**
- **RANGING**
- **NEUTRAL**
Signals are validated or filtered depending on the active regime.
---
### **4. Confidence Scoring System (0–100%)**
The signal quality is measured by weighting:
- Momentum
- Volume confirmation
- Market regime compatibility
- Multi-timeframe alignment
- Local trend direction
- Short-term momentum
Only **high-confidence** conditions produce the safest BUY/SELL signals.
---
### **5. ATR Stop-Loss Visualization**
Dynamic stop levels are displayed using:
- ATR × multiplier
A visual reference for risk management without executing trades.
---
### **6. Daily Trade Limit Control**
To prevent overtrading, the system tracks daily signals and restricts new ones once a limit is reached.
---
### **7. Multi-Language Interface**
The panel can display:
- **English**
- **Portuguese**
depending on user selection.
(TradingView requires English as the primary language, which is why it appears first in this description.)
---
## 👤 Who This Script Is For
- Traders seeking a more reliable and adaptive MACD
- Scalpers who prefer high-confirmation entries
- Swing traders analyzing market regimes
- Users needing a clean, objective analytical panel
---
## ⚠️ Important
This indicator does **not** execute trades and does not guarantee results.
It is a **decision-support system**, not a trading bot.
# 📝 Author’s Notes
This version is a complete redesign of my previous indicator.
All components were rebuilt, expanded, and optimized to offer a more structured and reliable trading system.
## 📌 Overview
The **NEXFEL – Quantum Adaptive MACD System v2.0** is an advanced, fully integrated decision-support tool built upon an enhanced adaptive MACD engine.
Unlike traditional MACD implementations that rely on fixed parameters, this system uses **R² correlation** to dynamically adjust sensitivity based on current market behavior.
This indicator **does not simply merge tools**; it unifies:
- Adaptive MACD calculation
- Multi-timeframe sentiment (1H + 4H)
- Market regime detection
- Volume confirmation
- Confidence scoring (0–100%)
- ATR stop-loss visualization
- Session filtering
- Daily trade limit control
into a **single coherent trading framework**.
This publication replaces my previous “Adaptive MACD Flow PRO”, as this version is a complete rewrite with new logic, improved structure, and expanded analytical capabilities.
---
## ⚙️ How It Works
### **1. Adaptive MACD Core (R²-Based)**
The MACD sensitivity is adjusted using R² correlation:
- High R² → smoother & more stable response
- Low R² → more reactive & faster response
This adaptation allows the oscillator to naturally adjust to different volatility environments.
---
### **2. Multi-Timeframe Sentiment**
The system analyzes:
- **1H EMAs (10/30)**
- **4H EMAs (20/50)**
A directional sentiment score is generated, allowing signals only when the local timeframe aligns with the higher timeframe structure.
---
### **3. Market Regime Detection**
The indicator identifies whether the market is:
- **TRENDING**
- **RANGING**
- **NEUTRAL**
Signals are validated or filtered depending on the active regime.
---
### **4. Confidence Scoring System (0–100%)**
The signal quality is measured by weighting:
- Momentum
- Volume confirmation
- Market regime compatibility
- Multi-timeframe alignment
- Local trend direction
- Short-term momentum
Only **high-confidence** conditions produce the safest BUY/SELL signals.
---
### **5. ATR Stop-Loss Visualization**
Dynamic stop levels are displayed using:
- ATR × multiplier
A visual reference for risk management without executing trades.
---
### **6. Daily Trade Limit Control**
To prevent overtrading, the system tracks daily signals and restricts new ones once a limit is reached.
---
### **7. Multi-Language Interface**
The panel can display:
- **English**
- **Portuguese**
depending on user selection.
(TradingView requires English as the primary language, which is why it appears first in this description.)
---
## 👤 Who This Script Is For
- Traders seeking a more reliable and adaptive MACD
- Scalpers who prefer high-confirmation entries
- Swing traders analyzing market regimes
- Users needing a clean, objective analytical panel
---
## ⚠️ Important
This indicator does **not** execute trades and does not guarantee results.
It is a **decision-support system**, not a trading bot.
# 📝 Author’s Notes
This version is a complete redesign of my previous indicator.
All components were rebuilt, expanded, and optimized to offer a more structured and reliable trading system.
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.