This chart overlay indicator has been developed for the low timeframe divergence scalper.
Built upon the realtime divergence drawing code from the Divergence for Many indicator originally authored by Lonsometheblue, this chart overlay indicator bundles several additional unique features and modifications to serve as an all-in-one divergence scalping system. The current key features at the time of publishing are listed below (features are optional and can be enabled or disabled):
- Fully configurable realtime divergence drawing and alerting feature that can draw divergences directly on the chart using data sourced from up to 11 oscillators selected by the user, which have been included specifically for their ability to detect divergences, including oscillators not presently included in the original Divergence for Many indicator, such as the and TSI.
- Optional on chart table showing a summary of key statuses of various indicators, and nearby divergences.
- 2 x Range Filters with custom settings used for low timeframe trend detection.
- 3 x configurable multi-timeframe overbought and oversold signals with presentation options.
- On-chart drawn automatically.
- Automatically adjusted period for up to 4 configurable time frames to fine tune divergences drawn for optimal divergence detection.
- Real-price line for use with Heikin Ashi candles, with styling options.
- Real-price close dots for use with Heikin Ashi candles, with styling options.
- A selection of custom signals that can be printed on-chart and alerted.
- Sessions indicator for the London, New York, Tokyo and Sydney trading sessions, including daylight savings toggle, and unique ‘invert background color’ option, which colours the entire chart - except the trading session you have selected, leaving your chart clear of distracting background color.
- Up to 4 fully configurable moving averages.
- Additional configurable settings for numerous built in indicators, allowing you to alter the lengths and source types, including the UO, TSI, , TSV, 2 x Range Filters.
- Configurable Trend detection signal filter used in a number of the signals, which filters buy signals where the is over the moving average, and only prints sell signals where is under the moving average.
- Customisable on-chart watermark, with inputs for a custom title, subtitle, and also an optional symbol | timeframe | date feature.
The Oscillators able to be selected for use in drawing divergences at the time of publishing are as follows:
- Index ( )
- Cumulative Delta (CDV)
- Time Segmented (TSV)
- ( )
- ( )
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 divergence: An indication of a potential trend reversal, from the current downtrend, to an uptrend.
Regular divergence: An indication of a potential trend reversal, from the current uptrend, to a downtrend.
Hidden divergence: An indication of a potential uptrend continuation.
Hidden divergence: An indication of a potential downtrend continuation.
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, also when the triple timeframe overbought and oversold confluences occur, as well as when custom signals are printed.
Configurable period values.
You can adjust the default period 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. By default, this indicator has enabled the automatic adjustment of the periods for 4 configurable time frames, in a bid to optimize the divergences drawn when the indicator is loaded onto any of the 4 time frames selected. These time frames and their associated periods can be fully reconfigured within the settings menu. By default, these have been further optimized for the low timeframe scalper trading on the 1-15 minute time frames.
How do traders use divergences in their trading?
A divergence is considered a leading indicator in , meaning it has the ability to indicate a potential price move in the short term future.
Hidden and hidden 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 divergences and regular divergences, which are indications of a trend reversal, the probability of it doing so may increase when these occur at a strong support or . 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.
How do traders use overbought and oversold levels in their trading?
The oversold level is when the is above the 80 level is typically interpreted as being 'overbought', and below the 20 level is typically considered 'oversold'. Traders will often use the at, or crossing down from an overbought level as a confluence for entry into a short position, and the at, or crossing up from an oversold level as a confluence for an entry into a long position. These levels do not mean that price will necessarily reverse at those levels in a reliable way, however. This is why this version of the employs the triple timeframe overbought and oversold confluence, in an attempt to add a more confluence and reliability to this usage of the .
This indicator is intended for use in conjunction with related panel indicators including the TSI+ ( + Realtime Divergences), UO+ ( + Realtime Divergences), and optionally the STRSI+ (MTF + Realtime Divergences) and MFI+ ( Index + Realtime Divergences) available via this authors’ Tradingview profile, under the scripts section. The realtime divergence drawing code will not identify all divergences, so it is suggested that you also have panel indicators to observe. Each panel indicator also offers additional means of entry confirmation into divergence trades, for example, the can indicate when it is crossing down from overbought or up from oversold, the TSi can indicate when the 2 TSI bands cross over one another upward or downward, and the UO and can indicate an entry confluence when they are nearing, or crossing their centerlines, for more confidence in your divergence trade entries.
Additional information on the settings for this indicator can be found via the tooltips within the settings menu itself. Further information on feature updates, and usage tips & tricks will be added to the comments section below in due course.
Disclaimer: This indicator uses code adapted from the Divergence for Many v4 indicator authored by Lonesometheblue, and several stock indicators authored by Tradingview. With many thanks.
- Removed excessive alerts for price crossing EMA to free up outputs for better alerts.
- Refactored two separate bullisg divergence and bearish divergence alert types into one to free up outputs for different alerts and notifying certain criteria simpler. Granular alerts for both bullish and bearish instances of the same criteria not needed.
- Increased the lookback for recent bars with divergences from 5 to 6. Will look to refactor this into a function in future so I can pass a different lookback value on a per signal basis suited to that given signal.
- Turned off the real price close dots by default.
- Turned off the 144 ema by default.
- Combined a bullish and bearish alert for the same criteria into one alert for both bullish and bearish variants.
- Increased the transparency of the on-chart lines that indicate the MTF Stoch overbought/oversold times.
- Updated the default watermark text to include indicator name
- Updated screenshot to include full indicator name, full symbol detail and timeframe. Also removed the FRVP drawing tool from the screenshot to comply with house rules.
- Renamed the the plot titles for the MTF ribbon highlights.
- Altered the default colour of the real price line for Heikin Ashi to orange, to help distinguish it from the typical colour of horizontal support and resistance lines.
- Corrected the conditional colouring of the Divergence signal shown in the dashboard table.
- Update the chart in the image to present the overlay indicator on Japanese candles instead of Heikin Ashi, to comply with TV rules on indicators that provide buy/sell signals in relation to Heikin Ashi candles, since Heikin Ashi do not reflect real market prices and therefore produce unrealistic results.
- Changed the default colour of the real price close dots to be demi-transparent orange instead of blue for subtlety
- Reduced the number of bars checked when checking for recent divergences or recent MTF Stoch OB/OS for the sake of related signals and alerts.
- Refactored Alerts
- Reorganised the settings menu
- Fixed a bug where part of the dashboard was showing signals on chart when the dashboard setting was set to disabled
- Disabled some features and signals by default for people who want to use this indicator in different ways then myself
- Disabled the Range Filters by default.
- Disabled the secondary MTF Stoch RSI confluence background colours by default.
- Adjusted to show 144 ema by default
- Adjusted the secondary MTF Stoch RSI confluence colours
- Adjusted to show onlu UO, TSI and MFI by default
- Adjusted to only show MTF Stoch RSI ribbon, but no the background stripes by default
- Added alert option to notify users of where there is a confluence of a MTF Stoch RSI overbought at the same time as a bearish divergence, and MTF Stoch RSI oversold at the same time as a bullish divergence, for potential reversal trades.
- Background colour for the MTF #1 Stoch OB/OS also enabled by default.
- MTF #2 Stoch RSI OB/OS ribbon (but not background colour) now enabled by default
- Remove the text from the MTF #1 Stoch OB/OS + Divergence signal, so the label is now smaller
- Reordered the emas, so 144 ema is now #1, which is the one that has the alert option linked to it.
- Refactored moving average function.
- Disabled all custom signals by default.
- Adjusted the default real price close dot colour to blue instead of orange to be in keeping with the overall default colour theme.
- Corrected the current timeframe ribbon signals to print once, in MTF #1 colours, not twice.
- Reorganised the settings menu, pulling the MTF Stoch RSI confluences above the moving averages and sessions settings.
- Relabeled the MTF #1 and MTF #2 ribbon setting labels for greater clarity.
- Added a 'combi' signal, to highlight where the MTF #1 Stoch RSI AND the MTF CCI triple-timeframe overbought and oversold signals occur together at the same time.
- Updated the MTF OB/OS + Divergence signal to include the CCI as well as the Stoch RSI, to fulfil the MTF part of the criteria.
- Set the default enabled oscillators for use in drawing divergences to include: UO, TSI, MFI, RSI and CCI.
- Minor altering of styling to the Range Filters, making the longer length RF more prominent, muting the colour of the shorter length RF.
- Updated the chart image
- Included the current timeframe Stoch RSI and CCI overbought and oversold signals in ribbon by default.
- Added barcoloring option alongside the background and ribbon coloring options for both MTF Stoch RSI and MTF CCI confluence signals.
- Enabled 2 of the custom signals by default.
- Updated the custom signal title and tooltip text.
- Renamed variables.
- Updated the "MTF OB/OS on RF+" alert to notify on either the MTF CCI overbought and oversold periods, or the existing MTF Stoch RSI overbought and oversold periods, now an all-in-one MTF OB/OS alert.
- Refactored the MTF ribbons to reduce outputs.
- Disabled the pullback custom indications by default.
- Disabled all but 4 of the oscillators used to draw divergences by default. UO, TSI, RSI and MFI still enabled by default.
- Reduced default opacity of moving averages and range filters.
- Placing global toggle switches for all settings at top of menu dialog for easy access.
- Removed the Auto-adjust pivot period for different timeframes feature which was of limited use and to improve performance.
- Renamed settings labels for consistency.
- Settings menu text formating for consistency.
Dalam semangat TradingView, penulis dari skrip ini telah mempublikasikannya ke sumber-terbuka, maka trader dapat mengerti dan memverifikasinya. Semangat untuk penulis! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart
Informasi dan publikasi tidak dimaksudkan untuk menjadi, dan bukan merupakan saran keuangan, investasi, perdagangan, atau rekomendasi lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Persyaratan Penggunaan.