SnapshotNum and related state functions are useful when a reference should be captured once instead of recalculated continuously.
Typical uses
- Capture a reference price when a trigger fires
- Store a level used by later strategy logic
- Record a value at an entry or transition event