OPEN-SOURCE SCRIPT

CSR Ultimate (Final)

138
This indicator calculates and displays a "Candle Strength Ratio" (CSR) to help you gauge bullish versus bearish momentum on a given timeframe. Here’s what it does:

*Multiple Calculation Methods:*
*You can choose among three different methods:*

-Classic CSR: Compares the difference between the upper and lower parts of the candle relative to its total range.

-Weighted Body CSR: Gives more weight to the candle’s body relative to its wicks.

-Close-Focused CSR: Focuses on the net movement from open to close relative to the full range.

*Optional Enhancements:*

The indicator allows you to enable additional features to refine it:

-Volume Weighting: Adjusts the CSR based on the ratio of current volume to a moving average of volume, so a candle on higher-than-average volume might carry more weight.

-ATR Normalization: Normalizes the CSR using the Average True Range (ATR) to account for market volatility.

-Multi-Bar Averaging: Averages the CSR over a specified number of bars to smooth out noise.

-RSI Filter: Optionally checks an RSI condition (bullish if RSI > 50 or bearish if RSI < 50) to help filter out signals that might not be supported by overall momentum.

*Visual and Alert Features:*
The indicator plots the CSR line with color coding (green for bullish, red for bearish) and draws horizontal threshold lines. It also adjusts the chart background color when the CSR exceeds defined bullish or bearish levels and provides alerts when these thresholds are crossed.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.