Smart money concepts reference

All 7 smart money concepts in AlgoBarsX, each with its parameters, defaults, ranges and an example: order_blocks, fair_value_gaps, break_of_structure, change_of_character, liquidity_sweeps, premium_discount, optimal_trade_entry.

order_blocks fair_value_gaps break_of_structure change_of_character liquidity_sweeps premium_discount optimal_trade_entry

order_blocks(length = 50, new_only = false, on = bars())→ list<Zone>#

Order blocks as zones with price bounds, formation time and status.

Parameters

NameTypeDefaultRangeWhat it is
lengthint501 to 5000Bars to scan.
new_onlyboolfalseOnly blocks that formed on this bar.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
blocks = order_blocks(50, new_only: true)
strategyindicatoralertlibrarysince 1.0

fair_value_gaps(length = 50, min_size = 0, new_only = false, on = bars())→ list<Zone>#

Fair value gaps as zones.

Parameters

NameTypeDefaultRangeWhat it is
lengthint501 to 5000Bars to scan.
min_sizeprice0Smallest gap to include.
new_onlyboolfalseOnly gaps that formed on this bar.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
gaps = fair_value_gaps(50, min_size: 0)
strategyindicatoralertlibrarysince 1.0

break_of_structure(direction = both, swing_length = 5, on = bars())→ series<bool>#

True on the bar structure breaks.

Parameters

NameTypeDefaultRangeWhat it is
directionstringbothup, down or both.
swing_lengthint51 to 100Swing size in bars.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
bos = break_of_structure(direction: up)
strategyindicatoralertlibrarysince 1.0

change_of_character(direction = both, swing_length = 5, on = bars())→ series<bool>#

True on the bar character changes.

Parameters

NameTypeDefaultRangeWhat it is
directionstringbothup, down or both.
swing_lengthint51 to 100Swing size in bars.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
choch = change_of_character(direction: down)
strategyindicatoralertlibrarysince 1.0

liquidity_sweeps(length = 20, on = bars())→ series<bool>#

True on the bar a prior high or low is swept and rejected.

Parameters

NameTypeDefaultRangeWhat it is
lengthint201 to 5000Number of bars in the calculation.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
swept = liquidity_sweeps(20)
strategyindicatoralertlibrarysince 1.0

premium_discount(length = 50, on = bars())→ PremiumDiscount#

Premium, equilibrium and discount zones of the recent range.

Parameters

NameTypeDefaultRangeWhat it is
lengthint501 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
premiumZoneTop of range.
equilibriumseries<price>Midpoint.
discountZoneBottom of range.
Example
pd = premium_discount(50)
strategyindicatoralertlibrarysince 1.0

optimal_trade_entry(swing_length = 5, low = 62%, high = 79%, on = bars())→ Zone#

Optimal trade entry zone of the latest swing.

Parameters

NameTypeDefaultRangeWhat it is
swing_lengthint51 to 100Swing size in bars.
lowpercent62%Shallow retracement.
highpercent79%Deep retracement.
onBarSetbars()Bars to calculate on; defaults to the script's own bars.
Example
ote = optimal_trade_entry(swing_length: 5)
strategyindicatoralertlibrarysince 1.0

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

Create my free account