Script Library

Your trading rules, written down, tested, and ready to run.

Most traders keep their setups in their head or scattered across notes. Dome's Script Library gives you one place to write your trading logic, test it against real market data, and connect it directly to your bots — with a version history so you can always go back.

Get Started Script Library Docs
breakout_v3.ds
1// Breakout with volume filter · Dome Script
2strategy("Volume Breakout", version=3)
3 
4// Inputs
5input lookback = 20 // range lookback bars
6input vol_mult = 1.5 // volume multiplier
7input risk_pct = 1.0 // max risk per trade %
8 
9range_high = highest(high, lookback)
10avg_vol = sma(volume, lookback)
11breakout = close > range_high[1]
12vol_ok = volume > avg_vol * vol_mult
13 
14if breakout and vol_ok
15    entry("long", risk=risk_pct)
// validation result
Syntax check✓ PASS
Backtest (500 bars)Sharpe 1.32
Max drawdown-11.4% · REVIEW
Risk gates✓ Compliant
Library contents

Four types of scripts. Everything in its place.

Scripts are organized by what they do — so you can find, update, and connect them without hunting through a mess of loose files.

All scripts
Strategies
Indicators
Safety Rules
Research Tools
Strategy

Volume Breakout v3

Spots when price breaks out with real conviction — not a fake move. Confirms with volume before signaling an entry.

Validated Active
Indicator

Delta Pressure Oscillator

Shows when buyers or sellers are genuinely exhausted — not just slowing down. Identifies absorption zones and divergence before price reacts.

Validated On chart
Automation

Daily Loss Gate

Stops your bot automatically when you've lost enough for the day. No manual intervention needed — the gate fires and nothing else goes through.

Validated Risk gate
Strategy

Mean Reversion VWAP

Finds when price has moved too far, too fast. Signals when the deviation from fair value is extreme enough to trade against the move.

Draft In review
Research

Regime Classifier

Labels whether the market is trending, ranging, or chaotic — so your strategy only fires in the conditions it was designed for.

Validated Python Lab
Indicator

Multi-TF Trend Score

Confirms your read across multiple timeframes at once. One score tells you whether the trend is aligned or fighting itself.

Validated On chart
Dome Script language

Write trading logic without learning a full programming language.

01

Trading concepts built right in

Candles, volume, delta, VWAP, and session boundaries are already there. You describe your trading idea in trading terms — no imports, no boilerplate.

02

What you test is what you run

Your script behaves the same in a backtest, in replay mode, and in live execution. No surprises when you go live — what you see in testing is what you get.

03

Risk rules built into the language

Daily loss limits, max position size, and drawdown gates are part of the language itself — not something you have to add separately after the fact.

04

Test settings live in the same file

Define your backtest parameters right inside the script. No separate config file, no switching tools — everything about your strategy is in one place.

trend_ma.ds
1indicator("Trend MA Cross")
2 
3input fast = 9
4input slow = 21
5 
6ma_fast = ema(close, fast)
7ma_slow = ema(close, slow)
8cross_up = cross(ma_fast, ma_slow)
9 
10plot(ma_fast, color=cyan)
11plot(ma_slow, color=orange)
12signal(cross_up, "Bullish cross")
Validation pipeline

Write it → Test it → Check the risk → Approve it.

Write it

Write your strategy in the editor. Syntax is checked as you type — errors are flagged with line numbers before you run anything.

✓ Instant

Test it

Your script runs against real historical bars. You see win rate, drawdown, and expectancy — the numbers you need to decide if this is worth running live.

✓ ~2 seconds

Check the risk

Position sizing and daily loss rules are checked automatically. If your script could open an oversized position or breach your limit, you see a flag before approval.

✓ Automated

Approve it

You review the results and approve the version. Everything is saved to the version history — you can always go back to a previous version if something goes wrong.

✓ One click

Stop keeping your strategy in your head. Write it down and test it.

Your trading logic deserves to be written, validated, and version-controlled — not scattered across notes and memory. The Script Library connects every strategy directly to your bots and charts.

Download Terminal Script Docs