OPEN-SOURCE SCRIPT
Updated

Chilllax Moving Averages with Qullamaggie colors

11051
// Display 2 Moving Averages. Default is 10d sma and 20d sma. You can choose any length. Choose sma, or ema. Choose ma of Open, High, Low, or Close

// Color code is based on Qullamaggie's idea:

// Dark green = 10d ma > 20d ma, and both trending up
// Light green = 10d ma > 20d ma, but only 10d ma trending up
// Yellow = 10d ma > 20d ma, but neither trending up

// You can change the color

// You can hide the colors, then it will simply show 2 moving averages of your choice

// Trend is comparing the ma from X trendlen days ago. Default to 5 days ago. So, if today's ma is > 5 days ago, it is trending up
Release Notes
Tidying some comments and variable names
Release Notes
Update the description chart

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.