TradeStation

Colored Moving Averages Can Help You Spot Trends

Moving averages are perhaps the most popular indicator in technical analysis. But sometimes they're not the easiest to interpret.

This indicator helps you see the trend by coloring the MA based on its direction. It's green when rising and red when falling. Of course, you can easily change that in the Style tab under Settings.

Color MA also lets you select from five different types of moving averages, including simple, exponential and Hull. We've included a list for easy reference below. Just change the "AvgType" on the Input tab under Settings.

This chart of META shows the 20-day simple moving average. Notice how swings often marked turns in the stock price.

AvgType codes:
1 - Simple Moving Average
2 - Exponential Moving Average
3 - Hull Moving Average
4 - Weighted Moving Average
5 - Volume Weighted Moving Average
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?