XAUUSD ML Supertrend [MatsukazeAlgo]🇬🇧 ENGLISH
A Gold-optimized version of the Machine Learning Supertrend. The original engine — SuperTrend foundation with three adaptive learning layers (Global Optimizer, Micro-Batch Processor, and Regime Grid) — is preserved. Four Gold-specific layers are added: session filtering, DXY bias, psychological level TP boost, and a Session-Aware Regime Grid that replaces trend-strength axes with Asia / London / NY session identifiers.
Concepts
Machine Learning SuperTrend — The original indicator fires entry signals when a volatility band flips direction (Reversal mode) or when price pushes to a new extreme within a trend (Breakout mode). What makes it adaptive is the background simulation: every signal opens a simulated trade, and the results continuously feed three learning systems that adjust the underlying parameters. The longer it runs, the more the engine reflects the current market's character.
Three Adaptive Layers — The Global Optimizer monitors rolling win rate, Sortino ratio, and profit factor to propose parameter changes. The Micro-Batch Processor groups results into mini-batches for faster short-term adjustments. The Regime Grid is a 2D memory map that remembers what settings worked under similar conditions (trend strength × volatility) and biases proposals accordingly. These three layers run in parallel, reinforcing each other.
Session-Aware Regime Grid — On Gold, the relevant "conditions" are not just trend strength and volatility — they are which session is active. Asia builds range. London breaks it. NY follows through or reverses. This version replaces the volatility axis of the Regime Grid with a session axis (Asia = 0.15, London = 0.5, NY = 0.85). The ML engine now learns optimal parameters per session rather than per generic market regime. Asia settings become distinct from London settings over time.
DXY Bias — Gold and the US Dollar Index move inversely. When DXY is weakening (below its EMA), bullish signals are permitted. When DXY is strengthening, bearish signals are permitted. Signals that fight the macro Gold/Dollar relationship are filtered out before they reach the chart.
Psychological Level TP Boost — Gold respects $50 and $100 round numbers as institutional order clusters. When an entry signal occurs near one of these levels, the simulated trade target is extended by a configurable ATR bonus. This tells the adaptive engine that psychological level entries have more room, producing more accurate learning near round numbers.
How It Works
1. SuperTrend bands are calculated using the configured lookback, smoothing, and band width.
2. Signals fire in Reversal mode (band flip with trend exhaustion) or Breakout mode (new extreme within trend).
3. Session filter blocks signals during excluded sessions. Asia is excluded by default.
4. DXY filter blocks signals that oppose the Dollar trend.
5. Each signal opens a background simulated trade. Outcome is scored and fed to the three adaptive layers.
6. Session-aware Regime Grid maps performance by session, not just volatility × trend strength.
7. Psych level entries get extended TP in simulation, improving learning accuracy near round numbers.
8. Dashboard shows current session, DXY state, signal mode, and live performance metrics.
Gold-Specific Features
Session Filter — Individual toggles for Asia / London / NY. Asia is OFF by default. Gold's Asia session is dominated by thin liquidity and stop runs that produce unreliable signals. London and NY carry institutional volume.
DXY Bias — Bullish signals only when DXY is below its EMA. Bearish signals only when DXY is above it. Configurable EMA period.
Psychological Level TP Boost — When entry is within the configured proximity of a $25, $50, or $100 round number, the simulated TP is extended by the configured ATR bonus. The ML engine learns that these entries have more follow-through, adjusting parameters accordingly.
Session-Aware Regime Grid — Replaces trend-strength as the X-axis with session identity. The engine builds separate parameter memory for Asia, London, and NY. Over time, it discovers that Asia requires different band widths than London.
Dashboard — Shows current session, DXY state, signal mode, active parameters, and simulated win rates per session. Disabled by default.
Session Background — Optional coloured background per session (Asia=rose, London=teal, NY=sky). OFF by default.
Alerts
All original alert types are preserved: Long Signal, Short Signal. These fire only for session-allowed, DXY-confirmed signals.
Input Reference
Gold Settings — Session Filter: master toggle with individual Asia/London/NY toggles. DXY Bias: enable/disable with DXY symbol and trend EMA period. Psych Level TP Boost: enable/disable with interval ($25/$50/$100), proximity ($), and ATR bonus multiplier. Session-Aware Regime Grid: toggle to use session as Regime Grid X-axis. Dashboard: show/hide. Session Background: show/hide.
Signal Mode (①) — Signal Type (Reversal/Breakout), Require Fresh Pivot, Signal Spacing.
Volatility Envelope (②) — Lookback Window, Smoothing Period, Band Width (most impactful setting), Price Basis, True Range Mode.
Momentum Filter (③) — RSI length and hot/cold zone memory.
Flow Analysis (④) — Volume sample depth and surge threshold.
Adaptive Engine (⑤–⑥) — Learning rate, batch size, Regime Grid resolution, Reactivity / Master Dial.
Conclusion
XAUUSD ML Supertrend adds Gold's three-session structure to one of the most powerful adaptive trend indicators on TradingView. The machine learning engine no longer treats Asia, London, and NY the same — it learns them separately. DXY alignment removes signals that fight the macro Gold/Dollar relationship. Psychological level awareness improves simulation accuracy near the round numbers that Gold consistently respects.
The original engine by Zimord is preserved in full. The Gold additions layer on top without touching the core learning architecture.
---
Based on Machine Learning Supertrend by Zimord . This version adds session filtering (Asia/London/NY), DXY bias filter, psychological level TP boost, session-aware Regime Grid, and MatsukazeAlgo session palette.
---
🇯🇵 日本語
Machine Learning Supertrendのゴールド最適化版です。オリジナルエンジン(SuperTrend基盤 + グローバルオプティマイザー、マイクロバッチプロセッサー、レジームグリッドの3層学習)を完全保持。セッションフィルター、DXYバイアス、心理的価格帯TP延長、セッション対応レジームグリッドの4つのゴールド専用レイヤーを追加。
コンセプト
機械学習スーパートレンド — オリジナルはボラティリティバンドの反転(Reversalモード)または新高値/安値(Breakoutモード)でシグナルを発火。バックグラウンドシミュレーションが全シグナルをトレースし、3つの学習システムに結果を供給して継続的にパラメータを調整。稼働時間が長いほど、現在の市場特性を反映した設定になる。
3つの適応レイヤー — グローバルオプティマイザーがローリング勝率・ソルティノ比率・プロフィットファクターを監視。マイクロバッチプロセッサーが結果をミニバッチに分類して素早い短期調整を実施。レジームグリッドが類似条件下で効果的だった設定を記憶してプロポーザルにバイアスをかける。
セッション対応レジームグリッド — ゴールドで重要な「条件」はトレンド強度とボラティリティだけでない。どのセッションが動いているかが決定的。東京はレンジ形成、ロンドンはブレイク、NYは継続または反転。このバージョンではレジームグリッドのX軸をボラティリティからセッション(Asia=0.15、London=0.5、NY=0.85)に置き換え。MLエンジンが汎用的な市場レジームではなくセッションごとに最適パラメータを学習。
DXYバイアス — ゴールドとドル指数は逆相関。DXYがEMAを下回る時のみ強気シグナルを許可。マクロなゴールド/ドル関係に逆らうシグナルをフィルター。
心理的価格帯TP延長 — ゴールドは$50/$100のラウンドナンバーを機関投資家の注文クラスターとしてリスペクト。シグナルがこれらの価格帯付近で発生した場合、シミュレーションTPをATRボーナス分延長。適応エンジンが心理的価格帯エントリーの余地を正確に学習。
ゴールド専用機能
セッションフィルター — Asia/London/NYの個別トグル。Asiaはデフォルトでオフ。薄商いと流動性スイープが多いアジアを除外することで、信頼性の高いシグナルのみを許可。
DXYバイアス — DXYがEMA以下の場合のみ強気シグナル、EMA以上の場合のみ弱気シグナル。設定可能なEMA期間。
心理的価格帯TP延長 — $25/$50/$100のラウンドナンバー付近のエントリーでシミュレーションTPをATRボーナス分延長。MLエンジンの学習精度を向上。
セッション対応レジームグリッド — ボラティリティ軸をセッション識別子に置き換え。エンジンがAsia、London、NYそれぞれのパラメータ記憶を構築。
ダッシュボード — 現在セッション、DXY状態、シグナルモード、アクティブパラメータ、セッション別シミュレーション勝率を表示。
入力パラメータ
ゴールド設定 — セッションフィルター(Asia/London/NY個別トグル)、DXYバイアス(シンボル + EMA期間)、心理的価格帯TP延長(間隔/近接距離/ATRボーナス)、セッション対応レジームグリッド、ダッシュボード、セッション背景。
シグナルモード(①) — シグナルタイプ(Reversal/Breakout)、Fresh Pivot必須、シグナル間隔。
ボラティリティエンベロープ(②) — ルックバック、スムージング期間、バンド幅(最重要設定)、価格ベース、True Rangeモード。
モメンタムフィルター(③) — RSI長さ、ホット/コールドゾーンメモリ。
フロー分析(④) — ボリュームサンプル深さ、サージ閾値。
適応エンジン(⑤–⑥) — 学習率、バッチサイズ、レジームグリッド解像度、Reactivity / Master Dial。
まとめ
XAUUSD ML Supertrendは、TradingViewで最も強力な適応型トレンドインジケーターの一つにゴールドの3セッション構造を追加します。機械学習エンジンが東京、ロンドン、NYを同一視せず、それぞれ個別に学習します。DXYアライメントがマクロなゴールド/ドル関係に逆らうシグナルを除去。心理的価格帯の認識がゴールドが一貫してリスペクトするラウンドナンバー付近のシミュレーション精度を向上させます。
Zimordによるオリジナルエンジンは完全保持。ゴールドの追加機能はコア学習アーキテクチャに触れることなくレイヤーとして追加されています。
---
Based on Machine Learning Supertrend by Zimord . セッションフィルター(Asia/London/NY)、DXYバイアスフィルター、心理的価格帯TP延長、セッション対応レジームグリッド、MatsukazeAlgoセッションパレットを追加。
Pine Script®指标






















