Strate Developer
StrateScript
StrateScript is the scripting language built into Strate. You use it to write your own indicators, simulated strategies and studies, and run them on any chart. Scripts can read data at every level of detail:
- bars: OHLC, volume, delta and footprint
- every trade, one by one
- the aggregated order book
- the full order-by-order (MBO) stream: every add, cancel, modify and fill, with queue positions
Guides
Start with Getting started. It takes you from an empty editor to a named indicator saved in My indicators.
Open guidesReference
Every built-in function, field and method, with parameters, defaults and return values
Open referenceExamples
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.
Open examplesGuides
of module, history windows, worked examples (absorption, iceberg refills, pulled liquidity)Patterns, clocks and signalsEvent handlers, pattern blocks, custom clocks, on signal, the shipped pattern libraryNormalizationThe norm module: comparing a measure with its own recent values (rank, z-score, ratio to median)PlottingPlots, histograms, fills, levels, markers, labels, boxes, tables, cells in the bar column, colors, panes, scalesSettingsinput.* functions, the Settings tab, units (ticks, points), settings that pick a price or a time on the chartAlertsalert(), how often it fires, sound and notifications, alerts in ReplayStrategiesSimulated orders, stops and targets, units, costs, fill models, latency, the Report, equity curve, CSV export, sweeps, long backtests, MBO startResearchMeasuring what happens after a signal: study(), report(), compare(), the research reportExamples
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.
var totals, session reset03Cumulative delta as candlesof.cvd, candle, intrabar delta04Session volume profilefootprint accumulator, hbar05Stacked footprint imbalancesfp.imbalances, fp.stacked, cells and boxes06Opening rangesession hours, an updated box, alerts07Unusual printson trade, norm.rank, statistics row08Sweepsorder-by-order trade fields09Absorption patternpattern, mbo.level, explanations10Same-order refills, order by orderon order, maps keyed by price and id11Pulled before touchcancels, order age, own memory of fills12Book pressure and micropricebook, a time clock13Volume imbalance barsa when clock, shared state14Strategy: fade a delta divergenceenter, units, the Report15Strategy: join a defended levelon match, fill_model: queue, fixed MBO start16Research: what follows a sweep?study on raw events, compareUse your AI agent
The StrateScript skill teaches StrateScript to your own AI agent. It uses the open Agent Skills format.
- Install it: copy the
stratescriptfolder into your agent's skills folder, or import the .zip in your AI app's settings. - Check scripts: when the Strate app is open on the same computer, the agent can check the scripts it writes. Otherwise, paste the script into Strate and read the error it shows.