🍺
/Documentation

Overview

Getting Started

Last updated March 1, 2026

Hornpub is a visual algorithmic trading platform. Build strategies by connecting blocks. No coding required, and the platform executes them automatically against real market data from Binance in paper trading mode.

Platform Overview

At a high level, Hornpub has three layers: a visual Strategy Builder (the block editor), a Runner that executes compiled strategies on a schedule, and a Paper Broker that simulates trades without real money.

1
Build

Drag and connect blocks in the Editor to define your strategy logic.

2
Compile

The block workspace is compiled to JavaScript and saved to your project.

3
Run

The Runner picks up your project, evaluates every block, and executes buy/sell orders.

📌
Paper trading only. All trades are simulated. No real money is at risk.

Creating a Project

A project is the container for one strategy. It holds the block workspace, compiled code, settings, positions, logs, and trade history. You can have multiple projects running simultaneously.

Steps

  1. From the Home screen, click New Project.
  2. Enter a project name (e.g. BTC RSI Swing).
  3. Select the trading symbols you want the strategy to trade (e.g. BTCUSDT, ETHUSDT). The strategy runs independently for each symbol.
  4. Click Create. You'll be taken to the project dashboard.
💡
Tip: Start with a single symbol while learning. Adding multiple symbols multiplies execution. Each symbol runs the full strategy every tick.

Project Tabs

Every project has six tabs:

TabWhat it shows
LiveOverview dashboard with equity curve, open positions, and recent logs.
PositionsOpen positions and full filled-orders history.
LogsFilterable execution log with level, symbol, and run ID filters.
EditorThe visual block strategy builder.
BacktestHistorical simulation against Binance kline data.
SettingsSymbols, interval, trade hours, risk controls, and logging options.

Your First Strategy

The fastest path to a working strategy: buy when RSI is oversold, sell when it recovers.

  1. Open the Editor tab and click Blocks to open the toolbox.
  2. From Logic, drag an if / do block onto the canvas.
  3. From Indicators → Momentum, drag an RSI block. Set period to 14.
  4. Add a comparison block (<) connecting RSI to 30: this is your "oversold" condition.
  5. Add a NOT In Position block with AND logic to prevent re-buying.
  6. From Trading, drag a BUY block into the do slot. Set the USD amount (e.g. 100).
  7. Add a second if / do with a Take Profit block (e.g. 5%) and SELL 100%.
  8. Click Compile, then Run. Your strategy is now live.
⚠️
Always compile before running. Changes to the block workspace are not applied until you click Compile. The Runner executes the last compiled version.