Free Indicator

Any 8 Moving Averages for TradingView

Any 8 Moving Averages indicator on a chart showing color-changing moving average lines with clouds and a percentage gap table

Any 8 Moving Averages is a free TradingView indicator that puts 8 independently configurable MAs on your chart. Choose EMA, SMA, HMA, WMA, VWMA, or RMA for each. Lines and clouds change color as price moves above or below each level. Includes cross alerts, a percentage gap table, and an external trend signal other indicators can use as a filter.

Built by Lane Dotson · Last updated · View on TradingView →
This is a free indicator - Add it to your TradingView charts at no cost.
Add to TradingView →

WHAT IT DOES

Core Features

Eight independently configurable moving averages with color-changing lines, clouds, a percentage gap table and cross alerts. Everything you need to track trend direction and distance from key levels at a glance.

8 Configurable Moving Averages

Each of the 8 moving averages can be individually set to any type: EMA, SMA, HMA, WMA, VWMA or RMA. You can change the length, colors and type of each one independently, and turn off any you don’t need so you only see the moving averages that matter for your setup.

Color-Changing Lines & Clouds

Each moving average paints green when price is above it and red when price is below it. Colored clouds fill the space between price and each moving average, giving you an instant visual read on whether price is trading above or below each level and how far away it is.

Percentage Gap Table

An on-chart table shows how far away price is from each moving average as a percentage, with each row color-coded to match its corresponding moving average. The table can be repositioned to different areas of the chart or turned off entirely if you don’t need it.

Cross Alerts

You can set alerts for when price crosses each moving average. This lets you get notified of key level breaks without watching the chart.

External Trend Direction Output

Added in the April 2025 update, this feature sends an overall trend direction signal that other indicators can read as a filter. Any moving average that is turned on counts toward the signal. If the close price is above all enabled moving averages, it outputs a bullish value of 1. If below all, it outputs a bearish value of -1. If mixed, it outputs a neutral value of 0. The output is labeled “Trend Direction To Send To External Indicators.”

INTERPRETATION GUIDE

How to Use the Moving Averages

Reading the Colors

Using the Percentage Gap

Before taking a trade, check the percentage gap table to make sure there is a big enough distance to the next moving average. If the gap is too small, the risk/reward on the trade may not be worth it. Trade in the direction of the trend and use the percentage gaps to gauge how much room price has to move before hitting the next level.

CONFIGURATION

Settings Overview

Each of the 8 moving averages has its own group of settings. You can configure them independently to build the exact moving average structure you want on your chart.

Main Settings

Setting Default Description
MA Type (per MA) Varies The type of moving average to use. Options: EMA, SMA, HMA, WMA, VWMA, RMA.
Length (per MA) Varies The lookback period for the moving average calculation.
On/Off (per MA) On Toggle each moving average on or off individually.
Colors (per MA) Green/Red Custom colors for the bullish and bearish states of each moving average line and cloud.
Percentage Table On Toggle the percentage gap table on or off.
Table Position Top Right Move the percentage gap table to different areas on the chart.

GOOD TO KNOW

Important Notes & Limitations

VWMA requires volume data. Instruments without reported volume (some forex pairs on certain brokers) will not calculate VWMA correctly.
Running all 8 moving averages simultaneously may make the chart visually crowded. Turn off the ones you don't need for a cleaner view.
The external trend direction output only reflects moving averages that are currently turned on. Toggling MAs on or off will change the trend signal.

FREE ON TRADINGVIEW

Any 8 Moving Averages is Free to Use

Add it to your TradingView charts and start tracking trend direction across multiple moving averages today. No subscription required.

100% Free
No Account Required
All Future Updates

COMMON QUESTIONS

Frequently Asked Questions

Each of the 8 moving averages can be set to EMA, SMA, HMA, WMA, VWMA or RMA. You can mix and match different types across all 8 lines.
It sends a trend direction value that other indicators can read as a filter. If price is above all enabled moving averages it outputs 1 (bullish), below all outputs -1 (bearish), and mixed outputs 0 (neutral). Only moving averages that are turned on count toward the signal.
Yes. Each moving average can be turned on or off individually. Only enable the ones you want on your chart.
It works on all markets including stocks, crypto, futures and forex, and on all timeframes. Note that VWMA requires volume data, so it may not calculate correctly on instruments without reported volume.
Yes. You can set alerts for when price crosses each individual moving average so you get notified of key level breaks without watching the chart.

CHANGELOG

Release Notes

Pine Script v6 Upgrade + External Trend Direction Output

Major update bringing the indicator to Pine Script v6 with improved code structure and a new external trend direction output that other indicators can use as a filter.

What Changed
Updated to Pine Script v6
Improved code structure
Added external trend direction output. Sends a bullish (1), bearish (-1) or neutral (0) signal based on whether price is above or below all enabled moving averages
Show older updates
Color-Coded Percentage Table

Updated the percentage gap table so that each row's background color matches the color of its corresponding moving average, making it easier to identify each one at a glance.

What Changed
Percentage gap background colors now match each moving average individually
Percentage Table Toggle

Added the ability to turn the percentage gap table on or off for users who don't need that information on their chart.

What Changed
Added on/off toggle for the percentage gap table
Repositionable Percentage Table

Added the ability to move the percentage gap table to different areas on the chart.

What Changed
Added position setting to move the percentage table to different chart locations

EXPLORE MORE

Related Indicators

Free

A combined moving average overlay with squeeze detection and volume spike signals. Pairs well for traders who want moving average confluence plus momentum triggers.

Free

Multi-indicator trend direction table in one view. Use alongside the moving average cloud to see trend alignment across different indicator types at a glance.

Free

Measures the strength of the current trend. Complements the moving average cloud by telling you not just the direction but how strong the trend is behind it.