What operators and conditions are
Indicators by themselves only produce values. Operators and conditions define how those values are interpreted and turned into decisions. In Trinigence:- indicators → produce values or states
- operators → compare or relate values
- conditions → resolve to true or false
Conditions at a glance
A condition is any expression that evaluates to true or false. Examples:Comparison operators
Comparison operators compare two values. Common operators:>greater than<less than>=greater than or equal<=less than or equal==equal to
Crossover operators
Crossover operators detect events, not states. Examples:- trigger only on the candle where the crossing occurs
- are not continuously true
- are commonly used for entries
Crossovers are event-based, not condition-based.
State conditions
State conditions describe ongoing situations. Examples:- remain true across multiple candles
- are often used as filters
- define context rather than triggers
Logical operators (AND / OR)
Multiple conditions can be combined using logical operators.AND
All conditions must be true.OR
At least one condition must be true.Grouping conditions
Conditions can be grouped to control evaluation order. Example:Direction-aware conditions
Conditions may apply to:- long entries only
- short entries only
- both directions
Evaluation timing
Conditions are evaluated:- on candle close
- on the strategy timeframe
- once per candle
Defaults and assumptions
If operators or conditions are:- explicit → used exactly
- implied but standard → ATI infers safely
- ambiguous → ATI asks for clarification
What Trinigence fills automatically
See how logic gaps are handled.
Common mistakes
Confusing crosses with states
Confusing crosses with states
Crosses are events. States persist over time.
Overusing OR logic
Overusing OR logic
OR conditions can unintentionally flood a strategy with trades.
Forgetting grouping
Forgetting grouping
Without grouping, logic may not behave as intended.
Best practices
- Use crosses for entries
- Use states for filters
- Group complex logic explicitly
- Keep conditions readable
Indicator categories
Explore indicators by type.
What to read next
Indicator categories
Trend, momentum, volatility, and more.
Entry logic
How conditions trigger trades.
Schedule & filters
Restrict when conditions are allowed.
Indicators overview
Return to the big picture.
Indicators produce signals.
Operators define meaning.
Conditions drive action.
Operators define meaning.
Conditions drive action.