Trade management commands reference

All 4 trade management commands in AlgoBarsX, each with its parameters, defaults, ranges and an example: partial, breakeven, trail, exit.

partial breakeven trail exit

partial <amount> [options]#

Close part of the trade at a level.

Arguments

NameTypeDefaultWhat it is
amountpercentrequiredShare of the trade to close.

Options

NameTypeDefaultWhat it is
atprice | distancerequiredLevel, such as 1.5R.

Where it goes Inside the management block of a buy or sell.

Example
partial 50% at: 2R
strategysince 1.0

breakeven [options]#

Move the stop to the entry price at a level.

Options

NameTypeDefaultWhat it is
atprice | distancerequiredLevel, such as 1R.
offsetdistance0 pipsDistance beyond entry.

Where it goes Inside the management block of a buy or sell.

Example
breakeven at: 1R, offset: 2 pips
strategysince 1.0

trail [options]#

Trail the stop behind price.

Options

NameTypeDefaultWhat it is
bydistancerequiredTrailing distance.
afterprice | distance0RStart trailing once this level is reached.

Where it goes Inside the management block of a buy or sell.

Example
trail by: atr(14), after: 2R
strategysince 1.0

exit [options]#

Close the trade after a time or when a condition becomes true.

Options

NameTypeDefaultWhat it is
afterbars | durationnoneClose after this long.
whenboolfalseClose when true.

Where it goes Inside the management block of a buy or sell.

Example
exit after: 48 bars
strategysince 1.0

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

Create my free account