Quickstart
Go from zero to a runnable PalmScript file in the shortest documented path.
Quickstart
A language for market strategy programming
PalmScript is designed for strategy work: explicit market inputs, built-in indicators, and code that stays close to the way trading ideas are actually expressed.
PalmScript starts from the shape of real strategy work. You declare the interval, bind the markets you care about, and write signals directly against those series. The workflow stays short, so the path from a new idea to a runnable script is immediate.
interval 1m
source spot = binance.spot("BTCUSDT")
let fast = ema(spot.close, 5)
let slow = sma(spot.close, 10)
export trend = fast > slow
entry long = crossover(fast, slow)
exit long = crossunder(fast, slow) Scripts compile to bytecode and run inside a deterministic, bounded execution engine designed for financial workloads.
The result is a language that stays fast over large datasets, enforces stable semantics like no-lookahead and explicit history, and produces results you can reproduce, debug, and trust.
PalmScript gives human traders a language that reads like strategy logic, not software scaffolding. Scripts stay compact, clear, and easy to review because the core concepts of trading are built directly into the language.
For AI Agents, PalmScript shines in iteration. Its explicit semantics, regular syntax, and deterministic runtime make it easy to generate strategies, test changes, inspect compiled structure, run against market data, backtest results, and keep improving. The CLI turns strategy development into a tight feedback loop where every rewrite can be checked, measured, and compared.
That is the advantage: PalmScript does not just let AI Agents read strategies. It gives them a disciplined environment to improve them, step by step, with speed and confidence.
Jump into working examples, learn the language naturally, and master the built-in tools that power real strategies.
Go from zero to a runnable PalmScript file in the shortest documented path.
QuickstartWalk through a complete example and see how a strategy comes together line by line.
First strategyUnderstand the core ideas that make PalmScript feel different from general-purpose languages.
Language overview