Title here
Summary here
[[crossunder]] is a conditional block evaluating two expressions, reference and comparison, on every candle.
Until this bearish crossover occurs, the block stays pending and evaluation continues on the next candle. The block is validated on the first candle where reference becomes strictly less than comparison, after a candle where it was still at the same level or above.
A strategy can contain multiple [[crossunder]] blocks.
[[crossunder]]
id = "cross_ma"
reference = "ma_fast"
comparison = "ma_slow"
next_block_id = "next_block"| Parameter | Description |
|---|---|
idText Required | Unique identifier of the block. |
referenceExpression Required | Numeric expression that must move below comparison for the block to be validated. It can be a series, a calculation, or a fixed numeric value. |
comparisonExpression Required | Numeric expression used as the comparison point for reference. It can be a series, a calculation, or a fixed numeric value. |
next_block_idText Conditional | Identifier of the next block to execute once a bearish crossunder is detected and the block is validated. Must be omitted when the block is used as a child of an [[and]] or [[or]] block. Must be defined when the block is used as a direct child of a [[route]] block, because [[route]] follows the selected child’s next_block_id. |
This block does not produce any output variable; it only controls the execution flow based on a bearish crossover.