---
id: "M:cAlgo.API.Internals.IIndicatorsAccessor.HighMinusLow"
kind: "method"
type: "T:cAlgo.API.Internals.IIndicatorsAccessor"
url: "https://help.ctrader.com/ctrader-algo/references/Indicators/IIndicatorsAccessor/HighMinusLow/"
---

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

# IIndicatorsAccessor.HighMinusLow

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

## HighMinusLow()

The High Minus Low indicator is used to compute the range of daily bars

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
HighMinusLow HighMinusLow()
```

Python:

```python
api.Indicators.HighMinusLow() -> HighMinusLow
```

### Returns

`HighMinusLow` — High Minus Low indicator instance

### Examples

C#:

```csharp
var highMinusLow = Indicators.HighMinusLow();
Print("Range of the last closed bar: {0}", highMinusLow.Result.Last(1));
```

Python:

```python
highMinusLow = api.Indicators.HighMinusLow()
api.Print(f"Range of the last closed bar: {highMinusLow.Result.Last(1)}")
```

## HighMinusLow(Bars bars)

The High Minus Low indicator is used to compute the range of daily bars

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
HighMinusLow HighMinusLow(Bars bars)
```

Python:

```python
api.Indicators.HighMinusLow(bars: Bars) -> HighMinusLow
```

### Parameters

- `bars` (`Bars`, Python `Bars`): The Bars that will be used by indicator, you can pass another timeframe/symbol bars

### Returns

`HighMinusLow` — High Minus Low indicator instance

### Examples

C#:

```csharp
var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyRange = Indicators.HighMinusLow(dailyBars);
Print("Range of the last closed daily bar: {0}", dailyRange.Result.Last(1));
```

Python:

```python
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyRange = api.Indicators.HighMinusLow(dailyBars)
api.Print(f"Range of the last closed daily bar: {dailyRange.Result.Last(1)}")
```

