The luxalgo smart money concepts indicator maps market structure straight onto the price chart. It confirms swing pivots, draws a line at each structural break and boxes the candle behind that break. Small aqua and magenta dots mark the pivots that mattered. Traders who follow structure and order-block ideas get the whole picture in one tool.
This build ships as luxalgo-smart-money-concepts-indicator-indicator-forexmt4systems.ex4 for MT4 and luxalgo-smart-money-concepts-indicator-indicator-forexmt4systems.ex5 for MT5; the screenshots below come from EURUSD H1.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Main price chart |
| Plots | 2: BoS Pivot, CHoCH Pivot |
| Alerts | popup, push notification, email, sound |
| Inputs | 16 |
What the Luxalgo Smart Money Concepts Indicator draws on the chart
Two dot buffers sit over the candles. Both use arrow code 159, a small round marker. The aqua dots land on swing highs that pushed above the previous high. CHoCH Pivot holds the magenta dots, and those land on swing lows that broke under the previous low.
Chart objects carry the labels. A dashed aqua line spans from the broken level across to the bar that broke it, tagged as a continuation. A solid magenta line marks a change of character, when the break runs against the earlier read. MaxStructures caps how many of those lines stay on screen.
Rectangles mark the order blocks. The code steps back up to twelve bars from a break and takes the last opposite-coloured candle. OBWidth sets the border thickness, OBHistoryBars stretches the box to the right, and MaxOrderBlocks caps the count. ShowBoS, ShowCHoCH and ShowOrderBlocks switch each layer off on their own.
- BoS Pivot: arrow, aqua, arrow code 159
- CHoCH Pivot: arrow, magenta, arrow code 159

How the Luxalgo Smart Money Concepts Indicator calculates its values
Confirming a pivot
A pivot needs quiet neighbours. PivotLeft counts the bars on the older side that have to stay under a swing high. PivotRight counts the bars on the newer side. Both ship at two bars, so a pivot only confirms a couple of candles after it forms. Swing lows use the mirror test.
Reading the break
The scan walks the lookback window from oldest to newest. It carries the last confirmed high and the last confirmed low with it. A new high above the stored high, while the read was already bullish, counts as a continuation. The same break against a bearish read counts as a change of character instead.
Picking the order block
Each break triggers one box. The code steps back from the break bar, up to twelve candles. For a bullish break it takes the last candle that closed below its open. That candle’s high and low become the rectangle, and OBHistoryBars decides how far right the box runs.
How to read the signals
Structure first, boxes second. A solid magenta line says the read just flipped. A dashed aqua line says the current read carried on. Together they give a running commentary on who holds the swing.
The rectangles hand you a place to act. Price returning into a box meets the candle that started the move. Many traders wait for a reaction there rather than chasing the break itself. A box that price already cut through counts as spent.
Alert channels in this build: popup, push notification, email and sound, one message per closed bar.
Alerts go out by popup, mobile push, email and sound. EnableAlerts gates the block, and EnablePopup, EnablePushNotify, EnableEmail and EnableSound choose the channels. The guard allows one message per closed bar.
Every Luxalgo Smart Money Concepts Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
PivotLeft |
bars left for pivot (was 3, too strict). PivotLeft (default 2) counts the bars on the older side of a swing. Raise it for fewer and cleaner pivots. | 2 |
PivotRight |
bars right for pivot. PivotRight (default 2) counts the bars on the newer side. Every extra bar delays confirmation by one more candle. | 2 |
LookbackBars |
LookbackBars (default 500) limits how far back the structure scan reaches. Cut it on a slow machine. | 500 |
MaxStructures |
MaxStructures (default 30) caps how many structure lines stay on the chart at once. | 30 |
MaxOrderBlocks |
MaxOrderBlocks (default 12) does the same job for the rectangles. | 12 |
Display settings
| Setting | What it does | Default |
|---|---|---|
OBHistoryBars |
OBHistoryBars (default 40) sets how far right each box extends from its origin candle. | 40 |
OBWidth |
rectangle border width (was 1, too thin). | 2 |
ShowBoS |
(see inputs panel) | on |
ShowCHoCH |
(see inputs panel) | on |
ShowOrderBlocks |
ShowOrderBlocks (default true) turns the rectangle layer on or off without touching the lines. | on |
Alert settings
| Setting | What it does | Default |
|---|---|---|
EnableAlerts |
(see inputs panel) | on |
EnablePopup |
(see inputs panel) | on |
EnablePushNotify |
(see inputs panel) | off |
EnableEmail |
(see inputs panel) | off |
EnableSound |
(see inputs panel) | off |
SoundFile |
(see inputs panel) | alert.wav |

