cAlgo.API.Robot
class. This base class provides event handlers (OnTick
, OnBar
, etc.) and order methods. In cTrader Automate, backtesting and optimization are built in. The Bars
object gives access to historical bar data in code, enabling indicators or strategies to use past prices.