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.
stop_distance = 20 pipsstrategyindicatoralertlibrarysince 1.0
points / point→ distance#
Distance in points, converted with each symbol's point size.
buffer = 150 pointsstrategyindicatoralertlibrarysince 1.0
%→ fraction#
A share of a base named by context, or by `of`.
risk_share = 1%strategyindicatoralertlibrarysince 1.0
R→ distance#
Multiple of the trade's initial stop distance; valid only where a trade has a stop.
buy risk: 1%, stop: 20 pips, target: 2Rstrategyindicatoralertlibrarysince 1.0
lots / lot→ size#
Position size, using the symbol's contract size and lot step.
size_now = 0.5 lotsstrategyindicatoralertlibrarysince 1.0
bars / bar→ count#
Count of bars of the script's bar type.
window = 10 barsstrategyindicatoralertlibrarysince 1.0
s / m / h / d / w / M→ time#
Wall-clock time using UTC bar timestamps.
wait = 4hstrategyindicatoralertlibrarysince 1.0