Skip to content

keya714/StrategyEvolve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ StrategyEvolve - Self-Optimizing Trading Strategy Agent

A self-evolving AI trading agent that learns from quantitative optimization, user behavior, and real-time market intelligence.

Built for the Self-Evolving Agents Hackathon using LiquidMetal Raindrop, Fastino AI, and LinkUp.


🎯 Project Vision

Most trading bots use static rules and fixed parameters. StrategyEvolve is different:

  • 🧠 Learns YOUR unique trading edge from your decisions and outcomes
  • πŸ“Š Optimizes strategies through continuous backtesting and evolution
  • 🌐 Stays current with real-time market news and context
  • πŸ”„ Self-improves through three independent evolution loops

πŸ—οΈ Architecture

Three Evolution Loops

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  EVOLUTION LOOPS                             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Loop 1: Quantitative Optimization (Raindrop)               β”‚
β”‚  β€’ Generate strategy variants                                β”‚
β”‚  β€’ Parallel backtesting                                      β”‚
β”‚  β€’ Performance metrics & selection                           β”‚
β”‚                                                              β”‚
β”‚  Loop 2: Behavioral Learning (Fastino)                      β”‚
β”‚  β€’ Ingest user trades & decisions                           β”‚
β”‚  β€’ Stage 3 agentic search discovers patterns                β”‚
β”‚  β€’ Learn user's unique trading edge                         β”‚
β”‚                                                              β”‚
β”‚  Loop 3: Contextual Intelligence (LinkUp)                   β”‚
β”‚  β€’ Real-time market news & sentiment                        β”‚
β”‚  β€’ Earnings & macro event detection                         β”‚
β”‚  β€’ Context-aware decision making                            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Tech Stack

Frontend:

  • React 18 + TypeScript
  • Vite for blazing fast dev experience
  • TailwindCSS for modern UI
  • Recharts for data visualization
  • Zustand for state management

Backend:

  • Node.js + Express
  • TypeScript
  • PostgreSQL (via Raindrop SmartSQL) βœ…

AI/ML Platforms:

  • Raindrop - Infrastructure, parallel tasks, SmartSQL database, observers βœ…
  • Fastino - User behavioral learning & personalization
  • LinkUp - Real-time market intelligence

🌟 Key Features

1. Strategy Optimization Engine

  • Genetic algorithm-based parameter tuning
  • Parallel backtesting via Raindrop Tasks (10x faster) βœ…
  • Performance metrics: Sharpe ratio, returns, drawdown, win rate

2. Behavioral Learning System

  • Captures user trades, overrides, and reasoning
  • Fastino Stage 3 discovers non-obvious patterns
  • Learns user's emotional triggers and risk tolerance

3. Market Intelligence Layer

  • Real-time news and sentiment via LinkUp
  • Earnings and macro event detection
  • Context-aware signal enhancement

4. Hybrid Strategy Synthesis

  • Combines quantitative optimization with user behavioral patterns
  • Blends systematic signals with human intuition
  • Adaptive position sizing based on learned preferences

5. Evolution Dashboard

  • Real-time visualization of strategy evolution
  • Performance metrics over time
  • User behavioral insights
  • Market context integration

πŸš€ Quick Start

Prerequisites

Installation

# Navigate to project
cd strategy-evolve

# Install frontend dependencies
cd frontend
npm install

# Install backend dependencies
cd ../backend
npm install

# Set up environment variables
cp .env.example .env
# Edit .env with your API keys

# Start development
npm run dev

Environment Variables

# LiquidMetal Raindrop
LM_API_KEY=your_liquidmetal_api_key

# Fastino
FASTINO_API_KEY=your_fastino_api_key

# LinkUp
LINKUP_API_KEY=your_linkup_api_key

# Server
PORT=3001
NODE_ENV=development

πŸ“ Project Structure

strategy-evolve/
β”œβ”€β”€ frontend/                 # React + TypeScript UI
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/      # React components
β”‚   β”‚   β”œβ”€β”€ pages/           # Page components
β”‚   β”‚   β”œβ”€β”€ hooks/           # Custom hooks
β”‚   β”‚   β”œβ”€β”€ store/           # Zustand state management
β”‚   β”‚   β”œβ”€β”€ services/        # API services
β”‚   β”‚   └── types/           # TypeScript types
β”‚   └── package.json
β”‚
β”œβ”€β”€ backend/                 # Node.js + Express API
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ routes/          # API routes
β”‚   β”‚   β”œβ”€β”€ services/        # Business logic
β”‚   β”‚   β”‚   β”œβ”€β”€ fastino.ts   # Fastino integration
β”‚   β”‚   β”‚   β”œβ”€β”€ linkup.ts    # LinkUp integration
β”‚   β”‚   β”‚   β”œβ”€β”€ raindrop.ts  # Raindrop integration
β”‚   β”‚   β”‚   β”œβ”€β”€ strategy.ts  # Strategy engine
β”‚   β”‚   β”‚   └── evolution.ts # Evolution logic
β”‚   β”‚   β”œβ”€β”€ models/          # Data models
β”‚   β”‚   └── utils/           # Utilities
β”‚   └── package.json
β”‚
β”œβ”€β”€ docs/                    # Documentation
β”‚   └── PROJECT_PLAN.md      # Detailed project plan
β”‚
└── README.md

πŸ† Hackathon Advantages

1. True Self-Evolution

  • Not just memory - actual strategy improvement
  • Three independent learning loops
  • Quantifiable metrics showing evolution

2. Perfect Platform Utilization

  • Raindrop: Tasks, Queues, SmartSQL, Observers, deployment
  • Fastino: Register, ingest, Stage 3, query, chunks - all features used meaningfully
  • LinkUp: Real-time intelligence, structured output, sourced answers

3. Novel Approach

  • First to combine quant optimization + behavioral learning + real-time context
  • Goes beyond typical "chatbot with memory"
  • Shows deep understanding of each platform's strengths

4. Compelling Demo

  • Clear before/after metrics
  • Live evolution visible in real-time
  • Relatable use case (trading)
  • Professional UI

πŸ“š Resources


πŸ“ License

MIT License


πŸŽ‰ Team

Built with ❀️ for the Self-Evolving Agents Hackathon

Let's show the world what true self-evolving agents can do!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages