# Header settings reference

> All 21 header settings in AlgoBarsX, each with its parameters, defaults, ranges and an example: market, markets, bars, evaluate, pane, max_open, max_open_per_side, direction, opposite, warmup and 11 more.

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

### `market: <symbol>`

Symbol the script runs on.

**Default** chart symbol

```algobarsx
market: EURUSD
```

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

### `markets: <list<symbol>>`

Several symbols; alerts evaluate each independently.

```algobarsx
markets: EURUSD, GBPUSD
```

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

### `bars: <bartype>`

Bar type: timeframe, range(n), xray(n), renko(n) or heikin_ashi(tf).

**Default** chart bars

```algobarsx
bars: 15m
```

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

### `evaluate: <string>`

bar_close (default, never repaints) or tick.

**Choices** `bar_close` `tick`

**Default** bar_close

```algobarsx
evaluate: bar_close
```

Works in: strategy, alert. Since 1.0.

### `pane: <string>`

price, new or a named pane.

**Default** price

```algobarsx
pane: price
```

Works in: indicator. Since 1.0.

### `max_open: <int>`

Open trades allowed at once.

**Default** 1

```algobarsx
max_open: 2
```

Works in: strategy. Since 1.0.

### `max_open_per_side: <int>`

Open trades allowed per side.

```algobarsx
max_open_per_side: 1
```

Works in: strategy. Since 1.0.

### `direction: <string>`

both, long or short.

**Choices** `both` `long` `short`

**Default** both

```algobarsx
direction: long
```

Works in: strategy. Since 1.0.

### `opposite: <string>`

On an opposite signal: close, reverse, ignore or hedge (where the venue supports it).

**Choices** `close` `reverse` `ignore` `hedge`

**Default** ignore

```algobarsx
opposite: reverse
```

Works in: strategy. Since 1.0.

### `warmup: <int>`

Bars required before rules run (computed by the compiler when omitted).

```algobarsx
warmup: 300
```

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

### `repeat: <string>`

once, once per bar, once per bar close or every time.

**Default** once per bar

```algobarsx
repeat: once per bar
```

Works in: alert. Since 1.0.

### `cooldown: <duration | bars>`

Minimum time or bars between notifications.

```algobarsx
cooldown: 30m
```

Works in: alert. Since 1.0.

### `expires: <date | duration>`

When the alert stops.

```algobarsx
expires: 2026-12-31
```

Works in: alert. Since 1.0.

### `check: <duration>`

How often account-only alerts are checked.

**Default** every 1m

```algobarsx
check: every 1m
```

Works in: alert. Since 1.0.

### `show_on_chart: <bool>`

Draw fire points, watched levels and live status on the chart.

**Default** true

```algobarsx
show_on_chart: true
```

Works in: alert. Since 1.0.

### `max_daily_loss: <percent | money>`

Pause the deployment after this loss in a day.

```algobarsx
max_daily_loss: 3%
```

Works in: strategy. Since 1.0.

### `max_drawdown: <percent | money>`

Pause the deployment at this drawdown.

```algobarsx
max_drawdown: 10%
```

Works in: strategy. Since 1.0.

### `max_total_risk: <percent>`

Risk allowed across open trades.

```algobarsx
max_total_risk: 4%
```

Works in: strategy. Since 1.0.

### `pyramiding: <int>`

Entries allowed in the same direction.

**Default** 1

```algobarsx
pyramiding: 3
```

Works in: strategy. Since 1.0.

### `min_distance: <distance>`

Smallest distance between pyramided entries.

```algobarsx
min_distance: 20 pips
```

Works in: strategy. Since 1.0.

### `trade_only: <sessions>`

Sessions in which the strategy may open trades.

```algobarsx
trade_only: within sessions london, new_york
```

Works in: strategy. Since 1.0.
