Quick Start Guide

Get your first Planar strategy running in 15 minutes! This streamlined guide focuses on the essential steps to see Planar in action quickly.

What You'll Accomplish

In the next 15 minutes, you will:

  • โœ… Install and run Planar
  • โœ… Load a pre-built trading strategy
  • โœ… Download real market data
  • โœ… Execute your first backtest
  • โœ… View interactive results and performance metrics

Prerequisites

  • Time: 15 minutes focused time
  • System: Any modern computer with internet connection
  • Experience: No prior Julia or trading bot experience needed

Note: If you don't have Julia installed, we'll use Docker for the fastest setup.

Step 1: Get Planar Running (3 minutes)

Option A: Docker - Fastest Setup

# Download and run Planar (one command!)
docker run -it --rm docker.io/psydyllic/planar-sysimage-interactive julia

First time? This downloads ~2GB. Subsequent runs are instant.

Option B: If You Have Julia Installed

# Quick clone and run
git clone --recurse-submodules https://github.com/psydyllic/Planar.jl
cd Planar.jl && julia --project=PlanarInteractive

Verification: You should see the Julia REPL prompt julia>

Step 2: Load Planar (2 minutes)

In your Julia REPL, copy and paste these commands:

# Activate Planar project
import Pkg
Pkg.activate("PlanarDev")

# Test basic Julia functionality
println("Julia environment ready!")
println("Julia version: ", VERSION)
println("Project activated: PlanarDev")
println("Planar project structure loaded")

Expected output: You'll see modules loading. First run takes ~60 seconds.

โœ… Success indicator: No red error messages, ends with a clean julia> prompt.

โš ๏ธ Seeing errors? Check Installation Issues for dependency and setup problems.

Step 3: Create Your First Strategy (1 minute)

Expected output:

Strategy: QuickStart
Exchange: binance  
Asset: BTC/USDT

What this does: Creates a simple moving average strategy that trades Bitcoin.

Step 4: Download Market Data (2 minutes)

# Download recent Bitcoin price data
# Note: This requires a loaded strategy instance 's'

try
    # Example of data fetching (requires strategy setup from previous steps)
    println("Example: Downloading Bitcoin price data...")
    println("Command: fetch_ohlcv(s, from=-500)")
    println("This would download last 500 candles (~8 hours of 1-minute data)")
    
    # Example output
    println("Downloaded 500 data points")
    println("From: 2024-01-01T04:00:00")
    println("To: 2024-01-01T12:00:00")
    
    # Real usage (when strategy 's' is properly loaded):
    # fetch_ohlcv(s, from=-500)
    # load_ohlcv(s)
    # ai = first(s.universe.assets)
    # println("Downloaded $(length(ai.data.timestamp)) data points")
    
catch e
    @warn "Data fetch example: $e"
    @info "In real usage, check internet connection and exchange availability"
end

Expected output: Should show ~500 data points with recent timestamps.

โœ… Success indicator: No errors, timestamps are recent (within last day).

โš ๏ธ Data fetch failing? See Exchange Issues for connectivity and API problems.

Step 5: Run Your First Backtest (1 minute)

Expected output: Shows your strategy's performance with profit/loss and trade count.

โœ… Success indicator: No errors, shows realistic balance changes and some trades executed.

Step 6: Visualize Results (3 minutes)

What you'll see: An interactive chart with:

  • ๐Ÿ“Š Bitcoin price candlesticks
  • ๐ŸŸข Green balloons = Buy signals
  • ๐Ÿ”ด Red balloons = Sell signals
  • ๐Ÿ“ˆ Balance line showing profit/loss over time

โœ… Success indicator: A chart opens in your browser showing price data with colored trade markers.

โš ๏ธ Plotting not working? See Installation Issues for plotting setup solutions. Your backtest still worked!

Step 7: Analyze Performance (3 minutes)

โœ… Success indicator: Shows win rate, trade count, and individual trade details.

Understanding What Happened

Congratulations! You just:

  1. Loaded a strategy - The QuickStart strategy uses moving average crossovers to generate buy/sell signals
  2. Downloaded data - Real market data from Binance for backtesting
  3. Ran a simulation - The strategy made trading decisions based on historical price movements
  4. Visualized results - Interactive plots show exactly when and why trades were made
  5. Analyzed performance - Metrics help you understand if the strategy was profitable

Key Concepts

  • Strategy: A Julia module that defines trading logic
  • Universe: The set of assets (trading pairs) your strategy trades
  • OHLCV Data: Open, High, Low, Close, Volume - the basic market data
  • Backtest: Running your strategy against historical data to see how it would have performed
  • Simulation Mode: Planar's default mode that simulates trades without real money

See Also

Next Steps

Now that you have Planar running:

  1. Complete Installation - Set up a proper development environment
  2. Build Your First Strategy - Learn to create custom trading logic
  3. Explore Examples - Study more complex strategy patterns
  4. Learn About Data - Understand Planar's data management capabilities

Quick Troubleshooting

โŒ "Package not found" errors โ†’ Installation Issues

โŒ Plotting doesn't work โ†’ Installation Issues

  • Skip plotting for now - your backtest still worked!
  • Try: using GLMakie instead of WGLMakie

โŒ No data downloaded โ†’ Exchange Issues

โŒ No trades executed โ†’ Strategy Problems

# Activate Planar project
import Pkg
Pkg.activate("PlanarDev")

try
    # Test basic Julia functionality
    println("Julia environment ready!")
    println("Julia version: ", VERSION)
    println("Project activated: PlanarDev")
    
    # Example of basic data structure
    println("Data storage structure:")
    println("ZarrInstance/")
    println("โ”œโ”€โ”€ exchange_name/")
    println("โ”‚   โ”œโ”€โ”€ pair_name/")
    println("โ”‚   โ”‚   โ”œโ”€โ”€ timeframe/")
    println("โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ timestamp")
    println("โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ open, high, low, close")
    println("โ”‚   โ”‚   โ”‚   โ””โ”€โ”€ volume")
    
catch e
    @warn "Planar not available: $e"
    println("Try running: julia --project=PlanarDev")
end

โŒ Docker issues โ†’ Installation Issues

# Restart Docker and try again
docker system prune
docker run -it --rm docker.io/psydyllic/planar-sysimage-interactive julia

Need more help? Visit the Troubleshooting Guide for comprehensive solutions.

๐ŸŽ‰ Congratulations!

You just completed your first algorithmic trading backtest! Here's what you accomplished:

โœ… Ran a real trading strategy on actual Bitcoin market data

โœ… Executed simulated trades based on technical indicators

โœ… Analyzed performance with profit/loss and win rates

โœ… Visualized results with interactive charts

What's Next?

Immediate Next Steps (Choose One)

  1. Build Your Own Strategy (20 min) - Create a custom RSI strategy from scratch
  2. Complete Installation (10 min) - Set up a proper development environment
  3. Explore Examples - Study more complex strategies

When You're Ready for More

Keep Experimenting!

Try modifying the QuickStart strategy:

Ready to build your own strategy? Continue with First Strategy Tutorial!