Donchian Breakout
Nano identifier: DonchianBreakout
Donchian channel breakout. DONCHIAN_POS = (close - lower) / (upper - lower) over the 20-period channel, provided by the host data feed. A value at or above 1 means close broke the prior 20-period high.
Nano source
This is the strategy exactly as published. Nano has no import, no file access and no network primitive, so reading or copying this source cannot execute anything.
// Donchian channel breakout. DONCHIAN_POS = (close - lower) / (upper - lower)// over the 20-period channel, provided by the host data feed.// A value at or above 1 means close broke the prior 20-period high.strategy DonchianBreakout { every 1d { if DONCHIAN_POS(20) >= 1 { buy(ETHUSD, 0.8) } }}Compiled IR
Nano compiles to a pinned intermediate representation. This is the artifact a runtime would actually load — inspectable before anything runs, and byte-diffable against the published source.
{ "type": "Strategy", "nanoIrVersion": "0.1.0", "name": "DonchianBreakout", "effects": [ "intent.emit", "log.append" ], "nodes": [ { "type": "Schedule", "interval": "1d" }, { "type": "Condition", "signal": "DONCHIAN_POS", "operator": ">=", "value": 1 }, { "type": "Intent", "action": "BUY", "asset": "ETHUSD", "confidence": 0.8 } ]}What it proposes
On a 1 day cadence, when DONCHIAN_POS >= 1, it emits buy intent for ETHUSD.
An intent is a proposal, not an order. A separate risk gate — outside the language, and outside this library — decides whether anything is acted on.
Risk disclosure
This strategy is published as an educational, verified example. It compiles to the IR shown above and replays deterministically. It has not been backtested against market data, forward-tested, paper-traded, or traded live by Aether, and no performance statistics are published because none have been produced.
Nothing on this page is financial advice, an offer, or a recommendation to trade. Trading carries risk of loss. Any decision to run logic derived from this strategy — and the risk gate that governs it — is entirely your own responsibility.