Trade a script’s signal with the venue’s fees, slippage from the order book and funding, and read what it would have made.
Turn a signal into a strategy and see what it would have made after it paid to trade. Declare strategy() in place of indicator(), say on each closed bar what position you want, and the engine fills it, charges what the venue would have charged, and keeps the account.
strategy('MA cross', { capital: 10_000, from: '2025-03-01' });const chart = bars();const fast = ta.sma(20);const slow = ta.sma(50);chart.onClose(() => { const f = fast.update(chart.close); const s = slow.update(chart.close); // Long above the slow average, flat below it: a strategy trades only the sides it asks for. if (!isNa(s)) strategy.target(f > s ? 1 : 0);});
The chart shows each fill as an arrow on the price and the equity curve in a pane of its own, beside buy-and-hold. Report in the legend opens the Strategy report.
strategy.target(fraction) is the position you want as a fraction of equity: 1 fully long, −1 fully short, 0 flat. strategy.targetUsd(usd) takes a notional instead, and strategy.targetSize(coins) a size in coins. All are held to leverage times equity. Nothing makes a strategy trade both ways: one that only ever asks for 0 to 1 is long only, and one that asks for −1 to 0 is short only.
A target applies on closed bars only. By default it fills at the next bar’s open, so a script never trades on a close it hasn’t seen. fill: 'close' fills at the signal bar’s own close, the shortcut many testers take.
The same target again holds the position as it is: calling strategy.target(1) every bar doesn’t trade as equity moves. A new value trades to it.
An order under $10 is not sent, as the venue would refuse it.
strategy.position, strategy.equity, strategy.cash, strategy.closedTrades and strategy.costs read the account back in a handler, marked at the bar’s close. strategy.position.entries counts the fills that opened or added to the position, and entryBar and entryTime say when it opened.
A target with a stop or a limit rests until price reaches it, rather than filling at the next open. An exit closes the position at a stop or a limit, whichever price reaches first.
strategy('Breakout', { capital: 10_000 });const chart = bars();const high20 = ta.highest(20);const atr = ta.atr(14);chart.onClose(() => { const level = high20.update(chart.high); const range = atr.update(chart); if (isNa(level) || isNa(range)) return; // Buy a break above the last 20 bars' high; out 2 ATR below the entry or 4 above it. strategy.target(1, { stop: level, id: 'breakout' }); strategy.exit({ loss: 2 * range, profit: 4 * range });});
A stop fills once price trades through it (above for a buy, below for a sell), at its price, or at the open when a bar opens past it. It pays the taker fee and the slippage.
A limit fills once price trades at it, at its price or a better open. It pays the maker fee and no slippage.
Inside a bar, price is taken to go from the open to the nearer of the high and the low, then to the other, then to the close, as TradingView’s strategy tester assumes. Each order fills where that path first reaches it. An exit placed with its entry can fill in the bar the entry opens.
strategy.exit({ stop, limit }) takes prices. { loss, profit } takes distances from the entry price, placed once the position is open. Both can be given; the one reached first fills. side: 'long' or 'short' keeps an exit to one side.
An order placed on a bar’s close can fill from the next bar on. It stays until it fills, another with its id replaces it, strategy.cancel(id) removes it, or, for an exit, the position it closes is closed. A strategy holds at most 16.
Each cost is charged on its own and listed in the report, so you can see what took the edge.
Fees: the venue’s base tier (Hyperliquid’s rates, twice them on HIP-3, Lighter’s). A market or stop fill pays the taker rate, a limit fill the maker rate. fees: { takerBps, makerBps } sets your own; makerBps defaults to takerBps.
Slippage: what a market order of the fill’s size paid against the order book at the signal bar’s close, the book the next open trades into. The archive records what $10k, $100k and $1M cost on each bar it holds (Hyperliquid and HIP-3); sizes between are interpolated, smaller ones run down to half the spread, and larger ones carry the last stretch on (the report counts them). On a bar the archive has no reading for, a fill costs fallbackBps (2). The report says how many fills the book priced and from when. slippage: { bps } uses a flat cost throughout.
Funding: every hour a position is open it pays or collects that hour’s rate on its notional, as the venue settles it, from 2025-03-01. A 4h or 1d bar charges each hour inside it. Funding needs a time chart of 1m or longer; on other charts pass funding: false.
Liquidation: with leverage above 1, a position whose equity at the bar’s worst price falls below maintenance margin is closed where it would have been (half the initial margin at the market’s highest leverage). An account never goes below zero; the report says what the venue’s backstop took.
A backtest is one path through history. A strategy tuned until it looks good on that path has learned the path. Check it on a stretch it was not tuned on, and score its forecast with ml.score (see statistics and machine learning), before you trust it.
from: '2025-03-01' loads the chart’s history back to that date before the run, so the report covers more than the bars on screen. The run takes longer on more history; the legend says how far it has got.
The report opens in a panel of its own, from Report in the legend or the legend’s menu.
Overview: the net result against buy-and-hold, max drawdown, Sharpe, profit factor, trades, win rate and exposure; the equity curve with its drawdown underneath; what each cost took from the gross; and the forecast’s score when the script declares an ml.score.
Trades: every round trip with its costs. Click one to bring it into view on the chart.
Assumptions: every rule and source the run used: fills, fees, slippage, where the order book and funding start, leverage and maintenance, and how stops and limits fill when the script places them.
Every fill is simulated in the browser and nothing reaches an exchange. The same bars and settings give the same trades on every run.
strategy(name, { portfolio: true }) trades many markets in one account: shared cash, cross margin, every Hyperliquid perp. Set one market’s weight with strategy.target(0.2, { market: 'ETH' }), or the whole book with strategy.targets({ ETH: 0.2, SOL: 0.2 }), where a market left out goes to 0. A weight is a fraction of equity, as one market’s target is, and fills at the open of that market’s next bar.
strategy('Momentum', { portfolio: true, capital: 100_000, from: '2025-06-01' });const pool = universe.topN(25);const chart = bars();chart.onClose(() => { if (clock.parts(chart.time).dayOfWeek !== 0) return; const scores: Record<string, number> = {}; for (const m of pool.current) scores[m] = pool.ret(m, 7) / pool.volatility(m, 30); strategy.targets(portfolio.longShort(scores, { quantile: 0.2 }));});
Picking and trading read different data. Picking a universe reads the universe history, one row a day for every perp. Trading reads each market’s own bars at the chart’s interval, the same bars its chart shows: fills, marks, liquidation and the pool’s price reads. On 1D they come in the universe history’s monthly files, which hold exactly the daily bars a chart shows, so a daily run loads in seconds. Intraday each picked market’s bars load on their own: quick over weeks, slower over many months of hourly bars.
The universe is picked point in time.universe.topN(n) holds the n perps with the most dollar volume over the last 30 days, among those with 60 days of prices, re-picked every 30 days. universe.rule(select) runs a rule of your own: select(view) reads any market’s days before the pick (markets, listed, closes, volume, openInterest, funding, volatility, historyDays) and returns the members. Both pick from every perp that traded then, delisted ones included, so a run never holds a coin for what it later became. pool.view reads the same days as of now.
The pool’s price reads use the members’ bars.pool.close(m), closes, ret, volatility, beta, resid (the move a reference such as BTC does not explain) and volume count bars of the pool’s interval, the chart’s by default; universe.topN(25, { interval: '1d' }) reads daily bars on an intraday chart. A bar is read once it has closed. Intraday a market’s bars load the first time it is picked; until they land its reads are na and the report says it is loading.
It runs on any time chart from 1m to 1W. On a 4h chart it trades every 4 hours; the universe is still re-picked on the days every sets. The chart shows its own market’s fills, its sleeve of the book, and the whole account’s equity. An intraday run covers the history the chart holds, as any script does: scroll back for more.
The costs. Each fill pays the taker fee and a flat 2 bps of slippage (slippage: { bps } sets your own): the archive’s book readings start on 6 Sep 2026, too late for most of a portfolio’s history. Every hour a position is held it pays or collects that day’s mean hourly funding rate. The book is held to leverage at every rebalance; below the sum of its maintenance margins at the bar’s worst prices, the whole account is liquidated.
The Strategy report adds Markets, what each market made after its costs, and Book, the weights after each rebalance beside the universe’s picks.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"0xArchive","description":"Hyperliquid and Lighter market data through the REST API, WebSocket, Webhook Alerts, and Bulk Exports. Start with your first request on the Free plan.","colors":{"primary":"#15803D","light":"#21C55E","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/0xarchive-e895b8e7/_8ck-oUq6ufsot88/logo-light.svg?fit=max\u0026auto=format\u0026n=_8ck-oUq6ufsot88\u0026q=85\u0026s=125ef51299181bd38460b33344f30ff5","dark":"https://mintcdn.com/0xarchive-e895b8e7/_8ck-oUq6ufsot88/logo-dark.svg?fit=max\u0026auto=format\u0026n=_8ck-oUq6ufsot88\u0026q=85\u0026s=829b1f9b3638e20a5c6bc6032ab00025","href":"https://0xarchive.io/?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=logo_home"},"favicon":"https://mintcdn.com/0xarchive-e895b8e7/_8ck-oUq6ufsot88/favicon.svg?fit=max\u0026auto=format\u0026n=_8ck-oUq6ufsot88\u0026q=85\u0026s=df84c8913362b83bdf0443dd4b49a717","api":{"openapi":{"source":"openapi.json","directory":"api-reference"},"params":{"expanded":"all"},"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript","go"],"prefill":true,"autogenerate":true},"url":"full"},"appearance":{"default":"dark","strict":false},"navbar":{"links":[{"href":"https://0xarchive.io/pricing?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=navbar_pricing","label":"Pricing"},{"href":"https://0xarchive.io/status?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=navbar_status","label":"Status"},{"href":"https://0xarchive.io/changelog?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=navbar_changelog","label":"Changelog"},{"href":"https://github.com/0xArchiveIO","label":"GitHub"}],"primary":{"type":"button","label":"Dashboard","href":"https://0xarchive.io/dashboard?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=navbar_dashboard"}},"footer":{"socials":{"x":"https://x.com/0xarchiveIo","github":"https://github.com/0xArchiveIO","telegram":"https://t.me/archivedotio","linkedin":"https://www.linkedin.com/company/0xarchive"},"links":[{"header":"Product","items":[{"label":"Pricing","href":"https://0xarchive.io/pricing?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=footer_pricing"},{"label":"Status","href":"https://0xarchive.io/status?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=footer_status"},{"label":"Data Catalog","href":"https://0xarchive.io/data?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=footer_data_catalog"},{"label":"Dashboard","href":"https://0xarchive.io/dashboard?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=footer_dashboard"}]},{"header":"Developers","items":[{"label":"Data rights","href":"/data-rights"},{"label":"AI clients","href":"/ai-clients"},{"label":"Coding agents","href":"/coding-agents"},{"label":"Choose an interface","href":"/tooling"}]},{"header":"Resources","items":[{"label":"Reference","href":"/reference"},{"label":"OpenAPI","href":"/openapi"},{"label":"Free crypto data API","href":"/free-crypto-data-api"},{"label":"Sitemap","href":"/sitemap"},{"label":"llms.txt","href":"/llms.txt"},{"label":"llms-full.txt","href":"/llms-full.txt"},{"label":"Resources","href":"https://0xarchive.io/resources?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=footer_blog"}]},{"header":"Company","items":[{"label":"Home","href":"https://0xarchive.io/?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=footer_home"},{"label":"Contact","href":"https://0xarchive.io/contact?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=footer_contact"},{"label":"Terms","href":"https://0xarchive.io/terms?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=footer_terms"},{"label":"Privacy","href":"https://0xarchive.io/privacy?utm_source=docs\u0026utm_medium=referral\u0026utm_campaign=docs_nav\u0026utm_content=footer_privacy"}]}]},"search":{"prompt":"Search routes, symbols, SDKs, WebSocket replay, and data quality"},"seo":{"metatags":{"canonical":"https://docs.0xarchive.io","og:site_name":"0xArchive Docs","og:type":"website","twitter:card":"summary_large_image","twitter:site":"@0xarchiveIo","google-site-verification":"Hpedp6bedqc3av1195euaGMwyFEVHcJhcyUY9YiMvTY"},"organization":{"id":"https://0xarchive.io/#organization","name":"0xArchive","legalName":"Archive Labs Inc.","url":"https://0xarchive.io/","logo":"https://0xarchive.io/logo-square-1024.png","sameAs":["https://x.com/0xarchiveIo","https://github.com/0xArchiveIO","https://t.me/archivedotio","https://www.linkedin.com/company/0xarchive/"]},"indexing":"all"},"fonts":{"family":"Geist","source":"fonts/geist-variable.woff2","format":"woff2"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":{"theme":"github-dark"},"latex":true},"errors":{"404":{"redirect":false,"title":"Page not found","description":"Open the quickstart, REST reference, or search the docs for the route you need."}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","cursor","vscode","windsurf","grok","devin","aistudio"],"display":"header"},"thumbnails":{"background":"https://mintcdn.com/0xarchive-e895b8e7/ZmnWL31Kq8lGIdPW/images/og-background.svg?fit=max\u0026auto=format\u0026n=ZmnWL31Kq8lGIdPW\u0026q=85\u0026s=802efd004c3811d20f873d5f00c5ef32"},"metadata":{"timestamp":true},"markdown":{"schema":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"0xarchive-e895b8e7","hasAudioNarration":false,"actualSubdomain":"0xarchive-e895b8e7","customDomains":["docs.0xarchive.io"],"gitSource":{"type":"github","owner":"0xarchiveio","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af3559c0510a428249d8a1b","clientVersion":"0.0.4117","searchFilterCounts":[{"language":"default","tag":"REST API","count":506},{"language":"default","tag":"OpenAPI and schemas","count":242},{"language":"default","tag":"Operation schemas","count":237},{"language":"default","tag":"Endpoint reference","count":225},{"language":"default","tag":"HIP-3","count":104},{"language":"default","tag":"Hyperliquid core","count":104},{"language":"default","tag":"Terminal","count":85},{"language":"default","tag":"Lighter","count":60},{"language":"default","tag":"Webhook Alerts","count":53},{"language":"default","tag":"HIP-4","count":52}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"[email protected]","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","href":"/_mintlify/custom/0xarchive-e895b8e7/54ecd93dfe2b25b9/styles.css"}],"page":{"pagePath":"terminal/guides/strategies","slug":"/terminal/guides/strategies","pageMetadata":{"title":"Strategies","description":"Trade a script's signal with the venue's fees, slippage from the order book and funding, and read what it would have made.","href":"/terminal/guides/strategies"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Trade a script’s signal with the venue’s fees, slippage from the order book and funding, and read what it would have made.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Turn a signal into a strategy and see what it would have made after it paid to trade. Declare `,_jsx(_components.code,{children:`strategy()`}),` in place of `,_jsx(_components.code,{children:`indicator()`}),`, say on each closed bar what position you want, and the engine fills it, charges what the venue would have charged, and keeps the account.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-dark github-dark`,style:{backgroundColor:`#24292e`,\"--shiki-dark-bg\":`#24292e`,color:`#e1e4e8`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`strategy(`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`'MA cross'`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`, { capital: 10_000, `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`'2025-03-01'`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` chart = bars();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` fast = ta.sma(20);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` slow = ta.sma(50);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`chart.onClose(() => {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` f = fast.update(chart.close);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` s = slow.update(chart.close);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // Long above the slow average, flat below it: a strategy trades only the sides it asks for.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` if`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` (!isNa(s)) strategy.target(f > s ? 1 : 0);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The chart shows each fill as an arrow on the price and the equity curve in a pane of its own, beside buy-and-hold. `,_jsx(_components.strong,{children:`Report`}),` in the legend opens the Strategy report.`]}),`\n`,_jsx(Heading,{level:`2`,id:`targets`,children:`Targets`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`strategy.target(fraction)`}),` is the position you want as a fraction of equity: 1 fully long, −1 fully short, 0 flat. `,_jsx(_components.code,{children:`strategy.targetUsd(usd)`}),` takes a notional instead, and `,_jsx(_components.code,{children:`strategy.targetSize(coins)`}),` a size in coins. All are held to `,_jsx(_components.code,{children:`leverage`}),` times equity. Nothing makes a strategy trade both ways: one that only ever asks for 0 to 1 is long only, and one that asks for −1 to 0 is short only.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A target applies on closed bars only. By default it fills at the next bar’s open, so a script never trades on a close it hasn’t seen. `,_jsx(_components.code,{children:`fill: 'close'`}),` fills at the signal bar’s own close, the shortcut many testers take.`]}),`\n`,_jsxs(_components.li,{children:[`The same target again holds the position as it is: calling `,_jsx(_components.code,{children:`strategy.target(1)`}),` every bar doesn’t trade as equity moves. A new value trades to it.`]}),`\n`,_jsx(_components.li,{children:`An order under $10 is not sent, as the venue would refuse it.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`strategy.position`}),`, `,_jsx(_components.code,{children:`strategy.equity`}),`, `,_jsx(_components.code,{children:`strategy.cash`}),`, `,_jsx(_components.code,{children:`strategy.closedTrades`}),` and `,_jsx(_components.code,{children:`strategy.costs`}),` read the account back in a handler, marked at the bar’s close. `,_jsx(_components.code,{children:`strategy.position.entries`}),` counts the fills that opened or added to the position, and `,_jsx(_components.code,{children:`entryBar`}),` and `,_jsx(_components.code,{children:`entryTime`}),` say when it opened.`]}),`\n`,_jsx(Heading,{level:`2`,id:`stops-limits-and-exits`,children:`Stops, limits and exits`}),`\n`,_jsxs(_components.p,{children:[`A target with a `,_jsx(_components.code,{children:`stop`}),` or a `,_jsx(_components.code,{children:`limit`}),` rests until price reaches it, rather than filling at the next open. An exit closes the position at a stop or a limit, whichever price reaches first.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-dark github-dark`,style:{backgroundColor:`#24292e`,\"--shiki-dark-bg\":`#24292e`,color:`#e1e4e8`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`strategy(`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`'Breakout'`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`, { capital: 10_000 });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` chart = bars();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` high20 = ta.highest(20);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` atr = ta.atr(14);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`chart.onClose(() => {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` level = high20.update(chart.high);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` range = atr.update(chart);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` if`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` (isNa(level) || isNa(range)) `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`return`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6A737D`,\"--shiki-dark\":`#6A737D`},children:` // Buy a break above the last 20 bars' high; out 2 ATR below the entry or 4 above it.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` strategy.target(1, { stop: level, id: `}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`'breakout'`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` strategy.exit({ loss: 2 * range, profit: 4 * range });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`stop`}),` fills once price trades through it (above for a buy, below for a sell), at its price, or at the open when a bar opens past it. It pays the taker fee and the slippage.`]}),`\n`,_jsxs(_components.li,{children:[`A `,_jsx(_components.strong,{children:`limit`}),` fills once price trades at it, at its price or a better open. It pays the maker fee and no slippage.`]}),`\n`,_jsx(_components.li,{children:`Inside a bar, price is taken to go from the open to the nearer of the high and the low, then to the other, then to the close, as TradingView’s strategy tester assumes. Each order fills where that path first reaches it. An exit placed with its entry can fill in the bar the entry opens.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`strategy.exit({ stop, limit })`}),` takes prices. `,_jsx(_components.code,{children:`{ loss, profit }`}),` takes distances from the entry price, placed once the position is open. Both can be given; the one reached first fills. `,_jsx(_components.code,{children:`side: 'long'`}),` or `,_jsx(_components.code,{children:`'short'`}),` keeps an exit to one side.`]}),`\n`,_jsxs(_components.li,{children:[`An order placed on a bar’s close can fill from the next bar on. It stays until it fills, another with its `,_jsx(_components.code,{children:`id`}),` replaces it, `,_jsx(_components.code,{children:`strategy.cancel(id)`}),` removes it, or, for an exit, the position it closes is closed. A strategy holds at most 16.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-it-pays`,children:`What it pays`}),`\n`,_jsx(_components.p,{children:`Each cost is charged on its own and listed in the report, so you can see what took the edge.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Fees`}),`: the venue’s base tier (Hyperliquid’s rates, twice them on HIP-3, Lighter’s). A market or stop fill pays the taker rate, a limit fill the maker rate. `,_jsx(_components.code,{children:`fees: { takerBps, makerBps }`}),` sets your own; `,_jsx(_components.code,{children:`makerBps`}),` defaults to `,_jsx(_components.code,{children:`takerBps`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Slippage`}),`: what a market order of the fill’s size paid against the order book at the signal bar’s close, the book the next open trades into. The archive records what `,`$10k, $`,`100k and $1M cost on each bar it holds (Hyperliquid and HIP-3); sizes between are interpolated, smaller ones run down to half the spread, and larger ones carry the last stretch on (the report counts them). On a bar the archive has no reading for, a fill costs `,_jsx(_components.code,{children:`fallbackBps`}),` (2). The report says how many fills the book priced and from when. `,_jsx(_components.code,{children:`slippage: { bps }`}),` uses a flat cost throughout.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Funding`}),`: every hour a position is open it pays or collects that hour’s rate on its notional, as the venue settles it, from 2025-03-01. A 4h or 1d bar charges each hour inside it. Funding needs a time chart of 1m or longer; on other charts pass `,_jsx(_components.code,{children:`funding: false`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Liquidation`}),`: with `,_jsx(_components.code,{children:`leverage`}),` above 1, a position whose equity at the bar’s worst price falls below maintenance margin is closed where it would have been (half the initial margin at the market’s highest leverage). An account never goes below zero; the report says what the venue’s backstop took.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`A backtest is one path through history. A strategy tuned until it looks good on that path has learned the path. Check it on a stretch it was not tuned on, and score its forecast with `,_jsx(_components.code,{children:`ml.score`}),` (see `,_jsx(_components.a,{href:`/terminal/guides/machine-learning`,children:`statistics and machine learning`}),`), before you trust it.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`history`,children:`History`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`from: '2025-03-01'`}),` loads the chart’s history back to that date before the run, so the report covers more than the bars on screen. The run takes longer on more history; the legend says how far it has got.`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-strategy-report`,children:`The Strategy report`}),`\n`,_jsxs(_components.p,{children:[`The report opens in a panel of its own, from `,_jsx(_components.strong,{children:`Report`}),` in the legend or the legend’s menu.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Overview`}),`: the net result against buy-and-hold, max drawdown, Sharpe, profit factor, trades, win rate and exposure; the equity curve with its drawdown underneath; what each cost took from the gross; and the forecast’s score when the script declares an `,_jsx(_components.code,{children:`ml.score`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Trades`}),`: every round trip with its costs. Click one to bring it into view on the chart.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Assumptions`}),`: every rule and source the run used: fills, fees, slippage, where the order book and funding start, leverage and maintenance, and how stops and limits fill when the script places them.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Every fill is simulated in the browser and nothing reaches an exchange. The same bars and settings give the same trades on every run.`}),`\n`,_jsx(Heading,{level:`2`,id:`portfolios`,children:`Portfolios`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`strategy(name, { portfolio: true })`}),` trades many markets in one account: shared cash, cross margin, every Hyperliquid perp. Set one market’s weight with `,_jsx(_components.code,{children:`strategy.target(0.2, { market: 'ETH' })`}),`, or the whole book with `,_jsx(_components.code,{children:`strategy.targets({ ETH: 0.2, SOL: 0.2 })`}),`, where a market left out goes to 0. A weight is a fraction of equity, as one market’s target is, and fills at the open of that market’s next bar.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-dark github-dark`,style:{backgroundColor:`#24292e`,\"--shiki-dark-bg\":`#24292e`,color:`#e1e4e8`,\"--shiki-dark\":`#e1e4e8`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`strategy(`}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`'Momentum'`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`, { portfolio: `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`true`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`, capital: 100_000, `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`from`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`: `}),_jsx(_components.span,{style:{color:`#9ECBFF`,\"--shiki-dark\":`#9ECBFF`},children:`'2025-06-01'`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` pool = universe.topN(25);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` chart = bars();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`chart.onClose(() => {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` if`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` (clock.parts(chart.time).dayOfWeek !== 0) `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`return`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` scores: Record\u003cstring, number> = {};`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:` for`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` (`}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`const`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` m `}),_jsx(_components.span,{style:{color:`#F97583`,\"--shiki-dark\":`#F97583`},children:`of`}),_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` pool.current) scores[m] = pool.ret(m, 7) / pool.volatility(m, 30);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:` strategy.targets(portfolio.longShort(scores, { quantile: 0.2 }));`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#E1E4E8`,\"--shiki-dark\":`#E1E4E8`},children:`});`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Picking and trading read different data.`}),` Picking a universe reads the universe history, one row a day for every perp. Trading reads each market’s own bars at the chart’s interval, the same bars its chart shows: fills, marks, liquidation and the pool’s price reads. On 1D they come in the universe history’s monthly files, which hold exactly the daily bars a chart shows, so a daily run loads in seconds. Intraday each picked market’s bars load on their own: quick over weeks, slower over many months of hourly bars.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The universe is picked point in time.`}),` `,_jsx(_components.code,{children:`universe.topN(n)`}),` holds the `,_jsx(_components.code,{children:`n`}),` perps with the most dollar volume over the last 30 days, among those with 60 days of prices, re-picked every 30 days. `,_jsx(_components.code,{children:`universe.rule(select)`}),` runs a rule of your own: `,_jsx(_components.code,{children:`select(view)`}),` reads any market’s days before the pick (`,_jsx(_components.code,{children:`markets`}),`, `,_jsx(_components.code,{children:`listed`}),`, `,_jsx(_components.code,{children:`closes`}),`, `,_jsx(_components.code,{children:`volume`}),`, `,_jsx(_components.code,{children:`openInterest`}),`, `,_jsx(_components.code,{children:`funding`}),`, `,_jsx(_components.code,{children:`volatility`}),`, `,_jsx(_components.code,{children:`historyDays`}),`) and returns the members. Both pick from every perp that traded then, delisted ones included, so a run never holds a coin for what it later became. `,_jsx(_components.code,{children:`pool.view`}),` reads the same days as of now.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The pool’s price reads use the members’ bars.`}),` `,_jsx(_components.code,{children:`pool.close(m)`}),`, `,_jsx(_components.code,{children:`closes`}),`, `,_jsx(_components.code,{children:`ret`}),`, `,_jsx(_components.code,{children:`volatility`}),`, `,_jsx(_components.code,{children:`beta`}),`, `,_jsx(_components.code,{children:`resid`}),` (the move a reference such as BTC does not explain) and `,_jsx(_components.code,{children:`volume`}),` count bars of the pool’s interval, the chart’s by default; `,_jsx(_components.code,{children:`universe.topN(25, { interval: '1d' })`}),` reads daily bars on an intraday chart. A bar is read once it has closed. Intraday a market’s bars load the first time it is picked; until they land its reads are `,_jsx(_components.code,{children:`na`}),` and the report says it is loading.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`It runs on any time chart from 1m to 1W.`}),` On a 4h chart it trades every 4 hours; the universe is still re-picked on the days `,_jsx(_components.code,{children:`every`}),` sets. The chart shows its own market’s fills, its sleeve of the book, and the whole account’s equity. An intraday run covers the history the chart holds, as any script does: scroll back for more.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`The costs.`}),` Each fill pays the taker fee and a flat 2 bps of slippage (`,_jsx(_components.code,{children:`slippage: { bps }`}),` sets your own): the archive’s book readings start on 6 Sep 2026, too late for most of a portfolio’s history. Every hour a position is held it pays or collects that day’s mean hourly funding rate. The book is held to `,_jsx(_components.code,{children:`leverage`}),` at every rebalance; below the sum of its maintenance margins at the bar’s worst prices, the whole account is liquidated.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The Strategy report adds `,_jsx(_components.strong,{children:`Markets`}),`, what each market made after its costs, and `,_jsx(_components.strong,{children:`Book`}),`, the weights after each rebalance beside the universe’s picks.`]}),`\n`,_jsx(Heading,{level:`2`,id:`next-step`,children:`Next step`}),`\n`,_jsxs(_components.p,{children:[`See it on real data in `,_jsx(_components.a,{href:`/terminal/examples/rsi-pca-forecast`,children:`RSI PCA forecast`}),`, `,_jsx(_components.a,{href:`/terminal/examples/funding-carry`,children:`Funding carry`}),` and `,_jsx(_components.a,{href:`/terminal/examples/residual-momentum`,children:`Residual momentum`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":"github-dark"},"config":{},"pageMetadata":{"title":"Strategies","description":"Trade a script's signal with the venue's fees, slippage from the order book and funding, and read what it would have made.","href":"/terminal/guides/strategies"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Targets","slug":"targets","depth":2,"children":[]},{"title":"Stops, limits and exits","slug":"stops-limits-and-exits","depth":2,"children":[]},{"title":"What it pays","slug":"what-it-pays","depth":2,"children":[]},{"title":"History","slug":"history","depth":2,"children":[]},{"title":"The Strategy report","slug":"the-strategy-report","depth":2,"children":[]},{"title":"Portfolios","slug":"portfolios","depth":2,"children":[]},{"title":"Next step","slug":"next-step","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/0xarchive-e895b8e7/7de7178c454c8311/analytics-delayed.js","/_mintlify/custom/0xarchive-e895b8e7/64d76990ea4d1101/ahrefs-analytics.js","/_mintlify/custom/0xarchive-e895b8e7/9c04a5e34ef7363a/assistant-ui.js","/_mintlify/custom/0xarchive-e895b8e7/ae934b733ebeac03/single-public-docs.js","/_mintlify/custom/0xarchive-e895b8e7/ab832e8be54292e5/webhooks-anchors.js"],"subdomain":"0xarchive-e895b8e7","siteName":"0xArchive","title":"Strategies - 0xArchive","contextualStarterQuestions":[{"_id":"6ae8c6688e7a5986c89536fd","deploymentId":"69fcef8bc84766ada2de665b","questionText":"How do I read strategy performance?","status":"active","generatedBy":"contextual","path":"terminal/guides/strategies","createdAt":"2026-11-02T17:20:40.146Z","updatedAt":"2026-11-02T17:20:40.146Z","__v":0},{"_id":"6ae8c6688e7a5986c89536fc","deploymentId":"69fcef8bc84766ada2de665b","questionText":"What fees does the engine charge?","status":"active","generatedBy":"contextual","path":"terminal/guides/strategies","createdAt":"2026-11-02T17:20:40.146Z","updatedAt":"2026-11-02T17:20:40.146Z","__v":0},{"_id":"6ae8c6688e7a5986c89536fb","deploymentId":"69fcef8bc84766ada2de665b","questionText":"How do I set a position target?","status":"active","generatedBy":"contextual","path":"terminal/guides/strategies","createdAt":"2026-11-02T17:20:40.146Z","updatedAt":"2026-11-02T17:20:40.146Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T17:20:26.080Z","gitLastModified":"2026-11-02T17:19:37.000Z","originalFileLocation":"terminal/guides/strategies.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Trade a script\u0026#x27;s signal with the venue\u0026#x27;s fees, slippage from the order book and funding, and read what it would have made.\">\u003cmeta data-mint-head name=\"application-name\" content=\"0xArchive\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Strategies - 0xArchive\">\u003cmeta data-mint-head property=\"og:description\" content=\"Trade a script\u0026#x27;s signal with the venue\u0026#x27;s fees, slippage from the order book and funding, and read what it would have made.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"0xArchive Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.0xarchive.io/terminal/guides/strategies\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://0xarchive-e895b8e7.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Strategies\u0026amp;description=Trade+a+script%27s+signal+with+the+venue%27s+fees%2C+slippage+from+the+order+book+and+funding%2C+and+read+what+it+would+have+made.\u0026amp;theme=77376188720d2fe77317e930\u0026amp;signature=a3fca463c359caa777c61f9e0cc1d5d00934ea5b4eecc3c8edadf632e3e5b536\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Strategies - 0xArchive\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Trade a script\u0026#x27;s signal with the venue\u0026#x27;s fees, slippage from the order book and funding, and read what it would have made.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://0xarchive-e895b8e7.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Strategies\u0026amp;description=Trade+a+script%27s+signal+with+the+venue%27s+fees%2C+slippage+from+the+order+book+and+funding%2C+and+read+what+it+would+have+made.\u0026amp;theme=77376188720d2fe77317e930\u0026amp;signature=a3fca463c359caa777c61f9e0cc1d5d00934ea5b4eecc3c8edadf632e3e5b536\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/0xarchive-e895b8e7/epsl9cg6_-QmFjTh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"0xArchive\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#15803D\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"Hpedp6bedqc3av1195euaGMwyFEVHcJhcyUY9YiMvTY\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.0xarchive.io/terminal/guides/strategies\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/terminal/guides/strategies.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://0xarchive.io/#organization\",\"name\":\"0xArchive\",\"legalName\":\"Archive Labs Inc.\",\"url\":\"https://0xarchive.io/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://0xarchive.io/logo-square-1024.png\"},\"sameAs\":[\"https://x.com/0xarchiveIo\",\"https://github.com/0xArchiveIO\",\"https://t.me/archivedotio\",\"https://www.linkedin.com/company/0xarchive/\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.0xarchive.io#website\",\"name\":\"0xArchive\",\"url\":\"https://docs.0xarchive.io\",\"publisher\":{\"@id\":\"https://0xarchive.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.0xarchive.io/terminal/guides/strategies#webpage\",\"url\":\"https://docs.0xarchive.io/terminal/guides/strategies\",\"name\":\"Strategies\",\"description\":\"Trade a script's signal with the venue's fees, slippage from the order book and funding, and read what it would have made.\",\"dateModified\":\"2026-11-02T17:19:37.000Z\",\"isPartOf\":{\"@id\":\"https://docs.0xarchive.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.0xarchive.io/terminal/guides/strategies#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.0xarchive.io/terminal/guides/strategies#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.0xarchive.io/terminal/guides/state\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Strategies\",\"item\":\"https://docs.0xarchive.io/terminal/guides/strategies\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.0xarchive.io/terminal/guides/strategies#article\",\"headline\":\"Strategies\",\"name\":\"Strategies\",\"description\":\"Trade a script's signal with the venue's fees, slippage from the order book and funding, and read what it would have made.\",\"url\":\"https://docs.0xarchive.io/terminal/guides/strategies\",\"mainEntityOfPage\":{\"@id\":\"https://docs.0xarchive.io/terminal/guides/strategies#webpage\"},\"dateModified\":\"2026-11-02T17:19:37.000Z\",\"publisher\":{\"@id\":\"https://0xarchive.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.0xarchive.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"0xArchive\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"0xArchive\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/terminal/guides/strategies.md","siteName":"0xArchive","nav":{"global":null,"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":""}]},{"tab":"REST API","pages":[{"title":"REST API","href":"/rest-api"}]},{"tab":"WebSocket","pages":[{"title":"WebSocket","href":"/websocket"}]},{"tab":"Webhook Alerts","pages":[{"title":"Webhook Alerts","href":"/webhooks"}]},{"tab":"Bulk Exports","pages":[{"title":"Bulk Exports","href":"/exports"}]},{"tab":"SDKs \u0026 Tools","pages":[{"title":"SDKs \u0026 Tools","href":"/tooling"}]},{"tab":"Terminal","pages":[{"title":"Terminal scripting","sidebarTitle":"Overview","href":"/terminal"},{"title":"Trade on Hyperliquid","sidebarTitle":"Trading","href":"/terminal-trading"},{"group":"Start","icon":"rocket","pages":[{"title":"Your first script","href":"/terminal/guides/first-script"},{"title":"How a script runs","href":"/terminal/guides/how-scripts-run"}]},{"group":"Guides","icon":"book-open","pages":[{"title":"State and indicators","sidebarTitle":"State","href":"/terminal/guides/state"},{"title":"Statistics and machine learning","sidebarTitle":"Stats and machine learning","description":"Rolling statistics, regression that learns bar by bar, Kalman filters, PCA, walk-forward PCA regression, scoring a forecast, matrices, and labels a model cannot see early.","href":"/terminal/guides/machine-learning"},{"title":"Strategies","href":"/terminal/guides/strategies"},{"title":"Data and timeframes","description":"Read other intervals and markets, 0xArchive's trades, liquidations, order book, open interest, funding and breadth, with no lookahead.","href":"/terminal/guides/data"},{"title":"Read order flow in terminal scripts","sidebarTitle":"Order flow","href":"/terminal/guides/order-flow"},{"title":"Read liquidations in terminal scripts","sidebarTitle":"Liquidations","href":"/terminal/guides/liquidations"},{"title":"BTC options","href":"/terminal/guides/options"},{"title":"Outputs","href":"/terminal/guides/outputs"},{"title":"Add script inputs","sidebarTitle":"Inputs","href":"/terminal/guides/inputs"},{"title":"Missing values","href":"/terminal/guides/missing-values"},{"title":"Pine Script","href":"/terminal/guides/pine"},{"title":"Limits and determinism","sidebarTitle":"Limits","href":"/terminal/guides/limits"},{"title":"Tools for agents","href":"/terminal/guides/agents"}]},{"group":"Examples","icon":"chart-candlestick","pages":[{"title":"Terminal script examples","sidebarTitle":"Examples","href":"/terminal/examples"},{"group":"On 0xArchive's data","expanded":true,"pages":[{"title":"Opening and closing flow","href":"/terminal/examples/opening-closing-flow"},{"title":"Squeeze or new positions","href":"/terminal/examples/squeeze-or-new-positions"},{"title":"Most-liquidated wallets","href":"/terminal/examples/liquidated-wallets"},{"title":"Liquidation levels ahead","href":"/terminal/examples/liquidation-levels-ahead"},{"title":"Large taker orders","href":"/terminal/examples/large-takers"},{"title":"Opening sweeps","href":"/terminal/examples/opening-sweeps"},{"title":"Option sweeps","href":"/terminal/examples/option-sweeps"},{"title":"Dealer gamma","href":"/terminal/examples/dealer-gamma"},{"title":"Liquidations indicator example","sidebarTitle":"Liquidations","href":"/terminal/examples/liquidations"},{"title":"Liquidation clusters","href":"/terminal/examples/liquidation-clusters"},{"title":"Tape CVD","href":"/terminal/examples/cvd"},{"title":"Funding and open interest","href":"/terminal/examples/funding-oi"},{"title":"Breadth above VWAP","href":"/terminal/examples/breadth-above-vwap"},{"title":"Bid share within a band","href":"/terminal/examples/book-imbalance"},{"title":"Book walls","href":"/terminal/examples/book-walls"},{"title":"Footprint cells","href":"/terminal/examples/footprint-cells"},{"title":"Stopped-out footprint","href":"/terminal/examples/stopped-out-footprint"},{"title":"Stopped vs profit footprint","href":"/terminal/examples/stopped-profit-footprint"},{"title":"Opens and closes footprint","href":"/terminal/examples/opens-closes-footprint"},{"title":"Open interest footprint","href":"/terminal/examples/open-interest-footprint"},{"title":"Makers opening footprint","href":"/terminal/examples/makers-opening-footprint"},{"title":"Tape speed heat","href":"/terminal/examples/tape-speed-heat"},{"title":"Stopped-out heat","href":"/terminal/examples/stopped-out-heat"},{"title":"Makers opening heat","href":"/terminal/examples/makers-opening-heat"},{"title":"Open interest heat","href":"/terminal/examples/open-interest-heat"},{"title":"Session volume profile","href":"/terminal/examples/session-volume-profile"}]},{"group":"Flow setups","expanded":false,"pages":[{"title":"Stacked imbalances above PoC","href":"/terminal/examples/stacked-above-poc"},{"title":"Trapped traders","href":"/terminal/examples/trapped-traders"},{"title":"Stopped out at the extreme","href":"/terminal/examples/stopped-at-extreme"},{"title":"Breakout with new money","href":"/terminal/examples/breakout-new-money"}]},{"group":"Indicators and outputs","expanded":false,"pages":[{"title":"EMA","href":"/terminal/examples/ema"},{"title":"4h EMA","href":"/terminal/examples/higher-timeframe"},{"title":"Anchored VWAP bands","href":"/terminal/examples/anchored-vwap"},{"title":"Open bands","href":"/terminal/examples/open-bands"},{"title":"Relative strength","href":"/terminal/examples/relative-strength"},{"title":"Trend bars","href":"/terminal/examples/trend-bars"},{"title":"Session table","href":"/terminal/examples/session-table"},{"title":"Ichimoku","href":"/terminal/examples/ichimoku"},{"title":"RSI cross","href":"/terminal/examples/rsi-cross"},{"title":"Volume by hour","href":"/terminal/examples/volume-by-hour"},{"title":"Return after RSI","href":"/terminal/examples/rsi-forward-returns"}]},{"group":"Stats and machine learning","expanded":false,"pages":[{"title":"Kalman pairs spread","href":"/terminal/examples/kalman-pairs"},{"title":"Basket residual","href":"/terminal/examples/basket-residual"},{"title":"Order-flow forecast","href":"/terminal/examples/order-flow-forecast"},{"title":"Market Read","href":"/terminal/examples/market-read"}]},{"group":"Strategies","expanded":false,"pages":[{"title":"Funding carry","href":"/terminal/examples/funding-carry"},{"title":"RSI PCA forecast","href":"/terminal/examples/rsi-pca-forecast"},{"title":"Residual momentum","href":"/terminal/examples/residual-momentum"}]},{"group":"Pasted Pine","expanded":false,"pages":[{"title":"RSI cross, pasted Pine","href":"/terminal/examples/rsi-pine"},{"title":"Ichimoku, pasted Pine","href":"/terminal/examples/ichimoku-pine"},{"title":"4h EMA and daily close, pasted Pine","href":"/terminal/examples/htf-pine"}]}]},{"group":"Reference","icon":"code","pages":[{"title":"Terminal scripting reference","sidebarTitle":"Reference","href":"/terminal/reference"},{"title":"Basic types","href":"/terminal/reference/types"},{"title":"The declaration","href":"/terminal/reference/indicator"},{"title":"Script input reference","sidebarTitle":"Inputs","href":"/terminal/reference/inputs"},{"title":"Streams","href":"/terminal/reference/streams"},{"title":"State","href":"/terminal/reference/state"},{"title":"Indicators (ta)","href":"/terminal/reference/ta"},{"title":"Statistics and machine learning (stats, ml)","href":"/terminal/reference/machine-learning"},{"title":"Matrices (linalg)","href":"/terminal/reference/linalg"},{"title":"Plots","href":"/terminal/reference/plots"},{"title":"Graphs","href":"/terminal/reference/graphs"},{"title":"Panels","href":"/terminal/reference/panels"},{"title":"Drawings","href":"/terminal/reference/drawings"},{"title":"Alerts","href":"/terminal/reference/alerts"},{"title":"Colours, text and time","href":"/terminal/reference/utilities"},{"title":"Diagnostics","href":"/terminal/reference/diagnostics"}]}]}]},"basePath":"","title":"Strategies - 0xArchive","buildId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","deploymentId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","dynamics":[],"chunks":[]}