Laguerre RSILaguerre RSI with pinescript version 6. Copy of the existing script with color and smoothing changes.
Osilatörler
RSI CAPITAL CRYPTO//@version=5
indicator("RSI with Arrows", overlay=true)
// Configuração do RSI
rsiLength = 14
rsiSource = close
rsiValue = ta.rsi(rsiSource, rsiLength)
// Condições para as setas
arrowDown = rsiValue > 85
arrowUp = rsiValue < 20
// Plotando setas no gráfico
plotshape(arrowDown, style=shape.labeldown, location=location.abovebar, color=color.red, size=size.small, text="↓")
plotshape(arrowUp, style=shape.labelup, location=location.belowbar, color=color.green, size=size.small, text="↑")
// Plotando o RSI
hline(80, "Overbought", color=color.red)
hline(30, "Oversold", color=color.green)
plot(rsiValue, "RSI", color=color.blue)
Smart Moving Average Trend IndicatorThe Smart Moving Average Trend Indicator is designed to provide traders with a comprehensive analysis of market trends, confirmations, and potential reversals. Here’s a detailed description of its technical features:
Technical Features
Moving Average Calculation:
Simple Moving Average (SMA): The indicator calculates a simple moving average over a user-defined period (default is 14 bars). This average helps smooth out price fluctuations and identify the overall direction of the trend.
Trend Detection:
Primary Trend: Identifies long-term trends (weeks to months) based on price movement above or below the SMA.
Secondary Trend: Tracks short-term corrections or retracements against the primary trend.
Minor Trend: Monitors short-term fluctuations, providing insights into immediate market movements.
Volume Confirmation:
The indicator assesses whether the current volume exceeds a threshold (default is 1.5 times the SMA of volume). A price increase accompanied by higher volume indicates stronger trend validity.
Trendline Detection:
The script draws trendlines for primary, secondary, and minor trends, visually assisting traders in identifying potential support and resistance levels. These trendlines help visualize the overall market structure.
Trend Reversal Signals:
The indicator highlights potential trend reversals based on specific conditions (e.g., lower troughs or peaks). This feature allows traders to anticipate changes in trend direction, increasing the likelihood of capturing significant price moves.
Alerts:
Alert Conditions: The indicator includes alert conditions for potential trend reversals and volume confirmations. Traders can set up alerts to be notified when these conditions are met, facilitating timely decision-making.
Visual Indications:
Background Color: Changes the background color to red when a potential trend reversal is detected, providing a clear visual cue.
Volume Confirmation Markers: Displays small upward labels below bars when volume confirmation is present, indicating significant trading activity accompanying price movements.
Overall Benefits
Multi-Faceted Analysis: The combination of trend detection, volume analysis, and reversal signals provides a holistic view of market dynamics.
Enhanced Decision-Making: With alerts and visual cues, traders can make more informed decisions, potentially increasing their success in identifying entry and exit points.
Flexibility: Users can customize the moving average length and volume threshold, allowing the indicator to adapt to different trading strategies and timeframes.
This Smart Moving Average Trend Indicator is particularly useful for traders looking to capture trends while minimizing noise and false signals, making it a valuable tool in technical analysis.
RSI Status v1Simple RSI status indicator that displays GREEN for RSI cross-up of its EMA, and RED for RSI cross-down of its EMA. RSI value is also displayed.
RSI Status v2 Multi-TFThe RSI provides two values, the RSI and the RSI-EMA. This simple indicator simply displays the status of the RSI (Green/Red) and the associated values for the Weekly, Daily and 4-hour time-frames, regardless of what time-frame you are viewing. The exception is the 4-hour value, that will have a minor difference when viewed from the Daily or Weekly due to the code picking up the first 4-hour reading of the day rather than the final 4-hour (end-of-day). It will read correctly when viewing the 4-hour chart.
Enhanced Price Z-Score OscillatorThe Enhanced Price Z-Score Oscillator by tkarolak is a powerful tool that transforms raw price data into an easy-to-understand statistical visualization using Z-Score-derived candlesticks. Simply put, it shows how far prices stray from their average in terms of standard deviations (Z-Scores), helping traders identify when prices are unusually high (overbought) or unusually low (oversold).
The indicator’s default feature displays Z-Score Candlesticks, where each candle reflects the statistical “distance” of the open, high, low, and close prices from their average. This creates a visual map of market extremes and potential reversal points. For added flexibility, you can also switch to Z-Score line plots based on either Close prices or OHLC4 averages.
With clear threshold lines (±2σ and ±3σ) marking moderate and extreme price deviations, and color-coded zones to highlight overbought and oversold areas, the oscillator simplifies complex statistical concepts into actionable trading insights.
CCI with DivergencesThis indicator identifies bullish and bearish divergences using the Commodity Channel Index (CCI). It is designed to help traders visualize divergence points with trendlines and labels, making it easier to spot potential market reversals.
Key Features:
Detects Bullish Divergences (CCI higher low while price forms a lower low).
Detects Bearish Divergences (CCI lower high while price forms a higher high).
Plots trendlines to connect divergence points for clear visualization.
Labels the divergence points with "Bull" or "Bear" for added clarity.
Includes alerts for both bullish and bearish divergences, so you never miss a signal.
How to Use:
Add this indicator to your chart and look for divergences in conjunction with other analysis methods.
Use the alerts to stay informed about new divergences as they form.
Disclaimer: This script is for educational purposes only and should not be considered financial advice. Trading in financial markets involves substantial risk and may not be suitable for all investors. Always do your own research and consult a professional financial advisor before making any trading decisions.
GG_EMA 50/200 Crossover with RSI StrategyThe script generates a long signal if the 50 ema crosses the 200 upwards and at the same time the RSI >50.
The script generates a short signal if the 50 ema crosses the 200 downwards and at the same time the RSI <50.
Custom RSI- Ashish SinghThe RSI Buy Above 60 and Sell Below 40 strategy is a trading approach based on the Custom RSI Indicator, which focuses on momentum shifts in the 40-60 range. Here's how it operates:
Buy Above 60:
Condition: When the RSI crosses above 60, it signals increasing bullish momentum.
Interpretation: The market is transitioning into a strong upward trend, suggesting a potential buying opportunity.
Execution:
Enter a buy position when the RSI value exceeds 60.
Confirm the signal using other technical tools (e.g., volume analysis, support/resistance levels).
Consider setting a stop-loss below a recent support level or below the 40 RSI level as a safeguard.
Sell Below 40:
Condition: When the RSI drops below 40, it indicates growing bearish momentum.
Interpretation: The market is entering a downtrend, making it an opportune moment to sell or short.
Execution:
Enter a sell position (or close long positions) when the RSI value falls below 40.
Confirm the signal with complementary analysis (e.g., trendlines, bearish candlestick patterns).
Place a stop-loss above a recent resistance level or above the 60 RSI level for risk management.
Key Considerations:
Avoiding Whipsaws:
In sideways or low-volatility markets, this strategy may generate false signals. Use additional filters like moving averages or Bollinger Bands to confirm trends.
Exit Strategies:
Consider exiting positions when the RSI reverts to the opposite threshold (e.g., sell when RSI drops below 60 after a buy, or buy back when RSI climbs above 40 after a sell).
Use trailing stops to lock in profits during strong trends.
Combining with Other Tools:
Pair the RSI signals with broader trend indicators like the MACD or Moving Averages to avoid acting on weak trends.
Risk Management:
Always define risk limits and position sizes to protect capital, particularly in volatile markets.
Example:
Buy Scenario: If the RSI rises from 58 to 62, confirming bullish momentum, initiate a long position. Exit the trade if the RSI falls back below 60 or based on a pre-defined profit target.
Sell Scenario: If the RSI drops from 42 to 38, signaling bearish momentum, initiate a short position. Exit the trade if the RSI climbs back above 40 or hits a stop-loss.
This simple yet effective strategy can provide clear entry and exit points when applied with discipline and supported by other market analysis tools.
RSI+EMA+MZONES with DivergencesFeatures:
1. RSI Calculation:
Uses user-defined periods to calculate the RSI and visualize momentum shifts.
Plots key RSI zones, including upper (overbought), lower (oversold), and middle levels.
2. EMA of RSI:
Includes an Exponential Moving Average (EMA) of the RSI for trend smoothing and confirmation.
3. Bullish and Bearish Divergences:
Detects Regular divergences (labeled as “Bull” and “Bear”) for classic signals.
Identifies Hidden divergences (labeled as “H Bull” and “H Bear”) for potential trend continuation opportunities.
4. Customizable Labels:
Displays divergence labels directly on the chart.
Labels can be toggled on or off for better chart visibility.
5. Alerts:
Predefined alerts for both regular and hidden divergences to notify users in real time.
6. Fully Customizable:
Adjust RSI period, lookback settings, divergence ranges, and visibility preferences.
Colors and styles are easily configurable to match your trading style.
How to Use:
RSI Zones: Use RSI and its zones to identify overbought/oversold conditions.
EMA: Look for crossovers or confluence with divergences for confirmation.
Divergences: Monitor for “Bull,” “Bear,” “H Bull,” or “H Bear” labels to spot key reversal or continuation signals.
Alerts: Set alerts to be notified of divergence opportunities without constant chart monitoring.
RSI Divergence + Sweep + Signal + Alerts Toolkit [TrendX_]The RSI Toolkit is a powerful set of tools designed to enhance the functionality of the traditional Relative Strength Index (RSI) indicator. By integrating advanced features such as Moving Averages, Divergences, and Sweeps, it helps traders identify key market dynamics, potential reversals, and newly-approach trading stragies.
The toolkit expands on standard RSI usage by incorporating features from smart money concepts (Just try to be creative 🤣 Hope you like it), providing a deeper understanding of momentum, liquidity sweeps, and trend reversals. It is suitable for RSI traders who want to make more informed and effective trading decisions.
💎 FEATURES
RSI Moving Average
The RSI Moving Average (RSI MA) is the moving average of the RSI itself. It can be customized to use various types of moving averages, including Simple Moving Average (SMA), Exponential Moving Average (EMA), Relative Moving Average (RMA), and Volume-Weighted Moving Average (VWMA).
The RSI MA smooths out the RSI fluctuations, making it easier to identify trends and crossovers. It helps traders spot momentum shifts and potential entry/exit points by observing when the RSI crosses above or below its moving average.
RSI Divergence
RSI Divergence identifies discrepancies between price action and RSI momentum. There are two types of divergences: Regular Divergence - Indicates a potential trend reversal; Hidden Divergence - Suggests the continuation of the current trend.
Divergence is a critical signal for spotting weakness or strength in a trend. Regular divergence highlights potential trend reversals, while hidden divergence confirms trend continuation, offering traders valuable insights into market momentum and possible trade setups.
RSI Sweep
RSI Sweep detects moments when the RSI removes liquidity from a trend structure by sweeping above or below the price at key momentum level crossing. These sweeps are overlaid on the RSI chart for easier visualized.
RSI Sweeps are significant because they indicate potential turning points in the market. When RSI sweeps occur: In an uptrend - they suggest buyers' momentum has peaked, possibly leading to a reversal; In a downtrend - they indicate sellers’ momentum has peaked, also hinting at a reversal.
(Note: This feature incorporates Liquidity Sweep concepts from Smart Money Concepts into RSI analysis, helping RSI traders identify areas where liquidity has been removed, which often precedes a trend reversal)
🔎 BREAKDOWN
RSI Moving Average
How MA created: The RSI value is calculated first using the standard RSI formula. The MA is then applied to the RSI values using the trader’s chosen type of MA (SMA, EMA, RMA, or VWMA). The flexibility to choose the type of MA allows traders to adjust the smoothing effect based on their trading style.
Why use MA: RSI by itself can be noisy and difficult to interpret in volatile markets. Applying moving average would provide a smoother, more reliable view of RSI trends.
RSI Divergence
How Regular Divergence created: Regular Divergence is detected when price forms HIGHER highs while RSI forms LOWER highs (bearish divergence) or when price forms LOWER lows while RSI forms HIGHER lows (bullish divergence).
How Hidden Divergence created: Hidden Divergence is identified when price forms HIGHER lows while RSI forms LOWER lows (bullish hidden divergence) or when price forms LOWER highs while RSI forms HIGHER highs (bearish hidden divergence).
Why use Divergence: Divergences provide early warning signals of a potential trend change. Regular divergence helps traders anticipate reversals, while hidden divergence supports trend continuation, enabling traders to align their trades with market momentum.
RSI Sweep
How Sweep created: Trend Structure Shift are identified based on the RSI crossing key momentum level of 50. To track these sweeps, the indicator pinpoints moments when liquidity is removed from the Trend Structure Shift. This is a direct application of Liquidity Sweep concepts used in Smart Money theories, adapted to RSI.
Why use Sweep: RSI Sweeps are created to help traders detect potential trend reversals. By identifying areas where momentum has exhausted during a certain trend direction, the indicator highlights opportunities for traders to enter trades early in a reversal or continuation phase.
⚙️ USAGES
Divergence + Sweep
This is an example of combining Devergence & Sweep in BTCUSDT (1 hour)
Wait for a divergence (regular or hidden) to form on the RSI. After the divergence is complete, look for a sweep to occur. A potential entry might be formed at the end of the sweep.
Divergences indicate a potential trend change, but confirmation is required to ensure the setup is valid. The RSI Sweep provides that confirmation by signaling a liquidity event, increasing the likelihood of a successful trade.
Sweep + MA Cross
This is an example of combining Devergence & Sweep in BTCUSDT (1 hour)
Wait for an RSI Sweep to form then a potential entry might be formed when the RSI crosses its MA.
The RSI Sweep highlights a potential turning point in the market. The MA cross serves as additional confirmation that momentum has shifted, providing a more reliable and more potential entry signal for trend continuations.
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions. There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur. Therefore, one should always exercise caution and judgment when making decisions based on past performance.
ATR Oscillator with Dots and Dynamic Zero LineWhat It Is
The ATR Oscillator with Dots and Dynamic Zero Line is a custom indicator based on the Average True Range (ATR), designed to provide traders with enhanced insights into market volatility and directional bias. Unlike traditional ATR oscillators that plot continuous lines, this version uses distinct dots to display ATR values and includes a dynamic zero line that changes color based on market direction (uptrend, downtrend, or consolidation).
How It Works
ATR Calculation:
The indicator calculates the Average True Range over a user-defined period (default: 14 bars). ATR measures market volatility by considering the range between the high, low, and close of each bar.
Dots for ATR Values:
Instead of plotting ATR values as a continuous line, the indicator represents each value as an individual blue dot. This format highlights changes in volatility without visually connecting them, helping to avoid false trends and clutter.
Dynamic Zero Line:
A horizontal zero line provides additional directional context. The line changes color dynamically:
Green: Indicates an uptrend (price is consistently closing higher over consecutive bars).
Red: Indicates a downtrend (price is consistently closing lower over consecutive bars).
Gray: Indicates market consolidation or sideways movement (no clear trend in price).
The thickness and step-like style of the zero line make it visually prominent, enabling quick interpretation of market direction.
What It Does
Visualizes Market Volatility:
By plotting ATR values as dots, the oscillator emphasizes periods of heightened or reduced market activity, helping traders anticipate breakout opportunities or avoid low-volatility zones.
Provides Trend Context:
The dynamic zero line gives traders a clear signal of the prevailing market trend (uptrend, downtrend, or consolidation), which can be used to align trading strategies with the broader market context.
Avoids Misleading Trends:
Unlike traditional ATR oscillators that use continuous lines, this version eliminates visual artifacts caused by noise, such as false trends during consolidation periods.
Simplifies Interpretation:
The combination of ATR dots and a color-coded zero line creates a straightforward and intuitive tool for assessing both volatility and market direction.
Why It’s More Useful Than a Traditional ATR Oscillator
Enhanced Visibility:
The use of dots instead of a continuous line makes it easier to spot discrete changes in ATR values, avoiding visual clutter and false impressions of smooth trends.
Dynamic Market Context:
Traditional ATR oscillators only measure volatility, offering no indication of market direction. The dynamic zero line in this oscillator adds valuable directional context, helping traders align their strategies with the trend.
Better for Range-Bound Markets:
The zero line’s color-changing feature highlights consolidation periods, enabling traders to identify and avoid trading during sideways, low-volatility conditions where false signals are common.
Quick Decision-Making:
With clear visual cues (dots and color-coded lines), traders can quickly assess market conditions without needing to analyze multiple charts or indicators.
Improved Confluence:
The oscillator’s signals can easily be combined with other tools like VWAP, Volume Profile, or Order Flow indicators for more confident trade decisions.
When to Use It
Trending Markets:
Use the dynamic zero line to confirm the market’s direction and align trades accordingly.
Breakout Opportunities:
Look for periods of increasing ATR (dots moving higher) to anticipate high-volatility breakout scenarios.
Avoiding Noise:
During consolidation (gray zero line), this oscillator warns traders to wait for clearer signals before entering trades.
RSI BB StdDev SignalOverview
The RSI BB StdDev Signal Indicator is a powerful tool designed to enhance your trading strategy by combining the Relative Strength Index (RSI) with Bollinger Bands (BB). This unique combination allows traders to identify potential buy and sell signals more accurately by leveraging the strengths of both indicators. The RSI helps in identifying overbought and oversold conditions, while the Bollinger Bands provide a dynamic range to assess volatility and potential price reversals.
Key Features
— RSI Calculation: The indicator calculates the RSI based on user-defined parameters, allowing for customization to fit different trading styles.
— Bollinger Bands Integration: The RSI values are smoothed using a moving average, and Bollinger Bands are applied to this smoothed RSI to generate buy and sell signals.
— Divergence Detection: The indicator includes an optional feature to detect and alert on bullish and bearish divergences between the RSI and price action.
— Customizable Alerts: Users can set up alerts for buy and sell signals, as well as for divergences, ensuring they never miss a trading opportunity.
— Visual Aids: The indicator plots the RSI, Bollinger Bands, and signals on the chart, making it easy to visualize and interpret the data.
How It Works
1. RSI Calculation:
— The RSI is calculated using the change in the source input (default is close price) over a specified period.
— The RSI values are then plotted on the chart with customizable overbought and oversold levels.
2. Smoothing and Bollinger Bands:
— The RSI values are smoothed using a moving average (SMA, EMA, SMMA, WMA, VWMA) selected by the user.
— Bollinger Bands are applied to the smoothed RSI to create dynamic upper and lower bands.
3. Signal Generation:
—Buy signals are generated when the RSI crosses above the lower Bollinger Band.
—Sell signals are generated when the RSI crosses below the upper Bollinger Band.
—These signals are plotted on both the RSI pane and the main price chart for easy reference.
4. Divergence Detection:
— The indicator can detect and alert on regular bullish and bearish divergences between the RSI and price action.
— Bullish divergences occur when the price makes a lower low, but the RSI makes a higher low.
— Bearish divergences occur when the price makes a higher high, but the RSI makes a lower high.
Usage
1. Setting Up:
— Add the indicator to your TradingView chart.
— Customize the RSI length, source, and other parameters in the settings panel.
— Enable or disable the divergence detection based on your trading strategy.
2. Interpreting Signals:
— Use the buy and sell signals generated by the RSI crossing the Bollinger Bands as potential entry and exit points.
— Pay attention to divergences for additional confirmation of trend reversals.
3. Alerts:
— Set up alerts for buy and sell signals to receive notifications in real-time.
— Enable divergence alerts to be notified of potential trend reversals.
Conclusion
The RSI BB StdDev Signal Indicator is a comprehensive tool that combines the strengths of the RSI and Bollinger Bands to provide traders with more accurate and reliable signals. Whether you are a beginner or an experienced trader, this indicator can enhance your trading strategy by offering clear visual cues and customizable alerts.
Note
This indicator is provided with open-source code, allowing users to understand its logic and customize it further if needed. The detailed description and customizable settings ensure that traders of all levels can benefit from its unique features.
PROWIN STUDY ALTCOIN INDEXPROWIN STUDY ALTCOIN INDEX
This indicator tracks the performance of key altcoin dominance indices (BTC.D, ETH.D, USDT.D, USDC.D, and DAI.D) by analyzing their closing prices. It calculates an Exponential Moving Average (EMA) to highlight the overall trend of the altcoin market. Key horizontal levels representing support (limit up), resistance (limit down), and a central line are drawn to help identify potential price action zones. This indicator is designed for analysis on the others.d asset in a daily timeframe, providing insights into market movements and altcoin dominance shifts.
Momentum Matrix (BTC-COIN)The Momentum Matrix (BTC-COIN) indicator analyzes the momentum relationship between Coinbase stock ( NASDAQ:COIN ) and Bitcoin ( CRYPTOCAP:BTC ). By combining RSI, correlation, and dominance metrics, it identifies bullish and bearish macro trends to align trades with market momentum.
How It Works
Price Inputs: Pulls weekly price data for CRYPTOCAP:BTC and NASDAQ:COIN for macro analysis.
Metrics Calculated:
• RSI Divergence: Measures momentum differences between CRYPTOCAP:BTC and $COIN.
• Price Ratio: Tracks the $COIN/ CRYPTOCAP:BTC relationship relative to its long-term average (SMA).
• Correlation: Analyzes price co-movement between CRYPTOCAP:BTC and $COIN.
• Dominance Impact: Incorporates CRYPTOCAP:BTC dominance for broader crypto trends.
Composite Momentum Score: Combines these metrics into a smoothed macro momentum value.
Thresholds for Trend Detection: Upper and lower thresholds dynamically adapt to market conditions.
Signals and Visualization:
• Buy Signal: Momentum exceeds the upper threshold, indicating bullish trends.
• Sell Signal: Momentum falls below the lower threshold, indicating bearish trends.
• Background Colors: Green (bullish), Red (bearish).
Strengths
Integrates multiple metrics for robust macro analysis.
Dynamic thresholds adapt to market conditions.
Effective for identifying macro momentum shifts.
Limitations
Lag in high volatility due to smoothing.
Less effective in choppy, sideways markets.
Assumes CRYPTOCAP:BTC dominance drives NASDAQ:COIN momentum, which may not always hold true.
Improvements
Multi-Timeframe Analysis: Add daily or monthly data for precision.
Volume Filters: Include volume thresholds for signal validation.
Additional Metrics: Consider MACD or Stochastics for further confirmation.
Complementary Tools
Volume Indicators: OBV or cumulative delta for confirmation.
Trend-Following Systems: Pair with moving averages for timing.
Market Breadth Metrics: Combine with CRYPTOCAP:BTC dominance trends for context.
DAILY Supertrend + EMA Crossover with RSI FilterThis strategy is a technical trading approach that combines multiple indicators—Supertrend, Exponential Moving Averages (EMAs), and the Relative Strength Index (RSI)—to identify and manage trades.
Core Components:
1. Exponential Moving Averages (EMAs):
Two EMAs, one with a shorter period (fast) and one with a longer period (slow), are calculated. The idea is to spot when the faster EMA crosses above or below the slower EMA. A fast EMA crossing above the slow EMA often suggests upward momentum, while crossing below suggests downward momentum.
2. Supertrend Indicator:
The Supertrend uses Average True Range (ATR) to establish dynamic support and resistance lines. These lines shift above or below price depending on the prevailing trend. When price is above the Supertrend line, the trend is considered bullish; when below, it’s considered bearish. This helps ensure that the strategy trades only in the direction of the overall trend rather than against it.
3. RSI Filter:
The RSI measures momentum. It helps avoid buying into markets that are already overbought or selling into markets that are oversold. For example, when going long (buying), the strategy only proceeds if the RSI is not too high, and when going short (selling), it only proceeds if the RSI is not too low. This filter is meant to improve the quality of the trades by reducing the chance of entering right before a reversal.
4. Time Filters:
The strategy only triggers entries during user-specified date and time ranges. This is useful if one wants to limit trading activity to certain trading sessions or periods with higher market liquidity.
5. Risk Management via ATR-based Stops and Targets:
Both stop loss and take profit levels are set as multiples of the ATR. ATR measures volatility, so when volatility is higher, both stops and profit targets adjust to give the trade more breathing room. Conversely, when volatility is low, stops and targets tighten. This dynamic approach helps maintain consistent risk management regardless of market conditions.
Overall Logic Flow:
- First, the market conditions are analyzed through EMAs, Supertrend, and RSI.
- When a buy (long) condition is met—meaning the fast EMA crosses above the slow EMA, the trend is bullish according to Supertrend, and RSI is below the specified “overbought” threshold—the strategy initiates or adds to a long position.
- Similarly, when a sell (short) condition is met—meaning the fast EMA crosses below the slow EMA, the trend is bearish, and RSI is above the specified “oversold” threshold—it initiates or adds to a short position.
- Each position is protected by an automatically calculated stop loss and a take profit level based on ATR multiples.
Intended Result:
By blending trend detection, momentum filtering, and volatility-adjusted risk management, the strategy aims to capture moves in the primary trend direction while avoiding entries at excessively stretched prices. Allowing multiple entries can potentially amplify gains in strong trends but also increases exposure, which traders should consider in their risk management approach.
In essence, this strategy tries to ride established trends as indicated by the Supertrend and EMAs, filter out poor-quality entries using RSI, and dynamically manage trade risk through ATR-based stops and targets.
Double RSIDouble RSI (DRSI) Indicator
The Double RSI (DRSI) is a technical analysis tool designed to provide traders with enhanced buy and sell signals by identifying uptrend and downtrend thresholds. It refines traditional RSI-based signals by applying a "double calculation" to the Relative Strength Index (RSI), improving precision in detecting trend changes.
Key Concepts Behind the Indicator
1. Double RSI Calculation
The DRSI indicator takes the standard RSI (calculated using the closing price over a specified length) and applies a second RSI calculation to it. This creates a smoother, more refined RSI value, making it more effective at highlighting the general trend of the market.
RSI: Measures the strength of recent price movements, ranging from 0 to 100.
Double RSI (DRSI): Applies the RSI formula to the RSI values themselves, smoothing out fluctuations and generating clearer signals.
How Does the Indicator Work?
The DRSI identifies uptrends and downtrends using two user-defined thresholds:
Uptrend Threshold (Default = 59): A value above this threshold signals a potential shift into an uptrend.
Downtrend Threshold (Default = 52): A value below this threshold signals a potential shift into a downtrend.
Signal Generation
Buy Signal: A crossover occurs when the DRSI value crosses above the Downtrend Threshold, signaling the beginning of an upward movement.
Sell Signal: A crossunder occurs when the DRSI value crosses below the Uptrend Threshold, signaling the beginning of a downward movement.
Customizable Inputs
The indicator offers customizable settings for increased flexibility:
DRSI Length (Default = 13): Determines the lookback period for RSI calculations. A shorter length increases sensitivity, while a longer length smooths the signals.
Uptrend Threshold (Default = 59): Sets the level above which an uptrend is confirmed.
Downtrend Threshold (Default = 52): Sets the level below which a downtrend is confirmed.
Bar Color and Glow Effects: Traders can enable colored candles or glowing DRSI lines for better visual representation.
Why is This Indicator Useful for Traders?
1. Noise Reduction
By applying a second RSI calculation, the DRSI smooths out minor fluctuations and highlights the overall trend.
2. Clear Uptrend and Downtrend Signals
The indicator provides intuitive buy (green arrow) and sell (red arrow) markers, simplifying decision-making.
3. Customizable Thresholds
Traders can adjust the thresholds and length to better suit specific trading strategies or market conditions.
4. Bar Coloring
Bars are color-coded to indicate the trend:
Green (Above Uptrend Threshold): Indicates an uptrend.
Red (Below Downtrend Threshold): Indicates a downtrend.
How the Indicator Appears on the Chart
DRSI Line: A smooth line derived from the double RSI calculation.
Threshold Lines: Two horizontal lines (green for the Uptrend Threshold, red for the Downtrend Threshold) to visualize trend changes.
Colored Candles: Candlesticks dynamically change color based on the trend direction (green for uptrends, red for downtrends).
Buy/Sell Markers:
Buy Signal: A green upward triangle below the bar, marking the start of an uptrend.
Sell Signal: A red downward triangle above the bar, marking the start of a downtrend.
In Summary
The Double RSI (DRSI) indicator is a powerful tool for identifying uptrends and downtrends with:
Smoothed trend detection using double-calculated RSI values.
Clear, actionable buy and sell signals.
Customizable settings to match different trading styles.
By focusing on trend thresholds rather than overbought or oversold levels, the DRSI provides traders with precise, noise-free signals to optimize their trading decisions.
RSI Divergence - Left Candles Onlyrsi
The **RSI Divergence** indicator in this script is designed to highlight **divergence** between the **Relative Strength Index (RSI)** and **price action** on a chart. Divergence can be a key signal for potential trend reversals or continuation in technical analysis.
### **Key Components of the Indicator:**
1. **RSI Calculation:**
- The **Relative Strength Index (RSI)** is calculated using a typical 14-period length, but the user can customize this input.
- RSI is a momentum oscillator that measures the speed and change of price movements, oscillating between 0 and 100. Values above 70 indicate overbought conditions, and values below 30 indicate oversold conditions.
2. **Divergence Logic:**
- **Bullish Divergence:** Occurs when the price forms a **lower low**, but the RSI forms a **higher low**. This suggests that despite price continuing to drop, momentum (RSI) is strengthening, which may indicate a potential price reversal to the upside.
- **Bearish Divergence:** Occurs when the price forms a **higher high**, but the RSI forms a **lower high**. This indicates that even though price is rising, the momentum (RSI) is weakening, which could signal a price reversal to the downside.
3. **Pivot Identification:**
- The script identifies **pivot points** (local highs and lows) on both price and RSI.
- **Bullish Divergence:** A lower price low with a higher RSI low.
- **Bearish Divergence:** A higher price high with a lower RSI high.
4. **Lookback Periods:**
- **Lookback Left (lookbackLeft):** Defines the number of bars to look back for pivot confirmation. This allows for adjusting the sensitivity of the divergence.
- The **divergence range** is constrained by two parameters:
- **Minimum range (rangeLower):** The minimum number of bars for divergence to be considered.
- **Maximum range (rangeUpper):** The maximum number of bars for divergence to be considered.
5. **Signal Generation and Plotting:**
- When a **bullish divergence** is detected, a **green label** is plotted below the bar where the divergence occurs.
- When a **bearish divergence** is detected, a **red label** is plotted above the bar.
- The script uses **`plotshape()`** to plot these labels on the chart.
6. **Alerts:**
- Alerts are configured for both **bullish** and **bearish divergences** so that you can be notified when a divergence signal occurs.
---
### **How the Indicator Works:**
- The RSI and price action are compared using **pivots**: The script checks whether the price and RSI are forming new highs or lows within the specified **lookback period**.
- If the conditions for divergence (higher/lower RSI pivot vs price pivot) are met, a signal is plotted on the chart.
- The script helps to visually identify potential reversal points and allows users to set alerts for these divergence signals.
---
### **Use Case:**
- This script is useful for traders looking to trade potential trend reversals based on **divergence** between price and RSI.
- **Bullish divergence** can indicate a **buy** opportunity, while **bearish divergence** can suggest a **sell** opportunity.
- The indicator works best in **volatile markets** and when combined with other technical analysis tools for confirmatio
Polyphase MACD (PMACD)The Polyphase MACD (PMACD) uses polyphase decimation to create a continuous estimate of higher timeframe MACD behavior. The number of phases represents the timeframe multiplier - for example, 3 phases approximates a 3x higher timeframe.
Traditional higher timeframe MACD indicators update only when each higher timeframe bar completes, creating stepped signals that can miss intermediate price action. The PMACD addresses this by maintaining multiple phase-shifted MACD calculations and combining them with appropriate anti-aliasing filters. This approach eliminates the discrete jumps typically seen in higher timeframe indicators, though the resulting signal may sometimes deviate from the true higher timeframe values due to its estimative nature.
The indicator processes price data through parallel phase calculations, each analyzing a different time-offset subset of the data. These phases are filtered and combined to prevent aliasing artifacts that occur in simple timeframe conversions. The result is a smooth, continuous signal that begins providing meaningful values immediately, without requiring a warm-up period of higher timeframe bars.
The PMACD maintains the standard MACD components - the MACD line (fast MA - slow MA), signal line, and histogram - while providing a more continuous view of higher timeframe momentum. Users can select between EMA and SMA calculations for both the oscillator and signal components, with all calculations benefiting from the same polyphase processing technique.
Polyphase Stochastic RSI (PSRSI)The Polyphase Stochastic RSI (PSRSI) provides a continuous estimate of higher timeframe Stochastic RSI behavior by using polyphase decimation. The number of phases represents the timeframe multiplier - for example, 3 phases approximates a 3x higher timeframe.
While traditional higher timeframe indicators only update at the completion of each higher timeframe bar, the PSRSI creates a continuous signal by maintaining multiple phase-shifted calculations and combining them with appropriate anti-aliasing filters. This approach eliminates the gaps and discontinuities typically seen in higher timeframe indicators, though the resulting signal may sometimes deviate from the true higher timeframe values due to its estimative nature.
The indicator processes data through parallel phase calculations, each handling a different subset of price data offset in time. These phases are then filtered and combined to prevent aliasing artifacts that occur in simple timeframe conversions. The result is a smooth, continuous signal that starts providing meaningful values immediately, without requiring a warm-up period of higher timeframe bars.
Users can choose between RSI and Stochastic RSI modes, with both benefiting from the same polyphase processing technique. The indicator maintains the standard interpretation of overbought and oversold conditions while providing a more continuous view of higher timeframe momentum.
RSI and Bollinger Bands Screener [deepakks444]Indicator Overview
The indicator is designed to help traders identify potential long signals by combining the Relative Strength Index (RSI) and Bollinger Bands across multiple timeframes. This combination allows traders to leverage the strengths of both indicators to make more informed trading decisions.
Understanding RSI
What is RSI?
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. Developed by J. Welles Wilder Jr. for stocks and forex trading, the RSI is primarily used to identify overbought or oversold conditions in an asset.
How RSI Works:
Calculation: The RSI is calculated using the average gains and losses over a specified period, typically 14 periods.
Range: The RSI oscillates between 0 and 100.
Interpretation:
Key Features of RSI:
Momentum Indicator: RSI helps identify the momentum of price movements.
Divergences: RSI can show divergences, where the price makes a higher high, but the RSI makes a lower high, indicating potential reversals.
Trend Identification: RSI can also help identify trends. In an uptrend, the RSI tends to stay above 50, and in a downtrend, it tends to stay below 50.
Understanding Bollinger Bands
What is Bollinger Bands?
Bollinger Bands are a type of trading band or envelope plotted two standard deviations (positively and negatively) away from a simple moving average (SMA) of a price. Developed by financial analyst John Bollinger, Bollinger Bands consist of three lines:
Upper Band: SMA + (Standard Deviation × Multiplier)
Middle Band (Basis): SMA
Lower Band: SMA - (Standard Deviation × Multiplier)
How Bollinger Bands Work:
Volatility Measure: Bollinger Bands measure the volatility of the market. When the bands are wide, it indicates high volatility, and when the bands are narrow, it indicates low volatility.
Price Movement: The price tends to revert to the mean (middle band) after touching the upper or lower bands.
Support and Resistance: The upper and lower bands can act as dynamic support and resistance levels.
Key Features of Bollinger Bands:
Volatility Indicator: Bollinger Bands help traders understand the volatility of the market.
Mean Reversion: Prices tend to revert to the mean (middle band) after touching the bands.
Squeeze: A Bollinger Band Squeeze occurs when the bands narrow significantly, indicating low volatility and a potential breakout.
Combining RSI and Bollinger Bands
Strategy Overview:
The strategy aims to identify potential long signals by combining RSI and Bollinger Bands across multiple timeframes. The key conditions are:
RSI Crossing Above 60: The RSI should cross above 60 on the 15-minute timeframe.
RSI Above 60 on Higher Timeframes: The RSI should already be above 60 on the hourly and daily timeframes.
Price Above 20MA or Walking on Upper Bollinger Band: The price should be above the 20-period moving average of the Bollinger Bands or walking on the upper Bollinger Band.
Strategy Details:
RSI Calculation:
Calculate the RSI for the 15-minute, 1-hour, and 1-day timeframes.
Check if the RSI crosses above 60 on the 15-minute timeframe.
Ensure the RSI is above 60 on the 1-hour and 1-day timeframes.
Bollinger Bands Calculation:
Calculate the Bollinger Bands using a 20-period moving average and 2 standard deviations.
Check if the price is above the 20-period moving average or walking on the upper Bollinger Band.
Entry and Exit Signals:
Long Signal: When all the above conditions are met, consider a long entry.
Exit: Exit the trade when the price crosses below the 20-period moving average or the stop-loss is hit.
Example Usage
Setup:
Add the indicator to your TradingView chart.
Configure the inputs as per your requirements.
Monitoring:
Look for the long signal on the chart.
Ensure that the RSI is above 60 on the 15-minute, 1-hour, and 1-day timeframes.
Check that the price is above the 20-period moving average or walking on the upper Bollinger Band.
Trading:
Enter a long position when the criteria are met.
Set a stop-loss below the low of the recent 15-minute candle or based on your risk management rules.
Monitor the trade and exit when the RSI returns below 60 on any of the timeframes or when the price crosses below the 20-period moving average.
House Rules Compliance
No Financial Advice: This strategy is for educational purposes only and should not be construed as financial advice.
Risk Management: Always use proper risk management techniques, including stop-loss orders and position sizing.
Past Performance: Past performance is not indicative of future results. Always conduct your own research and analysis.
TradingView Guidelines: Ensure that any shared scripts or strategies comply with TradingView's terms of service and community guidelines.
Conclusion
This strategy combines RSI and Bollinger Bands across multiple timeframes to identify potential long signals. By ensuring that the RSI is above 60 on higher timeframes and that the price is above the 20-period moving average or walking on the upper Bollinger Band, traders can make more informed decisions. Always remember to conduct thorough research and use proper risk management techniques.
3 EMA + RSI with Trail Stop [Free990] (LOW TF)This trading strategy combines three Exponential Moving Averages (EMAs) to identify trend direction, uses RSI to signal exit conditions, and applies both a fixed percentage stop-loss and a trailing stop for risk management. It aims to capture momentum when the faster EMAs cross the slower EMA, then uses RSI thresholds, time-based exits, and stops to close trades.
Short Explanation of the Logic
Trend Detection: When the 10 EMA crosses above the 20 EMA and both are above the 100 EMA (and the current price bar closes higher), it triggers a long entry signal. The reverse happens for a short (the 10 EMA crosses below the 20 EMA and both are below the 100 EMA).
RSI Exit: RSI crossing above a set threshold closes long trades; crossing below another threshold closes short trades.
Time-Based Exit: If a trade is in profit after a set number of bars, the strategy closes it.
Stop-Loss & Trailing Stop: A fixed stop-loss based on a percentage from the entry price guards against large drawdowns. A trailing stop dynamically tightens as the trade moves in favor, locking in potential gains.
Detailed Explanation of the Strategy Logic
Exponential Moving Average (EMA) Setup
Short EMA (out_a, length=10)
Medium EMA (out_b, length=20)
Long EMA (out_c, length=100)
The code calculates three separate EMAs to gauge short-term, medium-term, and longer-term trend behavior. By comparing their relative positions, the strategy infers whether the market is bullish (EMAs stacked positively) or bearish (EMAs stacked negatively).
Entry Conditions
Long Entry (entryLong): Occurs when:
The short EMA (10) crosses above the medium EMA (20).
Both EMAs (short and medium) are above the long EMA (100).
The current bar closes higher than it opened (close > open).
This suggests that momentum is shifting to the upside (short-term EMAs crossing up and price action turning bullish). If there’s an existing short position, it’s closed first before opening a new long.
Short Entry (entryShort): Occurs when:
The short EMA (10) crosses below the medium EMA (20).
Both EMAs (short and medium) are below the long EMA (100).
The current bar closes lower than it opened (close < open).
This indicates a potential shift to the downside. If there’s an existing long position, that gets closed first before opening a new short.
Exit Signals
RSI-Based Exits:
For long trades: When RSI exceeds a specified threshold (e.g., 70 by default), it triggers a long exit. RSI > short_rsi generally means overbought conditions, so the strategy exits to lock in profits or avoid a pullback.
For short trades: When RSI dips below a specified threshold (e.g., 30 by default), it triggers a short exit. RSI < long_rsi indicates oversold conditions, so the strategy closes the short to avoid a bounce.
Time-Based Exit:
If the trade has been open for xBars bars (configurable, e.g., 24 bars) and the trade is in profit (current price above entry for a long, or current price below entry for a short), the strategy closes the position. This helps lock in gains if the move takes too long or momentum stalls.
Stop-Loss Management
Fixed Stop-Loss (% Based): Each trade has a fixed stop-loss calculated as a percentage from the average entry price.
For long positions, the stop-loss is set below the entry price by a user-defined percentage (fixStopLossPerc).
For short positions, the stop-loss is set above the entry price by the same percentage.
This mechanism prevents catastrophic losses if the market moves strongly against the position.
Trailing Stop:
The strategy also sets a trail stop using trail_points (the distance in price points) and trail_offset (how quickly the stop “catches up” to price).
As the market moves in favor of the trade, the trailing stop gradually tightens, allowing profits to run while still capping potential drawdowns if the price reverses.
Order Execution Flow
When the conditions for a new position (long or short) are triggered, the strategy first checks if there’s an opposite position open. If there is, it closes that position before opening the new one (prevents going “both long and short” simultaneously).
RSI-based and time-based exits are checked on each bar. If triggered, the position is closed.
If the position remains open, the fixed stop-loss and trailing stop remain in effect until the position is exited.
Why This Combination Works
Multiple EMA Cross: Combining 10, 20, and 100 EMAs balances short-term momentum detection with a longer-term trend filter. This reduces false signals that can occur if you only look at a single crossover without considering the broader trend.
RSI Exits: RSI provides a momentum oscillator view—helpful for detecting overbought/oversold conditions, acting as an extra confirmation to exit.
Time-Based Exit: Prevents “lingering trades.” If the position is in profit but failing to advance further, it takes profit rather than risking a trend reversal.
Fixed & Trailing Stop-Loss: The fixed stop-loss is your safety net to cap worst-case losses. The trailing stop allows the strategy to lock in gains by following the trade as it moves favorably, thus maximizing profit potential while keeping risk in check.
Overall, this approach tries to capture momentum from EMA crossovers, protect profits with trailing stops, and limit risk through both a fixed percentage stop-loss and exit signals from RSI/time-based logic.
[blackcat] L1 Enveloped Oscillator█ OVERVIEW
The script is an indicator named “ L1 Enveloped Oscillator” (L1 EO) designed to plot various trend and oscillator values on a separate chart pane. It calculates multiple indicators such as trend, adjusted trend, oscillator, directional strength, and normalized oscillator, and uses these to detect potential buy and sell signals based on trend contractions, expansions, and divergences.
█ LOGICAL FRAMEWORK
Structure:
1 — Input Parameters: None are explicitly defined, but the script is parameterized within the function with fixed values for levels and periods.
2 — Calculations: The calculate_l1_enveloped_oscillator function computes multiple values including price bases, trend, oscillator, and adjusted trends. This function uses built-in Pine Script functions like ta.highest, ta.lowest, ta.ema, ta.sma, and math.max.
3 — Plotting: The calculated values are plotted on the chart using the plot function, with different colors and styles for visual distinction.
4 — Signal Detection: The script detects and labels potential buy and sell signals based on trend contractions, expansions, and divergences between the price and oscillator.
5 — Conditional Statements: Multiple if statements are used to determine when to place labels for buy and sell signals.
█ CUSTOM FUNCTIONS
• calculate_l1_enveloped_oscillator(high, low, close, open): Calculates various trend and oscillator values based on the input price data.
— Parameters: high, low, close, open (price data).
— Return Values: A tuple containing top_level, bottom_level, middle_level, adjusted_trend, trend, oscillator, directional_strength, normalized_oscillator, and adjusted_candle_trend.
█ KEY POINTS AND TECHNIQUES
• Advanced Pine Script Features: Utilizes built-in functions for technical analysis (ta.highest, ta.lowest, ta.ema, ta.sma, ta.crossover, ta.crossunder).
• Optimization Techniques: Uses fixed periods and levels for calculations, which can be adjusted for different market conditions.
• Best Practices: Clearly separates calculations and plotting, making the script modular and easier to maintain.
• Unique Approaches: Combines multiple indicators (trend, oscillator, directional strength) to detect complex market conditions like divergences and contractions/expansions.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
• Modifications: Users can modify the levels (top_level, bottom_level, middle_level) and periods used in calculations to better suit specific asset classes or market conditions.
• Extensions: The script can be extended to include additional indicators or signals, such as RSI or MACD, to enhance its predictive power.
• Application Scenarios: Similar techniques can be applied in other trading strategies involving trend analysis and divergence detection, such as momentum trading or mean reversion strategies.
• Related Concepts: Users can explore other Pine Script concepts like alerts, backtesting, and optimization to fine-tune strategies based on historical data.