Choose the event that should cause execution
Alerts can originate from indicator conditions, alert() calls, strategy orders or other supported events. They may occur at different moments. Decide whether the external action should use an intrabar event, confirmed bar or strategy order event before connecting execution.
Use one clear instruction per event
The receiver should not have to guess what the message means. Include an explicit action and the execution data needed by the workflow. Define close, partial close or reverse commands deliberately if you use them.
Avoid duplicate and stale execution
Realtime systems can encounter duplicate messages, reconnects or delayed events. A production connector should distinguish new instructions from previously processed ones and reject messages that are too old according to policy. Signal IDs and maximum signal age help.
Separate alert time from fill time
The TradingView alert timestamp is not the broker fill timestamp. Webhook transport, validation, cBot processing, cTrader submission and broker handling happen afterward. Measure each stage separately.
Keep exits predictable
Automatic execution needs a clear exit plan. Continue sending TradingView close events or use configured cTrader-side protection such as local SL/TP, break-even and trailing. Combine multiple exit systems only when their priority is understood.