Separate calculation examples from execution examples
An indicator calculation can be correct while order ownership, price selection, volume, stop distance, or retry behavior remains undefined. Keep the first example read-only until the signal values and timing are understood.
The closed-bar sample uses shift 1 and runs once after a new bar begins. That is one explicit timing choice, not a universal rule. Intrabar strategies need a different state model.
| Example type | Evidence it should include | Remaining test |
|---|---|---|
| Script | OnStart and bounded task | Correct chart and file context |
| Indicator | Buffers, OnCalculate, history guard | Visual values and refresh behavior |
| Expert Advisor | OnTick or timer state and order filters | Tester, broker, and demo execution |
