PROTECTED SOURCE SCRIPT
Daily Weekly Monthly Highs & Lows [Line breaks]

This indicator, "Daily Weekly Monthly Highs & Lows [Line Breaks]", is an advanced technical analysis tool designed to identify and project historical liquidity levels (Highs and Lows) from multiple timeframes directly onto the current chart.
1. Main Purpose
The indicator automates the plotting of previous Daily (D), Weekly (W), and Monthly (M) highs and lows. It not only marks the level but also offers future projections and a visual breakout system, allowing the trader to quickly identify which levels are still "virgin" and which have already been mitigated by price.
2. Features and Settings
A. Timeframe Segmentation
Each period (Daily, Weekly, Monthly) has its own independent set of settings:
Enable/Disable: Enables or disables the visualization for each specific timeframe.
Lookback: Defines how many previous periods will be plotted (e.g., the last 5 daily highs).
Visual Customization: Allows you to change colors, widths, and line styles (Solid, Dotted, Dashed) individually for active and broken levels.
B. Projection System and Style
Show Projections: Extends lines ahead of the current price (offset to the right), making it easier to visualize future targets or support/resistance zones.
Show Gradient: Applies a transparency effect based on the age of the level. Newer levels are more opaque, while older levels gradually become more transparent.
Hide Broken Levels Entirely: A "cleanup" option that completely removes the line and label from the chart as soon as the price reaches it, leaving only the unmitigated levels.
C. Label Management
Labels identify levels (e.g., PDH1 for Previous Daily High 1).
Anti-Overlap Offset: Intelligent logic that shifts labels from different timeframes to prevent them from overlapping each other. 3. Internal Logic and Processing
The script uses a function to accurately retrieve the Maximum, Minimum, and Time data from the upper periods, ensuring that the level is drawn correctly as soon as the new period begins.
Break Monitoring: For each candle, the script checks if the current price has exceeded the line. If there is a break: The original line is closed and a new line (with a "Break" style) is started from that point.
Memory Management: Automatically removes older objects that exceed the user-defined lookback limit, keeping the chart lightweight and performant.
4. Practical Visualization
Active Level: Line with a solid/strong color and identified label.
Broken Level: The line changes to a softer color (usually dark gray/transparent) and the label follows this change, signaling that the liquidity of that point has already been captured.
Break Point: The indicator visually marks the exact moment (candle) when the level was invalidated.
________________________________________________________________________________
🎯 Practical Manual: Previous DWM HL
This guide will help you configure the indicator for maximum visual clarity and understand the signals it plots on the chart.
1. Visibility Settings (Timeframes)
The indicator is intelligent and adapts to your current chart to avoid clutter:
Daily: Visible only on intraday timeframes (e.g., 1 min to 4 h).
Weekly: Visible on intraday charts and the Daily chart.
Monthly: Visible on all timeframes except the Monthly chart itself.
2. Understanding the Visual Controls
Lookback: Defines the indicator's "memory." If you set it to 5 on the Daily, you will see the highs/lows of the last 5 days.
Show Projections: When activated, extends the lines to the right (empty space on the chart), allowing you to see support/resistance levels before the price reaches them.
Show Gradient: Older levels become more transparent. This helps you focus on what is recent and relevant.
Hide Broken Levels Entirely: If you want a "clean" chart, enable this option. It automatically deletes any line touched by the price.
3. Anatomy of a Level
Continuous/Original Line: Represents a level that has not yet been mitigated (pending liquidity).
Post-Break Line (Color After Break): When the price crosses a level, the line changes color and style (e.g., from solid to dotted) to show that that level has already been "tested" or liquidity has been captured.
Labels (PDH, PWH, PMH):
PDH/PDL: Previous Daily High/Low.
PWH/PWL: Previous Weekly High/Low.
PMH/PML: Previous Monthly High/Low.
The number next to it (e.g., PDH1) indicates the distance: 1 is the previous day, 2 is two days ago, and so on.
Common Strategies with the Indicator
A. Liquidity Sweeps
Many traders look for reversals after the price "clears" a previous high or low.
How to see it on the indicator: The price rises above a PWH (Weekly High), the line changes to the "Break" color, and the price quickly returns below the level. This suggests a buy liquidity capture to initiate a sell movement.
B. Trend Continuation (Break & Retest)
How to see it on the indicator: The price breaks a PMH (Monthly High) strongly and then returns to test exactly the "Break" line as support before continuing to rise.
C. Take Profit Targets
How to see it on the indicator: If you are long, the Previous High Projections (PDH or PWH) serve as natural price "magnets" and great points to take profit, as there are usually stop orders above these levels.
Pro Tip: Use "Anti-Overlap Offset" if you are using many Lookbacks at the same time. It will organize the level names in a staggered fashion so you can read them all without them overlapping.
1. Main Purpose
The indicator automates the plotting of previous Daily (D), Weekly (W), and Monthly (M) highs and lows. It not only marks the level but also offers future projections and a visual breakout system, allowing the trader to quickly identify which levels are still "virgin" and which have already been mitigated by price.
2. Features and Settings
A. Timeframe Segmentation
Each period (Daily, Weekly, Monthly) has its own independent set of settings:
Enable/Disable: Enables or disables the visualization for each specific timeframe.
Lookback: Defines how many previous periods will be plotted (e.g., the last 5 daily highs).
Visual Customization: Allows you to change colors, widths, and line styles (Solid, Dotted, Dashed) individually for active and broken levels.
B. Projection System and Style
Show Projections: Extends lines ahead of the current price (offset to the right), making it easier to visualize future targets or support/resistance zones.
Show Gradient: Applies a transparency effect based on the age of the level. Newer levels are more opaque, while older levels gradually become more transparent.
Hide Broken Levels Entirely: A "cleanup" option that completely removes the line and label from the chart as soon as the price reaches it, leaving only the unmitigated levels.
C. Label Management
Labels identify levels (e.g., PDH1 for Previous Daily High 1).
Anti-Overlap Offset: Intelligent logic that shifts labels from different timeframes to prevent them from overlapping each other. 3. Internal Logic and Processing
The script uses a function to accurately retrieve the Maximum, Minimum, and Time data from the upper periods, ensuring that the level is drawn correctly as soon as the new period begins.
Break Monitoring: For each candle, the script checks if the current price has exceeded the line. If there is a break: The original line is closed and a new line (with a "Break" style) is started from that point.
Memory Management: Automatically removes older objects that exceed the user-defined lookback limit, keeping the chart lightweight and performant.
4. Practical Visualization
Active Level: Line with a solid/strong color and identified label.
Broken Level: The line changes to a softer color (usually dark gray/transparent) and the label follows this change, signaling that the liquidity of that point has already been captured.
Break Point: The indicator visually marks the exact moment (candle) when the level was invalidated.
________________________________________________________________________________
🎯 Practical Manual: Previous DWM HL
This guide will help you configure the indicator for maximum visual clarity and understand the signals it plots on the chart.
1. Visibility Settings (Timeframes)
The indicator is intelligent and adapts to your current chart to avoid clutter:
Daily: Visible only on intraday timeframes (e.g., 1 min to 4 h).
Weekly: Visible on intraday charts and the Daily chart.
Monthly: Visible on all timeframes except the Monthly chart itself.
2. Understanding the Visual Controls
Lookback: Defines the indicator's "memory." If you set it to 5 on the Daily, you will see the highs/lows of the last 5 days.
Show Projections: When activated, extends the lines to the right (empty space on the chart), allowing you to see support/resistance levels before the price reaches them.
Show Gradient: Older levels become more transparent. This helps you focus on what is recent and relevant.
Hide Broken Levels Entirely: If you want a "clean" chart, enable this option. It automatically deletes any line touched by the price.
3. Anatomy of a Level
Continuous/Original Line: Represents a level that has not yet been mitigated (pending liquidity).
Post-Break Line (Color After Break): When the price crosses a level, the line changes color and style (e.g., from solid to dotted) to show that that level has already been "tested" or liquidity has been captured.
Labels (PDH, PWH, PMH):
PDH/PDL: Previous Daily High/Low.
PWH/PWL: Previous Weekly High/Low.
PMH/PML: Previous Monthly High/Low.
The number next to it (e.g., PDH1) indicates the distance: 1 is the previous day, 2 is two days ago, and so on.
Common Strategies with the Indicator
A. Liquidity Sweeps
Many traders look for reversals after the price "clears" a previous high or low.
How to see it on the indicator: The price rises above a PWH (Weekly High), the line changes to the "Break" color, and the price quickly returns below the level. This suggests a buy liquidity capture to initiate a sell movement.
B. Trend Continuation (Break & Retest)
How to see it on the indicator: The price breaks a PMH (Monthly High) strongly and then returns to test exactly the "Break" line as support before continuing to rise.
C. Take Profit Targets
How to see it on the indicator: If you are long, the Previous High Projections (PDH or PWH) serve as natural price "magnets" and great points to take profit, as there are usually stop orders above these levels.
Pro Tip: Use "Anti-Overlap Offset" if you are using many Lookbacks at the same time. It will organize the level names in a staggered fashion so you can read them all without them overlapping.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.