Examples
Examples
Complete scripts, each on its own page with comments. Every one passes the app's check as written: copy it into the StrateScript editor and run it. The order goes from simple to advanced.
| # | Example | Shows |
|---|---|---|
| 1 | Moving-average ribbon | settings, plots, fill, markers |
| 2 | Session VWAP with bands | var totals, session reset |
| 3 | Cumulative delta as candles | of.cvd, candle, intrabar delta |
| 4 | Session volume profile | footprint accumulator, hbar |
| 5 | Stacked footprint imbalances | fp.imbalances, fp.stacked, cells and boxes |
| 6 | Opening range | session hours, an updated box, alerts |
| 7 | Unusual prints | on trade, norm.rank, statistics row |
| 8 | Sweeps | order-by-order trade fields |
| 9 | Absorption pattern | pattern, mbo.level, explanations |
| 10 | Same-order refills, order by order | on order, maps keyed by price and id |
| 11 | Pulled before touch | cancels, order age, own memory of fills |
| 12 | Book pressure and microprice | book, a time clock |
| 13 | Volume imbalance bars | a when clock, shared state |
| 14 | Strategy: fade a delta divergence | enter, units, the Report |
| 15 | Strategy: join a defended level | on match, fill_model: queue, fixed MBO start |
| 16 | Research: what follows a sweep? | study on raw events, compare |
Examples 8 to 11, 15 and 16 need order-by-order data: a Replay of a recorded session, a live chart with Strate's MBO recording, or a long backtest. Example 12 needs book data.