Chapter 1 of 7All chapters
Part 1 · Build · Chapter 1 of 7
Start from an idea
Chapter 1 video
In this video7 parts · 3:00
- You’ll need
- A Spera account (a free one is enough), or start as a guest.
- You’ll end with
- A strategy on your deck — from a Classic, Spera AI, your own assistant, or a blank canvas.
- Time
- 5 min
Do it in Spera as you read
Opens in a new tab. Keep this page beside it and follow the steps.
This course follows one strategy from idea to bot. We'll use a simple momentum idea:
Go long when price crosses above its 20-period EMA. Close the trade if it falls 2% below the entry.
It's not a good strategy yet. Finding that out, and what to do next, is what the rest of the guide is for. Any strategy works with the chapters, so if you'd rather start from your own idea or a Classic, go ahead.
Open the Builder
Go to the Builder. With nothing open, it shows Build your first strategy (or Continue where you left off, with your recent strategies, if you've been here before). There are four ways to put a strategy on the deck. Pick one.
| Way | Best when |
|---|---|
| 1. Copy a Classic | You want to see a working strategy from the inside, right now. |
| 2. Ask Spera AI | You have an idea in words and want it built in the Builder. |
| 3. Ask your own assistant | You already work in ChatGPT, Claude, Cursor, VS Code or Codex. |
| 4. Build it step by step | You want to learn how every step fits together. |
Way 1: copy a Classic
The Classics are complete strategies, ready to backtest. Pick one and it's yours to change.
- Click a Classic on the Builder home. Spera puts a copy in your account and opens it.
- Or press See all to browse the full set. Click one to read about it, then press Open a copy.
A copy is yours: changing it never changes the original. This is the quickest way to see a working strategy from the inside.
Way 2: describe it to Spera AI
Open Spera AI with the sparkle AI button next to Add Step at the bottom of the deck, or press Ctrl+K (⌘K on a Mac). Then describe the strategy:
Go long when price crosses above the 20 EMA. 2% stop-loss.
Be specific about the numbers and the direction. "Buy when oversold" leaves the AI guessing; "buy when RSI crosses below 30" doesn't.
The AI builds it on your deck. To review the approach first, turn on Plan first in the composer: you'll get a plan card (How I'll build it), and nothing changes until you press Build this. Each AI turn has Revert to this point if you don't like where it went.
Tip
Whatever the AI builds, read it on the deck before you trust it. Chapter 2 shows how.
Way 3: ask your own assistant
If you already use ChatGPT, Claude, Cursor, VS Code or Codex, you can build from there. The Spera connector (an MCP server) lets your assistant work inside your Spera account: it creates the strategy, compiles it to check it's valid, and can backtest it, while you stay in the chat.
Connect once. Open spera.bot/mcp and pick your app.
- ChatGPT and Cursor have a published Spera plugin: press Connect or Add.
- Claude, VS Code, Codex and other MCP apps take one URL. Paste all of it, including
?mode=authoring. Without it your assistant can only read, and its first save fails.
https://api.spera.bot/mcp?mode=authoringApprove the permissions on Spera's sign-in screen, then fully quit and reopen your app. Approval doesn't reach a chat that was already open. Connect your assistant has the exact steps for each app.
Then ask.
Build a strategy on BTCUSDT 1h.
Go long when price crosses above its 20 EMA.
2% stop loss.
Compile it, then run a quick backtest
and tell me what happened.The assistant looks up the real node types, builds the strategy, and compiles it. If the compile fails, it fixes the problem in place. Then it backtests that exact version. You don't need a project first; one is made for you. The strategy is saved in your account, so open the Builder and it's in your recent strategies, ready for chapter 2.
Ask for proof
Ask "Which version did you test, and did it compile clean?" A real answer names a version and a compile result. If it can't, its numbers describe something other than the strategy on your deck.
It can build, never trade
The connector can create, edit, compile and backtest. It has no way to deploy a bot, trade, or read your exchange keys, however it's asked. Deploying (chapter 7) always happens in Spera, by you.
Most of the rest of this course works from chat too: comparing versions, deep backtests and checking for an edge. What to ask for has prompts that work.
Way 4: build it step by step
On the Builder home, choose Build strategy for a blank deck. Then press Add Step and pick each step in order. The Add a Step dialog has categories (Data, Indicators, Conditions, Actions…) and a search box.
- Price: the candle's close.
- EMA: set the period to
20. - Condition: press Add condition and choose Cross above. Set it to Price crosses above EMA.
- Entry: opens the trade. Leave Side on Long, and set When to your condition.
- Exit: closes the trade. Make sure it's linked to your Entry, then turn on its Stop loss
bracket and set it to
2%.
Each step you add connects to the one before it. To choose an input, use the dropdowns on the card. The link toggle switches a field between a fixed number and another step's output.
Stops live on the Exit
There's no separate stop-loss step. Stop loss, take profit and trailing stops are all brackets on the Exit. An Entry on its own never closes a trade, so always add an Exit.
Node reference has every step, its settings, and what it outputs.
Save it
Press Save in the strategy header. The first time, Spera asks you to name the strategy. Every save after that asks for a short commit message and creates a version you can go back to (chapter 4 uses this).
Check your work
Look in Spera and tick what’s true. It only helps you keep your place; nothing is locked.
Go deeper in the docs
Optional. You don’t need these to carry on.
Next up · Chapter 2
Read it and watch it run
You can say, candle by candle, why it entered and why it left.