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:
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?
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)