Assert
Checks a debug condition and records pass or failure behavior.
Checks a debug condition and records pass or failure behavior.
When to use
Use it to make an expected invariant visible while examining an eligible debug run.
Example
Assert that a calculated position size is positive before the order path continues in the recorded test.
Check a recorded assumption
Connect a boolean Condition output to Assert's Condition input in a supported debug or test profile. If the calculated size is positive, the assertion follows Passed; if it is zero or negative, it follows Failed and points to the broken assumption before the order path. Configure the assertion text so the trace says what was expected. The live mode choice can skip or log the check rather than enforcing an automatic safety gate. Do not rely on Assert as a substitute for a real risk or margin branch in an executable strategy.
Common problems
Connect a boolean condition and handle failure as diagnostic evidence. Assert is not a production risk control.
Next steps
Review the generated Parameters, Outcomes, and Data Ports on this page, then open the related guides for the complete workflow.