IdeaCredIdeaCred

SamarthChaudhary-22/Hedge_Fund_Algo

52

A professional-grade, dual-engine algorithmic hedge fund for Alpaca Markets. Features 24/7 continuous trading, ML-driven sentiment analysis (Genetic Algorithms), Numba-optimized backtesting, and a proprietary "Ratchet" risk management system.

What's novel

A professional-grade, dual-engine algorithmic hedge fund for Alpaca Markets. Features 24/7 continuous trading, ML-driven sentiment analysis (Genetic Algorithms), Numba-optimized backtesting, and a proprietary "Ratchet" risk management system.

Code Analysis

9 files read · 3 rounds

A dual-engine Alpaca trading bot that runs mean-reversion long and momentum-breakdown short strategies on S&P 500 stocks, using Z-Scores, VADER sentiment, factor orthogonalization, options-based hedging, and a CUDA genetic algorithm to optimize keyword-based crash prediction.

Strengths

Genuine implementation depth across multiple non-trivial domains: Black-Scholes greeks with multi-source IV estimation, Numba CUDA genetic optimization, weighted least squares factor orthogonalization, and tape-reading absorption detection. The system is a complete, runnable trading pipeline rather than a toy.

Weaknesses

Zero test coverage, significant code duplication between the long and short bots (FactorOrthogonalizer, get_technical_data, check_tape, stale order logic all copy-pasted), and the 'genetic algorithm' is a simple single-point mutation GA that the README overstates as 'millions of combinations.' No unit tests, no integration tests, no CI test pipeline—only deployment workflows.

Score Breakdown

Innovation
5 (25%)
Craft
43 (35%)
Traction
9 (15%)
Scope
55 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+1

Craft

Ci+5
Tests-1
Polish+0
Releases+0
Has License+0
Code Quality+13
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+5
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+3
Early Traction+0
Devto Reactions+0
Community Contribs+2

Scope

Commits+8
Languages+3
Subsystems+5
Bloat Penalty+0
Completeness+6
Contributors+7
Authored Files+8
Readme Code Match+3
Architecture Depth+5
Implementation Depth+8

Evidence

Commits

183

Contributors

3

Files

18

Active weeks

12

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

0

License