Structure Ledger User Guide: How Swings, BOS, CHoCH, EQH and EQL Are Decided, Reading the Panel, and Every Setting

20 October 2026, 18:05
Yuki Nakayama
0
244

What Structure Ledger is

Structure Ledger is a smart money concepts indicator for traders who already have their own trading method. It comes in two editions: the free Structure Ledger, and Structure Ledger PRO, which draws the same marks and adds the features listed under What the PRO edition adds. It draws market structure on the chart it is attached to, from bars that have already closed, the same way every time: confirmed swing highs and lows, break of structure (BOS), change of character (CHoCH), and bands over clusters of equal highs (EQH) and equal lows (EQL), the places where liquidity tends to rest. Each mark is placed only once the bar that confirms it has closed; the bar still forming is not used. It shows no buy or sell arrows, does not tell you when to trade, does not trade itself, and draws no order blocks, fair value gaps or kill zones.

Who it is for, and how to read it

Structure Ledger is for traders who already decide their own trades and want the structure they would otherwise draw by hand to come from closed bars only, by the same rule every time. It is a record of what the market has done, not a set of instructions. If you are looking for a tool that tells you when to buy or sell, this is not it.

How to read Structure Ledger on a gold M15 chart: a swing dot with its dotted confirmation line, an equal highs band, the last confirmed swing low, and the panel with the direction, the last CHoCH and the distance to liquidity

Traders use it to read three things. The current direction comes from the last BOS or CHoCH, which the panel also shows. The two levels to watch are the last confirmed swing high and swing low: a close above the high or below the low gives the next BOS or CHoCH, and a wick through either does not count. The bands of equal highs and lows show where liquidity tends to rest, and the panel gives their distance from price in ATR.

A swing dot is placed after the swing, not during it

A high or low becomes a swing only once price has moved away from it by k x ATR (2.0 x ATR14 by default) and that bar has closed. Until then the high may still be exceeded, so nothing is drawn. When the confirming bar closes, the dot is placed back on the bar of the high or low, one or more bars to the left of the newest bar, and a faint dotted line runs from the dot to the bar that confirmed it. The line is the delay made visible: the dot shows where the swing was, the line shows when it became known. Hover over the dot or the line and the tooltip gives the time of the swing, the time it was confirmed and the number of bars in between.

Two views of the same gold M15 high: when the high forms nothing is drawn; three bars later, after a 2 x ATR move, the swing is confirmed and its dot is placed back on the high with a dotted line to the bar that confirmed it

This is why a dot can appear several bars after the high or low it sits on: by the time it appears, price has already moved k x ATR away from that high or low. The dot records the swing; it is not a mark to trade from. The same holds for BOS and CHoCH, which are drawn when the breaking bar closes, and for a band, which is drawn when its second swing is confirmed. The dots are drawn in one colour for highs and lows; the up and down colours are used only for BOS and CHoCH and for the direction shown in the panel.

The captions, the legend and the numbered notes in the two pictures were added for the screenshots; on your chart the indicator draws only the marks and the panel.

Quick start

  1. Open a chart of the symbol and timeframe you want to read and drag the indicator onto it from the Navigator. It is an indicator, so it can share a chart with an Expert Advisor.
  2. In the inputs, pick Language / 言語. The other defaults are meant to be used as they are.
  3. Click OK. The indicator reads the last 1500 closed bars, draws the marks it finds there, and opens its panel in the top-right corner (unless the panel has already been saved on that chart, see What the panel remembers). The chart needs at least 300 bars; with fewer, the panel shows waiting for history and nothing is drawn.
  4. From then on, new marks appear when a bar closes.

If something looks wrong, see Frequently asked questions further down; the questions are written as symptoms.

How a mark is decided

Swings

