# Golden Cross: SMA Crossover Trading Co-Pilot

> Your agent's golden-cross co-pilot. Pick one ticker, get a clear BUY / SELL / HOLD decision from the SMA 20/50 crossover, and let your agent trade it on any broker, paper or live, with no-short and no-duplicate safety rules built in. No API keys needed.

Golden Cross: SMA Crossover Trading Co-Pilot is a free AI agent skill on Agensi by techvibes world, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [techvibes world](https://www.agensi.io/creators/techvibes-world)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/golden-cross-sma-crossover-trading-co-pilot
- Tags: trading-investing, research-analysis, workflow-automation

## About this skill

**Golden Cross** turns the classic SMA 20/50 moving-average crossover into clear trading decisions your agent can act on.

You pick **one ticker**. Each trading day the skill checks the last completed daily closes and returns one of:

- 🟢 **BUY**: SMA20 just crossed above SMA50 (golden cross)
- 🔴 **SELL**: SMA20 just crossed below SMA50 (death cross)
- ⚪ **HOLD**: no crossover today
- ⏸️ **SKIP**: blocked by a safety rule (with the reason)

Each decision comes with a **broker-neutral order** (`symbol, side, qty, market, day`), so your agent can place it on **Alpaca, Interactive Brokers, Tradier, Schwab or any other platform**, in **paper or live** mode.

**Built-in safety**
- Long-only: a SELL is never issued unless you hold the shares, so it never opens a short
- Never trades the same signal twice
- Skips when an order is already open
- Instructs the agent to get your explicit **yes before every live order**
- Uses completed daily bars only, so there are no signals from half-finished days

**Also included**
- `strength`: how fresh and firm the latest crossover is (days ago, gap widening or narrowing, volume)
- `backtest`: how the rule performed on a stock over the past N years vs buy-and-hold

**Privacy and safety:** it reads public price data only. No API keys, no account access, no local files. Order execution stays with your own agent and broker.

*Not financial advice. Trading involves risk of loss, and past results don't predict future returns.*

## Requires

- Python 3.10+
- pip packages: yfinance, pandas

## Known limitations

Does not pick stocks: you choose the ticker. Does not place orders: your agent does, through your broker. Daily bars only, so at most one decision per day and nothing intraday. Market data comes from Yahoo Finance via the unofficial yfinance library and may occasionally be delayed or unavailable. Not financial advice, and there are no guaranteed returns: for example, over 5 years on AAPL the rule returned +26% vs +118% for buy-and-hold (16 trades, 38% win rate).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Golden Cross: SMA Crossover Trading Co-Pilot skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it guarantee profits?

No. It's a mechanical trend-following rule. Backtest your ticker first. On AAPL over 5 years it returned +26% vs +118% for buy-and-hold.

### Does it pick stocks for me?

No. You choose one ticker; the skill decides when the crossover says buy, sell or hold.

### Does it place trades?

No. It returns a broker-neutral order. Your agent places it on your own platform (paper or live) after your confirmation.

### Which brokers work?

Any broker your agent can trade through, such as Alpaca, Interactive Brokers, Tradier or Schwab. The order is plain: symbol, side, qty, market, day.

### Can it short stocks?

No. It's long-only. A SELL is only issued when you already hold the shares.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
