Smart Trade Map Order Blocks Liquidity Sweep
- Индикаторы
-
Yuki Nakayama
I am Yuki, an independent developer in Japan. I build indicators and utilities for MetaTrader 5 and publish them here on the MQL5 Market. Every tool has a free edition, so you can see how it behaves on your own charts before you consider the paid one. - Версия: 1.0
- Активации: 5
Smart Trade Map reads the SMC picture of one chart (order blocks, BOS and CHoCH market structure, sweeps of equal highs and lows, and optional FVG, off by default) on a single map card. Three things were built for this product and hold the rest together: the map card, one alert stream with at most one alert per bar, and an events list. The card shows the nearest supply zone above and the nearest demand zone below, how far away each one is in points, on what share of the past 120 trading days price travelled that far within four hours at the same time of day, the structure direction on this chart and on two higher timeframes, and the close that makes each zone invalid. It is for traders who already trade SMC by hand: it draws no buy or sell arrows, does not rate setups and places no trades.
The map card
The card is laid out like the chart, with the highest price at the top and the lowest at the bottom. The top row is the level where the supply zone stops being valid (a close above its top). Next comes the nearest supply zone with its timeframe, the price of its near edge, the distance in points and its 4h reached band (how often price got that far within four hours on the past 120 trading days, same time of day). The current price sits in the middle, and below it come the nearest demand zone and the level where it stops being valid (a close below its bottom).
When price is inside a zone, that row gives the far edge instead, the one where the zone stops being valid, with the word inside after the zone's name, and the separate invalid row on that side is folded away. The card says inside only for a zone no taller than the distance price covered within four hours on 80% of the past 120 trading days, or one ATR14 if that is larger. A taller zone is a region rather than a level: if it is the only zone on that side, it takes the row in the same way with the word within; otherwise the row keeps the nearest zone beyond it and a small note such as within supply H4 appears beside the structure rows. When one side has no zone, the row says so and shows the 4h reached 50% level on that side instead (how far price got within four hours on half of the past 120 trading days).
Below the zones, the structure rows give the direction on the chart timeframe with the time of the last BOS or CHoCH, and the direction on two higher timeframes (H4 and D1 by default). The events list at the bottom shows the latest events, one row per bar, newest first; its header shows where alerts go, or Alerts: off.
The card sizes itself to the chart (Auto, or one of four fixed sizes), sits in any corner, and on a small chart steps down a size and then shortens the events list. Click the header to fold the card down to the zones and the price; each chart remembers the choice.
A chart you can still read
The chart shows what the card names and little else. Of the order blocks it finds, the indicator draws the two nearest fresh zones above and below price on the chart timeframe (adjustable from 1 to 5), the nearest zone above and below on each higher timeframe, and any zone named on the card. The right margin is split into three lanes: zone boxes stop just after the last bar, the 4h reached lines (past 120 trading days) have a lane of their own, and the labels (zone names, the invalid level, higher-timeframe structure) start 164 pixels to the right of the last bar. When two labels would overlap, the more important one stays. The label lane needs 228 pixels to the right of the last bar; with less room the labels are hidden.
4h reached, and what it is not
4h reached is a yardstick of past movement. For each distance on the card, the band says on what share of the past 120 trading days price got at least that far within the next four hours, measured at the same time of day, plus or minus 30 minutes. The bands are 80 percent or more, 50 to 80, 20 to 50, and under 20. The same yardstick is drawn in the right margin as six short lines, three above and three below price, at the distances reached on 80%, 50% and 20% of those 120 trading days. The distances scale with the average 15-minute bar range of the last 24 hours of trading, so they widen on busy days and narrow on quiet ones. It is not a promise about the next four hours and it says nothing about direction. It needs 120 trading days of M15 history; until that is loaded the card says waiting for history and everything else works.
Order blocks
An order block is the last opposite candle before a move that breaks it within three bars and travels at least 1.0 x ATR14. The indicator keeps up to 8 candidates on the chart timeframe and up to 4 on each higher timeframe. A zone that price has touched stays and is marked mitigated; a zone that price breaks through is removed. For a zone named on the card the near edge is drawn as a thicker line (not while price is inside it), and the invalid level of the nearer zone is drawn as a dotted line with its price. Fair Value Gaps of the chart timeframe are optional and off by default.
Market structure from closed bars
A swing is confirmed when a later bar closes 2.0 x ATR14 away from it (adjustable); swing dots are off by default. BOS and CHoCH count the close only, so a wick through a swing does not count. Equal highs and equal lows (EQH and EQL) are where two or more confirmed swings sit within 0.5 x ATR14 of each other; the chart shows the nearest live band above and below. A sweep is marked where a wick trades through the outer edge of a band, and a reclaim where a bar closes back inside it within three bars. The latest five structure labels and sweep marks stay on the chart. The two higher timeframes are read with the same rules, and the level of their last BOS or CHoCH is drawn as a dotted line labelled with the timeframe.
One alert stream
Every alert goes through one stream: price coming within 60 points (adjustable) of a fresh order block, once per zone, a new BOS, a new CHoCH, a sweep, and a reclaim (off by default). Events raised at the same moment go out as one line, and at most one alert is sent per bar of the chart; anything later on that bar is only added to the events list on the card. Alerts can go to a popup, a sound, a push notification or an email. Events found when the indicator is first attached are listed without an alert.
In the Strategy Tester
The indicator runs in the Strategy Tester, including Open prices only. No alerts are sent there; the events stay in the list on the card. A higher timeframe is read only when it is a whole multiple of the tested timeframe. The 4h reached figures (share of the past 120 trading days) need M15 bars: in the tester they appear on M15, and on H1 when the test runs in 1 minute OHLC mode; on H1 or D1 in Open prices only mode, the card says waiting for history. For your own EA there are five buffers, written once per closed bar: structure direction, BOS or CHoCH, the outer edge of the nearest equal-highs band above, the same for equal lows below, and sweep or reclaim. In our tests (gold M15 and H1, EURUSD H1, about 3,000 bars in the Strategy Tester) the value each bar received when it closed did not change afterwards. The zone boxes are a different matter: an order block is the candle before the move that confirms it, so a box starts a few bars before the bar on which it appears.
What it does not do
It does not tell you when to buy or sell, does not rate setups, does not scan other symbols and does not trade. The 4h reached figures are a record of the past 120 trading days at the same time of day, and they are shown without colour so that no number looks like a recommendation.
Main settings
Card on or off, corner, size and margin. Bars scanned for order blocks and zones shown per side. Higher timeframes on or off and which two to use. Fair Value Gaps and the 4h reached lines (past 120 trading days) on or off. Swing size in ATR, closed bars scanned for structure, swing dots, equal highs and lows, and sweeps. Each alert kind, the order-block distance in points, and popup, push, email and sound.
Every input and every row of the map card is explained in the user guide on the author's blog: Smart Trade Map user guide
The map card
The card is laid out like the chart, with the highest price at the top and the lowest at the bottom. The top row is the level where the supply zone stops being valid (a close above its top). Next comes the nearest supply zone with its timeframe, the price of its near edge, the distance in points and its 4h reached band (how often price got that far within four hours on the past 120 trading days, same time of day). The current price sits in the middle, and below it come the nearest demand zone and the level where it stops being valid (a close below its bottom).
When price is inside a zone, that row gives the far edge instead, the one where the zone stops being valid, with the word inside after the zone's name, and the separate invalid row on that side is folded away. The card says inside only for a zone no taller than the distance price covered within four hours on 80% of the past 120 trading days, or one ATR14 if that is larger. A taller zone is a region rather than a level: if it is the only zone on that side, it takes the row in the same way with the word within; otherwise the row keeps the nearest zone beyond it and a small note such as within supply H4 appears beside the structure rows. When one side has no zone, the row says so and shows the 4h reached 50% level on that side instead (how far price got within four hours on half of the past 120 trading days).
Below the zones, the structure rows give the direction on the chart timeframe with the time of the last BOS or CHoCH, and the direction on two higher timeframes (H4 and D1 by default). The events list at the bottom shows the latest events, one row per bar, newest first; its header shows where alerts go, or Alerts: off.
The card sizes itself to the chart (Auto, or one of four fixed sizes), sits in any corner, and on a small chart steps down a size and then shortens the events list. Click the header to fold the card down to the zones and the price; each chart remembers the choice.
A chart you can still read
The chart shows what the card names and little else. Of the order blocks it finds, the indicator draws the two nearest fresh zones above and below price on the chart timeframe (adjustable from 1 to 5), the nearest zone above and below on each higher timeframe, and any zone named on the card. The right margin is split into three lanes: zone boxes stop just after the last bar, the 4h reached lines (past 120 trading days) have a lane of their own, and the labels (zone names, the invalid level, higher-timeframe structure) start 164 pixels to the right of the last bar. When two labels would overlap, the more important one stays. The label lane needs 228 pixels to the right of the last bar; with less room the labels are hidden.
4h reached, and what it is not
4h reached is a yardstick of past movement. For each distance on the card, the band says on what share of the past 120 trading days price got at least that far within the next four hours, measured at the same time of day, plus or minus 30 minutes. The bands are 80 percent or more, 50 to 80, 20 to 50, and under 20. The same yardstick is drawn in the right margin as six short lines, three above and three below price, at the distances reached on 80%, 50% and 20% of those 120 trading days. The distances scale with the average 15-minute bar range of the last 24 hours of trading, so they widen on busy days and narrow on quiet ones. It is not a promise about the next four hours and it says nothing about direction. It needs 120 trading days of M15 history; until that is loaded the card says waiting for history and everything else works.
Order blocks
An order block is the last opposite candle before a move that breaks it within three bars and travels at least 1.0 x ATR14. The indicator keeps up to 8 candidates on the chart timeframe and up to 4 on each higher timeframe. A zone that price has touched stays and is marked mitigated; a zone that price breaks through is removed. For a zone named on the card the near edge is drawn as a thicker line (not while price is inside it), and the invalid level of the nearer zone is drawn as a dotted line with its price. Fair Value Gaps of the chart timeframe are optional and off by default.
Market structure from closed bars
A swing is confirmed when a later bar closes 2.0 x ATR14 away from it (adjustable); swing dots are off by default. BOS and CHoCH count the close only, so a wick through a swing does not count. Equal highs and equal lows (EQH and EQL) are where two or more confirmed swings sit within 0.5 x ATR14 of each other; the chart shows the nearest live band above and below. A sweep is marked where a wick trades through the outer edge of a band, and a reclaim where a bar closes back inside it within three bars. The latest five structure labels and sweep marks stay on the chart. The two higher timeframes are read with the same rules, and the level of their last BOS or CHoCH is drawn as a dotted line labelled with the timeframe.
One alert stream
Every alert goes through one stream: price coming within 60 points (adjustable) of a fresh order block, once per zone, a new BOS, a new CHoCH, a sweep, and a reclaim (off by default). Events raised at the same moment go out as one line, and at most one alert is sent per bar of the chart; anything later on that bar is only added to the events list on the card. Alerts can go to a popup, a sound, a push notification or an email. Events found when the indicator is first attached are listed without an alert.
In the Strategy Tester
The indicator runs in the Strategy Tester, including Open prices only. No alerts are sent there; the events stay in the list on the card. A higher timeframe is read only when it is a whole multiple of the tested timeframe. The 4h reached figures (share of the past 120 trading days) need M15 bars: in the tester they appear on M15, and on H1 when the test runs in 1 minute OHLC mode; on H1 or D1 in Open prices only mode, the card says waiting for history. For your own EA there are five buffers, written once per closed bar: structure direction, BOS or CHoCH, the outer edge of the nearest equal-highs band above, the same for equal lows below, and sweep or reclaim. In our tests (gold M15 and H1, EURUSD H1, about 3,000 bars in the Strategy Tester) the value each bar received when it closed did not change afterwards. The zone boxes are a different matter: an order block is the candle before the move that confirms it, so a box starts a few bars before the bar on which it appears.
What it does not do
It does not tell you when to buy or sell, does not rate setups, does not scan other symbols and does not trade. The 4h reached figures are a record of the past 120 trading days at the same time of day, and they are shown without colour so that no number looks like a recommendation.
Main settings
Card on or off, corner, size and margin. Bars scanned for order blocks and zones shown per side. Higher timeframes on or off and which two to use. Fair Value Gaps and the 4h reached lines (past 120 trading days) on or off. Swing size in ATR, closed bars scanned for structure, swing dots, equal highs and lows, and sweeps. Each alert kind, the order-block distance in points, and popup, push, email and sound.
Every input and every row of the map card is explained in the user guide on the author's blog: Smart Trade Map user guide
