OPEN-SOURCE SCRIPT

Pegasus Returns EMAs (Green Above, Red Below)

111
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

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。