OPEN-SOURCE SCRIPT

Pegasus Returns EMAs (Green Above, Red Below)

121
This indicator plots up to four customizable Exponential Moving Averages (EMAs) on the price chart, each with user-defined settings for visibility and period length. It is designed to provide a clear visual representation of bullish and bearish momentum based on the closing price relative to each EMA.

Key Features:
Custom EMA Periods: Easily modify the length of each EMA (default: 20, 50, 100, 200).

Dynamic Color Coding:

Green Line when the closing price is above the EMA (bullish signal).

Red Line when the closing price is below the EMA (bearish signal).

Toggle Visibility: You can choose to display or hide any of the four EMAs via checkboxes in the settings.

Overlay on Price Chart: EMAs are plotted directly on the candlestick chart for intuitive analysis.

Inputs:
Show EMA 1–4: Enable or disable each EMA.

EMA 1–4 Period: Set a custom period for each EMA (min 1).

Use Cases:
Identifying trend direction and strength.

Spotting dynamic support and resistance zones.

Entry/exit confirmation in trending markets

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.