Strategy Editor

Write Your Strategy

Code is your only input. Define assets, logic, and parameters directly. Trade any asset, any time.

Load Example
Templates are learning examples. Load one, then customize.
Quick Reference
Trading Methods
self.buy(asset, size=0.1)self.sell(asset, size=0.1)self.close(asset)self.rebalance(asset, weight)
Price Data
data[asset].close[-1]data[asset].open, high, lowdata[asset].volume
Indicators
data[asset].sma_20data[asset].rsi_14data[asset].macd
Strategy Code
Write your strategy logic. Your code defines everything.
Loading editor...

Code-First Philosophy

Your code is the single source of truth. Define your assets directly in the code (e.g., self.assets = ['AAPL', 'BTC-USD', 'TSLA']). There are no restrictions — trade stocks, ETFs, crypto, or any combination. Templates are just starting points to learn the API.