🤖 Hybrid Trading Engine v9.0 Intent-Based Architecture


ROBOT AKTIF Config #1 | ETHUSDT | BEP: 3.00% | Discount: 5.00%

🔄 Sync All Data 1-Click

Satu tombol untuk generate candle, update indikator, dan sinkronisasi portfolio.

🚀 Jalankan Sync Data

📦 Portfolio Inventory

Aset Jumlah Harga Avg Harga Now Nilai USD Nilai IDR
DOGE (DUST) 0.89516505 $0.00 $0.09 $0.08 Rp 1.405,34
USDT 0.03050563 $0.00 $1.00 $0.03 Rp 519,21
ETH 0.02717071 $2,101.67 $13,503.78 $366.91 Rp 6.244.761,35
SOL (DUST) 0.00062755 $0.00 $81.87 $0.05 Rp 874,45
BTC (DUST) 0.00000903 $0.00 $69,029.46 $0.62 Rp 10.609,18
TOTAL $367.70 Rp 6.258.169,53
Total Trades
76
Win Rate
28%
Bot Profit (Strategy)
$15.91
Real Profit (FIFO Exchange)
$6.22
Last Signal
No signal
Net Capital
$57.46
Current Equity
$367.70
Net Growth
+ $310.24 (539.94%)

📊 Adaptive Regime Monitoring

Status monitoring untuk pair aktif: ETHUSDT

Started at: 03 Mar 2026 15:52 (hari ke-33)

Durasi Status Tahap
3 hari ✅ Checked Deteksi bug teknis, error log, fluktuasi sistem
7 hari ✅ Checked Melihat pola dominan (sideways, bullish, bearish) dan stabilitas confidence
14 hari ✅ Checked Sampel representatif (trend, sideways, volatility spike, weekend)

🧠 Core Trading Engine (class_tradingbot.php) v9.0

  • Scoring-Based Entry (multi-factor: VWAP, RSI, Volume, Trend, Momentum)
  • Adaptive Position Sizing (signal strength + ATR + Regime + Discount + Equity)
  • Tier System (Scaling Out) - Profit target bertingkat dengan partial sell
  • VWAP Monitoring dengan slope regression & confidence score
  • Intent System - Atomic execution dengan retry mechanism & watchdog
  • FIFO Sell dengan Cost Basis Tracking (profit real per posisi)
  • Strategic Buy (Averaging Down) - Analisis impact terhadap average price
  • Momentum & Volume Filter adaptive berdasarkan regime pasar
  • Drift Detection & Auto-Repair - Sinkronisasi otomatis DB vs Exchange
  • Multi-step Confirmation (2-step, threshold adaptif)
  • Exposure Guard (berdasarkan OPEN trades + max exposure percent)
  • Daily Loss Limit & Drawdown Protection
  • Dust Auto-Cleanup (nilai < min_order_usd)

📡 AI Signal Engine (price_analysis.php) v9.0

  • ✅ Real-time Candle Analysis (15m, 1h, 4h)
  • ✅ RSI Overbought/Oversold Signals
  • ✅ VWAP Discount Detection
  • ✅ Volume Spike Detection
  • ✅ Support/Resistance Detection
  • ✅ Signal Strength (0-1) dengan Priority Logic
  • ✅ Conflict Detection (menghindari sinyal berlawanan kuat)
  • ✅ Cron-based Updates (expired dalam 10 menit)
  • ✅ Fallback ke price_history saat Binance offline
  • ✅ Auto-expiry (10 menit)

🔗 Hybrid Integration - Intent-Based Architecture

Scoring System: Bot menggunakan sistem scoring multi-faktor untuk keputusan BUY (VWAP, RSI, Volume, Trend, Momentum). Threshold adaptif berdasarkan ATR dan regime pasar. Sinyal dengan strength ≥ threshold dapat memicu eksekusi.

Intent System: Setiap keputusan trading (BUY/SELL) dibuat sebagai intent di database (status CREATED), kemudian diproses secara asinkron oleh processPendingIntents() dengan retry mechanism (2x retry). Watchdog system (runWatchdog()) memantau intent yang macet (>2 menit) dan memulihkannya secara otomatis.

Tier System (Scaling Out): Setiap posisi BUY memiliki target profit bertingkat (tiers). Saat harga mencapai target tier, bot melakukan partial sell sesuai persentase yang ditentukan.

FIFO Accounting dengan Cost Basis: Setiap SELL mengurangi posisi BUY tertua (first-in, first-out) dengan row locking.

Portfolio Sync: sync_portfolio.php berjalan setiap 5 menit untuk menyelaraskan saldo database dengan Binance.

🚀 Hybrid Trading Architecture v9.0

🧠 Scoring-Based Entry System

  • VWAP Discount (deviation threshold adaptif)
  • RSI Oversold Detection
  • Volume Spike dengan adaptive threshold
  • Trend Mode Detection (EMA20/EMA50 + Higher High)
  • Momentum Score (bounce recovery detection)
  • Range Support Detection
  • Mean Reversion vs Trend Continuation classification

⚡ Intent-Based Execution

  • Atomic intent creation dengan row locking
  • Retry mechanism (2x retry dengan exponential backoff)
  • Watchdog untuk recovery intent macet
  • Partial fill handling dengan reschedule
  • Version control untuk race condition prevention
  • Auto-reconciliation untuk ghost orders

📈 Tier System (Scaling Out)

  • Multi-level profit targets per posisi
  • Partial sell sesuai tier (50%, 100%, dll)
  • Auto-cleanup tier yang sudah terjual
  • Integrasi dengan FIFO accounting

🛡️ Advanced Risk Management

  • Daily Loss Limit & Drawdown Protection
  • Exposure Guard (max_exposure_percent)
  • Volatility Guard (ATR-based)
  • Spread Guard (max 0.5-0.7%)
  • Circuit Breaker (max consecutive losses)
  • Drift Detection & Auto-Repair