Designed to measure and visualize the relative strength and outperformance of a stock compared to a benchmark. Here’s a feature-by-feature breakdown
Credits to Eeshan for all the help
—————-
Alpha Calculation: What's it About?
The key component of this indicator is the Alpha calculation, which measures a stock's outperformance relative to a base index (e.g., Nifty Midsmall 400) while accounting for risk-free returns. By comparing the stock's performance with the base and risk-free rates, we get the Alpha.
The Alpha logic has been slightly modified, not strictly following the textbook approach
——————
Customizable Inputs: Tailored for You
You can choose whether to display Alpha.
Change the Base Index (e.g., NiftyMidsmall400).
Adjust the Performance Period (Days) for custom Alpha/Outperformance calculations.
Performance options range from 5 to 252 days, helping to fine-tune the outperformance tracking.
—————
Highlighting Performance Peaks: Short-Term & Long-Term
The indicator automatically highlights Short-Term Peak Performance over customizable short-term windows (e.g., 21 days).
It also detects Long-Term Performance Peaks, spanning up to 52 weeks. These peaks are represented as dots on the Alpha line.
——————
Color-Coded Alpha: Clear Visuals
To make the indicator visually intuitive:
Positive Alpha (outperformance) is marked in green.
Negative Alpha (underperformance) is shown in red. These are customizable so you can adjust colors to your preference!
—————
Outperformance Before Price Peaks
One cool feature is tracking whether Alpha outperforms before the price hits new highs. If Alpha breaks out but price lags, a “dot” is drawn, giving a heads-up on potential upcoming price moves.
——————
Background Color Highlighting
Background colors change dynamically based on performance:
Green for positive Alpha (outperformance).
Red for negative Alpha (underperformance). This gives a quick visual reference of the stock’s performance at a glance.
——————-
Filling the Alpha Zone
The indicator fills the area between the Alpha line and zero. This shading helps highlight the magnitude of outperformance (or underperformance) and provides a quick visual cue about trends.
———————
Get Started
With all these features combined, the Outperformance indicator becomes a powerful tool for spotting leading stocks, tracking risk-adjusted performance, and identifying performance peaks before price catches up.