OPEN-SOURCE SCRIPT

Heikin Ashi TSI and OTT [Erebor]

TSI (True Strength Index)

The TSI (True Strength Index) is a momentum-based trading indicator used to identify trend direction, overbought/oversold conditions, and potential trend reversals in financial markets. It was developed by William Blau and first introduced in 1991.
Here's how the TSI indicator is calculated:

• Double Smoothed Momentum (DM): This is calculated by applying double smoothing to the price momentum. First, the single smoothed momentum is calculated by subtracting the smoothed closing price from the current closing price. Then, this single smoothed momentum is smoothed again using an additional smoothing period.
• Absolute Smoothed Momentum (ASM): This is calculated by applying smoothing to the absolute value of the price momentum. Similar to DM, ASM applies a smoothing period to the absolute value of the difference between the current closing price and the smoothed closing price.
• TSI Calculation: The TSI is calculated as the ratio of DM to ASM, multiplied by 100 to express it as a percentage. Mathematically, TSI = (DM / ASM) * 100.

The TSI indicator oscillates around a centerline (typically at zero), with positive values indicating bullish momentum and negative values indicating bearish momentum. Traders often look for crossovers of the TSI above or below the centerline to identify shifts in momentum and potential trend reversals. Additionally, divergences between price and the TSI can signal weakening trends and potential reversal points.

Pros of the TSI indicator:

• Smoothed Momentum: The TSI uses double smoothing techniques, which helps to reduce noise and generate smoother signals compared to other momentum indicators.
• Versatility: The TSI can be applied to various financial instruments and timeframes, making it suitable for both short-term and long-term trading strategies.
• Trend Identification: The TSI is effective in identifying the direction and strength of market trends, helping traders to align their positions with the prevailing market sentiment.

Cons of the TSI indicator:

• Lagging Indicator: Like many momentum indicators, the TSI is a lagging indicator, meaning it may not provide timely signals for entering or exiting trades during rapidly changing market conditions.
• False Signals: Despite its smoothing techniques, the TSI can still produce false signals, especially during periods of low volatility or ranging markets.
• Subjectivity: Interpretation of the TSI signals may vary among traders, leading to subjective analysis and potential inconsistencies in trading decisions.

Overall, the TSI indicator can be a valuable tool for traders when used in conjunction with other technical analysis tools and risk management strategies. It can help traders identify potential trading opportunities and confirm trends, but it's essential to consider its limitations and incorporate additional analysis for more robust trading decisions.

Heikin Ashi Candles

Let's consider a modification to the traditional “Heikin Ashi Candles” where we introduce a new parameter: the period of calculation. The traditional HA candles are derived from the open [01], high [00] low [00], and close [00] prices of the underlying asset.
Now, let's introduce a new parameter, period, which will determine how many periods are considered in the calculation of the HA candles. This period parameter will affect the smoothing and responsiveness of the resulting candles.
In this modification, instead of considering just the current period, we're averaging or aggregating the prices over a specified number of periods [period]. This will result in candles that reflect a longer-term trend or sentiment, depending on the chosen period value.
For example, if period is set to 1, it would essentially be the same as traditional Heikin Ashi candles. However, if period is set to a higher value, say 5, each candle will represent the average price movement over the last 5 periods, providing a smoother representation of the trend but potentially with delayed signals compared to lower period values.
Traders can adjust the period parameter based on their trading style, the timeframe they're analyzing, and the level of smoothing or responsiveness they prefer in their candlestick patterns.

Optimized Trend Tracker

The "Optimized Trend Tracker" is a proprietary trading indicator developed by TradingView user ANIL ÖZEKŞİ. It is designed to identify and track trends in financial markets efficiently. The indicator attempts to smooth out price fluctuations and provide clear signals for trend direction.
The Optimized Trend Tracker uses a combination of moving averages and adaptive filters to detect trends. It aims to reduce lag and noise typically associated with traditional moving averages, thereby providing more timely and accurate signals.
Some of the key features and applications of the OTT include:

• Trend Identification: The indicator helps traders identify the direction of the prevailing trend in a market. It distinguishes between uptrends, downtrends, and sideways consolidations.
• Entry and Exit Signals: The OTT generates buy and sell signals based on crossovers and direction changes of the trend. Traders can use these signals to time their entries and exits in the market.
• Trend Strength: It also provides insights into the strength of the trend by analyzing the slope and momentum of price movements. This information can help traders assess the conviction behind the trend and adjust their trading strategies accordingly.
• Filter Noise: By employing adaptive filters, the indicator aims to filter out market noise and false signals, thereby enhancing the reliability of trend identification.
• Customization: Traders can customize the parameters of the OTT to suit their specific trading preferences and market conditions. This flexibility allows for adaptation to different timeframes and asset classes.

Overall, the OTT can be a valuable tool for traders seeking to capitalize on trending market conditions while minimizing false signals and noise. However, like any trading indicator, it is essential to combine its signals with other forms of analysis and risk management strategies for optimal results. Additionally, traders should thoroughly back-test the indicator and practice using it in a demo environment before applying it to live trading.

The following types of moving average have been included: "SMA", "EMA", "SMMA (RMA)", "WMA", "VWMA", "HMA", "KAMA", "LSMA", "TRAMA", "VAR", "DEMA", "ZLEMA", "TSF", "WWMA". Thanks to the authors.

Thank you for your indicator “Optimized Trend Tracker”. © kivancozbilgic
Thank you for your programming language, indicators and strategies. © TradingView

Kind regards.
© Erebor_GIT
Bands and ChannelsCandlestick analysisTrue Strength Index (TSI)

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal