Skip to main content

What entry logic is

Entry logic defines when a trade is opened. It answers one question:
Under which exact conditions should a position be opened?
Entry logic must be:
  • objective
  • deterministic
  • unambiguous
If the entry condition is met, the trade opens. If not, nothing happens.

Components of entry logic

Entry logic is built from a combination of components.

Conditions

Indicator values, thresholds, or events that must occur.

Operators

Logical connectors like AND / OR.

Filters

Additional constraints that limit when entries are allowed.

Direction

Whether the entry applies to long, short, or both.

Conditions

Conditions are the building blocks of entries. Examples:
RSI(14) > 50
EMA(20) crosses above EMA(50)
Price breaks above previous high
Conditions can reference:
  • indicators
  • price action
  • volume
  • time-based events

Logical operators

Multiple conditions can be combined using logical operators. Examples:
RSI(14) > 50 AND EMA(20) > EMA(50)
RSI(14) > 50 OR MACD > signal
All conditions must be explicitly true or false at evaluation time.

Filters

Filters restrict when entries are allowed, without defining the entry itself. Common filters:
  • higher timeframe trend
  • session/time-of-day
  • volatility conditions
  • market regime
Example:
Only allow long entries when the 4h trend is bullish.
Filters are evaluated before entry conditions.

Direction-specific entries

Entries can be defined separately for each direction. Example:
Go long when EMA(20) crosses above EMA(50).
Go short when EMA(20) crosses below EMA(50).
Each direction:
  • has independent logic
  • may trigger at different times
  • may use different conditions

When entries are evaluated

Entry logic is evaluated:
  • once per candle
  • at candle close
  • on the strategy timeframe
If the condition becomes true intrabar but is false at close, no trade opens.
Entries do not trigger intrabar unless explicitly supported.

Default assumptions

If entry logic is:
  • incomplete → ATI will request clarification
  • implied but clear → ATI may infer safely
  • ambiguous → no strategy is created

What Trinigence fills automatically

See how missing entry details are handled.

Common mistakes

Too many AND conditions can eliminate all trades.
OR conditions can drastically increase trade frequency.
Entries are evaluated on candle close by default.

Best practices

  • Start with one clear condition
  • Add filters gradually
  • Inspect entry points visually
  • Validate logic on a small dataset first

Exit logic

Learn how trades are closed.

Good entries create opportunity.
Good exits and risk management create survival.