OPEN-SOURCE SCRIPT

Momentum Adjustment Box

267
原理
一段动能的释放后,需要一段适当长度的调整结构消化。
把这个过程用代码可视化,定量判断
用于判断这段动能是否被调整结构消化掉了
属于主观和定量相结合。

设置建议
箱体宽度计算方式为:按价格幅度
箱体宽度系数:0.5


以下为AI简介

动能调整结构工具 (Momentum Adjustment Box)
概述
这是一个 TradingView Pine Script v5 自定义指标,用于在强动能走势之后自动绘制旗帜式调整结构箱体。

核心原理:强动能上涨/下跌需要等长的时间来消化。箱体取趋势线中位到顶端(上涨)或中位到底端(下跌)的高度,形成旗帜形状。

视觉效果:趋势线像旗杆,箱体像旗帜——高度只有完整价格幅度的一半,宽度由价格振幅自动换算,呈现近似正方形。

功能特点
旗帜式箱体:上涨时箱体区间 = [50%中位, 顶端];下跌时 = [底端, 50%中位]
橙色趋势线(旗杆)+ 红色半透明箱体(旗帜)
可选显示 50% 中轴线(黄色虚线)
箱体内显示"调整结构"标签 + 价格范围标签
右上角参数概览表格
所有颜色、线宽均可自定义
箱体宽度支持两种模式:按K线等宽 / 按价格幅度自动换算


---------------------------------------------------------------------------------------------------------------------principle
After a burst of kinetic energy, a properly timed adjustment phase is necessary for digestion.
Visualize this process with code and make quantitative judgments
Used to determine whether this kinetic energy has been adjusted and digested by the structure
It is a combination of subjective and quantitative approaches.

Configuration Recommendations
The calculation method for the box width is as follows: based on the price range
Cabinet width coefficient: 0.5


Here is an introduction to AI

Momentum Adjustment Box
Overview
This is a TradingView Pine Script v5 custom indicator designed to automatically plot flag pattern consolidation boxes following strong momentum trends.

Core Principle: A strong upward/downward momentum requires an equal amount of time to consolidate. The flag formation is created by measuring the height from the midpoint of the trend channel to the top (for an upward move) or from the midpoint to the bottom (for a downward move).

Visual effect: The trendline resembles a flagpole, while the box looks like a flag—its height is only half of the full price range, and its width is automatically converted based on price volatility, forming an approximately square shape.

Functional Features
Flag Pattern Box: During an uptrend, the box range = [50% median, top]; during a downtrend = [bottom, 50% median]
Orange trend line (flagpole) + red semi-transparent box (flag)
Optional display of 50% central axis (yellow dashed line)
The box displays the "Adjust Structure" label + price range label
Parameter Overview Table in the Top Right Corner
All colors and line widths can be customized
The box width supports two modes: equal width based on K-line / automatic conversion based on price range

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.