OPEN-SOURCE SCRIPT
已更新 MASL Market Structure Adaptive Lens

MASL (Market Structure Adaptive Lens) is a geometric market analysis framework designed to project market structure into a normalized coordinate system and measure underlying buyer/seller pressure through adaptive ratio geometry.
Unlike traditional indicators that rely solely on lagging averages, MASL transforms price action into an isotropic geometric space and constructs dynamic triangular pressure fields across defined structural anchors. This allows the system to evaluate market behavior not just in terms of price movement, but in terms of relative structural imbalance and directional force.
The core model generates a pressure metric (B) derived from the ratio between upper and lower geometric areas, representing seller dominance (positive values) and buyer dominance (negative values). This enables a continuous interpretation of market control rather than discrete signals.
MASL also introduces a freeze–revival structural state mechanism, where the main market range locks during structural breaks and a secondary adaptive channel tracks expansion until equilibrium is restored. This models real-world liquidity expansion and contraction phases more accurately than static range systems.
A visual triangle projection system maps multi-scale structural points (prime-based offsets) onto the chart, creating a “field-like” representation of market pressure distribution.
⚙️ Key Features
Isotropic Coordinate System normalization (volatility-adjusted geometry)
Geometric buyer/seller pressure model (B metric)
Adaptive range freeze & revival structure
Triangle-based market field projection
Real-time structural imbalance visualization
Multi-layer pressure barometer (0–100% split)
🎯 Concept
MASL is not a signal generator — it is a market structure lens that visualizes hidden pressure dynamics inside price movement.
Unlike traditional indicators that rely solely on lagging averages, MASL transforms price action into an isotropic geometric space and constructs dynamic triangular pressure fields across defined structural anchors. This allows the system to evaluate market behavior not just in terms of price movement, but in terms of relative structural imbalance and directional force.
The core model generates a pressure metric (B) derived from the ratio between upper and lower geometric areas, representing seller dominance (positive values) and buyer dominance (negative values). This enables a continuous interpretation of market control rather than discrete signals.
MASL also introduces a freeze–revival structural state mechanism, where the main market range locks during structural breaks and a secondary adaptive channel tracks expansion until equilibrium is restored. This models real-world liquidity expansion and contraction phases more accurately than static range systems.
A visual triangle projection system maps multi-scale structural points (prime-based offsets) onto the chart, creating a “field-like” representation of market pressure distribution.
⚙️ Key Features
Isotropic Coordinate System normalization (volatility-adjusted geometry)
Geometric buyer/seller pressure model (B metric)
Adaptive range freeze & revival structure
Triangle-based market field projection
Real-time structural imbalance visualization
Multi-layer pressure barometer (0–100% split)
🎯 Concept
MASL is not a signal generator — it is a market structure lens that visualizes hidden pressure dynamics inside price movement.
版本注释
What changed in this update:This update focuses on cleaner chart visualization and better object management.
The triangle clouds were previously created on every candle, which could cause visual clutter, especially on lower timeframes. In this version, the script now automatically deletes and refreshes the previous triangle objects, so only the latest active structure remains visible.
The Buyer/Seller pressure label was also improved. Instead of continuously creating new labels, the script now resets the previous label and displays only the current live pressure reading.
Range lines were optimized the same way. Old range lines are removed before new ones are drawn, preventing unnecessary accumulation on the chart.
Cloud transparency was increased and made adjustable, so users can make the triangle zones lighter and keep price action easier to read.
New display options were added:
Show/Hide Triangle Clouds
Show/Hide Buyer/Seller Label
Show/Hide Range Lines
Adjust Cloud Transparency
The original calculation logic was preserved. This update mainly improves readability, reduces clutter, and makes the indicator more comfortable to use on lower timeframes.
版本注释
What changed in this update:This update focuses on cleaner chart visualization and better object management.
The triangle clouds were previously created on every candle, which could cause visual clutter, especially on lower timeframes. In this version, the script now automatically deletes and refreshes the previous triangle objects, so only the latest active structure remains visible.
The Buyer/Seller pressure label was also improved. Instead of continuously creating new labels, the script now resets the previous label and displays only the current live pressure reading.
Range lines were optimized the same way. Old range lines are removed before new ones are drawn, preventing unnecessary accumulation on the chart.
Cloud transparency was increased and made adjustable, so users can make the triangle zones lighter and keep price action easier to read.
New display options were added:
Show/Hide Triangle Clouds
Show/Hide Buyer/Seller Label
Show/Hide Range Lines
Adjust Cloud Transparency
The original calculation logic was preserved. This update mainly improves readability, reduces clutter, and makes the indicator more comfortable to use on lower timeframe
版本注释
This update improves the Pressure Angle visualization and overall chart readability.What changed:
✓ Fixed the Pressure Angle position.
The Pressure Angle visual is now placed below the candles using an ATR-based offset, making it easier to read without covering price action.
✓ Added adjustable Pressure Angle placement.
Users can now control how far below the candles the angle visual appears.
✓ Added adjustable angle height.
The visual size of the Pressure Angle line can now be adjusted based on ATR.
✓ Fixed indentation and object structure issues.
The Pressure Angle block was reorganized to work correctly inside the script.
✓ Removed duplicate angle labels.
The script now creates only one clean Pressure Angle label.
✓ Preserved the original calculation logic.
The Range Buyer/Seller, Candle Buyer/Seller, and Pressure Angle calculations remain unchanged.
This update mainly focuses on cleaner visualization, better readability, and more flexible chart display.
版本注释
Update Notes✓ Reduced cloud opacity to improve chart visibility.
✓ Softened triangle cloud colors to make price action easier to see.
✓ Reduced triangle outline intensity for a cleaner and less distracting appearance.
✓ Improved overall chart readability, especially on lower timeframes.
✓ Preserved the original indicator logic and calculations.
✓ No changes were made to the pressure calculation engine.
This update is focused purely on visual improvements and a cleaner charting experience while maintaining the original behavior of the indicator.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。