> For the complete documentation index, see [llms.txt](https://quantifai.gitbook.io/quantifai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quantifai.gitbook.io/quantifai/product-overview/modular-strategy-engine.md).

# Modular Strategy Engine

**Pre-trained Model Library**

* A comprehensive set of pre-built quantitative models provides traders with instant access to proven strategies:
  * **Momentum**: Capture directional trends and acceleration effects.
  * **Mean-Reversion**: Identify extreme deviations and capitalize on price reversion.
  * **Volatility Arbitrage**: Exploit discrepancies between implied and realized volatility.
  * **Statistical Arbitrage**: Leverage cross-asset correlations and spread convergence.
  * **Deep Reinforcement Learning**: Adaptive policies that dynamically adjust exposure based on real-time feedback.

**Custom Strategy Builder**

* A visual interface for strategy design:
  * **Drag-and-drop signal blocks**: Combine technical indicators (MA, RSI, Bollinger Bands), on-chain flows, and sentiment signals.
  * **Conditional Logic**: Multi-layer IF/THEN statements such as “Funding rate > 0.05% AND sentiment index < -0.7 → open short.”
  * **Portfolio Modules**: Built-in rebalancing, stop-loss/take-profit, and allocation tools.

**Parameter Sweeps & Optimization**

* Automated parameter tuning frameworks:
  * **Grid Search** for low-dimensional exhaustive search.
  * **Bayesian Optimization** for efficient non-linear parameter exploration.
  * **Genetic Algorithms** simulating evolutionary progress toward optimal solutions.

**Portfolio Simulator**

* A configurable simulation environment supporting:
  * **Multi-asset testing** across BTC, ETH, altcoins, NFTs, and derivatives.
  * **Multi-timeframe granularity** from intraday minutes to daily bars.
  * **Custom leverage, margin, and fee models** tailored to specific venues.
  * Outputs full risk profiles including Sharpe, Sortino, and Maximum Drawdown.
