> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trinigence.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Strategy Structure Overview

> Understand how Trinigence represents a trading strategy under the hood.

## Why strategy structure matters

When Trinigence turns a trading idea into a strategy, the result is not text - it is a formal, deterministic structure.

Understanding this structure helps you:

* interpret backtest results correctly
* debug unexpected behavior
* iterate without breaking logic

This page explains the core building blocks without requiring any coding knowledge.

***

## The core components of a strategy

Every Trinigence strategy is composed of the same fundamental parts.

<Columns cols={2}>
  <Card title="Market & Timeframe" icon="clock">
    Defines what is traded and how often logic is evaluated.
  </Card>

  <Card title="Entry Logic" icon="arrow-right-to-bracket">
    Rules that open a position when conditions are met.
  </Card>

  <Card title="Exit Logic" icon="arrow-right-from-bracket">
    Rules that close a position deterministically.
  </Card>

  <Card title="Risk Management" icon="shield-halved">
    Constraints that limit losses and define trade behavior.
  </Card>
</Columns>

***

## Market & timeframe

A strategy always starts with:

* a specific symbol (e.g. BTC/USDT)
* one or more timeframes

All indicators and conditions are evaluated on the selected timeframe unless explicitly defined otherwise.

<Info>
  Multi-timeframe strategies separate filter timeframes from execution timeframes.
</Info>

***

## Entry logic

Entry logic defines when a trade opens.

It consists of:

* one or more conditions
* logical operators (AND / OR)
* optional filters

Examples of entry components:

* indicator thresholds
* crossovers
* trend direction
* breakout conditions

An entry must be objective, repeatable, and unambiguous.

***

## Exit logic

Exit logic defines how and when a trade closes.

Common exit types:

* fixed take profit
* fixed stop loss
* indicator-based exits
* time-based exits

<Warning>
  A strategy without a valid exit cannot be backtested.
</Warning>

Multiple exit conditions may coexist. The first condition met closes the trade.

***

## Risk management

Risk rules define how much the strategy can lose.

This includes:

* stop loss levels
* position sizing rules
* maximum exposure
* trade limits

Risk management is enforced independently from entry logic.

<Info>
  Changing risk parameters often has a larger impact than changing entries.
</Info>

***

## Strategy flow

At each new candle:

1. Filters are evaluated
2. Entry conditions are checked
3. If a trade is open, exit conditions are evaluated
4. Risk rules are enforced

This flow repeats identically for every backtest candle.

***

## Determinism and reproducibility

Every strategy in Trinigence is:

* deterministic
* reproducible
* free of hidden state

Given the same data and parameters, a strategy will always produce the same result.

***

## How ATI maps ideas to structure

ATI translates your idea by:

1. identifying required components
2. normalizing indicators and parameters
3. validating logical completeness
4. surfacing assumptions

<Card title="What Trinigence fills automatically" icon="robot" href="/writing-ideas/what-trinigence-fills-automatically" horizontal>
  See which details ATI infers safely.
</Card>

***

## Common structure misunderstandings

<AccordionGroup>
  <Accordion title="Why did my strategy open fewer trades than expected?">
    Filters, timeframe choices, or exit logic may be more restrictive than intended.
  </Accordion>

  <Accordion title="Why did exits trigger earlier than I expected?">
    Exit conditions are evaluated on every candle, not only at entry.
  </Accordion>

  <Accordion title="Can multiple exits trigger at once?">
    Yes. The first exit condition met closes the trade.
  </Accordion>
</AccordionGroup>

***

## How to use this knowledge

Understanding structure helps you:

* modify one component at a time
* reason about cause and effect
* avoid accidental strategy changes

<Card title="Improving a strategy" icon="sliders" href="/iteration-optimization/improving-a-strategy" horizontal>
  Learn how to iterate safely.
</Card>

***

## What to read next

<CardGroup cols={2}>
  <Card title="Backtesting & metrics" icon="chart-line" href="/backtesting/metrics-overview">
    Learn how strategy behavior is evaluated.
  </Card>

  <Card title="Iteration & optimization" icon="sliders" href="/iteration-optimization/improving-a-strategy">
    Improve performance without overfitting.
  </Card>

  <Card title="Writing trading ideas" icon="pen-fancy" href="/writing-ideas/how-to-write-a-trading-idea">
    Map ideas to structure more cleanly.
  </Card>

  <Card title="FAQ & troubleshooting" icon="life-ring" href="/faq/common-questions">
    Common structural questions answered.
  </Card>
</CardGroup>

<Note>
  Clear structure leads to predictable behavior.
  Predictable behavior leads to better decisions.
</Note>
