> For the complete documentation index, see [llms.txt](https://fto-2.gitbook.io/fto-strategies-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fto-2.gitbook.io/fto-strategies-docs/readme.md).

# Overview

Build custom robots for Forex Tester Online.

Create, build, test, and upload TypeScript trading robots for Forex Tester Online.

## Start here

| Goal                      | Page                                                                                                    |
| ------------------------- | ------------------------------------------------------------------------------------------------------- |
| First build and upload    | [Open and upload a robot](/fto-strategies-docs/tutorial-open-and-upload-robot.md)                       |
| Author with Cursor AI     | [Create a robot with Cursor](/fto-strategies-docs/tutorial-creating-a-robot-with-cursor-ide.md)         |
| Download working examples | [Download robot examples](/fto-strategies-docs/download-robot-examples.md)                              |
| Debug and test            | [Debug and test a robot with Cursor](/fto-strategies-docs/debugging-and-testing-a-robot-with-cursor.md) |

## How robots work

A robot is a TypeScript class that extends `Robot`. It registers inputs in `OnInit`, evaluates trading logic in `OnTick`, and can react to start, stop, and parameter-change events through [lifecycle hooks](/fto-strategies-docs/api-reference/lifecycle.md).

## API reference

The [API reference](/fto-strategies-docs/api-reference.md) covers lifecycle hooks, inputs, market data, indicators, chart tools, utilities, and orders.

Recommended first reads:

* [Robot lifecycle](/fto-strategies-docs/api-reference/lifecycle/robot-lifecycle.md)
* [Input registration](/fto-strategies-docs/api-reference/inputs/registration-and-runtime-use/input-registration.md)
* [Order selection workflow](/fto-strategies-docs/api-reference/trading/workflows/order-selection.md)
* [Safe trading workflow](/fto-strategies-docs/api-reference/trading/workflows/safe-trading-workflow.md)
* [Trade error handling](/fto-strategies-docs/api-reference/trading/workflows/trade-error-handling.md)
