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:
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?
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)