Every threshold is measured in ATR of the chart (ATR period (scale of every threshold), 14 by default, smoothed the way Wilder's ATR is). A swing high is confirmed when a later bar has traded k x ATR below the high and that bar closes (Swing confirms after a k x ATR reversal, k = 2.0 by default). A swing low is confirmed the other way round. So a swing becomes known one or more bars after the high or low itself, and its dot is placed on the bar of the high or low at that moment. Highs and lows get a dot of the same colour (Swing dots and their confirmation lines), and a faint dotted line in that colour runs from the dot to the bar that confirmed it, at the price of the swing (Line from each swing dot to the bar that confirmed it, on by default). The dot and the line carry the same tooltip: the time of the swing, the time it was confirmed and the number of bars in between, for example Swing high 2026.08.27 15:00 on the first line and Confirmed 2026.08.27 15:45 (3 bars later) on the second. The tooltip is in English whichever language is chosen, and times are bar open times in server time. With Dots on confirmed swings off, neither the dot nor the line is drawn.

BOS and CHoCH

Only the close counts. When a bar closes above the last confirmed swing high, or below the last confirmed swing low, the structure is broken. If the break goes against the current direction, it is a CHoCH, drawn as a dashed line; otherwise it is a BOS, drawn as a solid line. The first break in the bars it reads is a BOS, because there is no direction yet to go against; it can fall inside the warm-up described below, in which case it is not drawn and the first mark you see may be a CHoCH. The line runs from the broken swing to the bar that broke it, and the word sits at the middle of the line, above it for an upward break and below it for a downward one, on a small plate in the chart's background colour so that candles do not show through it. In the PRO edition the word goes on the other side of its line when a reclaim line already drawn next to it would run through the word and the other side is clearer. A wick through the level does not count, and each swing can be broken only once.

Equal highs and lows

Each confirmed swing high is compared with the clusters of earlier swing highs, and each swing low with the clusters of swing lows. It joins the nearest cluster whose centre is within eps x ATR (Swings within eps x ATR count as equal, 0.5); otherwise it starts a new cluster. When a cluster reaches two swings (Swings needed before a band is drawn), its band is drawn and its size is fixed: the outer edge is the outermost swing plus 0.25 x ATR (Band padding beyond the swings (x ATR)). The shaded part is at most 0.25 x ATR tall and sits against the outer edge, the top of an EQH band and the bottom of an EQL band, with a thin grey outline. A new band that would overlap a live band already on the chart is not drawn.

A live band reaches 8 bars past the newest bar (Extend live bands to the right (bars)), and its EQH or EQL word sits just right of that end. A band retires in two ways. If no new swing joins it for 250 bars (Band retires after N bars without a touch), it ages out. If price trades through its outer edge and no close comes back inside within 3 bars (Bars allowed to close back inside after a pierce), it is taken out. A retired band stops at the bar where it retired and keeps only its faint fill; its outline and word are hidden.

The first bars are a warm-up

On start the indicator reads the last 1500 closed bars (Closed bars scanned on attach, 300 to 5000). The first 200 of them are a warm-up and get no marks, because the first turns of the swing search depend on where the reading starts. Marks within the window are therefore the same each time the indicator is attached again, as long as the window covers them.

Marks stay where they were placed

Every mark is created only after the bar that confirms it has closed. In Strategy Tester replays (1 minute OHLC, default inputs) on GOLD M15 and H1, EURUSD H1 and BTCUSD D1, covering 3 days to 5 months per run, no mark placed on a closed bar, the swing dots and their dotted lines included, was moved, recoloured or retitled as later bars arrived; older marks only dropped off at the on-chart limits, and re-attaching the indicator redrew the same marks. Those replays did not cover the Every tick modes (Every tick and Every tick based on real ticks), live charts over longer periods, broker corrections of past bars or inputs other than the defaults. The PRO marks (sweep dots and reclaim lines) and the five buffers were replayed separately, on GOLD M15 over four weeks and GOLD H1 and EURUSD H1 over two and a half weeks, with the same result.

Three things do keep changing, by design. The right end of a live band follows the newest bar, and its word moves with it. When a band retires, its right end is set to the bar where it retired and its outline and word are hidden. When you change the chart's background colour, the band fill is mixed again to suit the new background and the plates under the structure words take the new background colour. In the PRO edition, the premium / discount box and the higher-timeframe lines are live references, not marks: the box is drawn again on every new bar, a higher-timeframe line is replaced when that timeframe has a new BOS or CHoCH, and its word stays in the column past the right edge, which moves with the newest bar.

The chart keeps the latest 30 BOS and CHoCH marks, 12 bands and 80 swing dots (Structure labels kept on the chart, Bands kept on the chart, Swing dots kept on the chart). When a new mark arrives beyond the limit, the oldest one of that kind is removed; a dotted line leaves the chart together with its dot. In the PRO edition, sweep dots and reclaim lines share one more limit, counted together and set by the same input as Structure labels kept on the chart (30 by default); beyond it the oldest of them is removed. If the indicator finds a mark of its own missing from the chart, for example after a timeframe switch, it draws it again from the same reading with the same time and price.

Reading the panel

Structure Ledger on a EURUSD H1 chart, 15 to 25 September; the panel reads STRUCTURE UP, LAST CHoCH 09/25 11:00 and LIQUIDITY 8.9 ATR above and 4.0 ATR below

Header

At the left, the small ledger sign opens the About card. From the right: the caret collapses the panel to its header and opens it again, the corner button (TL, TR, BR, BL) moves the panel to the next corner, and the size button switches between 100% and 140%. Drag the header to put the panel anywhere on the chart; it then stays where you left it instead of following a corner. Double-click the header to send it back to its corner. Pressing the corner button also makes it follow a corner again. While you press the mouse button on the panel, the chart does not scroll.

Rows

STRUCTURE shows the current direction: UP after an upward break, DOWN after a downward one, NONE before the first break. LAST shows the last BOS or CHoCH with its direction and the time of the bar that broke the swing, or no structure yet before the first break. In the PRO edition a sweep or reclaim of a drawn band also counts as the last event: the row then reads Sweep or Reclaim with the time of that bar and an arrow that points up for equal lows and down for equal highs. A sweep or reclaim does not change the STRUCTURE row. LIQUIDITY shows the distance in ATR from the current Bid to the nearest live band above (left of the dot) and below (right of the dot); a dash means there is no band on that side. The distance is measured to the near side of the band's full range, which is the cluster of swings plus the padding on both sides; the shaded part shows at most the outer 0.25 x ATR, so the measured edge lies at or below the shading of an EQH band and at or above the shading of an EQL band. With the Japanese panel the rows read 構造, 直近 and 流動性.

Hover a row for the numbers behind it. STRUCTURE: the last confirmed swing high and swing low with their bar times, and since when the current direction has held. LAST: the broken level, the close that broke it and the difference, the time of the broken swing and how many bars before the break it was, the ATR at the bar that broke it, and the time left until the current bar closes; for a sweep or reclaim in PRO, the band's outer edge, the wick that went through it (sweep) or the close back inside it (reclaim) and the difference, the time of the band's first swing and the bars from there to the event, and the ATR. LIQUIDITY: for the nearest band above and below, EQH or EQL, the price of its nearer edge, the distance in points and how many swings have joined it. Times are bar open times in server time.

In the free edition the ALERTS row carries a PRO label and no alert of any kind is sent. In the PRO edition the row holds the Alerts · N button (see What the PRO edition adds).

About card and rating card

The ledger sign at the left of the header opens the About card with the version, the licence type, where to get support (the Comments tab of the product page) and buttons to rate the product and to open the support note; click the sign again to close the card. After some real use, a card may ask for a rating. It appears at most three times in the free edition and twice in PRO, weeks apart, never in the Strategy Tester. Don't ask again, or Show a one-time rating reminder (after a while) set to false, stops it.

What the panel remembers

The panel keeps its position, size, corner and collapsed state per chart. They are saved when you use the panel and stay in the terminal's global variables after the indicator is removed. Once they have been saved on a chart, Panel corner and Panel size (100% / 140%) no longer apply on that chart; use the buttons on the panel instead.

Drawing behind the candles, and switching the panel off

Two inputs in the Chart objects group at the end of the list change how the marks and the panel share the chart with other tools. Neither changes what is detected.

Draw lines and labels in the background is off by default, and with the default every dot, line and word is drawn in front of the candles, as before. Switched on, they are drawn behind the candles and behind other chart objects, so a panel that another tool has built from chart objects, such as a trade panel, stays readable over them. The band fills were already behind the candles, and this indicator's own panel stays in front. Behind the candles, a candle can cross part of a word.

Show panel is on by default. Switched off, the panel is not drawn at all: no rows, no buttons, no hover card, no About card and no rating card. The marks on the chart and the lines in the Experts log keep working as before, and the panel's saved position, size and corner are not changed while it is off; set it back to true to see the panel again. Switching the panel off does not by itself move the marks off another tool's panel; for that, switch on Draw lines and labels in the background as well. In the PRO edition the alerts, the CSV ledger and the iCustom buffers keep working with the panel off; only the Alerts · N button and its log go with the panel.

The Experts log

With Write each mark to the Experts log (once per closed bar) on, every mark writes one line starting with [SLG] to the Experts tab: swings, BOS and CHoCH with the bar, the swing, the level, the close and the ATR, new bands with their edges and number of swings (a band that is not drawn because it overlaps a live band is logged with hidden=overlap), and bands that retire (TAKEN or AGED). Two more kinds of line concern live bands and have no mark of their own in the free edition (the PRO edition draws them, see Sweeps and reclaims): SWEEP on the bar on which price first trades through a band's outer edge, and RECLAIM on the bar on which a close comes back inside. A mark that drops off at an on-chart limit is logged as dropped; a dot and its dotted line give one line each. Lines written while the indicator rereads history end with src=replay, lines written on a newly closed bar with src=live. On start there is one [INIT] line with the inputs in use and one scan line with the counts found.

What the PRO edition adds

Structure Ledger PRO draws every mark above with the same rules and adds sweep and reclaim marks, premium and discount, higher-timeframe structure, alerts, a CSV ledger and five buffers for an EA. Its panel carries a PRO chip in the header, adds an HTF row, and its ALERTS row holds an Alerts · N button instead of the PRO label. The four inputs of the Chart objects group (Draw lines and labels in the background, Show panel, Line from each swing dot to the bar that confirmed it, Swing dots and their confirmation lines) work the same in both editions; with the panel off, the alerts, the ledger and the buffers keep working, and only the button and its log go with the panel. The PRO inputs sit between the Identity and Chart objects groups and are marked Pro only in the table below.

Sweeps and reclaims

When a wick trades through the outer edge of a live band, a light dot is placed on that edge at that bar (Dot where a wick pierces a band edge). If a bar then closes back inside within three bars (Bars allowed to close back inside after a pierce), a short vertical line spanning the drawn band plus 0.15 x ATR above and below, half a bar to the right, marks the reclaim (Short line where price closes back inside). Both are drawn in a fixed neutral grey-blue (dot #C3CBE0, line #7884A0), not in the direction colours or the liquidity input colour. Repeated sweeps of one band are thinned to one dot every ten bars, and a dot that would sit on a BOS or CHoCH word is created and then hidden, so the set of marks does not depend on the zoom. Likewise, a dot already on the chart is hidden, not moved, when a later BOS or CHoCH word lands on it; its row in the CSV ledger and its buffer value stay. Only drawn bands are marked; sweeps of bands that were not drawn (formed in the warm-up, or hidden by an overlap) appear only in the Experts log, not as marks and not as rows of the CSV ledger.

Premium and discount

The range from the last confirmed swing high to swing low is split at its middle: the upper half is shaded as premium, the lower half as discount, with a dashed line at 50 percent (Premium / discount halves of the last swing range). It is a reference: its levels change when a new swing is confirmed, the box is drawn again on every new bar so that its right end stays three bars past the newest bar, and it is not painted where a band, live or retired, is drawn within its span. The words Premium and Discount sit just past the right end of the box and are left out when they would meet a band word or the panel, or when a half is too thin.

Higher timeframes

Two higher timeframes (First higher timeframe, H4 by default, and Second higher timeframe, D1) are read from their closed bars with the same rules. The level of the last BOS or CHoCH on each is extended to the right as a dotted line, with a word such as [H4] BOS in the column past the right edge, and the HTF row of the panel shows the direction of each (hover the row for the level and time). A higher timeframe that is not above the chart's timeframe is not used, and neither is the second when the first is in use and the second is not above it. The Strategy Tester does not read higher timeframes at all, and the HTF row then says HTF off in tester.

Alerts

BOS, CHoCH, sweep and reclaim can each be switched on or off (Alert on BOS and the rest, all on by default). The approach alert (Alert when price nears a band, off by default) fires once when price comes within 0.25 x ATR of a band edge, waits 60 minutes before the same side of the same band can fire again (Approach cooldown), stops at 50 a server day (Approach alerts per server day) and re-arms when price moves twice that distance away. A band that is already in range when the indicator is attached is remembered, not announced.

Routes are popup (on by default), push notification, email and sound (off by default). Push needs a MetaQuotes ID in the Notifications tab of the terminal options, email the Email tab. Alerts are sent only for marks placed on live bars, not for the marks redrawn on attach, and the events of one bar go out as one message per route. Alert days (weekend filter) can limit them to weekdays. Each push, email and sound send is logged as an [SLG SEND] line in the Experts log with the error number if it fails (for example 4517 when no MetaQuotes ID is set). The Strategy Tester records alerts but sends nothing.

The alert log behind the Alerts · N button keeps the last 20 alerts of the chart since attach: for each, the time, the kind (BOS, CHoCH, sweep, reclaim or approach; the daily pause of the approach alert is a row too), a short form of the alert text and the send result (popup, push ok, push ERR with the error number, log only, or tester), plus one line with the current alert settings and the number of alerts sent. It is kept in memory only and starts empty on every attach; every mark itself stays in the CSV ledger.

CSV ledger

With Write every mark to the CSV ledger on, each mark is written as one row to MQL5\Files\StructureLedger\<symbol>_<timeframe>.csv. Fields are separated by semicolons, there is no header row, and the columns are: format number (1), bar time, symbol, timeframe, kind (SWING_H, SWING_L, BOS, CHOCH, EQH, EQL, SWEEP, RECLAIM, TAKEN, AGED), direction (+1 or -1), level, origin time, ATR, touches, live or replay, the server time at which the row was written, PRO and the version. Re-attaching does not add a row with the same kind, bar and level again. replay rows come from rereading history on attach and live rows from bars closing while the chart is open, so comparing the written time with the bar time shows when each mark appeared. TAKEN and AGED rows carry 0 touches.

Buffers (iCustom)

Five buffers can be read with iCustom: 0 Direction (+1 up, -1 down, 0 none), 1 Event (±1 BOS, ±2 CHoCH, 0 none), 2 LiqAbove (outer edge of the nearest live EQH above the bar's close, 0 if none), 3 LiqBelow (the same for EQL below), 4 Sweep (1 sweep of equal lows, -1 sweep of equal highs, ±2 reclaim). A closed bar's value is written once and not rewritten. On the forming bar Direction and the Liq buffers repeat the last closed bar and Event and Sweep are 0; the 200 warm-up bars, and every bar before the one where the reading started, are 0. When passing inputs to iCustom, count each input group heading as one input.

If an EA reads the indicator with iCustom while a visible copy is attached to the same chart, give the EA's copy a different Chart object prefix (the PRO default is slgp_; use for example slgx_). With the same prefix, removing one copy deletes the marks of both (they are drawn again by the next bar). The copy called through iCustom sees the same events and sends alerts too, so switch its alerts off if you do not want each one twice.

Frequently asked questions

The panel says waiting for history and nothing is drawn.
The chart has fewer than 300 bars. Scroll the chart back or wait for the terminal to load more history.

A swing dot appears several bars after the high or low.
That is how a swing is confirmed: only once price has moved k x ATR away and that bar has closed. Until then the high or low may still be exceeded. The dotted line from the dot shows exactly that delay, and the tooltip gives the number of bars. A smaller k confirms sooner and finds more, smaller swings. See Who it is for, and how to read it.

The swing dots are all one grey-blue colour.
Since 1.01 of the free edition, and from the first PRO build, highs and lows share one colour (Swing dots and their confirmation lines), because a red or green dot used to be read as a direction. A high sits above its candle and a low below it. The up and down colours now mark only BOS and CHoCH, and the direction in the panel.

I do not want the dotted lines.
Set Line from each swing dot to the bar that confirmed it to false. The dots stay, with the same tooltip.

Hovering over a dot shows nothing.
On a live chart the tooltip appears when the mouse rests on the dot or on its dotted line. In the Strategy Tester the objects do not keep the tooltip text, so the tooltip may not appear there; check it on a live chart.

Price went through a level with a wick and there is no BOS.
BOS and CHoCH use the close only. A wick through the level does not count.

There are two equal highs on the chart but no band.
Check that the two swings are within 0.5 x ATR of each other, that they were both confirmed swings (dots), that they are no more than 250 bars apart (a single swing waiting for a partner is forgotten after Band retires after N bars without a touch), and that no live band overlaps the place where the new band would be. Overlapping bands are not drawn.

Older marks disappeared.
The chart keeps 30 structure marks, 12 bands and 80 swing dots by default (in PRO, also 30 sweep dots and reclaim lines counted together). Raise the limits in the Display group to keep more.

The marks are different after I changed an input.
Every input in the Detection and Liquidity groups changes what is found. The statement above about marks staying in place was measured with the default inputs.

The lines and words cover another tool's panel.
Switch on Draw lines and labels in the background; the marks then go behind the candles and behind the other tool's objects. If you also want this indicator's panel out of the way, set Show panel to false as well. Switching the panel off on its own leaves the lines and words where they are.

The panel is gone.
Show panel is false. Set it back to true; the marks were working the whole time, and the panel comes back where it was saved.

Can an Expert Advisor read the marks?
Not from the free edition, which has no buffers: nothing appears in the Data Window and there is nothing to read with iCustom, and the lines in the Experts log are for reading, not for programs. The PRO edition has five buffers for iCustom (see Buffers).

The higher-timeframe lines do not appear in the tester.
By design: the Strategy Tester does not read higher timeframes. Check on a live chart.

Push notifications do not arrive.
Look for the [SLG SEND] route=push line in the Experts log. err=4517 means no MetaQuotes ID is set.

Can I use two copies on one chart?
Use one per chart. Two copies on the same chart share one set of saved panel settings, and with the same Chart object prefix they would use the same object names.

All settings

The table is generated from the shipped source, so it lists every input as the terminal shows it. The four inputs in the Chart objects group were added in free 1.01 at the end of the list (the PRO edition has them from its first build), so saved settings keep every earlier position. The Edition column says whether an input exists in both editions or in PRO only; the PRO inputs sit between the Identity and Chart objects groups.

General

Language, panel placement, refresh and the rating reminder.

Setting (as shown in MT5)DefaultWhat it doesEdition
Language / 言語LANG_ENLanguage of the panel, its hover card and the About and rating cards: LANG_EN (English) or LANG_JP (Japanese). LANG_JP also switches the panel font to Yu Gothic UI. The words drawn on the chart (BOS, CHoCH, EQH, EQL), the title STRUCTURE LEDGER, the buttons, the PRO label, the tooltip on the swing dots and their lines, the Experts log lines and the input names stay in English.
Choices: LANG_EN, LANG_JP
Free and Pro
Panel cornerC_TRCorner the panel starts in: C_TL top left, C_TR top right, C_BR bottom right, C_BL bottom left. Used only until the panel's state has been saved on that chart.
Choices: C_TL, C_TR, C_BR, C_BL
Free and Pro
Panel size (100% / 140%)SZ_LStarting panel size: SZ_S = 100%, SZ_L = 140%. Used only until the panel's state has been saved on that chart.
Choices: SZ_S, SZ_L
Free and Pro
Corner margin (px)14Distance in pixels between the panel and the chart edge when it sits in a corner (0 to 60).Free and Pro
Extra right gap for the price scale (px)64Extra space in pixels kept on the right for the price scale when the panel sits in a right-hand corner (0 to 200). Used only while the price scale is shown.Free and Pro
Refresh seconds2How often, in seconds, the panel and its hover card are refreshed and the corner position is checked (1 to 30). Marks are not driven by this timer; they are placed when a bar closes.Free and Pro
Show a one-time rating reminder (after a while)truefalse switches off the card that asks for a rating. The card appears at most three times, weeks apart, and never in the Strategy Tester; the About card stays reachable from the panel.Free and Pro

Detection

How swings are found. Every threshold in the indicator is measured in ATR of this chart.

Setting (as shown in MT5)DefaultWhat it doesEdition
ATR period (scale of every threshold)14ATR period (5 to 100), smoothed the way Wilder's ATR is. The ATR at each closed bar is the unit of every threshold below at that bar.Free and Pro
Swing confirms after a k x ATR reversal2.0Reversal size k (0.5 to 5.0). A swing high is confirmed when a later bar has traded k x ATR below it and that bar closes; a swing low the other way round. Smaller values give more, smaller swings and more BOS and CHoCH marks.Free and Pro
Closed bars scanned on attach1500How many closed bars are read when the indicator starts (300 to 5000). The first 200 of them are a warm-up and get no marks.Free and Pro

Liquidity (equal highs / lows)

When equal highs or lows become a band, and when a band retires.

Setting (as shown in MT5)DefaultWhat it doesEdition
Swings within eps x ATR count as equal0.5A confirmed swing joins a cluster when it lies within eps x ATR of the cluster's centre (0.1 to 2.0). Highs and lows are kept apart.Free and Pro
Band padding beyond the swings (x ATR)0.25Padding added beyond the outermost swing when a band is drawn (x ATR, 0 to 1.0). The padded outer edge is the edge used to decide when the band retires.Free and Pro
Swings needed before a band is drawn2How many swings a cluster needs before its band is drawn (2 to 5).Free and Pro
Band retires after N bars without a touch250A band retires when no new swing has joined it for this many bars (50 to 2000). A swing joining counts as a touch; price passing through does not. A cluster of one swing that has not found a second one is dropped after the same number of bars.Free and Pro
Bars allowed to close back inside after a pierce3When price trades through a band's outer edge, the band retires unless a close comes back inside within this many bars (1 to 10). In the PRO edition a close back inside within this window is also drawn as a reclaim line.Free and Pro

Display

What is drawn, how many marks are kept, colours and the Experts log.

Setting (as shown in MT5)DefaultWhat it doesEdition
Dots on confirmed swingstrueDraw a small dot on each confirmed swing.Free and Pro
BOS lines and labelstrueDraw BOS lines and their word.Free and Pro
CHoCH lines and labelstrueDraw CHoCH lines and their word.Free and Pro
Equal high / low bands (liquidity)trueDraw the equal high and equal low bands. With false no band is drawn and the panel's LIQUIDITY row shows a dash, because it measures only to bands on the chart.Free and Pro
EQH / EQL text just right of the band's endtrueWrite EQH or EQL just right of each live band's right end.Free and Pro
Structure labels kept on the chart30How many BOS and CHoCH marks stay on the chart (5 to 200). The oldest drops off when a new one arrives.Free and Pro
Bands kept on the chart12How many bands stay on the chart, live and retired together (2 to 40).Free and Pro
Swing dots kept on the chart80How many swing dots stay on the chart (10 to 400).Free and Pro
Extend live bands to the right (bars)8How many bars past the newest bar a live band reaches to the right (0 to 50). Its EQH or EQL word sits at that end.Free and Pro
Up structure (BOS / CHoCH up)C'38,166,154'Colour of upward BOS and CHoCH lines and words, and of the UP direction and the upward triangle in the panel. In the free edition up to 1.00 the swing-low dots used this colour too; since free 1.01, and in every PRO build, the dots have their own colour (Swing dots and their confirmation lines).Free and Pro
Down structure (BOS / CHoCH down)C'239,83,80'Colour of downward BOS and CHoCH lines and words, and of the DOWN direction and the downward triangle in the panel. In the free edition up to 1.00 the swing-high dots used this colour too; since free 1.01, and in every PRO build, the dots have their own colour (Swing dots and their confirmation lines).Free and Pro
Liquidity marks (band text, sweep dots)C'126,138,166'Colour of the EQH and EQL words, of the band fill (mixed with the chart background) and of the small triangles in the panel's LIQUIDITY row. The free edition draws no sweep dots; in the PRO edition the sweep dots and reclaim lines keep their own fixed grey-blue and do not follow this colour, so the words sweep dots in the input's name change nothing on the chart.Free and Pro
Band fill strength (% of the liquidity colour over the chart background)12How strongly the band fill shows: the share of the liquidity colour mixed into the chart background (5 to 60 percent).Free and Pro
Write each mark to the Experts log (once per closed bar)trueWrite one line per mark to the Experts tab, starting with [SLG].Free and Pro

Identity

The name prefix of the chart objects.

Setting (as shown in MT5)DefaultWhat it doesEdition
Chart object prefixslg_ (Free) / slgp_ (Pro)Prefix of every chart object the indicator creates (2 to 12 characters, otherwise the default is used: slg_ in the free edition, slgp_ in PRO). Removing the indicator deletes every object whose name starts with it.Free and Pro

PRO: sweeps

Sweep and reclaim marks on the liquidity bands (PRO only).

Setting (as shown in MT5)DefaultWhat it doesEdition
Dot where a wick pierces a band edgetruetrue (default) places a light dot on the outer edge of a drawn band at the bar whose wick trades through it; repeated sweeps of one band are thinned to one dot every ten bars. false draws no sweep dots; the SWEEP line in the Experts log, the ledger row and the alert are written either way.Pro only
Short line where price closes back insidetruetrue (default) draws a short vertical line across the band, half a bar to the right, on the bar that closes back inside within the allowed bars. false draws no reclaim lines; the ledger row and the alert are not affected.Pro only

PRO: premium / discount

The premium and discount halves of the last swing range (PRO only).

Setting (as shown in MT5)DefaultWhat it doesEdition
Premium / discount halves of the last swing rangetruetrue (default) shades the upper half of the range between the last confirmed swing high and swing low as premium and the lower half as discount, with a dashed line at the middle. false draws none of it.Pro only

PRO: higher timeframes

Structure of two higher timeframes overlaid on the chart (PRO only; not read in the Strategy Tester).

Setting (as shown in MT5)DefaultWhat it doesEdition
Overlay higher-timeframe structure (not in the tester)truetrue (default) reads the two higher timeframes below, draws the level of the last BOS or CHoCH of each as a dotted line and shows their direction in the panel's HTF row. In the Strategy Tester they are not read whatever the setting. false switches the overlay off.Pro only
First higher timeframe4 HoursThe first higher timeframe (4 Hours by default). It must be above the chart's timeframe, otherwise it is not used.Pro only
Second higher timeframeDailyThe second higher timeframe (Daily by default). It must be above the first, otherwise it is not used.Pro only

PRO: alerts

Which marks send an alert, the approach alert, the weekday filter and the routes (PRO only).

Setting (as shown in MT5)DefaultWhat it doesEdition
Alert on BOStruetrue (default) sends an alert when a BOS is placed on a live bar.Pro only
Alert on CHoCHtruetrue (default) sends an alert when a CHoCH is placed on a live bar.Pro only
Alert on a sweeptruetrue (default) sends an alert when a sweep of a drawn band is placed on a live bar.Pro only
Alert on a reclaimtruetrue (default) sends an alert when a reclaim is placed on a live bar.Pro only
Alert when price nears a bandfalsefalse (default) sends no approach alerts. true sends one when the price comes within the approach distance of a band edge; the same side of the same band fires again only after the cooldown and after price has moved twice that distance away. A band already in range when the indicator is attached is remembered, not announced. Works only while the terminal is connected.Pro only
Approach distance to the band edge (x ATR)0.25Distance from the band edge, in ATR, at which the approach alert fires (0.25 by default; values are kept within 0.05 to 2.0).Pro only
Approach cooldown, same band and side (minutes, 0 = off)60Minutes before the same side of the same band can fire again (60 by default; 0 = no cooldown). A repeat inside the cooldown is written to the Experts log as not announced.Pro only
Approach alerts per server day (0 = no limit)50Most approach alerts per server day (50 by default; 0 = no limit). When the limit is reached one PAUSED row goes to the alert log and the Experts log, and approach alerts resume at 00:00 server time.Pro only
Alert days (weekend filter)AD_ALLAD_ALL (default) sends alerts on every day; AD_WEEKDAYS holds them on Saturday and Sunday.
Choices: AD_ALL, AD_WEEKDAYS
Pro only
Popuptruetrue (default) shows the terminal's Alert window for each alert.Pro only
Push notificationfalsefalse (default). true also sends each alert as a push notification to the MetaQuotes ID set in Tools > Options > Notifications; the result is logged as an [SLG SEND] route=push line.Pro only
Email (set up in Tools > Options > Email)falsefalse (default). true also sends each alert by email through the terminal's Email settings; the result is logged as an [SLG SEND] route=mail line.Pro only
Soundfalsefalse (default). true also plays the sound file below for each alert.Pro only
Sound file (terminal Sounds folder)alert.wavName of the file played when Sound is true, from the terminal's Sounds folder (alert.wav by default).Pro only

PRO: ledger

The CSV ledger of every mark (PRO only).

Setting (as shown in MT5)DefaultWhat it doesEdition
Write every mark to the CSV ledger (MQL5\Files\StructureLedger)truetrue (default) writes one row per mark to MQL5\Files\StructureLedger\<symbol>_<timeframe>.csv (see CSV ledger). false writes nothing.Pro only

Chart objects

Whether the marks go in front of or behind the candles, whether the panel is drawn, and the swing dots' lines and colour. All four were added in free 1.01 at the end of the list and are in the PRO edition from its first build.

Setting (as shown in MT5)DefaultWhat it doesEdition
Draw lines and labels in the backgroundfalsefalse (default) draws every dot, line and word of the indicator in front of the candles, as before. true draws them behind the candles and behind other chart objects, so a panel another tool has built from chart objects (a trade panel, for example) stays readable; the band fills were already behind the candles, and the indicator's own panel stays in front. Behind the candles, a candle can cross part of a word.Free and Pro
Show paneltruetrue (default) draws the panel. false draws no panel at all: no rows, no hover card, no buttons, no About card and no rating card. The marks and the lines in the Experts log keep working (in the PRO edition the alerts, the CSV ledger and the iCustom buffers too; the Alerts button and its log go with the panel). Switching the panel off does not by itself move the marks off another tool's panel; for that, switch on Draw lines and labels in the background as well. Set it back to true to see the panel again; the panel's saved position, size and corner are not changed while it is off.Free and Pro
Line from each swing dot to the bar that confirmed ittruetrue (default) draws a faint dotted line from each swing dot to the bar that confirmed it, at the price of the swing and in the swing colour; the line carries the same tooltip as the dot. false draws the dots only, with their tooltip. With Dots on confirmed swings off, no line is drawn either.Free and Pro
Swing dots and their confirmation linesC'140,148,168'Colour of the swing dots, highs and lows alike, and of their dotted confirmation lines. The default is a neutral grey-blue; the up and down colours are no longer used for the dots (up to 1.00 highs took the down colour and lows the up colour).Free and Pro

What it does not do, and where it stops

It is an information tool for the timeframe you are watching. It does not tell you when or where to trade and makes no claim about results. It reads only the symbol of its own chart (the free edition its own timeframe, the PRO edition also the two higher timeframes), and only bars that have closed, so a new mark appears at the earliest when the bar that confirms it closes.

Apart from drawing, it saves its panel settings to the terminal's global variables, keeps the rating card's state in a small file in the terminals' shared Common\Files folder, and turns on mouse-move events for its chart. It leaves them on when it is removed, so other programs on the same chart keep their mouse handling. When it is removed it deletes every chart object whose name starts with Chart object prefix (slg_ by default in the free edition, slgp_ in PRO), so do not give your own objects names that start with it. It uses no DLL and no web request.

Support

Post on the Comments tab of the product page. The broker, the symbol, the timeframe, what you expected to see and the matching [SLG] lines from the Experts tab are enough to start.

This guide describes Structure Ledger 1.01 and Structure Ledger PRO 1.00.