Leverage trades Phemex USDT-margined perpetuals using a 9-factor PolyEdge signal engine ported from Foresight, adapted for continuous futures markets. 251 tests, 92% coverage. Runs on testnet in conservative mode by default — when it goes live, it goes live with discipline.
The signal engine builds a composite score (0–100) anchored to InDecision's directional bias (35 pts). Price momentum adds another 35 pts from ATR-adjusted velocity. Technical analysis — RSI, MACD, Bollinger Bands, TD Sequential — contributes up to 30 pts. Volume, news sentiment via Perplexity, and funding rate gate round out the stack. Scores ≥65 open a position. Scores ≥80 go in at STRONG conviction: 10× leverage, 3% account size.
PR #12 (March 2026) added trailing stops (activates at 1× ATR profit), partial take-profit (50% off at 1.5× ATR), funding rate gate (blocks adverse funding before entry), and Discord webhook alerts for every trade open, close, and circuit breaker event. The P&L CLI lets you check performance from anywhere.
Six risk gates enforce the math: margin utilization capped at 70%, daily loss limit 10%, consecutive loss circuit breaker, max 2 concurrent positions, leverage ceiling at 20×. Gate evaluation is ordered — the first gate that fires wins. No exceptions.
