OPEN-SOURCE SCRIPT

Williams BBDiv Signal [trade_lexx]

Updated
📈 Williams BBDiv Signal [trade_lexx] — Improve your trading strategy with accurate signals!


Introducing Williams BBDiv Signal [trade_lexx], an advanced trading indicator designed for a comprehensive analysis of market conditions. This indicator combines Williams%R with Bollinger Bands, providing traders with a powerful tool for generating buy and sell signals, as well as detecting divergences. It is ideal for traders who need an advantage in detecting changing trends and market conditions.

🔍 How signals work
— A buy signal is generated when the Williams %R line crosses the lower Bollinger Bands band from bottom to top. This indicates that the market may be oversold and ready for a rebound. They are displayed as green triangles located under the Williams %R graph. On the main chart, buy signals are displayed as green triangles labeled "Buy" under candlesticks.
— A sell signal is generated when the Williams %R line crosses the upper Bollinger Bands band from top to bottom. This indicates that the market may be overbought and ready for a correction. They are displayed as red triangles located above the Williams %R chart. On the main chart, the sell signals are displayed as red triangles with the word "Sell" above the candlesticks.
snapshot

— Minimum Bars Between Signals
The user can adjust the minimum number of bars between the signals to avoid false signals. This helps to filter out noise and improve signal quality.
snapshot

— Mode "Wait for Opposite Signal"
In this mode, buy and sell signals are generated only after receiving the opposite signal. This adds an additional level of filtering and helps to avoid false alarms.
snapshot

— Mode "Overbought and Oversold Zones"
A buy signal is generated only when Williams %R is below the -80 level (Lower Band). A sell signal is generated only when Williams %R is above -20 (Upper Band).
snapshot

📊 Divergences
— Bullish divergence occurs when Williams%R shows a higher low while price shows a lower low. This indicates a possible upward reversal. They are displayed as green lines and labels labeled "Bull" on the Williams %R chart. On the main chart, bullish divergences are displayed as green triangles labeled "Bull" under candlesticks.
— A bearish divergence occurs when Williams %R shows a lower high, while the price shows a higher high. This indicates a possible downward reversal. They are displayed as red lines and labels labeled "Bear" on the Williams %R chart. On the main chart, bearish divergences are displayed as red triangles with the word "Bear" above the candlesticks.
snapshot

— 🔌Connector Signal🔌 and 🔌Connector Divergence🔌
It allows you to connect the indicator to trading strategies and test signals throughout the trading history. This makes the indicator an even more powerful tool for traders who want to test the effectiveness of their strategies on historical data.
snapshot

🔔 Alerts
The indicator provides the ability to set up alerts for buy and sell signals, as well as for divergences. This allows traders to keep abreast of important market developments without having to constantly monitor the chart.
snapshot

🎨 Customizable Appearance
Customize the appearance of Williams BBDiv Signal [trade_lexx] according to your preferences to make the analysis more convenient and visually pleasing. In the indicator settings section, you can change the colors of the buy and sell signals, as well as divergences, so that they stand out on the chart and are easily visible.
snapshot

🔧 How it works
— The indicator starts by calculating the Williams %R and Bollinger Bands values for a certain period to assess market conditions. Initial assumptions are introduced for overbought and oversold levels, as well as for the standard deviation of the Bollinger Bands. The indicator then analyzes these values to generate buy and sell signals. This classification helps to determine the appropriate level of volatility for signal calculation. As the market evolves, the indicator dynamically adjusts, providing information about the trend and volatility in real time.

Quick Guide to Using Williams BBDiv Signal [trade_lexx]
— Add the indicator to your favorites by clicking on the star icon. Adjust the parameters, such as the period length for Williams %R, the type of moving average and the standard deviation for Bollinger Bands, according to your trading style. Or leave all the default settings.
— Adjust the signal filters to improve the quality of the signals and avoid false alarms, adjust the filters in the "Signal Settings" section.
— Turn on alerts so that you don't miss important trading opportunities and don't constantly sit at the chart, set up alerts for buy and sell signals, as well as for divergences. This will allow you to keep abreast of all key market developments and respond to them in a timely manner, without being distracted from other business.
— Use signals. They will help you determine the optimal entry and exit points for your positions. Also, pay attention to bullish and bearish divergences, which may indicate possible market reversals and provide additional trading opportunities.
— Use the 🔌Connector🔌 for deeper analysis and verification of the effectiveness of signals, connect it to your trading strategies. This will allow you to test signals throughout the trading history and evaluate their accuracy based on historical data. Include the indicator in your trading strategy and run testing to see how buy and sell signals have worked in the past. Analyze the test results to determine how reliable the signals are and how they can improve your trading strategy. This will help you make better informed decisions and increase your trading efficiency.
Release Notes
Additional Features:
Mode "Signal and Divergence"
In this mode, signals are generated only when both the signal and divergence conditions are met. This mode uses the logical "AND" operator to ensure that both conditions must be true for a signal to be generated. For example, a buy signal will be generated only if Williams %R crosses above the lower Bollinger Band and there is a bullish divergence. This mode helps to filter out false signals and provides more reliable trading opportunities. In addition, alerts are available for this mode, which allow you to receive notifications about generated alarms. A 🔌Connector🔌 is also provided, which allows you to integrate signals into automatic trading strategies and test them on historical data.
This mode only works when the Calculate Divergence signals mode is enabled.
snapshot

Mode "Signal or Divergence"
In this mode, signals are generated when either the signal or divergence condition is met. This mode uses the logical "OR" operator, meaning that a signal will be generated if either condition is true. For example, a buy signal will be generated if Williams %R crosses above the lower Bollinger Band or if there is a bullish divergence. This mode increases the frequency of signals, providing more trading opportunities based on either condition. In addition, alerts are available for this mode, which allow you to receive notifications about generated alarms. A 🔌Connector🔌 is also provided, which allows you to integrate signals into automatic trading strategies and test them on historical data.
This mode only works when the Calculate Divergence signals mode is enabled.
snapshot
Bill Williams IndicatorsBollinger Bands (BB)Moving Averages

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer