explaingit

oft3r/agentic-trading-desk

Analysis updated 2026-05-18

90PythonAudience · developerComplexity · 3/5Setup · moderate

TLDR

A personal trading desk that combines an AI agent with Python scripts to score stocks and ETFs on trend, momentum, and macro indicators, keeping the human in control of every trade decision.

Mindmap

mindmap
  root((agentic-trading-desk))
    Three Pillars
      Trend
      Momentum
      Macro-Sentiment
    Indicators
      EMA 20 50 200
      RSI-14
      MACD histogram
      TRIX-15
    Data Sources
      Robinhood MCP
      Investing.com
      ETF ratios
    Scripts
      score.py
      indicators.py
      macro_pillar.py
    Workflow
      AI fetches data
      Scripts compute
      Human approves
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Score any stock or ETF on a three-pillar framework to decide whether to enter, hold, or exit a short-term position

USE CASE 2

Analyze the broader macro market environment by running the macro_pillar script with ETF ratio and yield curve data

USE CASE 3

Use the Claude Code skill integration to automate Robinhood data fetching and get trade recommendations for manual approval

USE CASE 4

Run the standalone Python scripts on custom JSON price data to backtest the scoring logic against historical closes

What is it built with?

PythonRobinhood MCPClaude Code

How does it compare?

oft3r/agentic-trading-deskxzf-thu/mega-asryoheinakajima/activegraph
Stars909396
LanguagePythonPythonPython
Setup difficultymoderatehardeasy
Complexity3/54/54/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires a Robinhood account with MCP access configured and Claude Code for the AI-assisted workflow, the Python scripts can be run standalone with only a JSON input file.

In plain English

agentic-trading-desk is a personal trading analysis tool that pairs an AI agent with local Python scripts to evaluate stocks and ETFs for short-term buy and sell decisions. The core principle is a strict division of labor: the AI fetches market data through the Robinhood API and interacts with the user, Python scripts perform the actual calculations, and the user reviews and approves every order before it executes. The analysis is built around a three-pillar scoring framework where each asset receives a score from -6 to +6. Trend checks price position relative to three exponential moving averages and whether they are stacked in an upward order. Momentum combines the RSI, MACD histogram, and a triple-smoothed rate-of-change indicator called TRIX to measure the strength of recent price action. The third pillar, Macro-Sentiment, evaluates the broader market environment by comparing ETF ratios (small-caps versus large-caps, high-yield versus investment-grade bonds, equities versus treasuries) and the yield curve spread fetched from the web. The Python scripts run from the command line and accept JSON as input. They use only the Python standard library, so no extra packages are needed. The scoring script produces a full scorecard and recommends one of several predefined actions, such as "HOLD (ride the cycle)", "EXIT / TRIM", or "WAIT (do not chase)". The recommendation logic checks for specific indicator patterns, such as the RSI turning down from overbought territory or the MACD histogram shrinking, before settling on a verdict. The project integrates with Claude Code as a skill: when you ask the AI to analyze a ticker, it fetches data from Robinhood, runs the Python scripts, and presents the scorecard along with suggested next steps. Orders are never placed without the user's explicit confirmation. A SKILL.md file in the repository defines the behavioral guardrails for the AI agent.

Copy-paste prompts

Prompt 1
Using agentic-trading-desk, analyze AAPL for a potential entry. Fetch the last 290 daily closes via Robinhood MCP and run the three-pillar scorecard.
Prompt 2
Run the macro_pillar.py script for today's session. Fetch SPY, RSP, IWM, HYG, LQD, TLT, XLY, XLP historicals and the current 10Y-2Y yield spread.
Prompt 3
I'm holding NVDA and the RSI is above 70. Run score.py with holding=true and tell me whether the scorecard suggests EXIT, TRIM, or HOLD.
Prompt 4
Explain the decision logic in score.py: when does the system output EXIT vs TRIM, and which flag patterns trigger each?
Prompt 5
I want to adapt score.py to weight the Momentum pillar more heavily for high-beta tech stocks. Which lines should I change?

Frequently asked questions

What is agentic-trading-desk?

A personal trading desk that combines an AI agent with Python scripts to score stocks and ETFs on trend, momentum, and macro indicators, keeping the human in control of every trade decision.

What language is agentic-trading-desk written in?

Mainly Python. The stack also includes Python, Robinhood MCP, Claude Code.

How hard is agentic-trading-desk to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is agentic-trading-desk for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub oft3r on gitmyhub

Verify against the repo before relying on details.