# Strategy Templates

Source: https://finnyai.tech/docs/templates

Start from a proven foundation. Templates give generated trading algorithms a clear shape: indicators, entry logic, exit logic, and risk assumptions.

## Why templates matter

A template gives the AI agent a clear strategy shape so generated code is easier to inspect, compare, and backtest. Start from a template and ask Finny to modify the logic, add filters, change symbols, or adjust risk controls.

## Included templates

Templates are research starting points. They are *not* recommendations and should be validated before any broker-connected workflow.

- **Momentum** — Trades based on rate-of-change. Enters positions when momentum indicators (RSI, ROC) confirm a sustained directional move.
- **Mean Reversion** — Capitalizes on price returning to its historical average. Uses Bollinger Bands and z-score.
- **Breakout** — Detects when price breaks through key support or resistance with volume confirmation.
- **DCA (Dollar Cost Averaging)** — Systematic time-based buying. Accumulates a position at regular intervals.
- **Golden Cross** — Moving-average crossover. Enters long when the 50-day MA crosses above the 200-day MA.
- **Scalping** — High-frequency, short-duration trades targeting small price movements.
- **Custom** — Blank canvas. Define your own entry/exit logic and risk parameters.

## Example prompt

```
Build a momentum strategy for BTC/USD using RSI and trend confirmation.
Add a stop loss, a take-profit rule, and run it through a backtest.
Show me the generated Python before I run it.
```

## Review generated code

```
/code
/review
/backtest
```
