Variables, Regimes and Grouping Nodes

Remember a value, switch strategies by market state, and keep a large graph tidy: Set Variable, Get Variable, Activate Regime and Cluster.

ReferenceBy AlgoLiftUpdated 1 min read

These four don't fit neatly with the others, but each one solves a real problem once a strategy grows.

Set Variable and Get Variable store a value when something happens and read it back later. Activate Regime is the heart of regime mode, where a strategy detects the market's state (trending, ranging, volatile) and runs a different set of rules for each, or stands aside. A Cluster collapses a group of nodes into one, so a complicated piece of logic reads as a single block and can be reused.