The header and its settings

Markets, bar size, limits and trading hours.

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:

SettingTypeDefaultWhat it does
marketsymbolchart symbolSymbol the script runs on.
marketslist<symbol>Several symbols; alerts evaluate each independently.
barsbartypechart barsBar type: timeframe, range(n), xray(n), renko(n) or heikin_ashi(tf).
evaluatestringbar_closebar_close (default, never repaints) or tick.
panestringpriceprice, new or a named pane.
max_openint1Open trades allowed at once.
max_open_per_sideintOpen trades allowed per side.
directionstringbothboth, long or short.
oppositestringignoreOn an opposite signal: close, reverse, ignore or hedge (where the venue supports it).
warmupintBars required before rules run (computed by the compiler when omitted).
repeatstringonce per baronce, once per bar, once per bar close or every time.
cooldownduration | barsMinimum time or bars between notifications.
expiresdate | durationWhen the alert stops.
checkdurationevery 1mHow often account-only alerts are checked.
show_on_chartbooltrueDraw fire points, watched levels and live status on the chart.
max_daily_losspercent | moneyPause the deployment after this loss in a day.
max_drawdownpercent | moneyPause the deployment at this drawdown.
max_total_riskpercentRisk allowed across open trades.
pyramidingint1Entries allowed in the same direction.
min_distancedistanceSmallest distance between pyramided entries.
trade_onlysessionsSessions in which the strategy may open trades.

Limits are checked when an entry fills, not when it is placed (E19). With trade_only, entries are only created inside the listed sessions, while exits and management carry on outside them (E22). The named sessions are sydney, tokyo, asia, frankfurt, london and new_york.

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

Create my free account