OPEN-SOURCE SCRIPT
Zaktualizowano

Multi Moving Averages (EMA / SMA Toggle) Configurable

61
Multi Moving Averages (EMA / SMA Toggle) is a lightweight and highly configurable indicator designed to plot up to three moving averages on your chart with a clean and minimalist input panel.

The indicator allows you to switch seamlessly between Exponential Moving Averages (EMA) and Simple Moving Averages (SMA) using a single toggle, while preserving the same lengths, sources, and visual settings. Each moving average can be independently shown or hidden and fully customized for color, line width, and plot style.

This tool is ideal for traders who rely on multiple moving averages for trend identification, dynamic support and resistance, pullback analysis, and crossover-based strategies, while keeping their charts uncluttered and easy to read.

Key Features

Plot up to three moving averages

Global EMA / SMA toggle

Individual show / hide control for each MA

Customizable length, source, color, width, and style

Minimalist input layout with low scrolling

Fully compatible with the Style panel

Whether you prefer fast-reacting EMAs or smoother SMAs, this indicator adapts instantly to your workflow without requiring multiple indicators or duplicate settings.
Informacje o Wersji
✨ Major UI & Usability Improvements

Removed all global EMA/SMA controls and simplified logic to per-MA EMA/SMA selection only.

Consolidated each MA’s settings into a single inline row:

Enable / Disable

Length

Source

EMA or SMA selection

Color selection

Eliminated confusing checkboxes and replaced them with clear dropdowns.

-------------

📊 Table Enhancements

Added a compact on-chart MA summary table displaying:

Color swatch (matches MA color)

MA length

MA type (EMA or SMA)

Table layout refined to minimize screen and input-panel clutter:

Line 1: SHOW TABLE toggle

Line 2: Table Position and Text Size

Line 3: Table Background, Text, and Border colors

Default table styling updated to white background with black text and borders.

Implemented full hide behavior:

When disabled, table content and outer border fully disappear.

When re-enabled, table and border restore correctly without artifacts.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.