OPEN-SOURCE SCRIPT
Mis à jour

Octa-MA Trend Spectrum (8-in-1 EMA/SMA) | Save Indicator Slots

654
💡 设计初衷 (Design Purpose)

在 TradingView 的免费方案中,每个图表限制只能添加 2 或 3 个指标。如果你想同时观察 510、20、50、120、200 等多条均线,指标位很快就会被占满,导致无法添加 MACD 或 RSI 等其他工具。
Octa-MA Trend Spectrum 正是为了解决这一痛点而生!它将 8 条完全可自定义的均线 整合进一个指标位中,为免费用户释放更多操作空间。

✨ 核心功能 (Key Features)

🚀 8合1 极度整合: 仅占用 1个 指标位,即可同时显示 8 条移动平均线。
🔄 一键切换算法: 可以在设置中全局切换 EMA (指数移动平均) 或 SMA (简单移动平均),无需重新加载脚本。
🎨 高度自定义:
  • 每条均线均可独立开启/关闭。
  • 完全自主配置长度(Length)、颜色和线宽。

🌈 趋势光谱视觉: 默认配置了由浅入深的色彩梯度,方便一眼识别趋势的强度、发散与收敛。

📈 使用指南 (How to use)

  • 趋势确认: 当均线呈多头排列(短线在长线上方)且颜色层次分明时,代表强趋势市场。
  • 动态支撑/阻力: EMA 60 和 200 通常作为牛熊分界线,结合本指标的 8 条线,你可以更精准地捕捉到价格的回踩位置。
  • 节省空间: 将本指标添加后,你依然有充足的指标位去添加成交量、振荡指标(RSI/KDJ)或其他复杂的策略工具。


🛠️ 声明 (Disclaimer)

本脚本基于 Pine Script v5 开发,性能轻量,不会导致图表卡顿。

🚀 The Ultimate Solution for Free Users
TradingView Basic/Free accounts are limited to only 2 or 3 indicators per chart. If you want to track the standard "Rainbow" or "Ribbon" setup (e.g., 5, 10, 20, 50, 100, 200 MAs), you would normally run out of slots instantly—leaving no room for RSI, MACD, or Volume.

Octa-MA Trend Spectrum solves this by packing 8 fully customizable Moving Averages into one single indicator slot. Save your slots for other technical tools without sacrificing your trend analysis!

✨ Key Features
8-in-1 Integration: View up to 8 different moving averages while using only 1 indicator slot.

Global Algorithm Toggle: Switch between EMA (Exponential) and SMA (Simple) globally with a single click in the settings.

Total Customization:
  • Individually toggle each of the 8 lines on/off.
  • Fully adjustable lengths, colors, and line widths.
  • Supports any price source (Close, Open, HL2, etc.).

Visual Trend Spectrum: Default color gradients help you visualize trend strength, fan-outs (expansion), and squeezes (consolidation) at a glance.

📈 How to Use
  • Trend Confirmation: When the lines are stacked in order (short-term above long-term) and fanning out, it indicates a strong trending market.
  • Dynamic Support/Resistance: Use the longer-term MAs (like the 50, 144, or 200) as high-probability zones for price pullbacks and bounces.
  • Optimization: Use the first 4 lines for short-term "scalping" momentum and the last 4 for "big picture" bull/bear bias.

🛠️ Technical Details
Built on Pine Script v5, this script is lightweight and high-performance. It won't lag your charts, even on low-spec devices or mobile.
Notes de version
fixed some bugs
Notes de version
fixed some bugs
Notes de version
fixed some bugs

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.