PINE LIBRARY
lib_murrey

Murrey Math level calculation and overbought/oversold zone detection.
Computes the 8 Murrey Math levels (0/8 through 8/8) plus extended levels (+1/8, -1/8). Returns the current zone (-2 to +2) indicating oversold, neutral, or overbought conditions. Configurable frame size and multiplier.
Ported from Murrey Math Lines by Nanda86:

**Exports:** `get_murrey_levels()` — returns key Murrey levels (0/8, 4/8, 8/8, +1/8, -1/8), zone value, and increment.
Used by: TCD - Trade Consistent & Disciplined (indicator)
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by 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.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by 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.