OPEN-SOURCE SCRIPT

PheonixLegend3MA

133
PineScript indicator called "PhoenixLegend3MA" with the following features:

Display Options:


Each MA line can be individually enabled/disabled
Customizable colors for each MA line (default: blue for M15, red for M30, green for H1)
Adjustable line width (default is 2)


MA Options:


Choice between EMA and SMA
Default length is 1440
Displays for 3 timeframes: M15, M30, and H1


Code Organization:


Uses groups to categorize input settings
Dedicated function for MA calculation
Uses request.security to fetch data from different timeframes

This indicator helps traders visualize moving averages across multiple timeframes in a single chart, making it easier to identify trends and potential trading opportunities. Perfect for technical analysis and trend following strategies.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.