---
id: "P:cAlgo.API.Internals.Algo.Positions"
kind: "property"
type: "T:cAlgo.API.Internals.Algo"
url: "https://help.ctrader.com/ctrader-algo/references/General/Algo/Positions/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Algo.Positions

Member of [Algo](https://help.ctrader.com/ctrader-algo/references/General/Algo/index.md).

## Positions

The list of all open positions of the account.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public Positions Positions {get;}
```

Python:

```python
api.Positions: Positions
```

### Returns

`Positions` — 

### Examples

C#:

```csharp
foreach (var position in Positions)
{
    if (position.StopLoss == null)
        position.ModifyStopLossPips(20);
}
var sellPosition = Positions.Find("myLabel", SymbolName, TradeType.Sell);
if (sellPosition != null)
    Print("Net profit: {0}", sellPosition.NetProfit);
```

Python:

```python
for position in api.Positions:
    if position.StopLoss is None:
        position.ModifyStopLossPips(20)
sellPosition = api.Positions.Find("myLabel", api.SymbolName, TradeType.Sell)
if sellPosition is not None:
    api.Print(f"Net profit: {sellPosition.NetProfit}")
```

