Swing Bot

C 66 completed
Bot
containerized / python · small
69
Files
15,647
LOC
3
Frameworks
6
Languages

Pipeline State

completed
Run ID
#347623
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Cataloged
Decision
proceed
Novelty
63.67
Framework unique
Isolation
Last stage change
2026-05-10 03:35:24
Deduplication group #50299
Member of a group with 7 similar repo(s) — canonical #14674 view group →
Top concepts (2)
Project DescriptionWeb Backend
Repobility · open methodology · https://repobility.com/research/

AI Prompt

Create an algorithmic day/swing trading system using Python that connects to the Alpaca API. The system needs to implement a MACD crossover strategy for stocks, buying when MACD crosses above the signal line with specific conditions (like volume and RSI) and exiting based on MACD crossing below or specific candle patterns. It must incorporate aggressive risk management features, including position sizing based on risk, ATR-based stop-losses, and portfolio limits like drawdown protection. Finally, set up a live dashboard accessible at http://localhost:8080 to show the real-time status.
python fastapi algorithmic-trading alpaca-api quant finance macd risk-management
Generated by gemma4:latest

Catalog Information

This project is an algorithmic day/swing trading system for small accounts with aggressive risk management, designed to work with the Alpaca API.

Description

The swing-trader project is a Python-based algorithmic trading system that uses machine learning and technical indicators to make trades. It supports both stock and crypto trading, with a focus on risk management and position sizing. The system includes features such as MACD strategy, multi-asset support, risk-first design, ATR-based stops, portfolio limits, and a live dashboard for real-time status updates.

الوصف

هذا المشروع هو نظام تجاري يومي/تجاري ل حسابات صغيرة مع إدارة المخاطر المتطرفة، مصمم للعمل مع API Alpaca. يعتمد النظام على التعلم الآلي وال indicators التقني للتحكم في التداول. يدعم النظام تداول الأسهم والمعادن الرقمية، مع التركيز على إدارة المخاطر وتحديد حجم الحوافز. يتضمن النظام ميزات مثل استراتيجية MACD، دعم الأصول المتعددة، تصميم أولويات المخاطر، وقف الخسارة بناءً على التباين، حدود المحافظ، ولوحة تحكم حية لتحديث الوضع في الوقت الحقيقي.

Novelty

7/10

Tags

algorithmic-trading swing-trading risk-management position-sizing technical-indicators machine-learning

Technologies

fastapi numpy pandas plotly pydantic scikit-learn sqlalchemy streamlit uvicorn

Claude Models

claude-opus-4.6 claude-opus-4.5

Quality Score

C
65.8/100
Structure
61
Code Quality
63
Documentation
79
Testing
50
Practices
64
Security
90
Dependencies
60

Strengths

  • Consistent naming conventions (snake_case)
  • Good security practices \u2014 no major issues detected
  • Containerized deployment (Docker)

Weaknesses

  • No LICENSE file \u2014 legal ambiguity for contributors
  • No CI/CD configuration \u2014 manual testing and deployment
  • Potential hardcoded secrets in 1 files
  • 1408 duplicate lines detected \u2014 consider DRY refactoring
  • 6 'god files' with >500 LOC need decomposition

Recommendations

  • Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
  • Add a linter configuration to enforce code style consistency
  • Add a LICENSE file (MIT recommended for open source)
  • Move hardcoded secrets to environment variables or a secrets manager

Security & Health

7.6h
Tech Debt (B)
A
OWASP (100%)
PASS
Quality Gate
A
Risk (1)
Provenance: Repobility (https://repobility.com) — every score reproducible from /scan/
Unknown
License
5.0%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

python
93.7%
markdown
5.5%
shell
0.4%
text
0.2%
yaml
0.2%
ini
0.1%

Frameworks

FastAPI pytest SQLAlchemy

Concepts (2)

All metrics by Repobility · https://repobility.com
CategoryNameDescriptionConfidence
Want fix-PRs on findings? Install Repobility's GitHub App · github.com/apps/repobility-bot
auto_descriptionProject DescriptionAlgorithmic day/swing trading system for Alpaca API. Designed for small accounts with aggressive risk management.80%
auto_categoryWeb Backendweb-backend70%

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/71702.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV