ChartPrime

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 " 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.

Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?