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)
Pine Bibliothek
Ganz im Sinne von TradingView hat dieser Autor seinen/ihren Pine Code als Open-Source-Bibliothek veröffentlicht. Auf diese Weise können nun auch andere Pine-Programmierer aus unserer Community den Code verwenden. Vielen Dank an den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Veröffentlichungen verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert.
Haftungsausschluss
Pine Bibliothek
Ganz im Sinne von TradingView hat dieser Autor seinen/ihren Pine Code als Open-Source-Bibliothek veröffentlicht. Auf diese Weise können nun auch andere Pine-Programmierer aus unserer Community den Code verwenden. Vielen Dank an den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Veröffentlichungen verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert.