Trend Indicator · TradingViewPETR4 on the TradingView daily chart, with DS Trend applied (“Redesenhar candles inteiros” option, which redraws full candles).
DS Trend for TradingView: free trend indicator
Free trend indicator for TradingView, written in Pine Script: blue candles in uptrends, red in downtrends and gray in the neutral zone, with a confirmation filter.
Made by DS Trade · Since 2017 · 300+ clients · 5.0 rating on Google
Free, no sign-up. The .zip includes the DS_Trend.pine code and a LEIA-ME (read me) file, in Portuguese, with installation steps.
A tool to support technical analysis. This is not investment advice. Past results do not guarantee future results. Trading in the financial markets involves risk of loss.
UptrendDowntrendNeutral zone / noise
Features
- Blue candlesUptrend
- Red candlesDowntrend
- Gray candlesNeutral zone (market noise)
- Confirmation filterFast vs. slow moving average and price distance measured by ATR
- Period (default 20)Length of the fast moving average; the slow one uses 1.5 times this value
- Sensitivity (default 2)Multiplier of the 14-period ATR: the higher it is, the more candles turn gray
- “Redesenhar candles inteiros” optionRedraws the full candle, wick included, in the trend color; hide the asset's original candles
How to install on TradingView
- On the TradingView chart, open the Pine Editor.
- Delete the sample code and paste the contents of the DS_Trend.pine file included in the .zip.
- Click Add to chart. DS Trend appears with Período 20 and Sensibilidade 2 (period and sensitivity), running on your TradingView.
- If you like, double-click the indicator name to change Período and Sensibilidade or turn on “Redesenhar candles inteiros” (redraw full candles).
Where it was tested
- TradingView in the browser, with the code in Pine Script v6.
- PETR4 and VALE3 shares on B3, Brazil's stock exchange, on the daily chart.
