OPEN-SOURCE SCRIPT
Kinzamvwete

**Gold Strategy v10 – XAUUSD** is an automated trading strategy for gold built on two complementary setups: **Fair Value Gaps (FVG)** and **Bollinger Band reversals**, both filtered by a **200-period moving average** for directional bias.
Entries are triggered when price returns into an unfilled FVG or bounces off the outer Bollinger Bands, with dynamic position sizing that automatically calculates the correct lot size based on your account capital and risk percentage per trade. Stop losses are placed beyond the signal candle's wick with a configurable buffer, while take profits target a fixed R:R ratio (FVG) or the BB midline / MA20 (BB setups).
The strategy includes session filtering, breakeven and trailing stop management, and a real-time dashboard displaying active trade details, win/loss counts, and net profit — making it a complete, risk-managed system ready for backtesting and live deployment on XAUUSD.
Entries are triggered when price returns into an unfilled FVG or bounces off the outer Bollinger Bands, with dynamic position sizing that automatically calculates the correct lot size based on your account capital and risk percentage per trade. Stop losses are placed beyond the signal candle's wick with a configurable buffer, while take profits target a fixed R:R ratio (FVG) or the BB midline / MA20 (BB setups).
The strategy includes session filtering, breakeven and trailing stop management, and a real-time dashboard displaying active trade details, win/loss counts, and net profit — making it a complete, risk-managed system ready for backtesting and live deployment on XAUUSD.
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.