Skip to main content

ConditionNodeType

Type of condition node in the strategy builder tree

enum ConditionNodeType {
AND
OR
NOT
IF_THEN_ELSE
COMPARE
CROSSOVER
CROSSUNDER
IN_RANGE
WITHIN
}

Values​

ConditionNodeType.AND​

ConditionNodeType.OR​

ConditionNodeType.NOT​

ConditionNodeType.IF_THEN_ELSE​

ConditionNodeType.COMPARE​

ConditionNodeType.CROSSOVER​

ConditionNodeType.CROSSUNDER​

ConditionNodeType.IN_RANGE​

ConditionNodeType.WITHIN​

True when the child condition was true at any point in the trailing window of bars candles, current candle included. A bounded window, deliberately not an unbounded latch: conditions compile to vectorized pandas expressions, and "stay armed until reset" cannot be expressed that way. Sequencing is built by composing, e.g. WITHIN(20, crossed above 60) AND (rsi < 30).