
A Pine Script indicator calculating relative strength by comparing a security's performance against the NIFTY SMLCAP 250 index across daily and weekly timeframes.
Explore complementary indicator rolesHow it works
The script fetches close prices for both the current security and the NIFTY SMLCAP 250 index across daily and weekly timeframes. It calculates relative strength by dividing the security's close price by the index's close price and multiplying by 100, providing a comparative performance metric.
The calculation ensures at least 60 bars of data are available and applies a scaling multiplier derived from the 60th previous bar's close price. This approach normalizes the relative strength value, making it more comparable across different securities and timeframes.
Why it may be useful
Relative strength analysis helps traders understand how a specific security performs compared to a broader market benchmark, offering insights into potential investment opportunities. By comparing a stock's performance against a representative index, traders can identify securities that are outperforming or underperforming the market.
This method provides a quantitative approach to evaluating a security's relative performance, which can be crucial for making informed investment decisions. It helps traders identify potential leaders and laggards in the market, guiding allocation strategies and portfolio construction.
When to explore it
This indicator is most effective when analyzing individual stocks within a specific market segment, particularly for small-cap securities. Traders can use it to compare a stock's performance against a representative index, helping to identify potential investment opportunities or relative market strength.
The tool is particularly useful during market transitions or when evaluating sector-specific performance. Investors can leverage this relative strength analysis to make more informed decisions about portfolio allocation, identifying stocks that are showing stronger performance relative to their broader market benchmark.
Keep exploring
What we’ve verified
Access, alerts and repainting behaviour have not been independently verified for this indicator. Check the creator’s current publication and settings.
General descriptions and classifications are recovered research. Verified details above identify the specific checks we have completed. Check the creator’s current publication for later changes.






