PROTECTED SOURCE SCRIPT

MARS10u-smc

41
一、 主要功能
这是一个综合性的市场分析工具,主要围绕市场结构和成交量订单块两大核心概念,用于识别趋势、关键价位和潜在的交易机会。它属于“聪明钱概念”交易策略范畴。

二、 核心模块

市场结构:自动识别并绘制市场的摆动高/低点、突破结构和破位点。可以标记出市场结构转变的关键位置。

成交量订单块:识别结合了显著成交量的价格区间,并区分为买入订单块和卖出订单块。可以显示这些区域的“活动”(被价格测试的情况)。

公允价值缺口:识别并可视化价格跳空形成的“公允价值缺口”。

映射结构:用线连接历史上的关键点,形成结构线。

三、 关键特性

可定制性:提供了大量输入参数,用户可以控制显示的摆动数量、颜色、订单块大小、FVG阈值等。

视觉丰富:使用线条、标签、方框、气泡等多种绘图对象来清晰展示分析结果。

内部优化:代码中包含内存管理逻辑,限制了最大绘图对象数量,确保性能。

I. Main Functions
This is a comprehensive market analysis tool focused on two core concepts: Market Structure and Volumetric Order Blocks. It is used to identify trends, key price levels, and potential trading opportunities. It falls under the category of "Smart Money Concepts" trading strategies.

II. Core Modules

Market Structure: Automatically identifies and plots market swing highs/lows, break of structure (BOS), and change of character (CHoCH) points. It marks key locations where market structure shifts.

Volumetric Order Blocks: Identifies price ranges combined with significant volume, distinguishing between buy order blocks and sell order blocks. It can show the "activity" (price testing) within these zones.

Fair Value Gaps: Identifies and visualizes "Fair Value Gaps" formed by price gaps.

Mapping Structure: Connects historical key points with lines to form structural lines.

III. Key Features

Customizability: Offers a large number of input parameters, allowing users to control the number of swings displayed, colors, order block size, FVG threshold, etc.

Visual Richness: Uses various drawing objects like lines, labels, boxes, and bubbles to clearly present analysis results.

Internal Optimization: Includes memory management logic that limits the maximum number of drawing objects to ensure performance.

Detailed Classification: Distinguishes order blocks into different states such as active, mitigated (breakers), and displays internal buy/sell activity.

Algorithm Options: Provides two algorithms, "Extreme Points" and "Adjusted Points," for calculating market structure.

IV. User Interface
The indicator provides two main control groups via TradingView's "Inputs" settings panel:

Market Structure: Controls swings, mapping, candle coloring, etc.

Volumetric Order Blocks: Controls the display, quantity, color, mitigation method of order blocks, etc.

Fair Value Gaps: Controls the display and filtering of FVGs.

V. Technical Implementation

Version: Pine Script v5.

Data Structure: Uses various custom types to organize and manage complex data.

Core Algorithm: Identifies extreme points by iterating through historical bars and applies logic combining volume and price action.

Drawing Management: Uses a store object to centrally manage all drawing objects and cleans them up at the end of the script.

In summary, this is a complex analysis tool designed for advanced traders or students to visualize market microstructure, order flow, and supply/demand zones. It aims to help users identify key areas and structural changes on the chart to assist in trading decisions.

详细分类:将订单块区分为未失效、已失效(突破块)、显示内部买卖活动等不同状态。

算法选项:提供了“极端点”和“调整点”两种算法来计算市场结构。

四、 用户界面
指标通过TradingView的“输入”设置面板提供两组主要控制:

市场结构:控制摆动、映射、蜡烛着色等。

成交量订单块:控制订单块的显示、数量、颜色、失效方式等。

公允价值缺口:控制FVG的显示与过滤。

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.