TradingView
PHVNTOM_TRADER
Aug 12, 2022 2:13 PM

TSI + Divergences 

Bitcoin / TetherUSBinance

描述

True Strength Indicator (TSI) + Divergences + Alerts + Lookback periods.

This version of the True Strength Indicator adds the following 3 additional features to the stock TSI by Tradingview:

- Optional divergence lines drawn directly onto the oscillator.
- Configurable alerts to notify you when divergences occur.
- Configurable lookback periods to fine tune the divergences drawn in order to suit different trading styles and timeframes.

This indicator adds additional features onto the stock TSI by Tradingview, whose core calculations remain unchanged. Namely the configurable option to automatically, quickly and clearly draw divergence lines onto the oscillator for you as they occur, with minimal delay. It also has the addition of unique alerts, so you can be notified when divergences occur without spending all day watching the charts. Furthermore, this version of the TSI comes with configurable lookback periods, which can be configured in order to adjust the sensitivity of the divergences, in order to suit shorter or higher timeframe trading approaches.


The True Strength Indicator

Tradingview describes the True Strength Indicator as follows:

“The True Strength Index (TSI) is a momentum oscillator that ranges between limits of -100 and +100 and has a base value of 0. Momentum is positive when the oscillator is positive (pointing to a bullish market bias) and vice versa. It was developed by William Blau and consists of 2 lines: the index line and an exponential moving average of the TSI, called the signal line. Traders may look for any of the following 5 types of conditions: overbought, oversold, centerline crossover, divergence and signal line crossover. The indicator is often used in combination with other signals..”


What are divergences?

Divergence is when the price of an asset is moving in the opposite direction of a technical indicator, such as an oscillator, or is moving contrary to other data. Divergence warns that the current price trend may be weakening, and in some cases may lead to the price changing direction.

There are 4 main types of divergence, which are split into 2 categories;
regular divergences and hidden divergences. Regular divergences indicate possible trend reversals, and hidden divergences indicate possible trend continuation.

Regular bullish divergence: An indication of a potential trend reversal, from the current downtrend, to an uptrend.
Regular bearish divergence: An indication of a potential trend reversal, from the current uptrend, to a downtrend.
Hidden bullish divergence: An indication of a potential uptrend continuation.
Hidden bearish divergence: An indication of a potential downtrend continuation.


Setting alerts.

With this indicator you can set alerts to notify you when any/all of the above types of divergences occur, on any chart timeframe you choose.


Configurable lookback values.

You can adjust the default lookback values to suit your prefered trading style and timeframe. If you like to trade a shorter time frame, lowering the default lookback values will make the divergences drawn more sensitive to short term price action.


How do traders use divergences in their trading?

A divergence is considered a leading indicator in technical analysis, meaning it has the ability to indicate a potential price move in the short term future.

Hidden bullish and hidden bearish divergences, which indicate a potential continuation of the current trend are sometimes considered a good place for traders to begin, since trend continuation occurs more frequently than reversals, or trend changes.

When trading regular bullish divergences and regular bearish divergences, which are indications of a trend reversal, the probability of it doing so may increase when these occur at a strong support or resistance level. A common mistake new traders make is to get into a regular divergence trade too early, assuming it will immediately reverse, but these can continue to form for some time before the trend eventually changes, by using forms of support or resistance as an added confluence, such as when price reaches a moving average, the success rate when trading these patterns may increase.

Typically, traders will manually draw lines across the swing highs and swing lows of both the price chart and the oscillator to see whether they appear to present a divergence, this indicator will draw them for you, quickly and clearly, and can notify you when they occur.


Disclaimer: This script includes code from the stock TSI by Tradingview as well as the RSI divergence indicator.

评论
khchs66
Hello Sir, Really appreciate for your helpful TSI + Divergences. wish you all the best.
deanopagelli
Great indicator! I trade on the 10 minute chart. If I keep the right lookback at 5, then my trigger chart is the 1 minute and it's too late. But when I set the right look back at 1, it doesn't back test very well. Is there a way to get the right look back at 5 but prints signal sooner? Or do you have any suggestions?
deanopagelli
also, the signals are not working right for me. Basically, I just want to know if a 10 minute candle is showing Divergence (bullish or bearish) on your TSI indicator. I tried to set alerts but doesn't seem to work, any suggestions?
PHVNTOM_TRADER
@deanopagelli, hey thanks for the feedback, I know what you mean about delayed printing, with certain very low lookbsck periods mostly ideal for very low time frames it prints quickly, bit I've noticed it suffers from quite a slow print on longer lookbacks.

I plan to make a few updates to the indicator, one of which would be to rewrite the divergence drawing code completely so that it is real time, another is to add an optional secondary lookback period, which would enable it to capture both long and short period divergences, without one coming at the cost of lacking the other.

With regards your comment below, I'll try the alerts, too. I've used my UO indicator for alerts which I know work, and this is the same code for drawing divergences and firing the alerts, but it's possible I've made an error.

I'll aim to push some updates asap.
Thanks for the feedback and your patience 🙏
deanopagelli
@tvenn, thanks! Yes if it would print the divergence signal just as the candle closes, that would be amazing!!!
PHVNTOM_TRADER
@deanopagelli, I'll do my best.

btw, I had quickly tested this version you're currently using and I am actually getting alerts on the 1m BTC chart for regular bullish, regular bearish, hidden bullish and hidden bearish divergences in my alerts log.
PHVNTOM_TRADER
@deanopagelli, I have published another TSI that draws in realtime which you can access by visiting my profile, or linked directly here tradingview.com/script/1fwE4x87-True-Strength-Indicator-Realtime-Divergences/

I will also be publishing several more real-time divergence drawing panel indicators, including UO, MFI, RSI, MACD Histogram, and Stochastic RSI soon.
更多