MarketStructure MT4
- インディケータ
- バージョン: 1.0
- アクティベーション: 5
Short description
Swing highs and lows (HH, HL, LH, LL), BOS and CHoCH on two structure sizes, trend state, order blocks and premium / discount zones.
Description
Market Structure marks the swing points of the chart and shows when the structure breaks. It labels every confirmed swing high and low, draws a line when price closes beyond the last swing, and tells you whether the break continues the trend (break of structure, BOS) or turns it (change of character, CHoCH). It does this on two sizes at once: a short internal structure and a larger swing structure. The main settings are on a small button bar on the chart.
What it shows
- Swing labels: HH (higher high), LH (lower high), HL (higher low), LL (lower low).
- BOS and CHoCH: a line from the broken swing point to the bar that broke it, with its label. Swing structure lines are solid; internal structure lines are dashed and labelled iBOS / iCHoCH.
- The trend state of both sizes (bullish / bearish) in the button bar.
- Order blocks (optional): when the structure breaks, the zone of the bar at the origin of the move (the lowest bar before a bullish break, the highest bar before a bearish break). The zone is extended to the right until a close goes through it. The latest three per side are kept (adjustable).
- Premium and discount (optional): the current swing range with its equilibrium (50 %) line, the upper quarter as premium and the lower quarter as discount.
How it works
- A swing high is a bar whose high is above the highs of a number of bars on both sides (the length: 20 for the swing structure and 5 for the internal structure by default). Swing lows work the same way.
- A break needs a bar close beyond the last swing level (or, as an option, the high or low).
- A break in the direction of the current trend is a BOS; a break against it is a CHoCH and turns the trend.
On-chart buttons
- Length - / + (the swing length; in Internal mode the internal length).
- Internal / Swing / Both.
- Labels, order blocks and premium / discount on or off.
- Alerts on or off.
- The bar can be collapsed to one button and placed in any corner of the chart. Your choices are kept for each chart, also after a timeframe change or a restart of the terminal.
Alerts
- Pop-up alert and push notification on a new swing BOS or CHoCH, optionally also on internal breaks. An alert comes once, when the breaking bar closes.
Values for Expert Advisors
- Six buffers: swing trend and internal trend (1 up, -1 down), swing and internal break on the bar (1 BOS up, 2 CHoCH up, -1 BOS down, -2 CHoCH down, 0 none), and the active swing high and low levels.
About repainting
- A swing point is confirmed only when the given number of bars after it have closed, so its label appears that many bars after the swing bar (20 bars with the default swing length). This is a delay by definition, not a change of past values.
- Breaks are evaluated on closed bars only. Once a BOS or CHoCH is drawn, it does not move or disappear. In the Strategy Tester every value was recorded when its bar closed and compared with the history afterwards: no value changed and no break appeared later.
Notes
- Works on any symbol and timeframe. The last 2000 bars are analysed by default.
- The labels and zones describe the past structure of the chart. They are not a forecast and not a trading system; use them together with your own analysis and risk management.
Inputs
- Swing length, internal length, structure to show, break confirmation (close or wick), bars to analyse.
- Labels, order blocks and their number, premium / discount.
- Alerts, push notifications, alerts for internal breaks.
- Bullish and bearish colour, button bar corner, label font size.
The indicator does not trade. No DLL.
