<- Back to docs

Trading strategy generator

Strategy Templates

Finny includes built-in templates so generated trading algorithms start from a recognizable structure instead of a blank file.

Why templates matter

A template gives the AI agent a clear strategy shape: indicators, entry logic, exit logic, and risk assumptions. This makes generated code easier to inspect, compare, and backtest.

You can start from a template and then ask Finny to modify the logic, add filters, change symbols, or adjust risk controls.

Included templates

Use templates as starting points for strategy research. They are not recommendations and should be validated before any broker-connected workflow.

  • Momentum: uses strength or rate-of-change signals to follow directional moves.
  • Mean reversion: looks for price returning toward an average or band.
  • Breakout: reacts to price moving through support, resistance, or channel levels.
  • DCA: accumulates over time with configurable exit logic.
  • Golden Cross: uses moving-average crossover signals.
  • Scalping: targets smaller moves with tighter entry and exit rules.
  • Custom: starts from a minimal skeleton for your own logic.

Example prompts

Prompts work best when you specify market, timeframe, indicators, risk rules, and what should happen when a signal fails.

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

After generation, inspect the Python source and use Finny's review workflow to look for edge cases, unsafe assumptions, and common trading mistakes.

/code
/review
/backtest