OPEN-SOURCE SCRIPT

Trend Channel [Gu5]

Updated
SMA 200 determines the trend
Bullish trend, green candles. Down trend, red candles.
If the market value is narrow to the SMA200 channel, yellow candles.
Setting recommended for SMA Range
BTCUSD = 100
EURUSD = 1000
SPX = 100
ETHUSD = 10
Release Notes
Update to Pinescript v.4
Clean code
Channel changes color too
Release Notes
bcolor change
Release Notes
Channel change
Release Notes
Clean code
Release Notes
Now it is compatible with any market, without manual setting
Release Notes
Clean code
Release Notes
Upgrade v5.
Added multiple types of Moving Averages ('SMA', 'EMA', 'SMMA', 'WMA', 'VWMA')
Written according to PineCoders Coding Conventions for Pine
Multiple Time Frame Indicator or MTF
Not repaint
Change of license
coloredbarscoloredsmarangeSimple Moving Average (SMA)sma200smma200trendchangetrendchannelsvwmas

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer