The Ultimate Buy and Sell Indicator
Nov 4, 2023

The Ultimate Buy and Sell Indicator tool provides a comprehensive technical analysis suite designed to identify market inflection points and trend reversals using a multi-layered confirmation system.
Usage
The Usage section describes how the script can be used, focusing on its signal generation and visualization features.
Signal Generation
The indicator utilizes "Watch Signals" as prerequisites for Buy and Sell alerts. These are triggered by Bollinger Band crossing events, such as price or RSI breaching the bands. Once a watch signal is active within a user-defined lookback period, the script evaluates secondary conditions to confirm an entry:
- RSI Crosses: Signals can trigger when the RSI crosses its basis line or specific levels.
- MACD Integration: Users can opt to use MACD crosses as the primary signal trigger.
- Filters: The indicator includes filters to block signals during low-momentum periods (RSI between 45-55) or extreme overbought/oversold levels.
Visualization
The tool provides several visual aids to interpret market states:
- Custom Candles: Candles change color based on RSI momentum zones or Moving Average positioning. For example, white candles represent extreme RSI levels (over 80 or under 20).
- Volatility-Adjusted Bands: Bollinger Bands on the price chart adjust their transparency based on historical volatility, fading out during sideways price action.
- Warning Backgrounds: A "repainting" background color serves as an early warning for potential signals before they are officially confirmed and locked.
Details
The indicator's logic is built upon the interaction between momentum (RSI) and volatility (Bollinger Bands). Unlike standard indicators, it maintains a "bought" or "sold" state internally. This state tracks the current market bias and can be used to force alternating signals, preventing multiple consecutive buy or sell alerts. The construction also incorporates divergence detection, highlighting discrepancies between RSI highs/lows and price action to forecast potential trend shifts.
Settings
General Settings
- Data Source for Price: Determines the price source (e.g., close, open) used for calculations.
- Moving Averages: Toggles the visibility of up to eight customizable moving averages.
- Bollinger Bands: Enables the dual-layered volatility bands.
- Band Transparency: Adjusts the visibility of price bands based on volatility intensity.
Watch Signal Settings
- # of bars back to use Watch Signals: Sets the lookback window for valid prerequisite events.
- Use RSI/Price/ATR Watch Signals: Selects the specific technical triggers required to prime a Buy/Sell alert.
RSI & Price Band Settings
- RSI Length/MA Type: Configures the period and smoothing method for the RSI calculation.
- Price BBand Basis Length: Sets the period for the central basis line of the price bands.
- Inner/Outer Multiplier: Defines the standard deviation for the two sets of Bollinger Bands.
Advanced Filters
- RSI Smoothing: Applies an additional moving average to the RSI to reduce noise.
- MACD Settings: Standard inputs for Fast, Slow, and Signal lengths if used for signal generation.
- Force Alternating Signals: Ensures every Buy signal is followed by a Sell signal, and vice versa.
FAQ
How do I use the candle colors? To use the RSI or MA-based colored candles, you must disable the "Body, Border, and Wick" settings in your charting platform's main chart settings to avoid overlapping colors.
What is a "Watch Signal"? A Watch Signal is an orange or fuchsia marker indicating that a volatility or momentum threshold has been met. It does not signify a trade entry but warns that a Buy or Sell signal may trigger soon if secondary conditions are met.
How can I access this script? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.