Changelog for cTrader Algo API¶
5.4¶
July, 2025
What's new
- Plugin hotkeys API: New API objects for plugins allow you to add global hotkeys. These hotkeys behave like built-in cTrader hotkeys and work everywhere.
- Parameter and output descriptions: New
Description
property in parameter and output attributes shows tooltips in the UI when users hover over them. - Chart bars toggle: New
Bars
flag in chart display settings allows you to hide chart bars. The flag removes the need for transparent colours and prevents scaling issues by not drawing bars. - Setting active frames: New
Activate
method in theFrame
class allows plugins to set the active chart or frame. - Bar outputs: Indicators can now output
OHLC
bars with volume instead of a single data series. The output allows displaying custom bar charts on panels or the main chart and can be reused by other indicators. - Data series for plugins: New
CreateDataSeries
method allows plugins to create data series. The created series can be passed as inputs to internal indicators. - Panel child properties: New
Children
,HasChild
andChildrenCount
properties let you access and work with panel contents. - Grid panel position info: New
GridChildPositionInfo
method returns a child’s position in the grid. - Main menu API for plugins: New API lets you add menu items with SVG icons to the main menu. Top menu items can show custom controls. Bottom menu items can trigger plugin handlers.
- Plugin parameters: Plugins can now use parameters the same way indicators and cBots do. The parameters are visible and editable in plugin settings.
Improvements
Assets
API is refactored to reduce resource usage.Sleep
API is improved to prevent freezing for cBots and indicators when the market is closed.
Bug fixes
- No API bugs were found or fixed in version 5.4.
5.3¶
June, 2025
What's new
- Custom timeframe API: New API lets plugins define custom timeframes and supply data for them.
- Custom symbol API: New API lets plugins create custom symbols. The created symbols can be based on existing ones or defined from scratch and behave like broker symbols.
- Custom backtesting data source: New API allows plugins to provide backtesting and optimisation data. The API supports external tick data and third-party feeds.
- Notification popups: Algos can now show popup alerts similar to built-in cTrader notifications.
- Symbol sentiment access: Algos can now read sentiment data for symbols.
Improvements
- Cross-timeframe backtesting: Improved error messages for incompatible timeframe use in backtesting and optimisation.
- Updated Help Centre link in default algo templates.
- Made
Account.UserId
andAccount.Nickname
available for Cloud cBot instances. - CID disconnection handling: Algos keep running and return the last known account data when CID disconnects.
- Message timeouts: Timeout handling prevents algos from getting stuck while waiting for a response from cTrader.
- Help Centre API updates: Added protected API methods to the Help Centre reference.
Bug fixes
Account.BrokerName
returned empty in the console.- Algos froze when loading all account transactions.
RiskReward
tool in backtest incorrectly placed live trades.- Typo in
ChartObject.IsLocked
property documentation. ComboBox.SelectionChanged
was triggered after setting the selected item before render.