OPEN-SOURCE SCRIPT
AetherEdge - Triaxial Consensus Strategy

🖊️ Overview
AE-TRIAX-S is the full strategy version of AE-TRIAX's triaxial consensus engine. Three independent analysis axes (Trend, Momentum, Volatility) and five AI/ML/RL layers (adaptive axis weights, regime classifier, MTF alignment, Q-learning thresholds, Confidence%) self-tune per instrument, paired with a complete trade management stack: smart position sizing, 3-tier TP management, partial close + breakeven, intelligent trailing, drawdown protection, and webhook alerts. Optimized for higher timeframes — 4-hour, daily, and weekly — enabling high-conviction swing trading unfazed by noise. Full backtesting via TradingView Strategy Tester.
🔶 Key Features
Full AE-TRIAX engine inherited: 3-axis continuous score + 5 AI/ML/RL layers, same signals as the indicator
Higher-timeframe-optimized design: best for 4h / daily / weekly swing trading
Smart position sizing: risk-% × Confidence% scaling
3-tier TP management: TP1/TP2/TP3 multi-target take-profit
Partial close + breakeven: 50% close at TP1, SL moves to entry
Intelligent trailing: SL trails only while Momentum axis agrees
4-way regime auto-classification: dynamic axis-weight bias
MTF alignment filter: two higher TFs evaluated against current TF
Q-learning adaptive threshold: best trigger level within preset range
Drawdown protection: halts entries on DD spike
Webhook alerts: price, Confidence, SL, TP, Regime in messages
Full backtesting via TradingView Strategy Tester
4-color tetrachrome palette + 3-tier EMA cloud
16-row integrated dashboard with DIAGNOSTIC row exposing firing conditions
🧠 Technical Architecture
The strategy is cleanly split into two layers: engine and execution. The engine layer (identical to the indicator) consists of 3-axis continuous scorers (Trend / Momentum / Volatility), adaptive EWMA axis weights, 4-regime classifier, MTF alignment, and ε-greedy Q-learning. The Strong condition fires only when toleranceOK + |finalScore| ≥ activeThr + Trend axis leans in signal direction + majority agreed — four conditions met. The execution layer activates only after Strong condition fires, calling strategy.entry() when canEnter = no open position AND Confidence ≥ 40% AND no DD halt. SL is ATR × rr_atrMulSL; TP1 = SL × RR × 0.6 (partial close target), TP2 = SL × RR (main RR), TP3 = SL × RR × 1.6 (final target), with strategy.exit qty_percent issuing TP1 and TP2 as partial closes. Position size is auto-computed as qty = (riskPct / slDistPct) × confidenceScale, capped by Max Leverage. Breakeven moves and trailing updates are implemented via strategy.exit "TRAIL" re-issuance.
⚙️ Recommended Settings & Tuning Guide
Recommended timeframes are 4-hour, daily, and weekly. Timeframes below 1-hour generate too many signals where per-bar noise causes false fires — not recommended. 4-hour suits crypto/FX swing trading; daily suits stocks/commodities mid-term swing; weekly suits long-term investing. Default is Beginner preset (threshold 50-70, conservative); switch to Standard (40-60) once familiar, or Aggressive (30-50) for advanced use. Risk % per Trade 1.0 standard; 0.5 conservative, 2.0 aggressive. Default RR Ratio 2.5 anchors TP2. Partial Close 50% is the TP1 close ratio — raise to 70% for faster profit-taking. Breakeven After TP1 suits trend-following. Intelligent Trailing Stop helps in trending regimes but can exit early in ranges. Max Drawdown Halt 8% is typical; raise to 10-12% for long-term runs. Set MTF to roughly 3-6× the current timeframe: on 4h chart use daily/weekly HTFs; on daily chart use weekly/monthly HTFs.
💡 How to Use in Practice
Apply to chart and run TradingView Strategy Tester → review total return, win rate, max DD, Sharpe ratio. Backtest on at least 6 months of higher-timeframe data for meaningful results. For live trading, configure webhook alerts — alert_message embeds price, confidence, SL, TP, regime for automated exchange API submission. Strong arrows print with summary labels and SL/TP1/TP2/TP3 lines; TP1 touches trigger partial close + breakeven move, TP2/TP3 close remainder, SL closes everything — all automated. The HUD's DIAGNOSTIC row exposes both "why no signal now" and "why no entry now" at a glance (DD halt active, position open, +15 score to BUY, etc.). "Quiet" regime means all signals are weak; "Trend" regime is the most reliable. Combining with the indicator version (AE-TRIAX) effectively separates chart analysis from automated execution.
🧩 Relationship with Indicator Version
AE-TRIAX-S's signal-firing engine is identical to the indicator (AE-TRIAX). Arrows print on the same bars and HUD values match across both. The strategy adds three execution-only safety filters (position already open, Confidence < 40%, drawdown breach) that only gate the entry call. When an arrow prints but no entry occurs, the HUD's DIAGNOSTIC row explains why. Use the indicator for chart analysis and manual entry; use the strategy for backtesting and automated execution.
⚠️ Important Notes
This is multi-agent-style 3-axis consensus, not true multi-agent RL or deep learning. Each layer reproduces the mathematical core of those techniques within Pine's limits. Strongly recommended for 4-hour timeframes and above — sub-1-hour timeframes will see increased false fires due to per-bar noise. MTF via request.security carries small confirmed-bar delays. Q-learning and adaptive axis weights require per-instrument learning; during initial data accumulation (a few months on higher TFs), optimization is incomplete. Backtest results don't fully reflect commissions, slippage, or execution delays; set Strategy Tester's Commission to match your exchange. Drawdown Protection is a safety net, not a complete eliminator of market risk. On higher TFs entry frequency is low — diversify across multiple instruments to increase opportunities.
🚨 Disclaimer
This strategy is provided for educational and informational purposes only and does not constitute financial or investment advice. No signal or backtest result guarantees future profit, and past performance does not indicate future results. All trading decisions are made at your own risk.
AE-TRIAX-S is the full strategy version of AE-TRIAX's triaxial consensus engine. Three independent analysis axes (Trend, Momentum, Volatility) and five AI/ML/RL layers (adaptive axis weights, regime classifier, MTF alignment, Q-learning thresholds, Confidence%) self-tune per instrument, paired with a complete trade management stack: smart position sizing, 3-tier TP management, partial close + breakeven, intelligent trailing, drawdown protection, and webhook alerts. Optimized for higher timeframes — 4-hour, daily, and weekly — enabling high-conviction swing trading unfazed by noise. Full backtesting via TradingView Strategy Tester.
🔶 Key Features
Full AE-TRIAX engine inherited: 3-axis continuous score + 5 AI/ML/RL layers, same signals as the indicator
Higher-timeframe-optimized design: best for 4h / daily / weekly swing trading
Smart position sizing: risk-% × Confidence% scaling
3-tier TP management: TP1/TP2/TP3 multi-target take-profit
Partial close + breakeven: 50% close at TP1, SL moves to entry
Intelligent trailing: SL trails only while Momentum axis agrees
4-way regime auto-classification: dynamic axis-weight bias
MTF alignment filter: two higher TFs evaluated against current TF
Q-learning adaptive threshold: best trigger level within preset range
Drawdown protection: halts entries on DD spike
Webhook alerts: price, Confidence, SL, TP, Regime in messages
Full backtesting via TradingView Strategy Tester
4-color tetrachrome palette + 3-tier EMA cloud
16-row integrated dashboard with DIAGNOSTIC row exposing firing conditions
🧠 Technical Architecture
The strategy is cleanly split into two layers: engine and execution. The engine layer (identical to the indicator) consists of 3-axis continuous scorers (Trend / Momentum / Volatility), adaptive EWMA axis weights, 4-regime classifier, MTF alignment, and ε-greedy Q-learning. The Strong condition fires only when toleranceOK + |finalScore| ≥ activeThr + Trend axis leans in signal direction + majority agreed — four conditions met. The execution layer activates only after Strong condition fires, calling strategy.entry() when canEnter = no open position AND Confidence ≥ 40% AND no DD halt. SL is ATR × rr_atrMulSL; TP1 = SL × RR × 0.6 (partial close target), TP2 = SL × RR (main RR), TP3 = SL × RR × 1.6 (final target), with strategy.exit qty_percent issuing TP1 and TP2 as partial closes. Position size is auto-computed as qty = (riskPct / slDistPct) × confidenceScale, capped by Max Leverage. Breakeven moves and trailing updates are implemented via strategy.exit "TRAIL" re-issuance.
⚙️ Recommended Settings & Tuning Guide
Recommended timeframes are 4-hour, daily, and weekly. Timeframes below 1-hour generate too many signals where per-bar noise causes false fires — not recommended. 4-hour suits crypto/FX swing trading; daily suits stocks/commodities mid-term swing; weekly suits long-term investing. Default is Beginner preset (threshold 50-70, conservative); switch to Standard (40-60) once familiar, or Aggressive (30-50) for advanced use. Risk % per Trade 1.0 standard; 0.5 conservative, 2.0 aggressive. Default RR Ratio 2.5 anchors TP2. Partial Close 50% is the TP1 close ratio — raise to 70% for faster profit-taking. Breakeven After TP1 suits trend-following. Intelligent Trailing Stop helps in trending regimes but can exit early in ranges. Max Drawdown Halt 8% is typical; raise to 10-12% for long-term runs. Set MTF to roughly 3-6× the current timeframe: on 4h chart use daily/weekly HTFs; on daily chart use weekly/monthly HTFs.
💡 How to Use in Practice
Apply to chart and run TradingView Strategy Tester → review total return, win rate, max DD, Sharpe ratio. Backtest on at least 6 months of higher-timeframe data for meaningful results. For live trading, configure webhook alerts — alert_message embeds price, confidence, SL, TP, regime for automated exchange API submission. Strong arrows print with summary labels and SL/TP1/TP2/TP3 lines; TP1 touches trigger partial close + breakeven move, TP2/TP3 close remainder, SL closes everything — all automated. The HUD's DIAGNOSTIC row exposes both "why no signal now" and "why no entry now" at a glance (DD halt active, position open, +15 score to BUY, etc.). "Quiet" regime means all signals are weak; "Trend" regime is the most reliable. Combining with the indicator version (AE-TRIAX) effectively separates chart analysis from automated execution.
🧩 Relationship with Indicator Version
AE-TRIAX-S's signal-firing engine is identical to the indicator (AE-TRIAX). Arrows print on the same bars and HUD values match across both. The strategy adds three execution-only safety filters (position already open, Confidence < 40%, drawdown breach) that only gate the entry call. When an arrow prints but no entry occurs, the HUD's DIAGNOSTIC row explains why. Use the indicator for chart analysis and manual entry; use the strategy for backtesting and automated execution.
⚠️ Important Notes
This is multi-agent-style 3-axis consensus, not true multi-agent RL or deep learning. Each layer reproduces the mathematical core of those techniques within Pine's limits. Strongly recommended for 4-hour timeframes and above — sub-1-hour timeframes will see increased false fires due to per-bar noise. MTF via request.security carries small confirmed-bar delays. Q-learning and adaptive axis weights require per-instrument learning; during initial data accumulation (a few months on higher TFs), optimization is incomplete. Backtest results don't fully reflect commissions, slippage, or execution delays; set Strategy Tester's Commission to match your exchange. Drawdown Protection is a safety net, not a complete eliminator of market risk. On higher TFs entry frequency is low — diversify across multiple instruments to increase opportunities.
🚨 Disclaimer
This strategy is provided for educational and informational purposes only and does not constitute financial or investment advice. No signal or backtest result guarantees future profit, and past performance does not indicate future results. All trading decisions are made at your own risk.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。