Main clusters and core pages.
AlgoWay cTrader Connector receives webhook trading commands and applies clear position logic before sending orders to cTrader. The two most important modes are Reverse Mode and Hedge Mode. Reverse Mode is designed to close existing exposure before a new direction is handled. Hedge Mode is designed to allow new positions without closing the existing side.
This guide is written for traders searching for cTrader connector logic, TradingView to cTrader webhook, cTrader webhook automation, cTrader Reverse mode, cTrader Hedge mode, cTrader trading bot webhook, and AlgoWay cTrader automation.
The route is:
TradingView alert → AlgoWay webhook → AlgoWay cTrader connector → cTrader order execution
TradingView creates the signal. AlgoWay receives the JSON message. The cTrader connector applies the selected trade mode. cTrader then receives the final market order or close action.
Last updated: 2026-05-12 • Author: AlgoWay
The AlgoWay cTrader connector receives a structured command such as buy, sell, long, short or flat, checks existing positions for the selected symbol, applies the selected trade mode, and sends the required action to cTrader.
| Mode | Main behavior | Best use case |
|---|---|---|
| Reverse Mode | Close existing exposure first, then process the new direction when the route is configured to do so. | One-direction strategies that should not keep overlapping exposure. |
| Hedge Mode | Open the new direction without closing existing positions. | Strategies that intentionally allow long and short exposure at the same time. |
The cTrader connector is the execution layer between AlgoWay webhook logic and cTrader order handling. It is not the strategy itself. The strategy can be in TradingView, a manual webhook test, or another source that sends a valid AlgoWay message.
The normal flow is:
ticker, order_action, order_contracts and route settings.cTrader itself supports algorithmic trading through cBots, and cBots can perform operations such as sending market orders, modifying positions, closing positions and subscribing to trading events. AlgoWay uses this ecosystem to build an automation bridge around webhook commands.
Reverse Mode is for strategies that should avoid overlapping exposure on the same instrument. When a new signal arrives, the connector checks existing positions for the symbol and closes exposure that conflicts with the selected logic.
The objective is to close existing positions for the specified symbol and prepare the account for the new state. Depending on the route behavior and signal design, the system can then open the new direction or only close the old position.
ticker.Current position:
EURUSD LONG 1.00
Incoming signal:
{
"platform_name": "ctrader",
"ticker": "EURUSD",
"order_contracts": 1,
"order_action": "short"
}
Expected behavior:
Hedge Mode is for strategies that intentionally allow additional exposure without closing current positions. If a LONG exists and a SHORT signal arrives, the connector can open the SHORT while the LONG remains open, provided the platform/account allows this behavior.
The objective is to add a new position without forcing old positions to close.
Current position:
EURUSD LONG 1.00
Incoming signal:
{
"platform_name": "ctrader",
"ticker": "EURUSD",
"order_contracts": 1,
"order_action": "short"
}
Expected behavior:
| Characteristic | Reverse Mode | Hedge Mode |
|---|---|---|
| Existing positions | Checked and closed when required by route logic | Checked but not closed automatically |
| Opposite signal | Used to remove or replace current exposure | Can create additional opposite exposure |
| Best for | One-direction strategies | Hedged or layered strategies |
| Risk profile | Cleaner exposure, fewer overlapping positions | More flexible but can increase total exposure |
| Main mistake | Expecting instant flip when route is close-only | Forgetting that losses can exist on both sides |
AlgoWay expects structured JSON. The exact route must match the platform configured in your AlgoWay webhook.
{
"platform_name": "ctrader",
"ticker": "{{ticker}}",
"order_contracts": "{{strategy.order.contracts}}",
"order_action": "{{strategy.market_position}}",
"price": "{{close}}"
}
This version uses TradingView strategy placeholders. TradingView replaces the values when the alert fires.
{
"platform_name": "ctrader",
"ticker": "EURUSD",
"order_contracts": 1,
"order_action": "buy"
}
Use a small test size first. Confirm the cTrader account accepts the symbol and size before using live strategy values.
{
"platform_name": "ctrader",
"ticker": "EURUSD",
"order_action": "flat"
}
Use close-style actions only if your route supports them. Check AlgoWay logs after the test to confirm how the action was interpreted.
The legacy version of this page explained that the connector uses market orders for fast execution and that SL/TP should be handled by the strategy or route logic instead of assuming they are always attached directly at market-order creation time.
The practical rule is:
Example with explicit SL/TP-style fields where supported:
{
"platform_name": "ctrader",
"ticker": "EURUSD",
"order_contracts": 1,
"order_action": "buy",
"sl_price": 1.08400,
"tp_price": 1.09000
}
Most cTrader connector problems are not caused by the webhook itself. They are caused by mismatched symbol names, invalid size, unsupported account behavior or misunderstood mode logic.
Before live automation, check:
Use Reverse Mode when:
Use Hedge Mode when:
This page explains cTrader connector logic when cTrader is the destination for webhook automation. It is different from the cTrader-to-MT5 copier workflow.
| Page / workflow | Source | Destination |
|---|---|---|
| cTrader connector logic | TradingView or AlgoWay webhook signal | cTrader |
| cTrader to MT5 copier | cTrader trade action | MetaTrader 5 through AlgoWayWS-MT5 EA |
For the copier workflow, read: How to copy trades from cTrader to MetaTrader 5 with AlgoWay.
Check platform route, cTrader credentials, symbol, account state, permissions, order size and the exact error in AlgoWay logs.
Check whether the route is configured as close-only or close-and-open. The legacy behavior documented for this page warned that reverse logic may close first and not automatically open the opposite side unless the signal or route specifies it.
Hedge Mode does not close existing positions by design. Check alert frequency, duplicate alerts and whether TradingView sends multiple signals per bar.
Check the exact cTrader symbol and compare it with the TradingView ticker. Configure mapping if needed.
Check order_contracts, quantity multiplier, symbol volume rules and account risk settings.
If AlgoWay rejects the webhook before cTrader execution, check JSON syntax. Read: How to fix AlgoWay webhook Error 415.
Check whether your current cTrader route supports direct SL/TP attachment, post-entry modification or strategy-managed exits. Test with small size before relying on protective orders.
AlgoWay cTrader connector logic is mainly about how existing positions are handled when a new webhook signal arrives. Reverse Mode is designed to close or replace current exposure. Hedge Mode is designed to add new exposure without closing existing positions.
Choose Reverse Mode when your strategy should keep one direction per symbol. Choose Hedge Mode only when your strategy and account are designed to handle overlapping long and short exposure. Test symbols, size, SL/TP behavior and close logic before live automation.