Skip to content

Introduction

How cBots Operate

Think of cBots as automated trading helpers that you can customise to perform all sorts of operations based on various technical analysis signals.

In more technical terms, a cBot is a C# class with customisable parameters and methods. You can fully define its behaviour including what it does on start-up, on encountering certain market conditions, and on being stopped.

To make a cBot perform trading operations, you need to create an instance of it and attach it to a trading chart of your choice. You can think of an instance as a reference to a specific cBot object.

cBots can also perform actions not specifically related to trading such as creating new files on your local machine. As you gain familiarity with C# and .NET, you can apply your knowledge to create advanced extensions with complex workflows.

Testing cBots

In cTrader, you can allow cBots to trade on historical market data to see whether they attain the desired results. This process is called backtesting. You can also conduct several rounds of backtesting in sequence to find the best possible parameter values for a given cBot. This process is known as optimisation. To learn more about backtesting and optimisation, read this tutorial.