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

# How to Write a Trading Idea

> Learn how to express trading logic clearly so Trinigence can turn it into a complete strategy.

## Why writing matters

Trinigence doesn’t require code - but it does require clear thinking.

The way you describe your trading idea directly affects how accurately ATI can translate it into:

* structured logic
* deterministic rules
* meaningful backtest results

This page teaches you how to think and write, not just what to type.

<Info>
  You don’t need special syntax. You need clarity.
</Info>

***

## The right mental model

A good trading idea implicitly answers five questions:

1. What market and timeframe am I trading?
2. When do I enter a trade?
3. When do I exit a trade?
4. How much risk am I taking?
5. Are there any filters or constraints?

If your idea answers these, ATI can do the rest.

***

## A good first example

**Clear and effective:**

```text theme={null}
Create an ETH/USDT strategy on the 1h timeframe.
Go long when EMA(20) crosses above EMA(50).
Exit with a take profit of 6% and a stop loss of 1%.
```

Why this works:

* market and timeframe are explicit
* entry condition is objective
* exits are deterministic
* risk is bounded

***

## What you don’t need to worry about

You do not need to:

* specify every parameter perfectly
* worry about internal structure
* use platform-specific syntax
* define defaults explicitly (unless you want to)

ATI is designed to:

* normalize phrasing
* infer standard parameters
* ask clarifying questions only when necessary

***

## Common patterns you can use

### Indicator-based entries

```text theme={null}
Buy when RSI is below 30.
Sell when RSI crosses above 70.
```

### Crossover logic

```text theme={null}
Go long when MACD crosses above the signal line.
```

### Trend confirmation

```text theme={null}
Enter trades only when the higher timeframe trend is bullish.
```

### Breakouts and momentum

```text theme={null}
Buy breakouts when volume increases and momentum confirms.
```

***

## Writing long and short logic

You can define one or both directions.

**Both directions in one idea:**

```text theme={null}
Trade BTC/USDT on 1h.
Go long when EMA(20) crosses above EMA(50).
Go short when EMA(20) crosses below EMA(50).
Use a 5% take profit and a 1% stop loss for both.
```

ATI treats long and short as separate logical paths inside one strategy.

***

## Exits: be explicit

Exits define strategy behavior more than entries.

Good exits are:

* deterministic
* unambiguous
* always present

Examples include:

* fixed percentage TP / SL
* logic-based exits
* time-based exits

<Warning>
  If an entry exists without a valid exit, ATI will always stop and ask for clarification.
</Warning>

***

## Filters and constraints

You can optionally add constraints such as:

* trading only on specific days
* avoiding certain sessions
* limiting trade frequency
* requiring confirmation indicators

Example:

```text theme={null}
Trade only on Monday, Wednesday, Thursday, and Friday.
```

Filters should be added after baseline behavior is understood.

***

## What to avoid

### Vague language

Bad:

```text theme={null}
Buy when the market looks strong.
Sell on weakness.
```

Good:

```text theme={null}
Buy when RSI(14) is above 60.
Sell when RSI(14) crosses below 50.
```

***

### Overloading the first version

Bad:

```text theme={null}
Use multiple confirmations, volatility filters, dynamic exits, and session rules.
```

Good:

```text theme={null}
Start with one entry condition and fixed exits.
```

***

### Mixing intent and outcome

Bad:

```text theme={null}
Buy when price is about to go up.
```

Good:

```text theme={null}
Buy when price breaks above the previous high.
```

***

## How ATI handles ambiguity

When your idea is unclear, ATI will:

* ask a clarification question
* propose a reasonable interpretation
* show you what assumption it made

<AccordionGroup>
  <Accordion title="What does a clarification look like?">
    ATI may ask whether a “trend change” refers to a specific indicator or timeframe.
  </Accordion>

  <Accordion title="Can I override ATI’s assumptions?">
    Yes. Every inferred detail can be modified or rewritten.
  </Accordion>
</AccordionGroup>

***

## A simple checklist before submitting

Before you submit, ask yourself:

* Is the market and timeframe clear?
* Is the entry condition objective?
* Is there a defined exit?
* Is risk limited?
* Would another trader understand this idea?

If yes, you’re ready.

***

## What to read next

<CardGroup cols={2}>
  <Card title="Your first strategy in 5 minutes" icon="rocket" href="/getting-started/first-strategy-5-minutes">
    Apply these principles hands-on.
  </Card>

  <Card title="Natural language vs structured input" icon="language" href="/writing-ideas/natural-language-vs-structured">
    Learn when to be intuitive and when to be precise.
  </Card>

  <Card title="What Trinigence fills automatically" icon="robot" href="/writing-ideas/what-trinigence-fills-automatically">
    Understand what AI handles for you.
  </Card>

  <Card title="Strategy structure overview" icon="diagram-project" href="/strategy-structure/overview">
    See how ideas become executable strategies.
  </Card>
</CardGroup>

<Card title="Instant Mode" icon="bolt" href="/getting-started/instant-mode" horizontal>
  Turn incomplete ideas or headlines into testable strategies without extra formatting.
</Card>

<Note>
  Clear ideas lead to clean strategies.\
  Clean strategies lead to meaningful backtests.
</Note>
