MTF Fractals [RunRox]🔽 MTF Fractals is a powerful indicator designed to visualize fractals from multiple timeframes directly on your chart, highlight liquidity sweeps at these fractal levels, and provide several additional features we’ll cover in detail below.
We created this indicator because we couldn’t find a suitable tool that met our specific needs on TradingView. Therefore, we decided to develop a valuable indicator for the entire TradingView community, combining simplicity and versatility.
⁉️ WHAT IS A FRACTALS?
In trading, a fractal is a technical analysis pattern composed of five consecutive candles, typically highlighting local market turning points. Specifically, a fractal high is formed when a candle’s high is higher than the highs of the two candles on either side, whereas a fractal low occurs when a candle’s low is lower than the lows of the two adjacent candles on both sides.
Traders use fractals as reference points for identifying significant support and resistance levels, potential reversal areas, and liquidity zones within price action analysis. Below is a screenshot illustrating clearly formed fractals on the chart.
📙 FRACTAL FORMATION
Here’s how fractals form depending on your chosen setting (3, 5, 7, or 9):
▶️ 3-bar fractal – forms when the central candle is higher (for highs) or lower (for lows) than one candle on each side.
▶️ 5-bar fractal – forms when the central candle is higher or lower than two candles on both sides.
▶️ 7-bar fractal – forms when the central candle is higher or lower compared to the three candles on each side.
▶️ 9-bar fractal – forms similarly but requires four candles on each side, making the fractal significantly more reliable and robust.
A higher number of bars ensures stronger fractal levels, highlighting more significant potential reversal points on the chart.
Now that we’ve covered the theory behind fractal formation, let’s explore the indicator’s functionality in more detail.
Below, I’ll explain each feature clearly and illustrate how you can effectively utilize this indicator in your trading.
🕐 MULTI-TIMEFRAME FRACTALS
We realized that displaying fractals only from the current timeframe isn’t always convenient, so we’ve introduced Multi-Timeframe Fractals into this indicator.
Now you can easily display fractals from higher timeframes directly on your current chart, providing you with broader market context and clearer trading signals.
Fractals from Current Timeframe – Fractals identified directly on the chart’s current timeframe.
Fractals from Higher Timeframes – Fractals sourced from higher timeframes and displayed clearly on your current chart for enhanced market perspective.
📈 FRACTAL LINES
Since fractals represent areas of high liquidity, we’ve added an option to extend fractal levels horizontally as Fractal Lines across your chart.
This feature allows you to clearly visualize critical liquidity areas from higher timeframes, directly on your current timeframe chart, as demonstrated in the screenshot below.
With this approach, you can clearly visualize significant fractal levels from higher timeframes directly on your current chart - for example, projecting fractals from the 1-hour (1H) timeframe onto a 3-minute (3m) chart. ✅ This helps you easily identify critical liquidity areas and potential reversal zones without the need to switch between multiple timeframes.
💰 LIQUDITY SWEEP (LIQUDITY GRAB)
To enhance your trading experience, we’ve introduced a feature that clearly identifies liquidity sweeps of fractal levels.
A Liquidity Sweep occurs when a candle closes beyond a fractal line, leaving a wick that pierces through it, signaling that liquidity has been collected at this level.
Below, you’ll find two examples illustrating this functionality:
▶️ Fractal lines from the current timeframe
▶️ Fractal lines projected from higher timeframes
The first example illustrates liquidity being swept from fractals on the current timeframe .
Here, the candle clearly closes beyond the fractal line, leaving a wick through it. This indicates a liquidity sweep at the fractal level, visually highlighting a potential reversal or continuation opportunity directly on your chart.
In the second example, fractals from the higher timeframe are projected onto your current chart.
When a candle on your current timeframe closes beyond an HTF fractal line - leaving a wick through this level - the indicator highlights it clearly. This signals to traders a potential reversal zone, indicating that liquidity has been swept, and price may reverse or significantly react from this area.
You can also enable the display of additional labels on the chart. These labels clearly mark liquidity sweeps at fractal levels, making it easier to visually identify potential reversal points directly on your chart.
⚙️ SETTINGS
Below are the indicator settings with detailed explanations for each parameter.
🔷 Bars in Fractal – Number of candles to the right and left required to form a fractal.
🔷 Fractal Timeframe – Select the timeframe from which you want to display fractals on the current chart.
🔷 Max Age, bars – Number of bars during which the fractal will remain active.
🔷 Show Fractal Line – Display or hide fractal lines.
🔷 Line Style – Choose the style of the line displayed on the chart.
🔷 Line Width – Thickness of the fractal line.
🔷 High Fractal – Style and color of bearish fractals.
🔷 Low Fractal – Style and color of bullish fractals.
🔷 Fractal Label Size – Select the size of fractal labels.
🔷 Show Sweep Labels – Option to display labels when a liquidity sweep occurs.
🔷 Label Color – Color and transparency of the area marked on the chart during a sweep.
🔷 Shade Sweep Area – Show or hide the sweep area shading.
🔷 Area Color – Color and transparency settings for the sweep area.
🔶 We’d love to hear your feedback and any suggestions for additional features you’d like to see in this indicator. We’ll be happy to consider your ideas and continue improving the indicator!
Market-structure
Confirmed market structure buy/sell indicatorOverview
The Swing Point Breakout Indicator with Multi-Timeframe Dashboard is a TradingView tool designed to identify potential buy and sell signals based on swing point breakouts on the primary chart's timeframe while simultaneously providing a snapshot of the market structure across multiple higher timeframes. This dual approach helps traders make informed decisions by aligning short-term signals with broader market trends.
Key Features
Swing Point Breakout Detection
Swing Highs and Lows: Identifies significant peaks and troughs based on a user-defined lookback period.
Breakout Signals:
Bullish Breakout (Buy Signal): Triggered when the price closes above the latest swing high.
Bearish Breakout (Sell Signal): Triggered when the price closes below the latest swing low.
Visual Indicators: Highlights breakout bars with colors (lime for bullish, red for bearish) and plots buy/sell markers on the chart.
Multi-Timeframe Dashboard
Timeframes Monitored: 1m, 5m, 15m, 1h, 4h, 1D, and 1W.
Market Structure Status:
Bullish: Indicates upward market structure.
Bearish: Indicates downward market structure.
Neutral: No clear trend.
Visual Table: Displays each timeframe with its current status, color-coded for quick reference (green for bullish, red for bearish, gray for neutral).
Operational Workflow
Initialization:
Sets up a dashboard table on the chart's top-right corner with headers "Timeframe" and "Status".
Swing Point Detection:
Continuously scans the main timeframe for swing highs and lows using the specified lookback period.
Updates the latest swing high and low levels.
Signal Generation:
Detects when the price breaks above the last swing high (bullish) or below the last swing low (bearish).
Activates potential buy/sell setups and confirms signals based on subsequent price movements.
Dashboard Update:
For each defined higher timeframe, assesses the market structure by checking for breakouts of swing points.
Updates the dashboard with the current status for each timeframe, aiding in trend confirmation.
Visualization:
Colors the bars where breakouts occur.
Plots buy and sell signals directly on the chart for easy identification.
MarketStructureLibrary "MarketStructure"
This library contains functions for identifying Lows and Highs in a rule-based way, and deriving useful information from them.
f_simpleLowHigh()
This function finds Local Lows and Highs, but NOT in order. A Local High is any candle that has its Low taken out on close by a subsequent candle (and vice-versa for Local Lows).
The Local High does NOT have to be the candle with the highest High out of recent candles. It does NOT have to be a Williams High. It is not necessarily a swing high or a reversal or anything else.
It doesn't have to be "the" high, so don't be confused.
By the rules, Local Lows and Highs must alternate. In this function they do not, so I'm calling them Simple Lows and Highs.
Simple Highs and Lows, by the above definition, can be useful for entries and stops. Because I intend to use them for stops, I want them all, not just the ones that alternate in strict order.
@param - there are no parameters. The function uses the chart OHLC.
@returns boolean values for whether this bar confirms a Simple Low/High, and ints for the bar_index of that Low/High.
f_localLowHigh()
This function finds Local Lows and Highs, in order. A Local High is any candle that has its Low taken out on close by a subsequent candle (and vice-versa for Local Lows).
The Local High does NOT have to be the candle with the highest High out of recent candles. It does NOT have to be a Williams High. It is not necessarily a swing high or a reversal or anything else.
By the rules, Local Lows and Highs must alternate, and in this function they do.
@param - there are no parameters. The function uses the chart OHLC.
@returns boolean values for whether this bar confirms a Local Low/High, and ints for the bar_index of that Low/High.
f_enhancedSimpleLowHigh()
This function finds Local Lows and Highs, but NOT in order. A Local High is any candle that has its Low taken out on close by a subsequent candle (and vice-versa for Local Lows).
The Local High does NOT have to be the candle with the highest High out of recent candles. It does NOT have to be a Williams High. It is not necessarily a swing high or a reversal or anything else.
By the rules, Local Lows and Highs must alternate. In this function they do not, so I'm calling them Simple Lows and Highs.
Simple Highs and Lows, by the above definition, can be useful for entries and stops. Because I intend to use them for trailing stops, I want them all, not just the ones that alternate in strict order.
The difference between this function and f_simpleLowHigh() is that it also tracks the lowest/highest recent level. This level can be useful for trailing stops.
In effect, these are like more "normal" highs and lows that you would pick by eye, but confirmed faster in many cases than by waiting for the low/high of that particular candle to be taken out on close,
because they are instead confirmed by ANY subsequent candle having its low/high exceeded. Hence, I call these Enhanced Simple Lows/Highs.
The levels are taken from the extreme highs/lows, but the bar indexes are given for the candles that were actually used to confirm the Low/High.
This is by design, because it might be misleading to label the extreme, since we didn't use that candle to confirm the Low/High..
@param - there are no parameters. The function uses the chart OHLC.
@returns - boolean values for whether this bar confirms an Enhanced Simple Low/High
ints for the bar_index of that Low/High
floats for the values of the recent high/low levels
floats for the trailing high/low levels (for debug/post-processing)
bools for market structure bias
f_trueLowHigh()
This function finds True Lows and Highs.
A True High is the candle with the highest recent high, which then has its low taken out on close by a subsequent candle (and vice-versa for True Lows).
The difference between this and an Enhanced High is that confirmation requires not just any Simple High, but confirmation of the very candle that has the highest high.
Because of this, confirmation is often later, and multiple Simple Highs and Lows can develop within ranges formed by a single big candle without any of them being confirmed. This is by design.
A True High looks like the intuitive "real high" when you look at the chart. True Lows and Highs must alternate.
@param - there are no parameters. The function uses the chart OHLC.
@returns - boolean values for whether this bar confirms an Enhanced Simple Low/High
ints for the bar_index of that Low/High
floats for the values of the recent high/low levels
floats for the trailing high/low levels (for debug/post-processing)
bools for market structure bias
MTF Market Structure Highs and LowsThe indicator marks the last fractal highs and lows (W,D,4H and 1H options) to help determine current market structure. The script was created to help with directional bias but also as a MTF visual aid for stop hunts/liquidity raids.
Liquidity areas are where we assume trader's stop losses would be when buying or selling. Liquidity lies above and below swing points and institutions need liquidity to fill large orders.
Monitor price action as it hits these areas for a potential reversal trade.