cBot Overview
This cBot runs continuously while trading to ensure that losses never exceed the trader’s defined tolerance. It calculates the current drawdown relative to either the starting or trailing peak equity and triggers protective actions when the set limit is breached. Visual and pop-up alerts inform the user when protection has been activated, and the cBot can optionally halt all trading activity.
Warning: ClickAlgo holds no responsibility for any losses incurred while using this tool; please use a demo account for testing purposes.
Background & History
The concept of equity curve protection originates from professional fund management, where traders employ automated systems to lock in profits and prevent catastrophic drawdowns. The cTrader Equity Curve Protector evolved from this approach, offering retail traders the same control. It was developed as a complement to risk management cBots like the Equity Stop or Account Guard, providing a lightweight yet powerful tool for equity-based capital preservation.

How the cBot Works
The cBot continuously monitors the account equity on every tick. It calculates the drawdown percentage based on either the initial equity or the highest recorded equity since the cBot started, depending on the trailing peak setting. When the drawdown percentage reaches or exceeds the maximum allowed threshold, the cBot triggers the following sequence: - Displays chart and optional pop-up notifications. - Closes all open positions if enabled. - Cancels pending orders if selected. - Stops the cBot to prevent further trades until manually restarted. The user can track live equity and drawdown values directly on the chart through dynamically updated text labels.
Key Features
The Equity Curve Protector focuses on capital safety and discipline. - Real-time monitoring of equity and drawdown percentage. - Option to use trailing peak equity for adaptive protection. - Automatic position and order management when thresholds are hit. - Clear on-chart and pop-up notifications. - Option to automatically stop trading after trigger.
How to Use it for Trading
Attach the cBot to any symbol chart and start it while other cBots or manual trades are active. - Set your maximum drawdown percentage to define the allowed loss from your equity peak. - Enable “Use Trailing Peak” if you want protection to follow profit growth. - Activate “Auto Close Positions” and “Cancel Pending Orders” for full automation. - Choose whether to display alerts and stop trading when triggered. Traders can use this cBot alongside their main strategy bot to enforce strict equity protection. Beginners should start with conservative drawdown values (e.g., 5–10%) and test in demo mode before applying to live accounts.
Inputs & Parameters
Each parameter allows you to customise the drawdown detection and protective response.
Parameter |
Default/Type |
Description |
Max Drawdown (%) |
10 |
The maximum equity loss in percentage allowed before triggering protection. |
Use Trailing Peak |
True |
If true, protection is based on the highest equity achieved instead of the initial balance. |
Auto Close Positions |
True |
Automatically closes all open positions when protection is triggered. |
Cancel Pending Orders |
False |
Cancels any pending orders when protection activates. |
Show Chart Notification |
True |
Displays visual alerts on the chart when a drawdown event occurs. |
Show Pop-up Notification |
False |
Shows a pop-up alert window when the protection level is reached. |
Stop cBot on Trigger |
True |
Stops the cBot immediately after protection activates to prevent new trades. |
Formula
The cBot calculates drawdown dynamically as a percentage difference between reference equity and current equity.
Drawdown % = ((Reference Equity - Current Equity) / Reference Equity) × 100
Where:
Reference Equity = Initial Equity or Trailing Peak Equity (depending on user setting).
Advantages
This cBot gives traders a simple yet robust way to automate equity-based stop-loss management. It helps prevent emotional trading and enforces discipline. The trailing mode allows dynamic protection as profits increase, while full automation ensures rapid response to market volatility.
Disadvantages
The cBot may stop trading during temporary drawdowns that later recover, which could limit potential profit. It requires the cBot to remain active to monitor equity and does not work retroactively on manual or external platform actions once stopped.
How To Install & Remove
First, ensure that you have the cTrader trading platform installed. Then, unzip the file and double-click it to install the platform automatically.
Need Extra Help?
Get instant answers with cTrader Sensei — our free AI assistant built for the cTrader platform. It can explain the indicator settings, suggest trading strategies, and guide you step-by-step through the use of this indicator. Rated 4.9 out of 5 in the ChatGPT Store.
Chat with cTrader Sensei.
Prefer human help? Visit our support forum where our team and community can assist you.
Note: cTrader Sensei runs on OpenAI's ChatGPT platform. To use it, you will be asked to create a free OpenAI account. Registration is quick and costs nothing.
The free version works immediately, but upgrading to a ChatGPT Plus subscription unlocks the latest GPT model, which provides more accurate and detailed answers for trading, coding, and product support.
Need a Broker
If you're still looking for a broker with tight spreads and fast execution, visit our top cTrader broker site.