S2O Gold Ai Alerts Signal (D1)

* **Regime-Aware TLX.** The TLX band can use an **Adaptive Multiplier** driven by a volatility/efficiency proxy (VR z-score). It tightens in quiet markets and relaxes in volatile regimes, aiming to reduce whipsaws without losing larger trends.
* **HTF Confirmation (optional).** Validate entries using a higher timeframe state (default 4H) so that signals align with the dominant trend.
* **BSZ Adaptive Threshold.** Momentum crosses (BSZ lead vs. trail) are accepted only when |lead − trail| is statistically elevated (user-defined z-score), suppressing weak “taps” during indecision.
* **Cooldown & Session Control.** Throttle signal frequency and restrict to trading windows to avoid thin liquidity or news spikes.
* **Non-repainting on close.** When “Confirm on Bar Close” is enabled, alerts are issued only on closed bars.
**Recommended use (D1)**
* Symbol examples: XAUUSD, major FX pairs, indices.
* Start with **TLX ATR Window = 3-5**, **Multiplier = 20**.
* BSZ Smooth Len = 2.
* For stricter entries, turn **ON** HTF Confirm and BSZ Adaptive Threshold (z-score ≥ 0.25–0.5).
* Keep **Confirm on Bar Close = ON** for live alerts.
**Alerts**
Add two alerts using *Any alert() function call* and choose:
* **S2O BUY** — fires when TLX is up and BSZ crosses up (plus optional filters).
* **S2O SELL** — fires when TLX is down and BSZ crosses down (plus optional filters).
**Disclaimers**
This script is for educational/informational purposes. No investment advice. Past performance does not guarantee future results. Always validate on your own symbols and broker conditions.
---
For more information, please contact me **directly on TradingView**—send me a private message from my profile (click my username on this script’s page) or leave a comment under the script.
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả đồng ý mới có thể truy cập tập lệnh này. Bạn cần yêu cầu và xin phép sử dụng tập lệnh này. Quyền truy cập thường được cấp sau khi thanh toán. Để biết thêm chi tiết, hãy làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với XKR_AI.
TradingView KHÔNG khuyến khích trả tiền hoặc sử dụng tập lệnh trừ khi bạn hoàn toàn tin tưởng tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm thấy các giải pháp thay thế miễn phí, mã nguồn mở trong mục tập lệnh cộng đồng của chúng tôi.
Hướng dẫn của tác giả
Thông báo miễn trừ trách nhiệm
Tập lệnh chỉ hiển thị cho người được mời
Chỉ những người dùng được tác giả đồng ý mới có thể truy cập tập lệnh này. Bạn cần yêu cầu và xin phép sử dụng tập lệnh này. Quyền truy cập thường được cấp sau khi thanh toán. Để biết thêm chi tiết, hãy làm theo hướng dẫn của tác giả bên dưới hoặc liên hệ trực tiếp với XKR_AI.
TradingView KHÔNG khuyến khích trả tiền hoặc sử dụng tập lệnh trừ khi bạn hoàn toàn tin tưởng tác giả và hiểu cách hoạt động của tập lệnh. Bạn cũng có thể tìm thấy các giải pháp thay thế miễn phí, mã nguồn mở trong mục tập lệnh cộng đồng của chúng tôi.