OPEN-SOURCE SCRIPT
Pegasus Returns EMAs (Green Above, Red Below)

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
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的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。