SMC Larry Williams Structure PRO
- Indicators
-
Ivan Butko
Greetings, friends!
I write in mql4 and mql5. In my market you will find a variety of products, every day I develop something new, I research something. New indicators and advisors will appear in the near future. - Version: 1.0
- Activations: 20
SMC Larry Williams Structure PRO
I am pleased to present an advanced market-structure indicator for MetaTrader 5, built on Larry Williams' hierarchical swing method.
Unlike the standard version, PRO is not limited to a single sequence of local highs and lows. The indicator builds three interconnected levels of market structure, processes inside and outside bars, identifies Breakout, Break of Structure, Change of Character and Reversal events, and provides confirmed data for Expert Advisors and other programs through iCustom / CopyBuffer.
More than a conventional ZigZag.
The indicator separates retrospective chart geometry from confirmed events that were actually available to a trader at a particular moment in time.
Three levels of market structure
The indicator builds the following hierarchy of pivots:
- STH / STL — Short-Term High / Low
Short-term structural highs and lows. - ITH / ITL — Intermediate-Term High / Low
Intermediate pivots formed from a confirmed sequence of short-term points. - LTH / LTL — Long-Term High / Low
Higher-level structural points highlighting the most significant parts of a price movement.
Each higher level is derived from the confirmed structure of the previous level. This allows the market to be viewed not as one broken line, but as a nested system of short-, intermediate- and long-term movements.
PRO versus the standard version
| Standard version | PRO version |
|---|---|
| Basic visual swing marking | Complete ST / IT / LT hierarchy |
| One main sequence of swing lines | Ordered Larry Williams path plus additional valid short-term points |
| Basic structural notifications | Confirmed pivots, Breakout, BoS, ChoCH and Reversal by structural rank |
| Mainly intended for visual use | Visual analysis, research and EA integration through iCustom |
| Basic inside-bar processing | Inside-bar filtering and dedicated outside-bar chronology analysis |
| Retrospective chart marking | Separate retrospective geometry and causally confirmed events |
Inside-bar processing
An inside bar remains within the range of the preceding bar and often does not create an independent structural expansion.
When inside-bar filtering is enabled, the indicator excludes inside bars from the structural-neighbor sequence. Comparisons are then made with the nearest valid structural bars rather than with an arbitrary fixed radius.
This reduces intermediate noise while preserving the sequence of meaningful structural pivots.
Outside-bar processing
A special case occurs when one bar updates both the high and the low of the preceding range. Data from one timeframe alone may not reveal which event occurred first:
- the High was reached before the Low;
- the Low was reached before the High.
The indicator attempts to determine the actual order using lower-timeframe or tick data.
If the chronology cannot be confirmed, it does not invent an order. The area may be marked as OUT?, while dependent confirmed events are temporarily withheld.
Strategy Tester
Trusting tester ticks for High/Low chronology is controlled by a separate setting. It should only be enabled when testing with Every tick based on real ticks.
Ordered swing path and the current movement
The main line is built only from valid Larry Williams structural points.
When several pivots of the same direction appear consecutively, the most outward point is retained for the connected path. Other valid short-term pivots may still be displayed separately and are not discarded from the analytical model.
The last unfinished movement is extended visually to the current outward price extreme. This open endpoint is not treated as a confirmed pivot and does not generate confirmed H/L, IT/LT, BoS, ChoCH or Reversal events.
The user can independently control:
- the main structure line;
- short-, intermediate- and long-term pivot labels;
- additional valid short-term points outside the main line;
- unresolved outside-bar marks;
- completed swing sizes;
- average and median swing statistics.
Breakout, BoS, ChoCH and Reversal
Structural events are calculated separately for short-, intermediate- and long-term structure.
- Breakout — a candle closes beyond the latest confirmed structural level.
- BoS — Break of Structure — a break in the direction of the current confirmed structure.
- ChoCH — Change of Character — the first confirmed break against the current structural direction.
- Reversal — a confirmed change in the pivot sequence. Reversal is calculated separately and does not replace ChoCH.
A break is determined by the candle close, not merely by a wick touching or crossing the level.
Retrospective and confirmed data
For reliable analysis, two types of data must be distinguished:
- Retrospective geometry places a pivot on the candle that was later recognized as a structural extreme.
- Confirmed events are published only after the required right-side structural neighbor appears or after the candle confirming a break has closed.
The historical location of a pivot and the time when that pivot became known are different values.
PRO preserves this distinction in its public buffers. This makes the indicator suitable not only for visual use, but also for research and automated systems where hidden use of future data must be avoided.
iCustom interface
The indicator exports through 61 public buffers:
- retrospective STH, STL, ITH, ITL, LTH and LTL points;
- prices and times of confirmed pivot events;
- Breakout, BoS, ChoCH and Reversal events for every structural rank;
- outside-bar processing status;
- snapshot validity status;
- the uncertainty frontier;
- first-observed times for pivot and structure events.
An external program should verify the snapshot status before consuming confirmed trading events.
Buffer 44 — Output Snapshot Status 1 = Final 2 = Lower-timeframe history is pending 3 = Outside-bar order is unresolved 4 = Tester model is unsupported 5 = Previous valid snapshot retained after build failure 6 = Tester chronology explicitly trusted 7 = No valid snapshot exists after build failure
A complete buffer map can be provided in a separate developer guide.
Swing sizes and statistics
The indicator can display the size of completed movements in broker points.
It can also calculate:
- the average size of the latest completed swings;
- the median size of the latest completed swings;
- statistics over a user-defined number of movements.
The current unfinished swing is not included in the average or median.
Alert system
The master alert switch is disabled by default. After enabling it, the user can independently select structural ranks for:
- confirmed pivots;
- Break of Structure;
- Change of Character;
- pivot-sequence reversals;
- other structure breaks;
- late confirmations produced after outside-bar history becomes available.
Supported delivery channels:
- terminal popup;
- mobile push notification;
- sound notification;
- email.
Important
An alert means that an event has been formed according to the selected market-structure rules. It is not an independent recommendation to open or close a position.
Settings
| Group | Purpose |
|---|---|
| Chart & Structure | History depth, confirmed-candle mode, inside bars, equal High/Low handling and outside-bar analysis. |
| Display | Main line, pivot labels, visible structural ranks, additional points and unresolved outside bars. |
| Swing Information | Completed swing sizes, number of labels, average and median statistics. |
| Alerts | Confirmed pivots, BoS, ChoCH, reversals and other structure breaks by rank. |
| Notification Delivery | Popup, push, sound and email. |
| Colors & Labels | Line appearance, pivot colors, fonts, label sizes and long-term label fill. |
| Advanced | Calculation history, price tolerances and tester tick chronology. |
Typical uses
- objective marking of short-, intermediate- and long-term structure;
- identification of confirmed changes in market direction;
- analysis of Breakout, BoS, ChoCH and Reversal events;
- preparation of a structural basis for liquidity, order-block, supply and demand analysis;
- comparison of impulse and correction amplitudes;
- development of Expert Advisors and analytical systems through iCustom;
- research without mixing retrospective and causally available data.
The classical Larry Williams swing hierarchy is combined with modern Smart Money market-structure analysis.
The indicator does not attempt to replace a trading system. Its purpose is to provide a strict, configurable and machine-readable structural foundation for further market analysis.
Compatibility
This PRO version is designed for MetaTrader 5.
