wrun documentation

Build indicators, alerts and strategies that read the whole market, compiled and running in your browser.

Building with an AI agent?Give it every wrun page in one paste.
llms.txtopenmarket.xyz/wrun/llms.txt
Everything in one file: llms-full.txt

2.4 MB, for tools that read files, not for chats

Popular
ema 2064,210.5
An EMA of the close ema.ts · 12 lines

Try it out

Pick a task, read the code, see what it draws. Every example comes from these docs and runs in the editor as it is.

ema.ts12 lines
param("period", 20, { min: 1, max: 200, description: "EMA length in bars" });output("avg", line, overlay, { color: "#2563eb", width: 2, description: "EMA of the close" });let ema = new Ema(20);function onStart(): void { ema = new Ema(i32(p_period()));}function onBar(): void { out_avg(ema.update(bar.close()));}
What it draws
63,00064,00065,000ema 2064,150.3
From Your first indicator Compiles to WebAssembly in your browser