Alert Engine
Watchlist of crypto, stocks, and forex with user-defined buy and profit targets. Alerts fire once per crossing — not per polling cycle. Each crossing is logged to alert_audit with band, price, and reason.
Dependencies: Cloudflare Workers, KV namespace STATE, D1 database DB.
Entry: Choose a tier → register → /app.
Multi-Channel Delivery
Every crossing dispatches in parallel to email (Resend) and any configured Telegram bot, Discord webhook, Slack webhook, or custom JSON webhook. Failures are stored on the channel row and surfaced in /account.
Dependencies: Any HTTPS webhook receiver; Telegram Bot API; Discord and Slack incoming webhooks.
Entry: /account → Notification channels.
PHP-Native Portfolio Tracking
Position logging in pesos with live USD/PHP conversion from ECB rates. Correlation matrix, drawdown series, and per-position P&L all computed server-side and snapshotted to portfolio_snapshot.
Dependencies: D1 (portfolio_snapshot), Frankfurter API for FX.
Entry: /app → Portfolio.
Rules-Based Advisor
Scores each instrument against trend, RSI, ATR, ADX, Bollinger-width percentile, RSI/volume divergences, macro regime (VIX, DXY, Fear & Greed), and higher-timeframe confluence. Returns a verdict, confidence band, plan (entry/stop/target/RR), and an explicit invalidation list.
Dependencies: Stored OHLCV in ohlcv, macro cache.
Entry: /app → chart modal → Chart Tutor.
Candle Tutor & Inspector
Click any candle to receive anatomy (body %, upper/lower wick %, range %, volume ratio), narrative, similar-candle history with quantile outcomes, and same-regime comparison. Pattern detection covers engulfing, hammer, shooting star, marubozu, morning/evening star, three soldiers/crows.
Dependencies: —
Entry: /app → chart modal → click any candle.
Backtester
Replay buy-target-touch, RSI-oversold, or ATR-pullback strategies against stored OHLCV with configurable hold, stop, target, fee (bps), and slippage (bps). Returns win rate, expectancy in R, max drawdown, and trade log.
Dependencies: Stored OHLCV, tier-gated lookback window.
Entry: /app → card menu → Backtest.
Shadow Trader
Virtual-capital account that auto-takes Advisor signals on 4-hour candles, sizes against ATR, moves stops to breakeven at +1R, and grades every close. Reports win rate, expectancy, profit factor, Sharpe, max drawdown, and Kelly-fraction sizing. Every decision — including skips — is logged.
Dependencies: Pro and Business tiers only.
Entry: /app → Shadow.
Three-AI Forecast Ensemble
DeepSeek, Claude, and ChatGPT each forecast five daily closes. Weighted aggregation (weighted mean / weighted median / winsorized mean), optional IV blend from Deribit DVOL, then automatic grading against realized closes with per-AI error, coverage, and Brier score.
Dependencies: ForecastIndexDO Durable Object, Deribit DVOL.
Entry: /app → Forecast.
Security & Tenancy
PBKDF2-SHA-256 password hashing (100k iterations), SHA-256 hashed session tokens, double-submit CSRF, TOTP 2FA with backup codes, per-IP and per-email rate limits, per-user KV namespacing, audit log, self-service data export and account deletion.
Dependencies: D1, KV, Web Crypto.
Entry: /account.