ChartArt

Trend Trading With Moving Averages (by ChartArt)

This indicator is measuring if three different moving average calculations (EMA,WMA,SMA) with the same period length are aligned in an uptrend. If this is the case then the bar is colored in green. If only one or two of the three moving averages signals an uptrend then the bar is colored in blue. This can mean that the trend is changing.

Save another $999 bucks with this free indicator.

This is the ChartArt optimized version. Original idea: Steve Primo's Robbery Indicator (PET-D).
coded by UCSgears:
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?
study(title="Trend Trading With Moving Averages (by ChartArt)", shorttitle="CA_-_Trend_MA", overlay=true)

// ChartArt's Optimized Steve Primo's Robbery Indicator
//
// Version 1.0
// Idea by ChartArt on June 18, 2015.
//
// This indicator is measuring if there are three
// different moving averages with the same period aligned
// in the same trend direction. If this is the case then
// the bar is colored in green. If only one or two of the
// three moving averages signals an uptrend then the
// bar is colored in blue. This can mean that
// the trend is changing.
//
// Original idea: Steve Primo's Robbery Indicator (PET-D)
// as published by UCSGears on Tradingview.
//
// List of my work: 
// https://www.tradingview.com/u/ChartArt/

MAlength = input(15, title="Length of Moving Averages")

petd = ema(close, MAlength)
petx = wma(close, MAlength)
pety = sma(close, MAlength)

up = (close > petd) and (close > petx) and (close > pety) ? green : (close > petd) or (close > petx) or (close > pety) ? blue : red

barcolor(up)