bouncestrengthindicator
Download scriptThis indicator is designed to measure and visualize the strength of price "bounces" off support and resistance levels. It helps traders identify how much pressure is being exerted by buyers and sellers at specific price points by analyzing historical price action over a defined period.
Core Logic Overview
The script operates by examining price movement within a rolling window (the "Range Period"). Instead of just looking at the current price, it evaluates how candles behave relative to the highest highs and lowest lows found during that timeframe.
1. Range Identification
The indicator first establishes the boundaries of the current market segment. It identifies:
- The Highest High reached within the look-back period.
- The Lowest Low reached within the look-back period.
- The Total Spread, which is the distance between that high and low.
2. Bounce Strength Calculation
The logic then calculates two distinct types of "Bounce Strength":
- Floor Bounce Strength (Positive Pressure): The script looks for instances where price moves upward. It specifically identifies bars that aren't primarily "downward" candles and checks how close the low of those bars got to the period's bottom boundary. It calculates a ratio of how much space was covered from the bottom, weighing this by trading volume (if enabled). This tells you how effectively the market is "pushing off" the floor.
- Ceiling Bounce Strength (Negative Pressure): Conversely, the script identifies bars that aren't primarily "upward" candles and checks how close the high of those bars got to the period's top boundary. It calculates the ratio of space covered from the ceiling, again weighted by volume. This shows the strength of the "rejection" at the top.
3. Volume Integration
A key feature of this logic is the ability to use Tick Volume. When enabled, the indicator doesn't just count how many times a price moved; it weights the bounce strength based on the actual activity occurring. A high-volume bounce is treated as significantly "stronger" than a low-volume move, providing a more accurate picture of market conviction.
4. Visualization and Smoothing
The indicator provides three primary visual outputs:
- Floor Bounce Histogram: Represents the positive pressure from the bottom.
- Ceiling Bounce Histogram: Represents the negative pressure from the top.
- Bounce Strength Index (Main Line): This is a smoothed average of both floor and ceiling pressures. By applying a "Slowing" and "Average Period," the script filters out minor market noise to produce a cleaner line that shows the prevailing trend of momentum—whether the market is currently favoring the "floor" or the "ceiling."
Summary for Traders
Essentially, this tool transforms raw price data into a momentum profile. By looking at the histograms, you can see if the market is actively hitting and reacting to boundaries. The main index then provides a smoothed look at whether that reaction is leaning more toward a bullish (floor-driven) or bearish (ceiling-driven) bias.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | B S I . m q 4 |
/ / | C o p y r i g h t 2 0 1 5 , f x b o r g . |
/ / | h t t p : / / b l o g . l i v e d o o r . j p / f x b o r g / |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "