OPEN-SOURCE SCRIPT

Ang Multi EMA with labels (Any timeframe)

226
//version=6
// Update notes:
// - Adds clear right-side labels for each enabled moving average, such as "5 min ema 20".
// - Uses lowercase "ema" and "sma" in labels for a cleaner chart style.
// - Formats label price values to two decimals for easier reading.
// - Keeps higher-timeframe moving-average labels visible by carrying forward the latest value.
// - Automatically spaces nearby labels apart using an ATR-based gap, reducing label overlap when lines are close.
//
// Benefits:
// - Makes it immediately clear which timeframe, average type, and length each line represents.
// - Reduces visual clutter and prevents multiple labels from sitting on top of each other.
// - Improves readability during fast chart review, especially when several EMAs/SMAs are enabled.
// - Keeps the chart easier to share because the moving-average settings are visible directly on the chart.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.