Artificial intelligence is changing how custom trading tools are created. Instead of writing every line of code manually, traders and developers can now describe the tool they want in plain English and let Xen AI generate a working cTrader indicator.
In this video, we show how Xen AI was used to build a Trend Exhaustion Detector for cTrader. The indicator is designed to help identify when a strong trend may be losing momentum and approaching a possible reversal or consolidation phase.
Building the Indicator with Xen AI
The project started with a simple prompt describing the required indicator logic. Xen AI then generated the initial cTrader indicator code, including the calculations, user inputs, output lines, and chart panel display.
The Trend Exhaustion Detector combines three key market conditions into a single exhaustion model:
- Momentum decay, to detect weakening price movement.
- ATR compression, to identify contracting volatility.
- Volume divergence, to monitor rising activity while price movement fades.
What the Indicator Shows
The finished indicator displays an Exhaustion Score, a Reversal Probability line, and a configurable threshold level. When multiple exhaustion conditions align, the score rises, helping traders identify when a trend may be becoming overextended.
This does not predict exact market reversals. Instead, it provides a structured way to monitor weakening trend conditions and use that information alongside price action, support and resistance, and risk management.
Why This Matters
Xen AI makes it faster to test trading ideas and create working prototypes for cTrader. A concept that would normally require manual coding can be turned into a working indicator much faster, giving traders and developers more time to refine, test, and improve their strategies.
This workflow is useful for building indicators, cBots, dashboards, plugins, and other cTrader tools from plain English instructions.

