INVITE-ONLY SCRIPT

区间顶底与超级趋势系统

87
Overview:
This is a comprehensive trading system designed to capture both trend reversals and trend-following opportunities. This script combines three core modules: Long-term EMA Tunnels (Vegas Style), Dynamic Support/Resistance Zones (based on historical highs/lows), and the classic SuperTrend. It aims to help traders identify "buy low, sell high" opportunities in ranging markets and catch major waves during strong trends.

Core Features Explained

1. EMA Long-term Trend Tunnel
  • Configuration: The script includes three specific Exponential Moving Averages (EMAs): 144, 169, and 233.
  • Function: These lines form a long-term support and resistance band. Price action above these lines is generally considered a bullish trend, while price below indicates a bearish trend.

2. Dynamic Range Top/Bottom
  • Logic: Calculates the current market structure based on the highest and lowest prices over a specific lookback period (default 130 bars), combined with ATR (Average True Range).
  • Visualization: Automatically draws Resistance Boxes (Red zone) at the top and Support Boxes (Green zone) at the bottom.
  • Data Panel: Displays the current ATR volatility percentage and a count of Bullish/Bearish K-lines within the period to help gauge the balance of power between buyers and sellers.
  • Signals: Reversal arrows appear when price tests these extreme zones and shows signs of rejection.

3. SuperTrend Integration
  • Tool: A classic trend-following indicator based on ATR and median price.
  • Usage: Acts as a reliable market noise filter. When SuperTrend is green, it is recommended to look for long setups; when red, look for short setups.
  • Highlighting: The script supports background highlighting, allowing you to identify the current trend direction at a glance.


How to Use This System
  • Trend Following Strategy: When the EMA lines are aligned upwards and the SuperTrend shows a Buy signal (Green background), look for long entries on pullbacks to the SuperTrend support line or near the EMAs.
  • Range Reversal Strategy: When price hits the upper or lower limits of the "Dynamic Range" and a SuperTrend flip or arrow reversal signal occurs, consider counter-trend trades.
  • Stop Loss: It is recommended to place stop losses just outside the SuperTrend line or the Dynamic Range boxes.


Settings
  • EMA: You can toggle the visibility of the EMA lines on or off.
  • Dynamic Range: Customizable lookback period (Length) and extension settings to fit your timeframe.
  • SuperTrend: Fully adjustable ATR Period and Multiplier to adapt to different asset volatilities.


Disclaimer: This script is for educational purposes only and does not constitute financial advice.

概述:
这是一个专为捕捉趋势反转与顺势交易设计的综合交易系统。本脚本结合了三大核心模块:长期均线隧道(Vegas风格)、动态支撑阻力区间(基于历史高低点)以及经典的超级趋势(SuperTrend)。旨在帮助交易者在震荡行情中识别高抛低吸的机会,并在趋势行情中抓住主升浪。

核心功能解析

1. EMA 长期趋势隧道 (EMA Tunnel)
  • 脚本内置了三条特定的指数移动平均线 (EMA):144、169 和 233。
  • 这些均线构成了长期趋势的支撑与阻力带。当价格位于这些均线之上时,通常视为多头趋势;反之则为空头趋势。

2. 动态顶底区间 (Dynamic Range Top/Bottom)
  • 原理:基于过去一定周期(默认130根K线)内的最高价和最低价,结合 ATR(平均真实波幅)计算出当前的市场结构。
  • 视觉化:图表中会自动绘制出顶部的阻力箱体(红色区域)和底部的支撑箱体(绿色区域)。
  • 数据面板:箱体旁会显示当前的 ATR 波动率百分比,以及该周期内的 K 线买入/卖出计数,帮助判断多空力量对比。
  • 信号:当价格触及这些极限区域并出现反转迹象时,会显示箭头提示。

3. 超级趋势 (SuperTrend)
  • 经典的趋势跟踪工具,基于 ATR 和价格中位数计算。
  • 用法:用于过滤市场噪音。当超级趋势为绿色时,建议只寻找做多机会;为红色时,建议只寻找做空机会。
  • 高亮显示:脚本支持背景高亮,让你一目了然当前的趋势方向。


如何使用本指标进行交易
  • 顺势交易:当 EMA 均线向上排列且 SuperTrend 显示买入信号(绿色背景)时,关注回调至 SuperTrend 支撑线或 EMA 附近的做多机会。
  • 区间反转:当价格触及“动态顶底区间”的上沿或下沿,并且出现 SuperTrend 变色或箭头反转信号时,可考虑反向操作。
  • 止损建议:建议将止损设置在 SuperTrend 线或动态箱体的外侧。

设置说明
  • 你可以开启/关闭 EMA 显示。
  • 可以自定义顶底区间的计算周期(Length)和延伸长度。
  • 可以调整 SuperTrend 的 ATR 周期和乘数以适应不同的波动率。

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน