> For the complete documentation index, see [llms.txt](https://help.signals.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.signals.network/framework-documentation/untitled/methods/orders/cancelallpendingorders.md).

# CancelAllPendingOrders()

Cancels all pending orders generated by strategy, except those created by SetStopLoss() or SetProfitTarget() functions.

#### Parameters

None.

#### Example

{% code title="Basic example" %}

```csharp
// Cancels all pending orders generated by strategy
CancelAllPendingOrders();
```

{% endcode %}
