> ## Documentation Index
> Fetch the complete documentation index at: https://docs.afterhouragent.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# How Afterhours works, from idea to trade

> Follow a strategy through Afterhours: you write an idea, the AI drafts rules, risk checks run, you test it, and trades come from your own wallet.

Afterhours combines a language model, a decision model, blockchain execution and real-world data. You bring the idea. Afterhours drafts the rules, checks them, watches the market and trades only what you allowed.

The diagram shows the whole path. Select a part to see what it does.

You

Afterhours

Live data: prices, funding, news

How it runs

## Step by step

**1. You write an idea**

Describe the trade in plain words: the market, what has to happen, how much, and when to get out. For example: "Buy SOL if it drops 6% in a day. 10% stop."

**2. The AI drafts a strategy**

Afterhours turns your words into a strategy with five parts: what to watch, what has to be true, what to trade, how much, and when to get out. It reads as sentences, and you can change any part of it. The models behind this step run through [BlockRun AI](https://blockrun.ai), which Afterhours uses for inference.

**3. Risk checks run**

Every strategy passes deterministic risk checks before it can start. These checks are fixed rules, not AI judgment, so the same strategy always gets the same result.

**4. You choose how it runs**

Start it in free practice mode, as alerts only, or with real funds. Nothing runs until you start it, and you can stop it at any time.

**5. Afterhours watches and acts**

Afterhours draws on more than 80 data points, such as prices, funding and news. When every condition is true, it places the trade on the venue and manages the exits you set.

## Strategies can react to real events

A strategy can wait for something to happen in the world, not only for a price. One sentence was enough for this one:

> Go long Nvidia when Jensen Huang is reinstated as CEO.

The strategy checked X every few minutes. Instead of matching keywords, a yes/no model confirmed with more than 70% confidence that the event had really happened. 4.2 seconds after that check, Afterhours opened a real-money 3x NVDA long. [See the post](https://x.com/helwan_mande/status/2124907437987655884).

## Who does what

| | What they do |
| - | - |
| You | Write the idea, read the rules, start and stop the strategy, and hold the funds |
| Afterhours | Drafts the rules, runs the risk checks, watches the market and places the trades you allowed |
| The venue | Executes the trade. See [Markets](https://docs.afterhouragent.xyz/markets/overview.md) |

Your funds stay in a wallet you own the whole time. [Custody and security](https://docs.afterhouragent.xyz/security/custody.md) explains what Afterhours can and cannot do with them.

## When a strategy does not trade

A strategy trades only when every condition is true. Until then, its run page tells you which condition is not met.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.