Units reference

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

pips points percent R money lots bars duration

pips / pip→ distance#

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

Example
stop_distance = 20 pips
strategyindicatoralertlibrarysince 1.0

points / point→ distance#

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

Example
buffer = 150 points
strategyindicatoralertlibrarysince 1.0

%→ fraction#

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

Example
risk_share = 1%
strategyindicatoralertlibrarysince 1.0

R→ distance#

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

Example
buy risk: 1%, stop: 20 pips, target: 2R
strategyindicatoralertlibrarysince 1.0

$→ money#

Amount in account currency.

Example
budget = $500
strategyindicatoralertlibrarysince 1.0

lots / lot→ size#

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

Example
size_now = 0.5 lots
strategyindicatoralertlibrarysince 1.0

bars / bar→ count#

Count of bars of the script's bar type.

Example
window = 10 bars
strategyindicatoralertlibrarysince 1.0

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

Wall-clock time using UTC bar timestamps.

Example
wait = 4h
strategyindicatoralertlibrarysince 1.0

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

Create my free account