> ## 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.

# Risk Management

> How Trinigence controls risk, exposure, and losses inside a strategy.

## What risk management is

Risk management defines **how much a strategy is allowed to lose and under which constraints it operates**.

Good entries find opportunity.\
Good exits define outcomes.\
**Risk management ensures survival.**

In Trinigence, risk rules are enforced independently from entries and exits.

***

## Core risk components

Every strategy may include one or more risk controls.

<Columns cols={2}>
  <Card title="Stop Loss" icon="hand">
    Limits loss per trade.
  </Card>

  <Card title="Position sizing" icon="scale-balanced">
    Defines how large each trade is.
  </Card>

  <Card title="Exposure limits" icon="chart-pie">
    Restricts how much capital is exposed.
  </Card>

  <Card title="Trade limits" icon="ban">
    Controls how many trades can be open.
  </Card>
</Columns>

***

## Stop loss

The stop loss defines the **maximum acceptable loss per trade**.

Example:

```text theme={null}
Use a 1% stop loss.
```

Stop losses can be:

* fixed percentage
* fixed price distance
* direction-specific

<Warning>
  A strategy without a stop loss is considered unsafe.
</Warning>

***

## Position sizing

Position sizing defines **how much capital is allocated to each trade**.

Common approaches:

* fixed size
* fixed percentage of capital
* risk-based sizing

Example:

```text theme={null}
Use 5% of available capital per trade.
```

<Info>
  Position sizing often has more impact than entry precision.
</Info>

***

## Exposure limits

Exposure limits restrict **how much capital can be at risk at the same time**.

Examples:

* only one open trade at a time
* maximum 20% total exposure
* no overlapping positions

These rules prevent:

* overleveraging
* correlated losses
* runaway drawdowns

***

## Trade limits

Trade limits control **how frequently the strategy can trade**.

Examples:

```text theme={null}
Allow only one trade per day.
Allow a maximum of 3 open trades.
```

Trade limits are especially useful for:

* lower timeframes
* high-frequency signals
* noisy markets

***

## Direction-specific risk

Risk rules may differ by direction.

Example:

```text theme={null}
For long trades use a 1% stop loss.
For short trades use a 1.5% stop loss.
```

This allows:

* asymmetric risk profiles
* adaptation to market behavior

***

## How risk rules are enforced

Risk rules are evaluated:

* continuously while a trade is open
* before allowing new entries
* independently from signal logic

<Info>
  Risk constraints always override entry signals.
</Info>

***

## Default behavior

If risk rules are:

* missing → ATI enforces safe defaults
* partially defined → ATI fills conservatively
* conflicting → ATI requests clarification

<Card title="What Trinigence fills automatically" icon="robot" href="/writing-ideas/what-trinigence-fills-automatically" horizontal>
  See how safety defaults are applied.
</Card>

***

## Common mistakes

<AccordionGroup>
  <Accordion title="Focusing only on entries">
    Many strategies fail not because of entries, but because of poor risk control.
  </Accordion>

  <Accordion title="Using the same risk for all markets">
    Volatility differs across symbols. Risk should adapt.
  </Accordion>

  <Accordion title="Stacking too many risk rules">
    Too many constraints can eliminate valid trades.
  </Accordion>
</AccordionGroup>

***

## Best practices

* Define stop loss first
* Keep risk rules simple
* Review drawdowns before profits
* Test risk changes independently

<Card title="Backtesting metrics" icon="chart-line" href="/backtesting/metrics-overview" horizontal>
  Learn how risk shows up in metrics.
</Card>

***

## What to read next

<CardGroup cols={2}>
  <Card title="Backtesting & metrics" icon="chart-line" href="/backtesting/metrics-overview">
    Interpret risk through results.
  </Card>

  <Card title="Exit logic" icon="arrow-right-from-bracket" href="/strategy-structure/exit-logic">
    How exits interact with risk.
  </Card>

  <Card title="Strategy overview" icon="diagram-project" href="/strategy-structure/overview">
    Return to the full model.
  </Card>

  <Card title="Iteration & optimization" icon="sliders" href="/iteration-optimization/improving-a-strategy">
    Improve safely over time.
  </Card>
</CardGroup>

<Note>
  Risk management does not make strategies exciting.\
  It makes them survivable.
</Note>
