# Units reference

> All 8 units in AlgoBarsX, each with its parameters, defaults, ranges and an example: pips, points, percent, R, money, lots, bars, duration.

Source: https://algobarsx.com/docs/ref-units/

### `pips / pip` → distance

Distance in pips, converted with each symbol's pip size.

```algobarsx
stop_distance = 20 pips
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `points / point` → distance

Distance in points, converted with each symbol's point size.

```algobarsx
buffer = 150 points
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `%` → fraction

A share of a base named by context, or by `of`.

```algobarsx
risk_share = 1%
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `R` → distance

Multiple of the trade's initial stop distance; valid only where a trade has a stop.

```algobarsx
buy risk: 1%, stop: 20 pips, target: 2R
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `$` → money

Amount in account currency.

```algobarsx
budget = $500
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `lots / lot` → size

Position size, using the symbol's contract size and lot step.

```algobarsx
size_now = 0.5 lots
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `bars / bar` → count

Count of bars of the script's bar type.

```algobarsx
window = 10 bars
```

Works in: strategy, indicator, alert, library. Since 1.0.

### `s / m / h / d / w / M` → time

Wall-clock time using UTC bar timestamps.

```algobarsx
wait = 4h
```

Works in: strategy, indicator, alert, library. Since 1.0.
