OPEN-SOURCE SCRIPT

SuperTrend Toolkit

업데이트됨
The SuperTrend Toolkit (Super Kit) introduces a versatile approach to trend analysis by extending the application of the SuperTrend indicator to a wide array of TradingView's built-in or Community Scripts. This tool facilitates the integration of the SuperTrend algorithm with various indicators, including oscillators, moving averages, overlays, and channels.

Methodology:
The SuperTrend, at its core, calculates a trend-following indicator based on the Average-True-Range (ATR) and price action. It creates dynamic support and resistance levels, adjusting to changing market conditions, and aiding in trend identification.


TradingView's native SuperTrend lacks the flexibility to incorporate different price sources into its calculation.
Community scripts, addressed the limitation by implementing the option to input different price sources, for example, one of the most popular publications, KivancOzbilgic's SuperTrend script.
tradingview.com/v/r6dAP7yi/

In May 2023, TradingView introduced an update allowing the passing of another indicator's plot as a source value via the input.source() function. However, the built-in ta.atr function still relied on the chart's price data, limiting the formerly mentioned scripts to the chart's price data alone.
스냅샷

Unique Approach -
This script addresses the aforementioned limitations by processing the data differently.
Firstly we create a User-Defined-Type (UDT) replicating a bar's open, high, low, close (OHLC) values.


We then use this type to store the external input data.


Finally, we pass the data into our custom built SuperTrend with ATR functions to derive the external source's version of the SuperTrend indicator.


- Setup Guide -
스냅샷
스냅샷

Utility and Use Cases:
  1. Universal Compatibility - Apply SuperTrend to any built-in indicator or script, expanding its use beyond traditional price data.
    - A simple example on one of my own public scripts -스냅샷
  2. Trend Analysis - Gain additional trend insights into otherwise mainly mean reverting or volume indicators.
    스냅샷스냅샷


- Alerts Setup Guide -
스냅샷

The Super Kit empowers traders and analysts with a tool that adapts the robust SuperTrend algorithm to a myriad of indicators, allowing comprehensive trend analysis and strategy development.
릴리즈 노트
Added alerts.
릴리즈 노트
Small fix
릴리즈 노트
Added option for any alert call.
ATRcommunityscriptPine utilitiessupertrendTrend AnalysistrendindicatorVolatilityvolatilityindicator

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항