Skip to content

ishan-parihar/jesse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Jesse — DEPRECATED

This project is no longer actively maintained.

Jesse was superseded by the TradeBridge infrastructure, which provides a more robust, Linux-compatible MT5 bridge with 15-25ms TCP latency, 100+ endpoints, regime detection, and a policy engine.

For autonomous AI trading, see TradeBridge's SKILL.md for the current trading workflow.


Jesse — Autonomous AI Trading Agent (Archived)

Named after Jesse Livermore, the greatest tape reader in history who made $100M+ (≈$1.5B today) purely from price action.

Jesse was a 24/7 autonomous AI trading agent built on LangChain ReAct with persistent memory, circuit breakers, and Telegram control. It consumed MT5-MCP (now TradeBridge) as its trading backend.

Why Deprecated

  • MT5-MCP → TradeBridge: The underlying MT5 bridge infrastructure has been significantly upgraded with TCP push model (15-25ms latency), regime detection, policy engine, and 100+ endpoints.
  • LangChain ReAct → MCP-native agents: The ReAct pattern has been superseded by direct MCP tool consumption by AI agents (Operant C-suite, custom agents).
  • Better alternatives: TradeBridge's SKILL.md provides a more structured 12-phase trading cycle with proper risk management.

Architecture (Historical)

┌──────────────┐     ┌─────────────┐     ┌──────────────┐     ┌──────────┐
│  Telegram    │────▶│  Jesse      │────▶│  MT5-MCP     │────▶│  MT5 EA  │
│  Bot         │◀────│  Agent      │◀────│  Server :8010│◀────│  (Wine)  │
│  (commands)  │     │  (ReAct)    │     │  (35 tools)  │     │          │
└──────────────┘     └─────────────┘     └──────────────┘     └──────────┘
                          │
                     ┌────▼─────┐
                     │  Memory  │
                     │ ChromaDB │
                     │  + SQLite│
                     └──────────┘

Quick Start

Prerequisites

  • MT5-MCP services running (ports 8010, 8020, 8025)
  • Python 3.11+
  • Telegram Bot Token (from @BotFather)

Installation

git clone https://github.com/ishanp321/jesse.git
cd jesse
poetry install

export TELEGRAM_BOT_TOKEN="your_bot_token"
export TELEGRAM_CHAT_ID="your_chat_id"
poetry run jesse start

Health Check

curl http://127.0.0.1:8090/health

Telegram Commands

Command Description
/start Agent info
/status Agent + circuit breaker status
/sleep Pause trading cycles
/wake Resume trading cycles
/chart [SYMBOLS...] Send chart screenshots
/positions List open positions with PnL
/pnl 7-day performance summary
/scan [SYMBOLS...] Quick market scan
/close Close all positions
/help Command reference

Circuit Breakers

  • 3 consecutive losses → 2-hour cool-off
  • Daily loss >5% → stop trading for 24h
  • Max 10 trades/day → stop
  • Max 3 open positions → stop
  • 3 bridge failures → stop

Configuration

Variable Required Default
TELEGRAM_BOT_TOKEN Yes
TELEGRAM_CHAT_ID Yes
MT5_MCP_URL No http://127.0.0.1:8010

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors