Golden Cross
Nano identifier: GoldenCross
Golden cross as a spread signal. Nano cannot compute crosses in-language; the feed provides SMA_SPREAD = SMA(50) - SMA(200). Positive spread means the fast average is above the slow one (post-golden-cross regime).
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.
// Golden cross as a spread signal. Nano cannot compute crosses in-language;// the feed provides SMA_SPREAD = SMA(50) - SMA(200). Positive spread means// the fast average is above the slow one (post-golden-cross regime).strategy GoldenCross { every 1d { if SMA_SPREAD(50) > 0 { buy(SPY, 0.9) } }}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": "GoldenCross", "effects": [ "intent.emit", "log.append" ], "nodes": [ { "type": "Schedule", "interval": "1d" }, { "type": "Condition", "signal": "SMA_SPREAD", "operator": ">", "value": 0 }, { "type": "Intent", "action": "BUY", "asset": "SPY", "confidence": 0.9 } ]}What it proposes
On a 1 day cadence, when SMA_SPREAD > 0, it emits buy intent for SPY.
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.