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 Ultimate Oscillator 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 Stochastic RSI overbought and oversold signals with presentation options.
- On-chart pivot points drawn automatically.
- Automatically adjusted pivot 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, MFI, TSV, 2 x Range Filters.
- Configurable RSI Trend detection signal filter used in a number of the signals, which filters buy signals where the RSI is over the RSI moving average, and only prints sell signals where RSI 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:
- Ultimate Oscillator (UO)
- True Strength Indicator (TSI)
- Money Flow Index (MFI)
- Cumulative Delta Volume (CDV)
- Time Segmented Volume (TSV)
- Commodity Channel Index (CCI)
- Awesome Oscillator
- Relative Strength Index (RSI)
- On Balance Volume (OBV)
- MACD Histogram
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.
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 Stochastic RSI overbought and oversold confluences occur, as well as when custom signals are printed.
Configurable pivot period values.
You can adjust the default pivot 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 pivot 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 pivot 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 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.
How do traders use overbought and oversold levels in their trading?
The oversold level is when the Stochastic RSI 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 Stochastic RSI at, or crossing down from an overbought level as a confluence for entry into a short position, and the Stochastic RSI 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 Stoch RSI employs the triple timeframe overbought and oversold confluence, in an attempt to add a more confluence and reliability to this usage of the Stoch RSI.
This indicator is intended for use in conjunction with related panel indicators including the TSI+ (True Strength Indicator + Realtime Divergences), UO+ (Ultimate Oscillator + Realtime Divergences), and optionally the STRSI+ (MTF Stochastic RSI + Realtime Divergences) and MFI+ (Money Flow 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 Stochastic 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 MFI 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.
- Added a mobile / desktop resizing feature to the MTF table/dashboard.
- Hid the decimal place of the CCI and Stoch RSI values in the MTF table values for easier reading.
- Reordered some settings.
- Hid the labels produced by parts of the indicator to keep the Y axis uncluttered for traders who have label values enabled in Tradingview.
- Minor adjustment to Range Filter colours, and removed unused Range Filter code for the upper and lower bands.
- Added another oscillator to be used for divergence detection, a hybrid of the UO and MFI - the UFO. Enabled by default.
이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.