Trend reference

All 8 trend in AlgoBarsX, each with its parameters, defaults, ranges and an example: supertrend, psar, adx, dmi, ichimoku, aroon, vortex, linreg.

supertrend psar adx dmi ichimoku aroon vortex linreg

supertrend(length = 10, multiplier = 3.0, on = bars())→ Supertrend#

Supertrend line and direction.

Parameters

NameTypeDefaultRangeWhat it is
lengthint101 to 5000ATR length.
multipliernumber3.00.1 to 50ATR multiplier.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.

Outputs, read with a dot

NameTypeWhat it is
lineseries<price>Supertrend line.
directionseries<int>1 when up, -1 when down.
Example
st = supertrend(10, multiplier: 3.0)
strategyindicatoralertlibrarysince 1.0

psar(start = 0.02, increment = 0.02, maximum = 0.2, on = bars())→ series<price>#

Parabolic SAR.

Parameters

NameTypeDefaultRangeWhat it is
startnumber0.020.001 to 1Starting acceleration.
incrementnumber0.020.001 to 1Acceleration step.
maximumnumber0.20.001 to 1Maximum acceleration.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
sar = psar(start: 0.02, increment: 0.02, maximum: 0.2)
strategyindicatoralertlibrarysince 1.0

adx(length = 14, on = bars())→ series<number>#

Average directional index.

Parameters

NameTypeDefaultRangeWhat it is
lengthint141 to 5000Number of bars in the calculation.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
strength = adx(14)
strategyindicatoralertlibrarysince 1.0

dmi(length = 14, on = bars())→ Dmi#

Directional movement index.

Parameters

NameTypeDefaultRangeWhat it is
lengthint141 to 5000Number of bars in the calculation.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.

Outputs, read with a dot

NameTypeWhat it is
plusseries<number>+DI.
minusseries<number>-DI.
adxseries<number>ADX.
Example
movement = dmi(14)
strategyindicatoralertlibrarysince 1.0

ichimoku(conversion = 9, base = 26, span_b = 52, displacement = 26, on = bars())→ Ichimoku#

Ichimoku cloud.

Parameters

NameTypeDefaultRangeWhat it is
conversionint91 to 500Conversion line length.
baseint261 to 500Base line length.
span_bint521 to 1000Leading span B length.
displacementint261 to 500Cloud displacement.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.

Outputs, read with a dot

NameTypeWhat it is
conversionseries<price>Conversion line.
baseseries<price>Base line.
span_aseries<price>Leading span A.
span_bseries<price>Leading span B.
laggingseries<price>Lagging span.
Example
cloud = ichimoku(conversion: 9, base: 26, span_b: 52, displacement: 26)
strategyindicatoralertlibrarysince 1.0

aroon(length = 25, on = bars())→ Aroon#

Aroon up and down.

Parameters

NameTypeDefaultRangeWhat it is
lengthint251 to 5000Number of bars in the calculation.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.

Outputs, read with a dot

NameTypeWhat it is
upseries<number>Aroon up.
downseries<number>Aroon down.
Example
ar = aroon(25)
strategyindicatoralertlibrarysince 1.0

vortex(length = 14, on = bars())→ Vortex#

Vortex indicator.

Parameters

NameTypeDefaultRangeWhat it is
lengthint141 to 5000Number of bars in the calculation.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.

Outputs, read with a dot

NameTypeWhat it is
plusseries<number>VI+.
minusseries<number>VI-.
Example
vx = vortex(14)
strategyindicatoralertlibrarysince 1.0

linreg(source = close, length = 20, offset = 0)→ like source#

Linear regression value.

Parameters

NameTypeDefaultRangeWhat it is
sourceseries<number>closeSeries to calculate from.
lengthint201 to 5000Number of bars in the calculation.
offsetint00 to 500Bars back from the current bar.
Example
fit = linreg(close, 20)
strategyindicatoralertlibrarysince 1.0

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

Create my free account