# The header and its settings

> Markets, bar size, limits and trading hours.

Source: https://algobarsx.com/docs/strategy-header/

```algobarsx
strategy "Language Tour"
    markets: EURUSD, GBPUSD
    bars: 15m
    evaluate: bar_close
    max_open: 3
    max_open_per_side: 2
    direction: both
    opposite: reverse
    pyramiding: 3
    min_distance: 20 pips
    max_daily_loss: 3%
    max_drawdown: 10%
    trade_only: within sessions london, new_york
```

Every setting, with its type and default:

| Setting | Type | Default | What it does |
| --- | --- | --- | --- |
| [`market`](https://algobarsx.com/docs/ref-settings/#ref-market) | symbol | `chart symbol` | Symbol the script runs on. |
| [`markets`](https://algobarsx.com/docs/ref-settings/#ref-markets) | list<symbol> |  | Several symbols; alerts evaluate each independently. |
| [`bars`](https://algobarsx.com/docs/ref-units/#ref-bars) | bartype | `chart bars` | Bar type: timeframe, range(n), xray(n), renko(n) or heikin_ashi(tf). |
| [`evaluate`](https://algobarsx.com/docs/ref-settings/#ref-evaluate) | string | `bar_close` | bar_close (default, never repaints) or tick. |
| [`pane`](https://algobarsx.com/docs/ref-settings/#ref-pane) | string | `price` | price, new or a named pane. |
| [`max_open`](https://algobarsx.com/docs/ref-settings/#ref-max-open) | int | `1` | Open trades allowed at once. |
| [`max_open_per_side`](https://algobarsx.com/docs/ref-settings/#ref-max-open-per-side) | int |  | Open trades allowed per side. |
| [`direction`](https://algobarsx.com/docs/ref-settings/#ref-direction) | string | `both` | both, long or short. |
| [`opposite`](https://algobarsx.com/docs/ref-settings/#ref-opposite) | string | `ignore` | On an opposite signal: close, reverse, ignore or hedge (where the venue supports it). |
| [`warmup`](https://algobarsx.com/docs/ref-settings/#ref-warmup) | int |  | Bars required before rules run (computed by the compiler when omitted). |
| [`repeat`](https://algobarsx.com/docs/ref-settings/#ref-repeat) | string | `once per bar` | once, once per bar, once per bar close or every time. |
| [`cooldown`](https://algobarsx.com/docs/ref-modifiers/#ref-cooldown) | duration \| bars |  | Minimum time or bars between notifications. |
| [`expires`](https://algobarsx.com/docs/ref-settings/#ref-expires) | date \| duration |  | When the alert stops. |
| [`check`](https://algobarsx.com/docs/ref-settings/#ref-check) | duration | `every 1m` | How often account-only alerts are checked. |
| [`show_on_chart`](https://algobarsx.com/docs/ref-settings/#ref-show-on-chart) | bool | `true` | Draw fire points, watched levels and live status on the chart. |
| [`max_daily_loss`](https://algobarsx.com/docs/ref-settings/#ref-max-daily-loss) | percent \| money |  | Pause the deployment after this loss in a day. |
| [`max_drawdown`](https://algobarsx.com/docs/ref-settings/#ref-max-drawdown) | percent \| money |  | Pause the deployment at this drawdown. |
| [`max_total_risk`](https://algobarsx.com/docs/ref-settings/#ref-max-total-risk) | percent |  | Risk allowed across open trades. |
| [`pyramiding`](https://algobarsx.com/docs/ref-settings/#ref-pyramiding) | int | `1` | Entries allowed in the same direction. |
| [`min_distance`](https://algobarsx.com/docs/ref-settings/#ref-min-distance) | distance |  | Smallest distance between pyramided entries. |
| [`trade_only`](https://algobarsx.com/docs/ref-settings/#ref-trade-only) | sessions |  | Sessions in which the strategy may open trades. |

Limits are checked when an entry fills, not when it is placed ([E19](https://algobarsx.com/docs/rules-strategy-controls/#E19)). With `trade_only`, entries are only created inside the listed sessions, while exits and management carry on outside them ([E22](https://algobarsx.com/docs/rules-strategy-controls/#E22)). The named sessions are `sydney`, `tokyo`, `asia`, `frankfurt`, `london` and `new_york`.
