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.

market markets bars evaluate pane max_open max_open_per_side direction opposite warmup repeat cooldown expires check show_on_chart max_daily_loss max_drawdown max_total_risk pyramiding min_distance trade_only

market: <symbol>#

Symbol the script runs on.

Default chart symbol

Example
market: EURUSD
strategyindicatoralertsince 1.0

markets: <list<symbol>>#

Several symbols; alerts evaluate each independently.

Example
markets: EURUSD, GBPUSD
strategyindicatoralertsince 1.0

bars: <bartype>#

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

Default chart bars

Example
bars: 15m
strategyindicatoralertsince 1.0

evaluate: <string>#

bar_close (default, never repaints) or tick.

Choices bar_close tick

Default bar_close

Example
evaluate: bar_close
strategyalertsince 1.0

pane: <string>#

price, new or a named pane.

Default price

Example
pane: price
indicatorsince 1.0

max_open: <int>#

Open trades allowed at once.

Default 1

Example
max_open: 2
strategysince 1.0

max_open_per_side: <int>#

Open trades allowed per side.

Example
max_open_per_side: 1
strategysince 1.0

direction: <string>#

both, long or short.

Choices both long short

Default both

Example
direction: long
strategysince 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

Example
opposite: reverse
strategysince 1.0

warmup: <int>#

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

Example
warmup: 300
strategyindicatoralertsince 1.0

repeat: <string>#

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

Default once per bar

Example
repeat: once per bar
alertsince 1.0

cooldown: <duration | bars>#

Minimum time or bars between notifications.

Example
cooldown: 30m
alertsince 1.0

expires: <date | duration>#

When the alert stops.

Example
expires: 2026-12-31
alertsince 1.0

check: <duration>#

How often account-only alerts are checked.

Default every 1m

Example
check: every 1m
alertsince 1.0

show_on_chart: <bool>#

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

Default true

Example
show_on_chart: true
alertsince 1.0

max_daily_loss: <percent | money>#

Pause the deployment after this loss in a day.

Example
max_daily_loss: 3%
strategysince 1.0

max_drawdown: <percent | money>#

Pause the deployment at this drawdown.

Example
max_drawdown: 10%
strategysince 1.0

max_total_risk: <percent>#

Risk allowed across open trades.

Example
max_total_risk: 4%
strategysince 1.0

pyramiding: <int>#

Entries allowed in the same direction.

Default 1

Example
pyramiding: 3
strategysince 1.0

min_distance: <distance>#

Smallest distance between pyramided entries.

Example
min_distance: 20 pips
strategysince 1.0

trade_only: <sessions>#

Sessions in which the strategy may open trades.

Example
trade_only: within sessions london, new_york
strategysince 1.0

Try this in the Terminal. AlgoBars is free: $0 a month, no card needed.

Create my free account