---
id: "T:cAlgo.API.AbsoluteStopLossProtection"
kind: "record"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Trading/AbsoluteStopLossProtection/"
---

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

# AbsoluteStopLossProtection (record)

Represents a stop loss defined at an absolute price level.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public class AbsoluteStopLossProtection
```

Available since cAlgo.API 5.8.

## Examples

C#:

```csharp
var position = Positions.Find("myLabel");
if (position != null && position.TradeType == TradeType.Buy)
{
    var pipSize = position.Symbol.PipSize;
    var takeProfits = new AbsoluteTakeProfitProtections(new AbsoluteTakeProfitLastProtection(position.EntryPrice + 40 * pipSize));
    var result = ModifyPosition(position, new AbsoluteStopLossProtection(position.EntryPrice - 20 * pipSize), takeProfits);
    Print("Stop loss set at {0}: {1}", position.EntryPrice - 20 * pipSize, result.IsSuccessful);
}
```

Python:

```python
position = api.Positions.Find("myLabel")
if position is not None and position.TradeType == TradeType.Buy:
    pipSize = position.Symbol.PipSize
    takeProfits = AbsoluteTakeProfitProtections(AbsoluteTakeProfitLastProtection(position.EntryPrice + 40 * pipSize))
    result = api.ModifyPosition(position, AbsoluteStopLossProtection(position.EntryPrice - 20 * pipSize), takeProfits)
    api.Print(f"Stop loss set at {position.EntryPrice - 20 * pipSize}: {result.IsSuccessful}")
```

## Constructors

- `public AbsoluteStopLossProtection(double Price)` — Represents a stop loss defined at an absolute price level. [details](https://help.ctrader.com/ctrader-algo/references/Trading/AbsoluteStopLossProtection/Constructor/index.md)
- `public AbsoluteStopLossProtection(AbsoluteStopLossProtection original)` —  [details](https://help.ctrader.com/ctrader-algo/references/Trading/AbsoluteStopLossProtection/Constructor/index.md)

## Properties

- `public double Price {get; set;}` — The absolute price at which the stop loss is triggered. [details](https://help.ctrader.com/ctrader-algo/references/Trading/AbsoluteStopLossProtection/Price/index.md)

