From f930f268391a9d5888a4b7e4db88da58473ae056 Mon Sep 17 00:00:00 2001 From: chrisnov-it Date: Tue, 23 Jun 2026 13:33:04 +0800 Subject: [PATCH] Add CLAUDE.md + dark mode sweep across all 12 remaining templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CLAUDE.md: project overview, architecture, conventions, key files - Dark mode now covers: trading_bots, portfolio, backtesting, history, bot_detail, backtest_history, settings, notifications, profile, ramadan, forex, stocks — all 12 templates - Consistent dark:bg-slate-800/700/900 + dark:text-gray-*/white patterns Co-Authored-By: Claude --- CLAUDE.md | 65 +++++++++++++++++++++++++ templates/backtest_history.html | 12 ++--- templates/backtesting.html | 40 ++++++++-------- templates/bot_detail.html | 28 +++++------ templates/forex.html | 26 +++++----- templates/history.html | 26 +++++----- templates/notifications.html | 6 +-- templates/portfolio.html | 34 ++++++------- templates/profile.html | 24 +++++----- templates/ramadan.html | 84 ++++++++++++++++----------------- templates/settings.html | 46 +++++++++--------- templates/stocks.html | 26 +++++----- templates/trading_bots.html | 78 +++++++++++++++--------------- 13 files changed, 280 insertions(+), 215 deletions(-) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..278c5f2 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,65 @@ +# CLAUDE.md — QuantumBotX + +## Project Overview +AI-powered modular trading bot built with Python & Flask. +Supports MetaTrader 5 + CCXT with backtesting, strategy testing, and web dashboard. + +## Architecture +``` +Flask Web UI (Jinja2 + Tailwind CSS + Chart.js) + ↓ +API Routes (core/routes/ — 21 endpoints) + ↓ +Controller (core/bots/controller.py) + ↓ +TradingBot / CCXTTradingBot (core/bots/) + ↓ +23 Strategies (core/strategies/) + ↓ +BrokerFactory (core/brokers/broker_factory.py) + ↓ +10 Broker Adapters (MT5, Binance, cTrader, IBKR...) + ↓ +BrokerInterface (core/interfaces/broker_interface.py) +``` + +## Branches +- `main` — MT5-only, stable, working +- `refactor/universal-architecture` — active development, CCXT + broker-agnostic + +## Key Files +| File | Purpose | +|------|---------| +| `run.py` | App entry point | +| `core/bots/controller.py` | Bot lifecycle (start/stop/update) | +| `core/brokers/broker_factory.py` | Broker instantiation | +| `core/interfaces/broker_interface.py` | Broker abstraction contract | +| `core/strategies/` | 23 trading strategies | +| `core/backtesting/enhanced_engine.py` | Backtesting engine | +| `templates/base.html` | Main layout (sidebar + header + dark mode) | +| `static/js/main.js` | Dark mode toggle + notification system | + +## UI Conventions +- Dark mode: Tailwind `class` strategy, localStorage `dark-mode` key +- Icons: Font Awesome 6 via CDN +- Charts: Chart.js via CDN +- i18n: Custom system (ID/EN toggle in header) + +## Commands +```bash +python run.py # Start dev server +python testing/ccxt_smoke_test.py # Test CCXT connection +``` + +## VPS / Deploy +- Docker setup: `docker compose up` (Python 3.13) +- No automated CI/CD yet (unlike `landing` repo) + +## Docs (excluded from git — in .gitignore) +- `TASKS.md` — sprint tasks +- `MEMORY.md` — product memory +- `WALKTHROUGH.md` — daily guide +- `RETROSPECT.md` — decision log + +## Memory +Stored at `C:\Users\umeck\.claude\projects\D--dev-chrisnov-it-chrisnov-landing\memory\quantumbotx\` diff --git a/templates/backtest_history.html b/templates/backtest_history.html index f2cbb85..0ed232c 100644 --- a/templates/backtest_history.html +++ b/templates/backtest_history.html @@ -3,12 +3,12 @@ {% block title %}Backtest History{% endblock %} {% block content %} -

Riwayat Hasil Backtest

-

Daftar semua simulasi backtest yang telah dijalankan dan disimpan.

+

Riwayat Hasil Backtest

+

Daftar semua simulasi backtest yang telah dijalankan dan disimpan.

-
+

Daftar Pengujian

@@ -17,10 +17,10 @@
-
+
-
+

Pilih salah satu hasil dari daftar di samping untuk melihat detailnya.

diff --git a/templates/backtesting.html b/templates/backtesting.html index 5fe92ed..b26848a 100644 --- a/templates/backtesting.html +++ b/templates/backtesting.html @@ -6,23 +6,23 @@ {% block content %}
-

Strategy Backtester

+

Strategy Backtester

-
+
-

🚀 Enhanced Backtesting Engine Active

-
+

🚀 Enhanced Backtesting Engine Active

+

Your backtesting now includes:

  • Realistic spread costs - Actual trading costs deducted
  • @@ -37,41 +37,41 @@
    -
    +
    - - + +
    - - + +
    -
    +
    -
    -
    -
    +
    Parameter strategi akan dimuat di sini
    @@ -83,7 +83,7 @@
    -