OPEN-SOURCE SCRIPT

Supertrend Targets [ChartPrime]

The Supertrend Targets indicator combines the concepts of trend-following with dynamic volatility-based target levels. It takes core simple and classical concepts and provides actionable insights. The core of this indicator revolves around the "Supertrend" algorithm, which essentially uses the Average True Range (ATR) and a multiplier to determine if the price of a financial instrument is in an uptrend or downtrend. The indicator generates various plot points on the trading chart, which traders can use to make informed trading decisions.

Users can set several input parameters such as the source price, custom levels, multiplier scale, length of the average true range, and the window length. Traders can also opt to enable a table that shows numeric target data by percentiles, risk ratio, take profit and stop loss points.

The generated plots and fills on the chart represent various levels of potential gains and drawdowns, acting as potential targets for taking profit or stopping losses. These include the 25th, 50th, 75th, 90th, and 100th percentiles, which are adjustable by scale. There are also plots for average gain and drawdown levels, enhanced by standard deviation curves if enabled.

The Supertrend line indicators are color-coded for ease of understanding: blue for bullish performance and orange for bearish performance. The "Center Line" represents the point at which traders might consider entering a position.

스냅샷

Lastly, the script presents a summary table (when enabled) at the right side of the chart displaying numeric data of the plotted targets. This data provides additional insights on the risk-reward balance for each percentile, helping traders to execute their strategies more effectively.

스냅샷

Here's a comprehensive breakdown of its functionalities and features:

Inputs:
  1. Source: Determines the price series type (e.g., Close, Open, High, Low, etc.).
  2. Show Trailing Stop: Option to display the trailing stop on the chart.
  3. Levels: Sets the number of target levels you want to display. Can range from -5 to 5.
  4. Scale: A scaling factor for adjusting targets, can be between 1 to 100.
  5. Window Length: Length for the target computation, determines how many bars will be considered.
  6. Unique: Ensures every data point used in calculations is unique.
  7. Multiplier: Multiplier for the ATR (Average True Range) to compute the SuperTrend.
  8. ATR Length: Period for the ATR computation.
  9. Custom Level: Allows users to set their own levels using various statistics like Average, Average + STDEV, Percentile, or can be disabled.
  10. Percent Rank: Determines the percentile rank for targeting.
  11. Enable Table: Enables or disables a table display.


Methods:
  1. Flag: Identifies bullish and bearish trend reversals.
  2. Target Percent: Determines the expected price movement (both gains and drawdowns) based on historical trend reversals.
  3. Value Percent: Computes the percentage difference between the current price and the entry price during trend reversals.


Plots:
Multiple target lines are plotted on the chart to visualize potential gain and drawdown levels. These levels are adjusted based on user settings. Additionally, the main Supertrend line is plotted to indicate the prevailing trend direction.
  1. Gain Levels: Target levels which show potential upside from the current price.
  2. Drawdown Levels: Target levels which represent potential downside from the current price.
  3. SuperTrend Line: A line that adjusts based on price volatility and trend direction, acting as a dynamic support or resistance.


스냅샷

In conclusion, the "Supertrend Targets [ChartPrime]" indicator is a powerful tool that combines the principle of trend-following with dynamic targets, providing traders with insights into potential future price movements. The range of customization options allows traders to adapt the indicator to different trading strategies and market conditions.
Trend AnalysisVolatility

오픈 소스 스크립트

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

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


또한 다음에서도:

면책사항