CakmaUstadRSI
Sep 1, 2022

The CakmaUstadRSI indicator is a comprehensive momentum analysis tool that combines a customized Relative Strength Index (RSI) with dynamic trendline detection and pivot point identification. It facilitates the identification of trend reversals and momentum shifts by providing visual cues for RSI crossovers and automated trendline breakouts.
Usage
The indicator can be used to identify potential entry and exit points through several visual signals:
- RSI Crossovers: The primary signal occurs when the RSI line crosses its EMA. A crossover above the EMA indicates bullish momentum, while a crossunder suggests bearish momentum.
- Trendline Analysis: The tool automatically draws trendlines connecting local pivot highs and lows. Users can monitor these lines for breakouts or support/resistance levels within the RSI oscillator.
- Pivot Points: By enabling pivot point labels, users can see local "H" (High) and "L" (Low) points on the RSI line, helping to identify structural market shifts.
- Overbought/Oversold Levels: Standard levels at 70 and 30 are provided to identify extreme market conditions.
Details
This script implements a standard RSI calculation paired with an Exponential Moving Average (EMA) to smooth the signal and generate crossover alerts. The unique aspect of this tool is its pivot-based trendline logic, which scans the last several pivot points (user-defined) to construct support and resistance lines directly on the oscillator. It includes logic to handle "broken" trendlines, allowing traders to see where historical trendlines were violated.
Settings
- RSI Length: Sets the period for the RSI calculation.
- RSI-EMA Length: Sets the period for the EMA applied to the RSI.
- Pivot Point Period: Determines the window used to detect local highs and lows.
- Number of Pivot Point to check: Sets how many historical pivots are evaluated for trendline construction.
- Line Style/Width: Customizes the visual appearance of the trendlines.
- TopLine/BottomLine Color: Sets the colors for upper and lower trendlines.
- Show Broken Trend Lines: When enabled, displays trendlines even after price has crossed through them.
- Extend Lines: Extends the trendlines to the right of the current bar.
- Show Pivot Points: Toggles the visibility of "H" and "L" labels.
FAQ
How do I access CakmaUstadRSI?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What do the background colors represent?
The shaded area between the RSI and its EMA changes color based on the trend: green indicates the RSI is above its EMA (bullish), and red indicates it is below (bearish).
Can I set alerts for trendline breakouts?
The current version provides alerts for RSI/EMA crossovers. Trendline breakouts are visually plotted with "broken" line styles if the setting is enabled.
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.