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:
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?
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)