OPEN-SOURCE SCRIPT

Chilllax Moving Averages with Qullamaggie colors

Updated
// 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
Moving AveragesqullamaggieTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer