PROTECTED SOURCE SCRIPT

Binance Event Contract Strategy Coinpred

133


事件合约Coinpred 策略文档

自动事件合约信号胜率67%,具体详情每单的胜负及综合胜利可在coinpred.com订阅及查看

版本:Pine Script v6
指标名称:事件合约
作者:(加密社)
适用平台:TradingView
最后更新:2026年1月

一、策略概述

《事件合约Coinpred》是一个多因子融合的反转与突破交易策略,专为捕捉短期市场情绪突变、价格结构反转及量价共振信号而设计。该策略结合了以下核心模块:

- 9步价格序列计数与倒计时机制
- 线性回归通道突破与拒绝(Linear Regression Channel Rejection)
- RSI超买/超卖区域动态重置机制
- 量能验证型锚点突破(Volume-Confirmed Anchor Breakout)
- Keltner通道三角形态识别
- 多时间尺度蜡烛形态(双/三根K线组合)
- 趋势过滤(Hull MA快慢线)

策略通过五类独立但互补的看涨/看跌信号(L1–L5 / S1–S5) 提供高置信度入场提示,适用于日内或波段交易。

二、核心逻辑模块详解

1. 9步价格序列与倒计时系统

本策略实现了一套基于价格相对关系的序列计数机制,用于识别潜在的衰竭反转点:

- 多头序列启动:当 close close[4] 连续成立,计数从1开始,最高至9。
- 达到9后进入倒计时阶段:
- 多头倒计时:若 close = high[2],则倒计时递增。
- 该机制旨在捕捉连续推动后的动能衰竭。

应用于 L3/S3 信号。

2. 线性回归通道 + 标准差带(LR Channel)

- 基于最近 effectiveLen(动态长度,最大144,受RSI重置控制)计算线性回归线。
- 上下轨 = 回归线 ± stdevMult × 标准差(默认 stdevMult = 1)。
- 价格触及上轨后收阴(Upper Reject) 或 触及下轨后收阳(Lower Reject) 视为反转信号。

是 L2/L3/L4 和 S2/S3/S4 的关键条件。

3. RSI 动态重置机制

- RSI周期:5
- 超买线:80,超卖线:20
- 当 RSI 上穿80 或 下穿20 时,触发 resetCondition,重置 LR 通道计算起点。
- 此机制确保通道始终围绕“新趋势起点”构建,避免滞后。

控制 LR 通道的有效计算窗口,并参与 L5/S5 信号。

4. 量能验证型锚点突破(VCRe)

- 牛市锚点:过去20根K线中,当前收盘价 低于所有前20根K线的最低价(极端弱势),且成交量 > 20日均量 × 1.5。
- 熊市锚点:当前收盘价 高于所有前20根K线的最高价(极端强势),且放量。
- 锚点确立后,若价格 突破锚点高/低,并满足以下任3项即触发信号:
- 锚点本身放量
- 突破时放量(>均量×1.2)
- 价格位于200EMA之上(多)或之下(空)

构成 L1/S1 信号的核心。

5. Keltner通道三角形态(KC Triangle)

- 使用 Keltner Channel(源=收盘价,长度=20,乘数=2)
- 上升三角准备(Rise Triangle Ready):
- 连续3根K线收盘下跌(ta.falling(close, 3))
- 若启用通道确认:low HMA50 > HMA100
- 空头趋势:close L3/S3 > L2/S2 > L5/S5 > L4/S4
- 多信号共振时(如同一K线出现L1+L3),可靠性显著提升。

6. 蜡烛形态识别
双K线多头:两根K线实体小、影线长,第二根收于区间上80%,且为5日最低。
三K线多头:类似逻辑扩展至三根。
要求同时满足 LR下轨拒绝 + 价格波动限制(maxPct=0.05%)
构成 L4/S4 信号。

7. 趋势过滤器(Hull MA)
快线:HMA(50),慢线:HMA(100)
多头趋势:close > HMA50 > HMA100
空头趋势:close < HMA50 < HMA100
反转信号仅在对应趋势方向有效(如 L3 需处于多头趋势)
用于 L3/S3 信号过滤。

三、五大信号类型说明

信号 触发条件 特点
L1 / S1 VCRe突破 + LR拒绝 + CBC量能反转 最强信号,融合量价、结构、情绪
L2 / S2 极值Pivot + LR拒绝 + 微幅波动过滤 捕捉短期极值反转
L3 / S3 趋势内反转 + LR拒绝(延迟2根) 趋势回调中的高胜率机会
L4 / S4 双/三K线形态 + LR拒绝 + 波动限制 经典K线组合增强
L5 / S5 RSI离开超卖/超买区 + KC三角突破 结合动量与通道突破
所有信号均需满足 价格波动限制(maxPct = 0.0005,即0.05%),避免跳空干扰。


四、参数配置说明
参数 默认值 说明
swing_period 7 极值检测窗口
sensitivity 1.8 动量灵敏度
rsiLen 5 RSI周期(短周期增强敏感性)
lrBaseLen 144 LR通道最大长度
look_back 20 VCRe锚点回溯长度
confirm_in 2 锚点确认最大等待K线数
vol_ma_length 20 成交量均线周期
anchor_vol_multiplier 1.5 锚点所需最小量能倍数
confirm_vol_multiplier 1.2 突破确认量能倍数
macro_trend_len 200 趋势判断EMA周期
maxPct 0.0005 (0.05%) 单K线最大允许波动

