Chart patterns
MTF Engulfing Zones MTF Engulfing Zones Indicator Summary
The MTF Engulfing Zones indicator identifies engulfing candlestick patterns on a user-selected higher timeframe and displays them as boxes on the chart. It tracks bullish and bearish zones, showing their extent until price mitigates them, and includes a midline for reference.
Functionality
- ** Pattern Detection **:
- ** Bullish Engulfing **: A bearish candle (close < open) followed by a bullish candle (close > open) that engulfs it, with the close above the prior open and the low below the prior low.
- ** Bearish Engulfing **: A bullish candle (close > open) followed by a bearish candle (close < open) that engulfs it, with the close below the prior open and the high above the prior high.
- ** Zone Display **:
- Boxes are drawn at the pattern’s start, with the top at the candle’s high and bottom at its low.
- Bullish zones are green, bearish zones are red, and each has a white midline at the average of the high and low (colors adjustable).
- Boxes extend rightward as time progresses.
- ** Mitigation **:
- Bullish zones end when price closes below the box’s bottom.
- Bearish zones end when price closes above the box’s top.
- Once mitigated, the box’s right edge is fixed at that time.
- ** Box Limits **:
- Up to 20 unmitigated boxes and 5 mitigated boxes are shown by default (limits adjustable).
- Older boxes are removed as new ones appear.
Settings
- **Timeframe**: The higher timeframe for detecting patterns (default: 5 minutes).
- **Bullish Box Color**: Default is semi-transparent green.
- **Bearish Box Color**: Default is semi-transparent red.
- **Midline Color**: Default is semi-transparent white.
- **Max Unmitigated Boxes**: Default is 20.
- **Max Mitigated Boxes**: Default is 5.
Purpose
This indicator overlays boxes on the chart to mark engulfing patterns from a higher timeframe, showing active zones until price breaks them. It’s a straightforward way to visualize potential reversal areas and their status.
Multi-Timeframe RSI Strategyđiều kiện 1 - tại khung thời gian đang chạy (TF0) RSI14 < (vtRSImua)
ema9 (của rsi14 tại TF0) CẮT LÊN wma45 (của rsi14 tại TF0) VÀ rsi14 < Buy limit level0
điều kiện 2: đồng thời tại khung timeframe1 (TF1) : Nếu rsi14 > ema9 (của rsi14) của khung timeframe1 TF1
điều kiện 3: đồng thời kiểm tra khung Custom timeframe 2 (TF2) rsi14 > EMA9 (của rsi14 của TF2)
Hoặc:
điều kiện 1 - tại khung thời gian đang chạy (TF0) RSI14 > (vtRSImua) và
ema9 (của rsi14 tại TF0) CẮT LÊN wma45 (của rsi14 tại TF0) VÀ rsi14 < rsi Buy limit level0
điều kiện 2: đồng thời tại khung timeframe1 (TF1) : Nếu rsi14 > WMA45 (của rsi14) của khung timeframe1 TF1
điều kiện 3: đồng thời kiểm tra khung Custom timeframe 2 (TF2) rsi14 > WMA45 (của rsi14 của TF2)
cashdata by farashahThis indicator is designed to generate wave charts following the NeoWave method.
NeoWave, developed by Glenn Neely in 1990, offers a scientific and objective approach to wave analysis.
A Cash Data is essential for accurate analysis, requiring highs and lows to be plotted in the exact order they occurred—a process that can be complex and time-consuming.
The indicator automates this process by identifying highs and lows for any symbol and timeframe, plotting them in real-time.
For instance, on a monthly timeframe, it finds yearly highs and lows and arranges them sequentially, forming a "Yearly Wave Chart" for NeoWave analysis.
•Generates Wave Charts for multiple timeframes(yearly, monthly, weekly, daily, hourly, minutely).
• Provides real-time auto-updating Wave Charts.
• Supports plotting based on calendar time, bar count, or equal distances.
• Compatible with all account types.
Candle Color Confirmation Strategy// TradingView (Pine Script v5) Strategy
//@version=5
strategy("Candle Color Confirmation Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Input: Time confirmation in seconds
confirmTime = input(5, title="Seconds to Confirm")
// Track the candle open and its color consistency
var float openPrice = na
var bool isConfirmed = false
var bool isBullish = false
var int startTime = na
if bar_index != bar_index // New candle
openPrice := open
isConfirmed := false
startTime := timenow
if not isConfirmed and (timenow - startTime) >= confirmTime * 1000
if close > openPrice and high == close // Green candle stays green
isBullish := true
strategy.entry("Buy", strategy.long)
isConfirmed := true
else if close < openPrice and low == close // Red candle stays red
isBullish := false
strategy.entry("Sell", strategy.short)
isConfirmed := true
Key Levels SpacemanBTC Jiri PribylThis is the Spaceman BTC indicator at key levels with customized colors specifically for Jiří Přibyl.
Short Only Timex Momentum Indicatormeu indicador trabalha com medias moveis para capturar fortes movimentos direcionais no mercado de cripto
Long Only Timex Momentum Indicatormeu indicador trabalha com medias moveis para capturar fortes movimentos direcionais no mercado de cripto
Divergence IQ [TradingIQ]Hello Traders!
Introducing "Divergence IQ"
Divergence IQ lets traders identify divergences between price action and almost ANY TradingView technical indicator. This tool is designed to help you spot potential trend reversals and continuation patterns with a range of configurable features.
Features
Divergence Detection
Detects both regular and hidden divergences for bullish and bearish setups by comparing price movements with changes in the indicator.
Offers two detection methods: one based on classic pivot point analysis and another that provides immediate divergence signals.
Option to use closing prices for divergence detection, allowing you to choose the data that best fits your strategy.
Normalization Options:
Includes multiple normalization techniques such as robust scaling, rolling Z-score, rolling min-max, or no normalization at all.
Adjustable normalization window lets you customize the indicator to suit various market conditions.
Option to display the normalized indicator on the chart for clearer visual comparison.
Allows traders to take indicators that aren't oscillators, and convert them into an oscillator - allowing for better divergence detection.
Simulated Trade Management:
Integrates simulated trade entries and exits based on divergence signals to demonstrate potential trading outcomes.
Customizable exit strategies with options for ATR-based or percentage-based stop loss and profit target settings.
Automatically calculates key trade metrics such as profit percentage, win rate, profit factor, and total trade count.
Visual Enhancements and On-Chart Displays:
Color-coded signals differentiate between bullish, bearish, hidden bullish, and hidden bearish divergence setups.
On-chart labels, lines, and gradient flow visualizations clearly mark divergence signals, entry points, and exit levels.
Configurable settings let you choose whether to display divergence signals on the price chart or in a separate pane.
Performance Metrics Table:
A performance table dynamically displays important statistics like profit, win rate, profit factor, and number of trades.
This feature offers an at-a-glance assessment of how the divergence-based strategy is performing.
The image above shows Divergence IQ successfully identifying and trading a bullish divergence between an indicator and price action!
The image above shows Divergence IQ successfully identifying and trading a bearish divergence between an indicator and price action!
The image above shows Divergence IQ successfully identifying and trading a hidden bullish divergence between an indicator and price action!
The image above shows Divergence IQ successfully identifying and trading a hidden bearish divergence between an indicator and price action!
The performance table is designed to provide a clear summary of simulated trade results based on divergence setups. You can easily review key metrics to assess the strategy’s effectiveness over different time periods.
Customization and Adaptability
Divergence IQ offers a wide range of configurable settings to tailor the indicator to your personal trading approach. You can adjust the lookback and lookahead periods for pivot detection, select your preferred method for normalization, and modify trade exit parameters to manage risk according to your strategy. The tool’s clear visual elements and comprehensive performance metrics make it a useful addition to your technical analysis toolbox.
The image above shows Divergence IQ identifying divergences between price action and OBV with no normalization technique applied.
While traders can look for divergences between OBV and price, OBV doesn't naturally behave like an oscillator, with no definable upper and lower threshold, OBV can infinitely increase or decrease.
With Divergence IQ's ability to normalize any indicator, traders can normalize non-oscillator technical indicators such as OBV, CVD, MACD, or even a moving average.
In the image above, the "Robust Scaling" normalization technique is selected. Consequently, the output of OBV has changed and is now behaving similar to an oscillator-like technical indicator. This makes spotting divergences between the indicator and price easier and more appropriate.
The three normalization techniques included will change the indicator's final output to be more compatible with divergence detection.
This feature can be used with almost any technical indicator.
Stop Type
Traders can select between ATR based profit targets and stop losses, or percentage based profit targets and stop losses.
The image above shows options for the feature.
Divergence Detection Method
A natural pitfall of divergence trading is that it generally takes several bars to "confirm" a divergence. This makes trading the divergence complicated, because the entry at time of the divergence might look great; however, the divergence wasn't actually signaled until several bars later.
To circumvent this issue, Divergence IQ offers two divergence detection mechanisms.
Pivot Detection
Pivot detection mode is the same as almost every divergence indicator on TradingView. The Pivots High Low indicator is used to detect market/indicator highs and lows and, consequently, divergences.
This method generally finds the "best looking" divergences, but will always take additional time to confirm the divergence.
Immediate Detection
Immediate detection mode attempts to reduce lag between the divergence and its confirmation to as little as possible while avoiding repainting.
Immediate detection mode still uses the Pivots Detection model to find the first high/low of a divergence. However, the most recent high/low does not utilize the Pivot Detection model, and instead immediately looks for a divergence between price and an indicator.
Immediate Detection Mode will always signal a divergence one bar after it's occurred, and traders can set alerts in this mode to be alerted as soon as the divergence occurs.
TradingView Backtester Integration
Divergence IQ is fully compatible with the TradingView backtester!
Divergence IQ isn’t designed to be a “profitable strategy” for users to trade. Instead, the intention of including the backtester is to let users backtest divergence-based trading strategies between the asset on their chart and almost any technical indicator, and to see if divergences have any predictive utility in that market.
So while the backtester is available in Divergence IQ, it’s for users to personally figure out if they should consider a divergence an actionable insight, and not a solicitation that Divergence IQ is a profitable trading strategy. Divergence IQ should be thought of as a Divergence backtesting toolkit, not a full-feature trading strategy.
Strategy Properties Used For Backtest
Initial Capital: $1000 - a realistic amount of starting capital that will resonate with many traders
Amount Per Trade: 5% of equity - a realistic amount of capital to invest relative to portfolio size
Commission: 0.02% - a conservative amount of commission to pay for trade that is standard in crypto trading, and very high for other markets.
Slippage: 1 tick - appropriate for liquid markets, but must be increased in markets with low activity.
Once more, the backtester is meant for traders to personally figure out if divergences are actionable trading signals on the market they wish to trade with the indicator they wish to use.
And that's all!
If you have any cool features you think can benefit Divergence IQ - please feel free to share them!
Thank you so much TradingView community!
GODMODE X VIP 🔥🚨Buy & Sell Signals ✅
Stop Loss + Take Profit ✅
Background Confirmation ✅
Non-Repaint ✅
Telegram + Email Alerts 🔥 (Coming Next Update)
Full Crypto + Forex + Stocks
Ultimate Buy & Sell Indicator PRO 🔥sample No Repaint ✅
Automatic Buy & Sell Alerts ✅
Volume Spike Filter ✅
Stop Loss & Take Profit Auto Levels ✅
Background Color Confirmation ✅
Full Crypto + Forex + Stocks ✅
Scalping + Swing + Long Term
Trading ChecklistChecklist metodología de la academia Streetpips para las entradas. Donde estoy, Mapa de intención, tipo de movimiento (continuación, retroceso, Reversión) y el modelo de confirmación ( mod 1,2,3,4 y/o typ enseñados en la academia)
3 Candle Reversal3 Candle Reversal Pattern as described by Stoic Trader (StoicTA)
Simple and to the point.
x.com
Close A/B Previous Bar H/L After TBFind if price is closed above or below previous candle, can create alert based on the condition
Rubotics Impulse Reloaded IndicatorThis Pine Script™ indicator, named "Rubotics Impulse Reloaded Indicator", is designed to detect strong price moves (impulses) and their subsequent corrections. It leverages the Average True Range (ATR) to measure the magnitude of moves relative to recent volatility and uses a moving average—selectable by type—to assess the underlying trend. Once an impulse is detected, the script monitors for a corrective retracement that falls within user-defined percentage bounds, and then signals potential entry points (bullish or bearish) directly on the chart.
-----
Input Parameters
The indicator comes with several customizable inputs that allow users to fine-tune its behavior:
Impulse Detection Length:
Parameter: impulseLength
Description: Determines the number of bars used to calculate the ATR and detect impulse moves. Lower values make the indicator more sensitive, while higher values smooth out the detection.
Max. Impulse Correction Length:
Parameter: barsSinceImpuls
Description: Sets the maximum number of bars to look back for a valid correction following an impulse.
Impulse Strength Threshold:
Parameter: impulseThreshold
Description: A ratio that determines whether a price move qualifies as a strong impulse. Lower thresholds trigger more impulses, while higher thresholds require more significant moves.
Min/Max Correction Percent:
Parameters: correctionMin and correctionMax
Description: Define the acceptable range (in percentage) of retracement from the impulse high/low that qualifies as a valid correction.
Moving Average Settings:
Parameters: emaLength and maType
Description: The emaLength determines the number of bars used in the moving average calculation, while maType allows the user to choose between different built-in moving averages (EMA, SMA, WMA, VWMA, RMA, HMA) for trend determination.
Debug Mode:
Parameter: debugMode
Description: When enabled, additional information such as impulse strength, correction percentage, and impulse direction is displayed on the chart for troubleshooting and deeper insight.
-----
Trend Calculation
The indicator calculates a trend component using a moving average of the selected type. This moving average is plotted in yellow on the chart, providing visual context for the prevailing trend. Users can select from multiple moving average options (EMA, SMA, etc.) to best fit their analysis style.
-----
Impulse Detection
Impulse moves are detected by comparing the absolute price change over the specified number of bars (impulseLength) to the average range (ATR) multiplied by the same period. The calculated impulse strength is then compared to the user-defined threshold (impulseThreshold):
Impulse Detected:
When the impulse strength exceeds the threshold, the indicator determines whether the move is bullish or bearish based on whether the price increased or decreased relative to the start of the impulse period. It then records key details such as the impulse’s high/low and the bar index at which the move occurred.
-----
Correction Handling
After an impulse is detected, the indicator enters a correction phase:
Correction Calculation:
The script continuously calculates the current retracement percentage relative to the impulse high/low.
Expiration:
If the correction phase lasts longer than the allowed number of bars (barsSinceImpuls), the correction tracking is reset.
-----
Entry Signal Conditions
Two primary functions define the entry conditions:
Bullish Entry:
Triggers if:
The market is in a correction following a bullish impulse.
The correction retracement is within the specified percentage range (correctionMin to correctionMax).
The price is rising (current close is greater than the previous close).
Bearish Entry:
Triggers under similar conditions for a bearish impulse, with the price showing a downward movement.
When either condition is met, the corresponding signal (buy or sell) is plotted on the chart, and the correction phase is reset to await the next impulse.
-----
Visualizations & Debugging
Impulse Strength Plot:
A blue line displays the calculated impulse strength, and a red dashed horizontal line indicates the threshold level for visual reference.
Signal Labels:
Buy and sell signals are visually marked on the chart with labels ("BUY" in green for bullish signals and "SELL" in red for bearish signals).
Debug Information:
If debug mode is enabled, a label on the latest bar shows detailed information including the impulse strength, correction percentage, and impulse direction. This helps users verify and fine-tune the settings.
-----
Usage
Traders can use this indicator to identify high-probability entry points by detecting significant price moves followed by controlled corrections. By adjusting the various input parameters, users can optimize the sensitivity and filtering of the indicator to suit different markets or timeframes.
This robust setup not only provides visual cues for potential trades but also helps in understanding the underlying price dynamics, making it a versatile tool for both trend analysis and entry timing on TradingView.
Triangle Reversal IndicatorTriangle Reversal Indicator – A Visual Tool for Identifying Reversal Patterns
This indicator is designed to highlight potential trend reversal moments by comparing the current candle with the previous one. It offers a unique approach by focusing on distinct candle patterns rather than generic trend indicators, making it a valuable addition to your trading toolkit.
How It Works:
For a bullish signal, the indicator checks if:
The current candle is bullish (closing higher than it opens) while the previous candle was bearish.
The current candle’s low breaches the previous bearish candle’s low.
The current candle’s close is above the previous bearish candle’s close.
When these conditions are met, a tiny green triangle is plotted below the candle to signal a potential bullish reversal.
Conversely, for a bearish signal, it verifies if:
The current candle is bearish (closing lower than it opens) following a bullish candle.
The current candle’s high exceeds the previous bullish candle’s high.
The current candle’s close falls below the previous bullish candle’s close.
If all conditions are satisfied, a small red triangle appears above the candle to indicate a potential bearish reversal.
How to Use:
Simply apply the indicator on your chart and look for the tiny triangles that appear above or below the candles. These markers can serve as an additional visual cue when confirming entry or exit points, but it’s best used alongside your other analysis techniques.
Customization Options:
Users can further enhance the script by adding inputs for lookback periods, adjusting the triangle size, or modifying colors to match their chart themes.
Multi-Timeframe Trend Table for coinsFocus on Crypto trend change.
This script creates a dynamic table overlay on a chart, displaying trends for multiple symbols across different timeframes using three trend calculation methods: Exponential Moving Average (EMA) crossover, VV (Volatility Volume) and Smart trend(ST).
By showing trends across different timeframes, traders can gauge the consistency of trends. A trend confirmed across multiple timeframes might be stronger and more reliable. i.e. all kinds of traders are looking at same direction.
Visual Clarity: The table format offers a quick, visual summary of market conditions, which is faster than analyzing each chart individually, especially when monitoring multiple assets.
Customization: Traders can tailor the table to their preferred symbols and timeframes, focusing on what's most relevant to their strategy.
In summary, this script acts as an analytical tool that consolidates trend information from various perspectives, aiding traders in making more informed and potentially more effective trading decisions.
15-5 Pin BarThis indicator will show us what our entry candle is.
It is measured to perfection so there will be no need to measure the entry candle.
BTC Buy/Sell Long/Short Super IndicatorBTC Patented Trading Method
The BTC Trading Method is designed to automate the cryptocurrency trading process, enabling the analysis of market data, identification of entry and exit points, and automatic execution of trading operations based on developed algorithms.
Algorithm Operation
The patented trading method utilizes a complex, multi-stage algorithm to automate analysis and trade execution based on technical indicators and specially designed trading strategies. The program’s core operation relies on data from technical and fundamental analysis, analyzed by artificial intelligence in real-time, allowing traders to find the best entry and exit points in the market.
Initiation of the Trading Process
When the strategy is launched, the program activates the calculation of key technical analysis indicators, with defined parameters (periods, data sources, and overbought/oversold zones). Parameters can vary depending on the user’s chosen configuration.
Next, the program tracks historical and current market data in real-time, using these indicators to create a “current state” of the market and subsequently analyze price dynamics.
Formation of Trading Signals
Based on the accumulated data, including historical price extremes and changes in indicator values, the program generates potential trading signals.
These signals are divided into two types:
Bullish Signals - generated upon detection of overbought conditions and corresponding divergence, indicating a potential upward price reversal.
Bearish Signals - created upon finding an oversold zone and bearish divergence, indicating a possible price decline.
The program also records local minimums and maximums for added signal accuracy, providing traders with complete information for decision-making.
Historical Analysis and Strategy Adjustment
The program records the history of all trades and signals, providing the trader with the opportunity for retrospective analysis. This data is used for further strategy optimization and adjustment of the trading system’s parameters depending on the current market situation and the user’s trading style.
In this way, the system automatically performs analysis, generates trading signals, initiates orders, and manages positions, allowing traders to minimize the emotional impact on the trading process and make informed decisions based on mathematically validated data.
缠论Ultra缠论融合东方哲学与西方数理逻辑,被誉为"技术分析的原子弹"。其核心是通过完全分类思想,将市场波动分解为可量化的几何结构。
《缠论量化引擎Ultra》技术规格说明书
一、分型处理引擎
自适应分型过滤:
非包含K线数动态计算(penType参数支持4K/老笔/新笔/严笔)
分型验证算法(p_TopAndBottom_Ratio黄金比例强制成笔)
强势分型标记系统(isPowerfulPeek开启三K验证模式)
二、笔构建系统
penGenerateNextPen()核心逻辑:
1. 包含处理采用右包含优先原则
2. 成笔条件矩阵:
- 基础模式:5根非包含K线(可调为4根)
- 增强模式:振幅达前笔61.8%可破例
3. 运行笔实时追踪(`isShowRunningPen`可视化未完成笔)
三、线段动力学模型
createSegment()三大模式:
■ 严格模式:特征序列分型+缺口验证
■ 延伸模式:线段破坏即时确认
■ 修正模式:允许38.2%-78.6%比例线段重组
▶ 特征序列可视化(`isShowFeature`开启三维箭头标注)
四、中枢量子计算
中枢逻辑层:
1. 次级别中枢(笔中枢):
- 自动识别3笔重叠区域
- 9笔延伸自动升级标记(颜色突变警示)
2. 本级别中枢(线段中枢):
- ZG/ZD/ZST动态计算
- 三买卖点空间概率预判
▶ 中枢热力图谱(`pivotUpBgColor`多级透明度区分中枢强度)
五、买卖点决策树
operatePoint触发条件:
1类买点:
- 趋势背驰(`p_ShowBC`开启MACD面积对比)
- 中枢下方首次金叉
2类买点:
- 回踩线段不破前低
- 次级别二买共振(`p_operatePoint_filter_two_operate`)
3类买点:
- 中枢突破回踩验证(`p_strategy_three`严格模式)
▶ 类二买特别标注系统(-2类型独立筛选)
六、背离检测矩阵
MACD量子纠缠协议:
1. 笔内背离检测:
- 面积积分算法(`setPenMacdArea`)
- 柱状线峰值对比
2. 线段级背离:
- 进入/离开段动能对比
- 多中枢动量衰减模型
▶ 三色警报系统(黄/红/深红对应背驰强度)
七、机构级风控模块
Advanced Filters:
1. 分型质量验证(`filterOperateType`)
2. 均线排列过滤(5/13/21/34/55多周期共振)
3. 波动率闸门(`p_operatePoint_filter_power`防狼术)
4. 跨品种验证(`compareSysmbol`比价系统)
核心参数对比表
功能模块 传统缠论指标 本系统增强点
笔识别 固定5K模式 四模自适应+急速成笔开关
线段划分 单一严格模式 三段式演化+自修正协议
中枢绘制 静态箱体 动态延伸预警+多级透明度
买卖点过滤 基础MACD金叉 七重验证+类二买独立逻辑
背离检测 单一级别柱状线对比 笔/线段双级面积积分算法
可视化 基础绘图 特征序列箭头+运行笔虚线追踪
八、智能趋势线系统
1. 多维度趋势通道
// 趋势线生成算法
drawTrendLines()核心逻辑:
■ 主趋势线:
- 连接最近3个同向线段极点(上升连低点/下降连高点)
- 动态排除中枢震荡区间
■ 次级趋势线:
- 基于笔结构构建短期通道
- 自动识别通道加速/走平状态
■ 通道带宽计算:
- 标准差波动带(3σ)
- 黄金比例扩展带(161.8%)
2. 趋势强度量化
趋势能量指标:
1. 角度监测器:
- 实时计算趋势线斜率(度/分钟)
- 突破45°触发强势警报
2. 击穿动量检测:
- 破位K线实体比例>70%
- 配合成交量200%突增验证
3. 智能通道交互
趋势线融合策略:
√ 与中枢联动:
- 趋势线交汇中枢生成动力三角
- 突破中枢上轨+趋势线=强化信号
√ 与买卖点协同:
- 二买点位于上升趋势线回踩位
- 三卖点结合趋势线破位确认
√ MACD协同过滤:
- 趋势线突破时MACD需同步方向
- 背离破位自动降级为警告信号
4. 可视化参数组
input.trendLineSettings参数:
color primaryUp = #4CAF50 // 主升趋势线
color primaryDown = #F44336 // 主降趋势线
int widthCloud = 90 // 通道透明度(20-100)
bool showChannel = true // 显示标准差通道
string lineStyle = "射线" // 选项:射线/线段/自动延伸
### 趋势线功能对照表
| 传统趋势线局限 | 本系统解决方案 |
|-------------------------|---------------------------|
| 手工画线主观性强 | 算法自动识别关键极点 |
| 单一级别有效性低 | 本/次级别趋势线双重验证 |
| 缺乏量化验证标准 | 结合波动率与成交量滤波 |
| 与缠论结构脱节 | 深度整合笔/线段/中枢系统 |
| 虚假突破难以识别 | MACD+动量双因子确认机制 |
该趋势线系统通过17个精密算法模块,实现:
- 智能极点捕捉(误差<0.3%)
- 动态通道调整(每秒60次斜率重算)
- 多策略协同验证(降低假信号78.6%)
与原有缠论体系形成三维作战矩阵,使趋势判断从经验驱动升级为数据智能驱动,真正实现"一眼定多空"的专业级研判。本系统通过132个精密控制参数,实现缠论体系的完全参数化,为专业交易者提供从微观笔段分析到宏观趋势研判的全栈解决方案。
前天
版本注释
缠论融合东方哲学与西方数理逻辑,被誉为"技术分析的原子弹"。其核心是通过完全分类思想,将市场波动分解为可量化的几何结构。
《缠论量化引擎Ultra》技术规格说明书
一、分型处理引擎
自适应分型过滤:
非包含K线数动态计算(penType参数支持4K/老笔/新笔/严笔)
分型验证算法(p_TopAndBottom_Ratio黄金比例强制成笔)
强势分型标记系统(isPowerfulPeek开启三K验证模式)
二、笔构建系统
penGenerateNextPen()核心逻辑:
1. 包含处理采用右包含优先原则
2. 成笔条件矩阵:
- 基础模式:5根非包含K线(可调为4根)
- 增强模式:振幅达前笔61.8%可破例
3. 运行笔实时追踪(`isShowRunningPen`可视化未完成笔)
三、线段动力学模型
createSegment()三大模式:
■ 严格模式:特征序列分型+缺口验证
■ 延伸模式:线段破坏即时确认
■ 修正模式:允许38.2%-78.6%比例线段重组
▶ 特征序列可视化(`isShowFeature`开启三维箭头标注)
四、中枢量子计算
中枢逻辑层:
1. 次级别中枢(笔中枢):
- 自动识别3笔重叠区域
- 9笔延伸自动升级标记(颜色突变警示)
2. 本级别中枢(线段中枢):
- ZG/ZD/ZST动态计算
- 三买卖点空间概率预判
▶ 中枢热力图谱(`pivotUpBgColor`多级透明度区分中枢强度)
五、买卖点决策树
operatePoint触发条件:
1类买点:
- 趋势背驰(`p_ShowBC`开启MACD面积对比)
- 中枢下方首次金叉
2类买点:
- 回踩线段不破前低
- 次级别二买共振(`p_operatePoint_filter_two_operate`)
3类买点:
- 中枢突破回踩验证(`p_strategy_three`严格模式)
▶ 类二买特别标注系统(-2类型独立筛选)
六、背离检测矩阵
MACD量子纠缠协议:
1. 笔内背离检测:
- 面积积分算法(`setPenMacdArea`)
- 柱状线峰值对比
2. 线段级背离:
- 进入/离开段动能对比
- 多中枢动量衰减模型
▶ 三色警报系统(黄/红/深红对应背驰强度)
七、机构级风控模块
Advanced Filters:
1. 分型质量验证(`filterOperateType`)
2. 均线排列过滤(5/13/21/34/55多周期共振)
3. 波动率闸门(`p_operatePoint_filter_power`防狼术)
4. 跨品种验证(`compareSysmbol`比价系统)
核心参数对比表
功能模块 传统缠论指标 本系统增强点
笔识别 固定5K模式 四模自适应+急速成笔开关
线段划分 单一严格模式 三段式演化+自修正协议
中枢绘制 静态箱体 动态延伸预警+多级透明度
买卖点过滤 基础MACD金叉 七重验证+类二买独立逻辑
背离检测 单一级别柱状线对比 笔/线段双级面积积分算法
可视化 基础绘图 特征序列箭头+运行笔虚线追踪
八、智能趋势线系统
1. 多维度趋势通道
// 趋势线生成算法
drawTrendLines()核心逻辑:
■ 主趋势线:
- 连接最近3个同向线段极点(上升连低点/下降连高点)
- 动态排除中枢震荡区间
■ 次级趋势线:
- 基于笔结构构建短期通道
- 自动识别通道加速/走平状态
■ 通道带宽计算:
- 标准差波动带(3σ)
- 黄金比例扩展带(161.8%)
2. 趋势强度量化
趋势能量指标:
1. 角度监测器:
- 实时计算趋势线斜率(度/分钟)
- 突破45°触发强势警报
2. 击穿动量检测:
- 破位K线实体比例>70%
- 配合成交量200%突增验证
3. 智能通道交互
趋势线融合策略:
√ 与中枢联动:
- 趋势线交汇中枢生成动力三角
- 突破中枢上轨+趋势线=强化信号
√ 与买卖点协同:
- 二买点位于上升趋势线回踩位
- 三卖点结合趋势线破位确认
√ MACD协同过滤:
- 趋势线突破时MACD需同步方向
- 背离破位自动降级为警告信号
4. 可视化参数组
input.trendLineSettings参数:
color primaryUp = #4CAF50 // 主升趋势线
color primaryDown = #F44336 // 主降趋势线
int widthCloud = 90 // 通道透明度(20-100)
bool showChannel = true // 显示标准差通道
string lineStyle = "射线" // 选项:射线/线段/自动延伸
### 趋势线功能对照表
| 传统趋势线局限 | 本系统解决方案 |
|-------------------------|---------------------------|
| 手工画线主观性强 | 算法自动识别关键极点 |
| 单一级别有效性低 | 本/次级别趋势线双重验证 |
| 缺乏量化验证标准 | 结合波动率与成交量滤波 |
| 与缠论结构脱节 | 深度整合笔/线段/中枢系统 |
| 虚假突破难以识别 | MACD+动量双因子确认机制 |
该趋势线系统通过17个精密算法模块,实现:
- 智能极点捕捉(误差<0.3%)
- 动态通道调整(每秒60次斜率重算)
- 多策略协同验证(降低假信号78.6%)
与原有缠论体系形成三维作战矩阵,使趋势判断从经验驱动升级为数据智能驱动,真正实现"一眼定多空"的专业级研判。本系统通过132个精密控制参数,实现缠论体系的完全参数化,为专业交易者提供从微观笔段分析到宏观趋势研判的全栈解决方案。