From 4bd2838a81d34665b91eaef27c36705b80fd1b15 Mon Sep 17 00:00:00 2001 From: addychai355-create Date: Tue, 12 May 2026 22:00:23 +0800 Subject: [PATCH] Add XAU/USD Gold scalping strategy + dashboard focused on gold --- dashboard/app.py | 543 +++++++++++++++++++--------------------- data/fx_data.py | 5 + strategies/xau_scalp.py | 367 +++++++++++++++++++++++++++ 3 files changed, 625 insertions(+), 290 deletions(-) create mode 100644 strategies/xau_scalp.py diff --git a/dashboard/app.py b/dashboard/app.py index a8dd01c..c37372b 100644 --- a/dashboard/app.py +++ b/dashboard/app.py @@ -1,16 +1,10 @@ """ Forex Quant Dashboard โ€” Streamlit App Monitor signals, performance, and live prices from anywhere. - -Deploy to Streamlit Community Cloud for free: - 1. Push this folder to GitHub - 2. Go to https://streamlit.io/cloud - 3. Connect repo โ†’ Deploy +Default focus: XAU/USD Gold Scalping (5m, 5-15 min holds) """ import sys from pathlib import Path - -# Add project root to path sys.path.insert(0, str(Path(__file__).parent.parent)) import warnings @@ -25,36 +19,23 @@ from plotly.subplots import make_subplots from datetime import datetime, timedelta, timezone from data.fx_data import get_forex_data, AVAILABLE_PAIRS -from strategies.momentum import add_indicators, generate_signals, calculate_performance +from strategies.xau_scalp import add_indicators_xau, generate_signals_xau, calculate_performance_xau st.set_page_config( - page_title="Forex Quant Monitor", - page_icon="๐Ÿ“Š", + page_title="XAU Scalp Monitor", + page_icon="๐Ÿฅ‡", layout="wide", initial_sidebar_state="expanded", ) -# โ”€โ”€โ”€ Color scheme โ”€โ”€โ”€ -COLORS = { - "bg": "#0E1117", - "card": "#1A1D23", - "green": "#00C853", - "red": "#FF1744", - "blue": "#448AFF", - "yellow": "#FFD600", - "text": "#E0E0E0", -} +COLORS = {"bg": "#0E1117", "card": "#1A1D23", "green": "#00C853", + "red": "#FF1744", "blue": "#448AFF", "yellow": "#FFD600", "text": "#E0E0E0"} st.markdown("""