OPEN-SOURCE SCRIPT
Murrey Math Lines v6

Murrey Math Lines v6 [Modernized]
This is not just another Murrey Math indicator. It's a complete, ground-up modernization of the classic concept, rebuilt with the latest Pine Script features for unparalleled performance, accuracy, and usability. While preserving the core mathematical genius of T.H. Murrey's system, this version introduces a suite of modern tools designed for today's trader.
What are Murrey Math Lines?
Murrey Math Lines (MML) are a powerful system of support and resistance based on geometric formulas developed by T.H. Murrey. As a derivation of W.D. Gann's observations, Murrey's geometry simplifies Gann's theories into a more accessible application. The core principle is that price action tends to trend and retrace in 1/8th intervals.
These intervals create a "trading octave" with distinct levels, each having its own characteristic behavior:
[8/8] & [0/8] - Ultimate Resistance & Support: These lines are the hardest to break. They represent the top and bottom of the expected price range and are prime areas for reversals.
[4/8] - Major Pivot: This is the most significant level, offering the strongest support and resistance within the octave. Price has a high probability of stopping and reversing here.
[2/8] & [6/8] - Strong Pivot/Reversal: These are strong, secondary pivot points where price often struggles to pass through.
[3/8] & [5/8] - The Trading Range: The price tends to consolidate between these two lines about 50% of the time. A decisive break outside this range often signals the start of a new trend.
[1/8] & [7/8] - Weak Support/Resistance: These levels are weaker, but when price moves too quickly towards them, they can act as initial stopping points or areas for a minor reversal.
[+1, +2, etc.] & [-1, -2, etc.] - Extended Octave: These lines show extreme overbought and oversold conditions beyond the primary 0/8 to 8/8 octave.
Modern Enhancements in This Version
Session-Locked Precision: Anchor the Murrey Lines to the start of a specific trading session (e.g., NYSE open). The levels remain constant for the entire session, providing a stable and reliable framework for your daily analysis.
Visual Trading & Reversal Zones: Instead of just lines, this indicator can fill the key trading range (3/8 to 5/8) and reversal zones (0/8-1/8 & 7/8-8/8) with color, giving you an instant visual reference of market sentiment.
Dynamic "Closest Price" Labels: Declutter your chart! The indicator can intelligently display only the label for the Murrey level closest to the current price, keeping your view clean while providing critical information at a glance.
Integrated Alert System: Never miss a key level touch again. Set up alerts for when the price approaches major lines, the trading range, or all lines, customized to your trading style.
Advanced Pine Script Engine: Built on a modern codebase using User-Defined Types and dynamic drawing objects (line, box, label). This ensures the indicator is fast, efficient, and non-repainting, even on lower timeframes.
Intuitive User Interface: Settings are neatly organized into collapsible groups with clear tooltips, making it incredibly easy to customize every aspect of the indicator, from calculation parameters to colors.
A Note on Accuracy
Some of the other Murrey Math indicators on TradingView use different formulas and therefore produce varying results. This version has been carefully checked against MML indicators on other professional platforms to ensure its calculations are accurate and reliable.
Credits
This indicator is a complete overhaul and modernization of the original "MM Lines [JRL]" script. Full credit for the original calculation logic and concept goes to its author, JRL_6.
This is not just another Murrey Math indicator. It's a complete, ground-up modernization of the classic concept, rebuilt with the latest Pine Script features for unparalleled performance, accuracy, and usability. While preserving the core mathematical genius of T.H. Murrey's system, this version introduces a suite of modern tools designed for today's trader.
What are Murrey Math Lines?
Murrey Math Lines (MML) are a powerful system of support and resistance based on geometric formulas developed by T.H. Murrey. As a derivation of W.D. Gann's observations, Murrey's geometry simplifies Gann's theories into a more accessible application. The core principle is that price action tends to trend and retrace in 1/8th intervals.
These intervals create a "trading octave" with distinct levels, each having its own characteristic behavior:
[8/8] & [0/8] - Ultimate Resistance & Support: These lines are the hardest to break. They represent the top and bottom of the expected price range and are prime areas for reversals.
[4/8] - Major Pivot: This is the most significant level, offering the strongest support and resistance within the octave. Price has a high probability of stopping and reversing here.
[2/8] & [6/8] - Strong Pivot/Reversal: These are strong, secondary pivot points where price often struggles to pass through.
[3/8] & [5/8] - The Trading Range: The price tends to consolidate between these two lines about 50% of the time. A decisive break outside this range often signals the start of a new trend.
[1/8] & [7/8] - Weak Support/Resistance: These levels are weaker, but when price moves too quickly towards them, they can act as initial stopping points or areas for a minor reversal.
[+1, +2, etc.] & [-1, -2, etc.] - Extended Octave: These lines show extreme overbought and oversold conditions beyond the primary 0/8 to 8/8 octave.
Modern Enhancements in This Version
Session-Locked Precision: Anchor the Murrey Lines to the start of a specific trading session (e.g., NYSE open). The levels remain constant for the entire session, providing a stable and reliable framework for your daily analysis.
Visual Trading & Reversal Zones: Instead of just lines, this indicator can fill the key trading range (3/8 to 5/8) and reversal zones (0/8-1/8 & 7/8-8/8) with color, giving you an instant visual reference of market sentiment.
Dynamic "Closest Price" Labels: Declutter your chart! The indicator can intelligently display only the label for the Murrey level closest to the current price, keeping your view clean while providing critical information at a glance.
Integrated Alert System: Never miss a key level touch again. Set up alerts for when the price approaches major lines, the trading range, or all lines, customized to your trading style.
Advanced Pine Script Engine: Built on a modern codebase using User-Defined Types and dynamic drawing objects (line, box, label). This ensures the indicator is fast, efficient, and non-repainting, even on lower timeframes.
Intuitive User Interface: Settings are neatly organized into collapsible groups with clear tooltips, making it incredibly easy to customize every aspect of the indicator, from calculation parameters to colors.
A Note on Accuracy
Some of the other Murrey Math indicators on TradingView use different formulas and therefore produce varying results. This version has been carefully checked against MML indicators on other professional platforms to ensure its calculations are accurate and reliable.
Credits
This indicator is a complete overhaul and modernization of the original "MM Lines [JRL]" script. Full credit for the original calculation logic and concept goes to its author, JRL_6.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.