The principles, methodologies, and reasoning behind the Scalable Brain trading system
Scalable Brain is built on one fundamental belief: trading strategies must encode deterministic mathematical edges, not black-box predictions. Machine learning is a tool for context, not for prophecy.
Every entry and exit condition is explicit, reproducible, and testable. We never let a model decide direction—only whether a known-edge strategy should be activated.
No strategy goes live without passing rigorous statistical tests. Expectancy, Profit Factor, and minimum trade count must all clear thresholds.
The same strategy behaves differently in different market regimes. Regime detection ensures we only deploy strategies where they have historically worked.
Portfolio-level correlation guards and ATR-based dynamic stops ensure no single trade or hidden exposure can jeopardize the account.
Most retail ML trading systems attempt to predict the next candle's direction. This approach fails because:
Instead of asking "Will price go up?", we ask: "Given that this strategy says BUY in this specific market regime, what is the historical probability of that trade succeeding?"
This is fundamentally different. The model doesn't generate trades—it evaluates whether a known-edge strategy should be activated in the current conditions. The strategy provides the direction; the model provides the context.
Financial markets cycle between distinct behavioral states. Identifying these states in real-time allows the system to match strategies to conditions.
Cluster quality is measured using the Silhouette Score, which evaluates how similar data points are to their own cluster vs. neighboring clusters. Scores range from -1 to 1, with higher values indicating better-defined clusters. We target a score > 0.5 for deployment.
All market data is sourced from the Oanda v20 REST API, providing institutional-quality H1 (hourly) OHLCV candles. The dataset spans from January 2008 to present, covering:
Identify a potential market inefficiency or behavioral pattern based on technical analysis theory and academic research.
Translate the hypothesis into explicit, programmable entry/exit rules with standardized ATR-based risk parameters.
Run the strategy against 18+ years of historical data across all target assets. Calculate Expectancy, Profit Factor, Sharpe Ratio, and Max Drawdown.
Evaluate strategy performance broken down by market regime to understand when and why the strategy works or fails.
If promoted, train a meta-labeling model that learns the regime-strategy interaction patterns for real-time filtering.
Chronological out-of-sample testing ensures no data leakage. Models must perform on data they've never seen.
We never optimize strategy parameters to maximize backtest results. Parameters are chosen based on financial theory and market microstructure reasoning, not brute-force optimization. Overfitting to historical data is the primary failure mode of quantitative systems.
Forex markets behave differently during different trading sessions. Our feature engineering explicitly encodes:
Signals on H1 are validated against the H4 trend direction. A bullish signal on H1 that aligns with a bullish H4 trend has a higher probability of success than one that contradicts the higher timeframe.
Each asset is processed through the pipeline independently. EUR/USD might be in a Trending_HighVol regime while USD/JPY is in Ranging_LowVol. The system respects this and activates different strategies for each pair accordingly.