Signals · Backtesting · Sentiment · Bayesian Optimization.
Built for finance researchers and aspiring quants.
Zero paid APIs. Fully offline-capable.
Market Data → Indicators → Signals → Backtest → Optimize → Report
⭐ 7 stars · Python · Made in Algeria 🇩🇿
| Rule | Points |
|---|---|
| Price vs MA200 (trend) | ±2 |
| Golden / Death Cross | ±1 |
| ADX Trend Strength | −3 / +1 |
| RSI / Price Divergence | ±3 |
| Double Oversold / Overbought | ±4 |
| MA200 Support Test | +1 |
| Bear Market Deep Penalty | −2 |
| Stochastic Crossover | ±1 |
| MACD Crossover | ±2 |
| Bollinger Band Touch | ±2 |
| Volume Confirmation | ±2 |
| Volatility Filter (ATR%) | ±1–3 |
| Market Regime (S&P 500) | 0 / −3 |
BUY_THRESHOLD, ATR_mult, RSI levels, ADX, signal weights...Sharpe × WinRate / |MaxDD|.best_params.json and applied directly to signals.py with a timestamped backup. Run with --apply flag.python strategy_optimizer.py # run 100 Bayesian trials python strategy_optimizer.py --apply # apply best_params.json → signals.py
# 1 · Clone the repository git clone https://github.com/youcefbt-dz/MarketLab.git cd MarketLab # 2 · Install dependencies pip install -r requirements.txt # 3 · Build local data warehouse (250+ symbols) python stock_warehouse.py # 4 · Run MarketLab python main.py # Optional: Bayesian optimizer python strategy_optimizer.py --apply