Settings that fit your chart
EURUSD on H1 backs the screenshot here. Structure work needs room, so H1 and H4 suit this build best. On M1 and M5 a two-bar pivot fires constantly and the chart fills with lines you cannot use. Gold and index CFDs work too, though a wider pivot test keeps the noise down. Any symbol with real liquidity gives usable swings.
When the Luxalgo Smart Money Concepts Indicator fails
A two-bar pivot is a small pivot. It confirms fast, but it also promotes minor wiggles into structure. On a ranging chart the read then flips every few bars. Widen PivotLeft and PivotRight before you trust the labels.
The order-block rule stays crude. It takes the last opposite-coloured candle within twelve bars, and nothing else. That candle can sit far from the level you would have drawn by hand. Check each box against the swing around it.
Everything rebuilds on each pass. The code deletes its own objects and redraws the set, so lines and boxes shift as older bars leave the lookback window. Write down the price levels you actually care about.
The alert tracks structure state, not a fresh break. While any structure line exists, the check sends one message per closed bar. Turn EnableAlerts off when that becomes noise.
Copy luxalgo-smart-money-concepts-indicator-indicator-forexmt4systems.ex4 into MQL4/Indicators and luxalgo-smart-money-concepts-indicator-indicator-forexmt4systems.ex5 into MQL5/Indicators, then restart the terminal and drag the Luxalgo Smart Money Concepts Indicator onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.
Related on forexmt4systems.com: Smart Money Concepts Strategy.
Background reading on the method behind the Luxalgo Smart Money Concepts Indicator: China concepts stock on Wikipedia, Cme Futures And Spot Prices at StockCharts ChartSchool.
Download the Luxalgo Smart Money Concepts Indicator for MT4 and MT5
The zip luxalgo-smart-money-concepts-indicator-indicator-forexmt4systems.zip holds luxalgo-smart-money-concepts-indicator-indicator-forexmt4systems.ex4, luxalgo-smart-money-concepts-indicator-indicator-forexmt4systems.ex5 and a short README, compiled files only. Enter your email below and the download link arrives in your inbox.
Download this indicator free
Enter your email and the file is yours. You also get the full MT4 and MT5 library.
FAQ
How many bars does PivotRight add before a pivot confirms?
Exactly as many as you set. With the shipped value the code waits for two closed bars to the right of the candidate. Only then does the dot appear and the structure check run. A larger value gives steadier pivots at the cost of a longer wait.
What does MaxOrderBlocks do when the chart fills with rectangles?
It caps the count. Once the tool has drawn that many boxes, the oldest one drops off as a new break arrives. Structure lines have their own cap in MaxStructures. Lower both when a busy chart starts hiding the candles you need to read.
Why does a magenta CHoCH Pivot dot sit on a swing low?
The magenta buffer marks lows that broke under the previous low. That break usually flips a bullish read to bearish, which is where the change-of-character label comes from. The aqua buffer does the mirror job on swing highs. Both use the same small round marker at the pivot bar.
Does ShowOrderBlocks also hide the structure lines?
It leaves them alone. ShowOrderBlocks only controls the rectangles, while ShowBoS and ShowCHoCH handle the two line types separately. So you can keep the structure read and drop the boxes. The dots stay on screen either way, because they come from the indicator buffers.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Luxalgo Smart Money Concepts Indicator as one input. Always backtest before trading live.
Category: this is part of our Smart Money collection. Also, truly, browse more Smart Money for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- For background on this concept, see China concepts stock on Wikipedia.
- For broader market context, see Cme Futures And Spot Prices at StockCharts ChartSchool.
