PINE LIBRARY
Updated MaidongLiquidityLibrary

Library "MaidongLiquidityLibrary"
Maidong Liquidity Library is a Pine Script library built to visualize static and dynamic liquidity structures using pivot relationships.
It is designed as a reusable visualization layer for indicators that want to highlight repeated highs, repeated lows, and sloped liquidity lines without embedding all liquidity drawing logic directly in the main script.
Core features:
- Detects static high-side liquidity
- Detects static low-side liquidity
- Detects dynamic high-side liquidity
- Detects dynamic low-side liquidity
- Draws dotted liquidity lines and labels directly on the chart
- Extends nearby liquidity structures into three-point formations when applicable
This library is useful when:
- You want to add a liquidity layer to an SMC-style indicator
- You want to track both repeated highs/lows and sloped liquidity structures
- You want a reusable liquidity visualization module across scripts
LLF(staticPivotPeriod, dynamicPivotPeriod, staticRangeSensitivity, dynamicRangeSensitivity, showStaticHighLiquidity, showStaticLowLiquidity, showDynamicHighLiquidity, showDynamicLowLiquidity)
Parameters:
staticPivotPeriod (int)
dynamicPivotPeriod (int)
staticRangeSensitivity (float)
dynamicRangeSensitivity (float)
showStaticHighLiquidity (bool)
showStaticLowLiquidity (bool)
showDynamicHighLiquidity (bool)
showDynamicLowLiquidity (bool)
Maidong Liquidity Library is a Pine Script library built to visualize static and dynamic liquidity structures using pivot relationships.
It is designed as a reusable visualization layer for indicators that want to highlight repeated highs, repeated lows, and sloped liquidity lines without embedding all liquidity drawing logic directly in the main script.
Core features:
- Detects static high-side liquidity
- Detects static low-side liquidity
- Detects dynamic high-side liquidity
- Detects dynamic low-side liquidity
- Draws dotted liquidity lines and labels directly on the chart
- Extends nearby liquidity structures into three-point formations when applicable
This library is useful when:
- You want to add a liquidity layer to an SMC-style indicator
- You want to track both repeated highs/lows and sloped liquidity structures
- You want a reusable liquidity visualization module across scripts
LLF(staticPivotPeriod, dynamicPivotPeriod, staticRangeSensitivity, dynamicRangeSensitivity, showStaticHighLiquidity, showStaticLowLiquidity, showDynamicHighLiquidity, showDynamicLowLiquidity)
Parameters:
staticPivotPeriod (int)
dynamicPivotPeriod (int)
staticRangeSensitivity (float)
dynamicRangeSensitivity (float)
showStaticHighLiquidity (bool)
showStaticLowLiquidity (bool)
showDynamicHighLiquidity (bool)
showDynamicLowLiquidity (bool)
Release Notes
v2Pine 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.