AlphaFlow UI v3 + Zapi Backend
==============================

INSTALL
1. Upload/extract folder ini ke hosting/cPanel.
2. Edit config/zapi.php.
3. Ganti PASTE_ZAPI_API_KEY_HERE dengan API key Zapi Anda, atau set environment variable ZAPI_API_KEY.
4. Pastikan extension PHP cURL aktif.
5. Folder storage harus writable oleh PHP.
6. Buka index.php dan login. Login masih mode demo: email dan password non-kosong diterima.

STRUKTUR UI V3
Overview dan Flow Intelligence dipertahankan. Bagian Screeners dirombak berdasarkan horizon:

SCALPING / INTRADAY
- Volume Spike
- Big Money In
- Momentum Breakout
- Opening Momentum
- Live Running Trade
- Intraday Watchlist

SWING TRADING
- Pre-Markup
- Accumulation
- Break Resistance
- Healthy Pullback
- Foreign / Broker Accumulation
- Swing Watchlist

INVESTING / BAGGER HUNT
- Bagger Candidates
- Growth + Valuation
- Earnings Momentum
- Revenue / Profit Growth
- Shareholder / Institutional Changes
- Sector Leader
- Corporate Action / Catalyst
- Investing Watchlist

CATATAN SCREENERS
- Halaman screener baru belum menampilkan ticker/angka sintetis.
- Setiap halaman sudah memiliki Detection Logic dan Primary Evidence agar backend rule nanti jelas.
- Kolom hasil Scalping, Swing, dan Investing disesuaikan dengan horizon masing-masing.
- Watchlist dipisahkan per horizon agar kandidat intraday, swing, dan investasi tidak tercampur.
- scalping.php lama diarahkan ke Volume Spike agar bookmark lama tetap berguna.
- Distribution masih dipertahankan sebagai file lama, tetapi tidak lagi menjadi menu utama Screener.

FITUR UI V2 YANG TETAP ADA
- Topbar: jam WIB, status jam pasar IDX, IHSG, status koneksi Zapi.
- Dashboard Market Pulse.
- Stock Detail: 5m chart, quote, order book, foreign flow, broker flow, running trade, AI drawer.
- Sidebar SVG + collapse.
- Freshness/update time.
- Global ticker context.
- Track Record OPEN/WIN/LOSS/FAILED/CANCELLED + PnL.

ZAPI ENDPOINT YANG SUDAH DIPAKAI
- /finance:idx/index-summary
- /finance:idx/top-movers
- /finance:idx/stock-summary
- /finance:idx/foreign-flow
- /finance:stockbit/quote
- /finance:pluang/chart
- /finance:pluang/orderbook
- /finance:pluang/running-trades
- /finance:pluang/broker-summary
- /ai:chatgpt/chat

BACKEND SCREENER
Backend screening untuk 3 horizon masih sengaja belum diaktifkan. UI dan struktur sudah siap; rule engine dapat dihubungkan satu per satu tanpa mengubah navigasi lagi.


V4 OVERVIEW + FLOW INTELLIGENCE
- Dashboard: Market Pulse, Scalping/Swing/Investing Snapshot, Top Opportunities placeholder, Active Calls, Recent Track Record, Flow Intelligence layers.
- Flow raw data: Foreign Flow, Broker Flow, Running Trade, Order Book.
- Intelligence: Big Money Activity, Flow Divergence, Flow Timeline, Liquidity Map, Smart Money Score, Flow Alerts.
- api/zapi.php?action=flow-intelligence computes a transparent 0-100 score from:
  Broker 30 + Foreign 20 + Aggressor 25 + Large Trade 15 + Liquidity 10.
- Derived values are decision support only; no automatic buy/sell guarantee.