五、使用建议
适用场景
高流动性品种(如股指、主流外汇、BTC)
15分钟及以上周期(避免噪音)
震荡市或趋势回调阶段
风险控制
所有信号均为入场提示,不包含止损/止盈逻辑。
建议配合 ATR 动态止损(如 1.5 × ATR(14))。
避免在重大新闻发布前后使用。
信号优先级
L1/S1 > L3/S3 > L2/S2 > L5/S5 > L4/S4
多信号共振时(如同一K线出现L1+L3),可靠性显著提升。

六、免责声明

本策略基于历史数据回测逻辑编写,不构成投资建议。市场有风险,交易需谨慎。请务必在模拟盘中充分测试后再用于实盘。

📌 提示:该策略强调“事件驱动”——即价格、量能、情绪在特定结构下的非随机共振。理解其底层逻辑比盲目跟随信号更重要。


自动事件合约信号胜率67%,具体详情每单的胜负及综合胜利可在coinpred.com订阅及查看





Event Contract Coinpred Strategy Documentation

Automated Event Contract signals have a win rate of 67%. Detailed trade-by-trade results and overall performance statistics are available via subscription at coinpred.com.

- Version: Pine Script v6
- Indicator Name: Event Contract
- Author: Crypto Community
- Platform: TradingView
- Last Updated: January 2026

1. Strategy Overview

Event Contract Coinpred is a multi-factor reversal and breakout trading strategy designed to capture short-term shifts in market sentiment, price structure reversals, and volume-price confluence signals. The strategy integrates the following core modules:

- 9-step price sequence counting and countdown mechanism
- Linear Regression Channel breakout and rejection
- Dynamic RSI overbought/oversold reset mechanism
- Volume-confirmed anchor breakout (VCRe)
- Keltner Channel triangle pattern recognition
- Multi-timeframe candlestick patterns (2-bar and 3-bar combinations)
- Trend filter using Hull Moving Averages (fast/slow lines)

The strategy generates five distinct yet complementary buy/sell signal types (L1–L5 / S1–S5) to provide high-confidence entry alerts, suitable for both intraday and swing trading.

2. Core Logic Modules Explained

1. 9-Step Price Sequence & Countdown System

This module implements a price-relative sequence counter to identify potential exhaustion reversals:

- Bullish sequence starts when close close[4] holds consecutively—count begins at 1 and maxes at 9.
- Upon reaching 9, the system enters a countdown phase:
-Bullish countdown: increments if close = high[2]
- Designed to detect momentum exhaustion after sustained directional moves.

✅ Applied in L3/S3 signals.

2. Linear Regression Channel with Standard Deviation Bands (LR Channel)

- Computes a linear regression line over a dynamic lookback window (effectiveLen, max 144 bars), reset by RSI conditions.
- Upper/Lower bands = regression line ± stdevMult × standard deviation (default stdevMult = 1).
- A rejection signal is triggered when:
- Price touches the upper band and closes bearish (Upper Reject), or
- Price touches the lower band and closes bullish (Lower Reject).

✅ Key condition for L2/L3/L4 and S2/S3/S4 signals.

3. RSI Dynamic Reset Mechanism

- RSI length: 5
- Overbought level: 80 | Oversold level: 20
- When RSI crosses above 80 or below 20, a resetCondition is triggered, resetting the LR channel calculation window.
- Ensures the regression channel always anchors to the most recent "trend origin," reducing lag.

✅ Controls LR channel validity and participates in L5/S5 signals.

4. Volume-Confirmed Anchor Breakout (VCRe)

- Bullish anchor: Current close is lower than the lowest low of the past 20 bars (extreme weakness) and volume > 20-period SMA × 1.5.
- Bearish anchor: Current close is higher than the highest high of the past 20 bars (extreme strength) and volume is elevated.
- Once an anchor is established, a breakout above/below the anchor range triggers a signal if at least 3 of the following are true:
- Anchor bar had high volume
- Breakout bar volume > SMA × 1.2
- Price is above (for long) or below (for short) the 200-period EMA

✅ Core logic for L1/S1 signals.

5. Keltner Channel Triangle Pattern (KC Triangle)

- Uses Keltner Channel (source = close, length = 20, multiplier = 2)
- Rising triangle setup:
- 3 consecutive falling closes (ta.falling(close, 3))
- If channel confirmation enabled: low HMA(50) > HMA(100)
- Downtrend: close L3/S3 > L2/S2 > L5/S5 > L4/S4
- Signal confluence (e.g., L1 + L3 on same bar) significantly increases reliability.

6. Disclaimer

This strategy is based on historical backtesting logic and does not constitute financial advice. Trading involves substantial risk. Always test thoroughly in a simulated environment before using in live markets.

📌 Note: This strategy emphasizes event-driven trading—the non-random confluence of price, volume, and sentiment within specific structural contexts. Understanding the underlying logic is far more valuable than blindly following signals.

Automated Event Contract signals achieve a 67% win rate. For detailed per-trade outcomes and cumulative performance metrics, subscribe at coinpred.com.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.