OPEN-SOURCE SCRIPT

💀 DarkPool's Moving Averages 💀

18
DarkPool's Moving Averages is a consolidated trend analysis tool that allows traders to plot up to five distinct moving averages (MAs) within a single indicator pane. This script is designed to declutter trading charts by replacing multiple individual indicator instances with one comprehensive solution.

Beyond standard plotting, the indicator features Multi-Timeframe (MTF) capabilities, allowing users to overlay higher-timeframe trends (e.g., Daily or Weekly averages) onto lower-timeframe charts (e.g., 5-minute or 1-hour). It also utilizes dynamic color-coding to visually indicate instantaneous trend direction based on the slope of the moving average.

Key Features

5-in-1 Architecture: Configure and toggle up to five independent moving averages simultaneously.

Multi-Timeframe (MTF) Support: Calculate moving averages based on timeframes different from the current chart (e.g., view a 200-day EMA while trading on a 15-minute chart).

Dynamic Trend Coloring: Lines automatically change color based on their slope (rising vs. falling) to provide immediate visual trend confirmation.

Versatile Calculation Models: Supports major averaging methods including SMA, EMA, WMA, RMA, VWMA, and HMA.

How to Use

1. Trend Identification The primary use of this tool is to identify the market trend direction at a glance.

Bullish Trend: When the Moving Average line is colored in the "Bullish Color" (default: dark/green tones) and sloping upward.

Bearish Trend: When the Moving Average line is colored in the "Bearish Color" (default: light/red tones) and sloping downward.

2. Dynamic Support and Resistance Traders can use specific lengths (e.g., 50, 100, 200) to identify dynamic support and resistance levels.

Entry: In an uptrend, price retracing to a rising MA often presents a buying opportunity.

Exit: In a downtrend, price rallying to a falling MA often presents a selling opportunity.

3. The "Ribbon" Effect By enabling multiple MAs with sequential lengths (e.g., 10, 20, 50, 100, 200), traders can visualize the strength of the trend.

Expansion: When the lines spread apart, the trend is strengthening.

Contraction/Crossover: When the lines converge or cross, the trend is weakening or consolidating.

4. Multi-Timeframe Analysis Use the "Timeframe" input in the General Settings to lock the calculations to a specific period.

Example: Set the Timeframe to "D" (Daily) and the Length to 200. You can now drop down to a 5-minute chart, and the indicator will still display the significant 200-Day Moving Average, acting as a major anchor for intraday price action.

Configuration Guide

General Settings

Timeframe: Determines the data source for all MAs. Leave at default to use the current chart's timeframe, or select a specific higher timeframe for macro analysis.

Price Source: Selects the data point used for calculation (Close, Open, High, Low, etc.).

Moving Average Configurations (MA1 - MA5) Each of the five slots allows for individual customization:

Enable: Toggle the visibility of the specific MA.

Type: Select the calculation method.

SMA: Simple Moving Average (Standard).

EMA: Exponential Moving Average (Weight on recent data).

HMA: Hull Moving Average (Reduced lag).

VWMA: Volume Weighted Moving Average.

WMA/RMA: Weighted and Rolling Moving Averages.

Note: While many types are listed, the script explicitly calculates the types listed above; others may default to standard SMA behavior.

Length: The lookback period (e.g., 20, 50, 200).

Colors (Bull/Bear): Customize the colors used when the line is rising versus falling.

Line Style: Choose between Solid, Dashed, or Dotted lines to differentiate between the five MAs.

Disclaimer: This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a guarantee of future results.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.