NRUNO Trading Automation Wiki · Question 42

How do I close one specific cTrader position from an external signal?

cTrader Execution & Broker ErrorsLast reviewed: 25 Aug 2026
Short answer

Use an unambiguous position reference or deterministic targeting rule. Symbol and side alone can be insufficient on a Hedged account that contains multiple positions.

What this means in practice

Use an unambiguous position reference or deterministic targeting rule. Symbol and side alone can be insufficient on a Hedged account that contains multiple positions. This page is specifically about “How do I close one specific cTrader position from an external signal?”, so each scenario below is explained by its own mechanism instead of sharing one generic diagnosis.

Real-world scenarios

Scenario A — Position ID

Inspect the mechanism named by “Scenario A — Position ID” directly. Record its input, the state immediately before it and the first observable output that differs from the intended result. For Scenario A — Position ID on question 42, use that evidence specifically to answer “How do I close one specific cTrader position from an external signal?”; keep it separate from the evidence for the other scenarios on this page.

Scenario B — Strategy/label targeting

Inspect the mechanism named by “Scenario B — Strategy/label targeting” directly. Record its input, the state immediately before it and the first observable output that differs from the intended result. For Scenario B — Strategy/label targeting on question 42, use that evidence specifically to answer “How do I close one specific cTrader position from an external signal?”; keep it separate from the evidence for the other scenarios on this page.

Scenario C — Close all strategy positions

Inspect the mechanism named by “Scenario C — Close all strategy positions” directly. Record its input, the state immediately before it and the first observable output that differs from the intended result. For Scenario C — Close all strategy positions on question 42, use that evidence specifically to answer “How do I close one specific cTrader position from an external signal?”; keep it separate from the evidence for the other scenarios on this page.

What to check

  • target connector/account identity
  • exact broker symbol
  • normalized order parameters
  • cTrader response and final position/order state

Practical rule

For “How do I close one specific cTrader position from an external signal?”, change only the first layer whose evidence no longer matches the intended action. Preserve signal identity, timestamps and final cTrader state, and reproduce execution-affecting changes on demo before live use.

Decision summary

Direct answer: Use an unambiguous position reference or deterministic targeting rule. Symbol and side alone can be insufficient on a Hedged account that contains multiple positions.

Next action: Match the observed evidence to one scenario above, test that mechanism independently on demo and keep the result traceable with one signal ID.

Primary sources

Need a TradingView → cTrader execution route?

NRUNO routes your TradingView instructions to cTrader. Your strategy and signal logic remain yours.