RSI Cross SMA14 - 195-Minute (Delayed Alert After Confirmation)RSI indicator that shows red and green bars upon cross
Индикаторы и стратегии
EGARCH Volatility Estimator
EGARCH Volatility Estimator (EVE)
Overview:
The EGARCH Volatility Estimator (EVE) is a Pine Script indicator designed to quantify market volatility using the Exponential Generalized Autoregressive Conditional Heteroskedasticity (EGARCH) model. This model captures both symmetric and asymmetric volatility dynamics and provides a robust tool for analyzing market risk and trends.
Key Features:
Core EGARCH Formula:
ln(σ t 2 )=ω+α(∣ϵ t−1 ∣+γ⋅ϵ t−1 )+β⋅ln(σ t−1 2 )
ω (Omega): Captures long-term baseline volatility.
α (Alpha): Measures sensitivity to recent shocks.
γ (Gamma): Incorporates asymmetric effects (e.g., higher volatility during market drops).
β (Beta): Reflects the persistence of historical volatility.
The formula computes log-volatility, which is then converted to actual volatility for interpretation.
Standardized Returns:
The script calculates daily log-returns and standardizes them to measure deviations from expected price changes.
Percentile-Based Volatility Analysis:
Tracks the percentile rank of current volatility over a historical lookback period.
Highlights high, medium, or low volatility zones using dynamic background colors.
Dynamic Normalization:
Maps volatility into a normalized range ( ) for better visual interpretation.
Uses color gradients (green to red) to reflect changing volatility levels.
SMA Integration:
Adds a Simple Moving Average (SMA) of either EGARCH volatility or its percentile for trend analysis.
Interactive Display:
Displays current volatility and its percentile rank in a table for quick reference.
Includes high (75%) and low (25%) volatility threshold lines for actionable insights.
Applications:
Market Risk Assessment: Evaluate current and historical volatility to assess market risk levels.
Quantitative Strategy Development: Incorporate volatility dynamics into trading strategies, particularly for options or risk-managed portfolios.
Trend and Momentum Analysis: Use normalized or smoothed volatility trends to identify potential reversals or breakouts.
Asymmetric Volatility Detection: Highlight periods where downside or upside volatility dominates.
Visualization Enhancements:
Dynamic colors and thresholds make it intuitive to interpret market conditions.
Percentile views provide relative volatility context for historical comparison.
This indicator is a versatile tool for traders and analysts seeking deeper insights into market behavior, particularly in volatility-driven trading strategies.
RSI and MACD StrategyMACD >0 + RSI >60 and Candle closing above 50 EMA that will give bullish signal
First day candle high and low of monthThis script is designed to mark the high and low levels of the first candle of each month on the chart. These levels are often considered significant support and resistance zones, as they can represent key liquidity points in the market.
The idea behind this tool is based on the observation that the low of the first monthly candle can act as a critical support level, especially during a bullish market trend. If the price breaks below this low in a bull market, it may indicate a potential manipulation or stop-loss hunting rather than a genuine shift in trend. Similarly, the high of the first monthly candle may serve as a key resistance level, particularly in consolidating or range-bound markets.
By dynamically plotting these levels, the script provides traders with valuable insights into potential liquidity zones and significant market reactions. It allows for customizable line colors and lengths, making it adaptable to various trading styles and preferences.
This tool is particularly useful for traders who wish to align their strategies with institutional market behaviors, as it highlights areas where liquidity is likely to be targeted. Use it as part of your broader analysis to identify potential trade setups, manage risk effectively, and understand market dynamics more comprehensively.
FT SessionsFreedom Trading Sessions (FTS)
Overview
The Freedom Trading Sessions (FTS) is a versatile and highly customizable session-based indicator designed for intraday traders who rely on tracking global market sessions. This script highlights the Asia, Frankfurt, London, and New York (AM & PM) trading sessions on the chart, allowing users to visualize session ranges and identify key price movements.
Key Features:
Customizable Sessions:
Asia (23:00 - 07:00 UTC)
Frankfurt (07:00 - 08:00 UTC)
London (08:00 - 12:00 UTC)
New York AM (13:00 - 16:00 UTC)
New York PM (17:00 - 23:00 UTC)
Traders can enable or disable any session individually.
Session Range Visualization:
Displays the high and low ranges of each session using customizable colors.
Option to enable range labels for each session.
Outlines and transparent background ranges provide clear visibility.
Timezone Flexibility:
Supports customization of UTC offsets.
Option to use the exchange’s timezone for automatic adjustment.
User-Friendly Customization:
Transparent range areas with adjustable visibility.
Optional range outlines and session labels for clarity.
Compact settings make it easy to adjust the script to your preference.
How It Works:
Each trading session is defined by its start and end times.
When enabled, the indicator tracks the price action during the session and marks the session’s range (high and low) on the chart.
The session ranges are updated in real-time, helping traders monitor key support and resistance levels within each session.
How to Use:
Add the Freedom Trading Indicator to your chart.
Adjust the session times, colors, and visibility in the settings panel.
Monitor the session ranges to identify price breakouts, consolidations, or reversals.
Practical Application:
Intraday Trading: Use session ranges to plan trades around major market open and close times.
Breakout Strategies: Identify price breakouts above or below session highs/lows.
Session-Specific Patterns: Spot trading opportunities by observing price behavior within specific global sessions.
Important Notes:
This indicator works best on the 4H timeframe to align with session tracking. If applied to other timeframes, a message will notify users.
Traders can combine this indicator with other tools like volume, price action, or trend-following indicators for a complete trading system.
Credits:
This script was developed from scratch with inspiration from session tracking methods widely used by traders. Any use of similar concepts is purely coincidental and implemented uniquely in this script.
By focusing on session analysis, the Freedom Trading Sessions equips traders with a powerful tool to align their trades with global market activity.
Disclaimer: This script is for educational and informational purposes only. Always test indicators in a demo environment before using them in live markets.
Support and Resistance [THAMIM]Here are some Details about identifying support and resistance:
Trendlines: Draw trendlines using two or three peaks and troughs. The uptrend line is the support level.
Peaks and troughs: Identify the highest peak and lowest point on the chart, and mark each. In a downtrend, the support level is the lower-low peak.
Pivot points: Use the prior period's high, low, and close to estimate future support and resistance levels.
Technical analysis: Use technical analysis techniques to identify where the price movement has halted or reversed.
Moving averages: Use moving averages to identify support and resistance.
Chart patterns: Use chart patterns to identify support and resistance.
Volume analysis tools: Use volume analysis tools to identify support and resistance.
When the price moves past a resistance zone, it might turn into a new support zone. If a stock breaks below its support level, it's called a breakdown. If a stock breaks above its resistance level, it's called a breakout.
Brahmastra VWAP//@version=5
indicator("VWAP", overlay=true)
// Initialize cumulative variables
var float cumulativeVolume = na
var float cumulativePriceVolume = na
// Reset cumulative variables at the start of a new day
if (na(cumulativeVolume))
cumulativeVolume := 0.0
cumulativePriceVolume := 0.0
if (dayofweek != dayofweek )
cumulativeVolume := 0.0
cumulativePriceVolume := 0.0
// Accumulate volume and price*volume
cumulativeVolume += volume
cumulativePriceVolume += hl2 * volume
// Calculate VWAP
vwap = cumulativePriceVolume / cumulativeVolume
// Plot VWAP
plot(vwap, color=color.new(color.blue, 0), linewidth=2, title="VWAP")
Effort vs Result with Std DevSummary Table:
Condition Effort-Result Ratio Interpretation
High Volume, Big Price Move Above +2 SD Strong move, efficient effort.
High Volume, Small Price Move Below Mean / -2 SD Weak move, possible exhaustion.
Low Volume, Big Price Move Above Mean / +2 SD Efficient effort, momentum strong.
Low Volume, Small Price Move Near Mean Market indecision, low activity.
Time Blocks Indicator with EMA Signals (UTC+2)This indicator shows the posable time's when retracement can happen during the London session
A "Time Blocks Indicator with EMA Signals" is a technical analysis tool that combines the concept of time-based price blocks with the signals generated by Exponential Moving Averages (EMAs) to identify potential trading opportunities by highlighting specific price levels within a given timeframe, where EMA crossovers or trend changes might occur, providing a more focused view on potential entry and exit points
Altcoin Season Indicator//@version=5
indicator("Altcoin Season Indicator", overlay=false)
// Input for Bitcoin Dominance (BTC.D)
btcDominance = request.security("CRYPTOCAP:BTC.D", "D", close)
altcoinMarketCap = request.security("CRYPTOCAP:TOTAL2", "D", close)
// Moving Averages for Trend Analysis
btcMA = ta.sma(btcDominance, 50)
altMA = ta.sma(altcoinMarketCap, 50)
// RSI for Momentum
btcRSI = ta.rsi(btcDominance, 14)
altRSI = ta.rsi(altcoinMarketCap, 14)
// Altcoin Season Conditions
btcBearish = btcDominance < btcMA and btcRSI < 50
altBullish = altcoinMarketCap > altMA and altRSI > 50
// Signal for Altcoin Season
altcoinSeason = btcBearish and altBullish
// Plotting
bgcolor(altcoinSeason ? color.new(color.green, 90) : na)
plot(btcDominance, color=color.red, title="BTC Dominance")
plot(altcoinMarketCap / 1e12, color=color.blue, title="Altcoin Market Cap (T)")
alertcondition(altcoinSeason, title="Altcoin Season Signal", message="Altcoin Season may be starting!")
Brahmastra VWAP//@version=5
indicator("VWAP", overlay=true)
// Calculate VWAP
vwap_value = ta.vwap(close)
// Plot VWAP with specific parameters
plot(series=vwap_value, color=color.blue, title="VWAP", linewidth=2)
Advanced MACD with Pressure Indication"Advanced MACD with Pressure Indication" is a powerful and visually enhanced version of the classic MACD indicator, designed to help traders analyze momentum and trend strength with greater clarity.
### Key Features:
1. **Customizable Parameters**:
- Fast EMA Length (default: 12)
- Slow EMA Length (default: 26)
- Signal SMA Length (default: 9)
2. **Dynamic Histogram Coloring**:
- The histogram color changes dynamically based on pressure:
- **Teal**: Positive histogram increasing.
- **Light Green**: Positive histogram decreasing.
- **Red**: Negative histogram decreasing.
- **Pink**: Negative histogram increasing.
3. **Highlighted MACD and Signal Lines**:
- MACD Line: Blue for trend visibility.
- Signal Line: Orange for clear crossover detection.
4. **Background Gradient for Pressure**:
- Subtle green or red background to reflect positive or negative momentum shifts.
5. **Simplified Visualization**:
- Histogram plotted with columns for easy differentiation of pressure changes.
This indicator is suitable for traders of all levels, offering insightful visual cues to identify trend reversals, momentum shifts, and potential entry/exit points. Optimize your trading strategy with this advanced MACD tool!
Support and Resistance TrendlinesStrategy:
Support: Identified as the lowest low over a specific period.
Resistance: Identified as the highest high over a specific period.
Dynamic Trendlines: We’ll use the concept of a rolling window to calculate the highest highs and lowest lows over the last n bars (you can adjust the number of bars for more sensitivity).
Explanation:
Lookback Period (length): The number of bars over which we calculate the support and resistance levels. You can adjust this value depending on the timeframe and the sensitivity you want for the trendlines.
Resistance: This is the highest high over the length of bars. We use ta.highest(high, length) to find the highest high within the specified lookback period.
Support: This is the lowest low over the length of bars. We use ta.lowest(low, length) to find the lowest low within the specified lookback period.
Plotting the Lines:
We plot the support and resistance as horizontal lines on the chart using plot().
Additionally, we create dynamic trendlines that update automatically with each new bar. The line.new function creates lines that can be modified dynamically as new price data comes in.
Line Persistence:
The line functions are used to create horizontal lines that persist across bars. The trendlines adjust their position as the bars move forward.
How It Works:
This indicator will automatically detect the highest and lowest prices over the last n bars and draw support (green line) and resistance (red line) levels on the chart.
The trendlines will adjust as the market evolves and provide visual reference points for potential areas of price reversal.
How to Use This Script:
Copy and paste the Pine Script code into the Pine Script Editor on TradingView.
Save the script, and then add it to your chart.
Adjust the Lookback Period input to suit your trading strategy and timeframe.
The support and resistance levels will be drawn dynamically, and the lines will update as new bars form.
Customizations:
You can modify the number of bars (length) used to calculate support and resistance, depending on the timeframes you're interested in.
If you need more advanced trendline drawing (such as drawing trendlines between significant high/low points or automatic adjustment to more complex patterns), you might need to implement more advanced logic using peaks and valleys or price action patterns.
Let me know if you need any further adjustments!
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.
VWAP Direction HistogramThe ** VWAP Direction Histogram ** indicator is a powerful tool for traders looking to gauge the directional bias of the Volume Weighted Average Price (VWAP). VWAP is a critical metric that combines price and volume to provide a weighted average price, often used to identify institutional trading activity and support/resistance levels. This indicator builds upon the traditional VWAP by calculating its directional changes over a customizable lookback period, providing clear visual cues to traders through a color-coded histogram.
By identifying whether VWAP is rising or falling over the specified lookback period, this indicator helps traders determine the prevailing trend bias in the market. A positive VWAP direction suggests upward momentum and a bullish trend bias, while a negative direction indicates downward momentum and bearish sentiment. This information is further reinforced by coloring the chart candles based on the VWAP trend, enabling quick visual analysis and enhancing decision-making for trend-following strategies. Whether you're trading intraday or longer-term, the ** VWAP Direction Histogram ** offers an intuitive and effective way to align your trades with market trends.
QTALibrary "QTA"
This is simple library for basic Quantitative Technical Analysis for retail investors. One example of it being used can be seen here ().
calculateKellyRatio(returns)
Parameters:
returns (array) : An array of floats representing the returns from bets.
Returns: The calculated Kelly Ratio, which indicates the optimal bet size based on winning and losing probabilities.
calculateAdjustedKellyFraction(kellyRatio, riskTolerance, fedStance)
Parameters:
kellyRatio (float) : The calculated Kelly Ratio.
riskTolerance (float) : A float representing the risk tolerance level.
fedStance (string) : A string indicating the Federal Reserve's stance ("dovish", "hawkish", or neutral).
Returns: The adjusted Kelly Fraction, constrained within the bounds of .
calculateStdDev(returns)
Parameters:
returns (array) : An array of floats representing the returns.
Returns: The standard deviation of the returns, or 0 if insufficient data.
calculateMaxDrawdown(returns)
Parameters:
returns (array) : An array of floats representing the returns.
Returns: The maximum drawdown as a percentage.
calculateEV(avgWinReturn, winProb, avgLossReturn)
Parameters:
avgWinReturn (float) : The average return from winning bets.
winProb (float) : The probability of winning a bet.
avgLossReturn (float) : The average return from losing bets.
Returns: The calculated Expected Value of the bet.
calculateTailRatio(returns)
Parameters:
returns (array) : An array of floats representing the returns.
Returns: The Tail Ratio, or na if the 5th percentile is zero to avoid division by zero.
calculateSharpeRatio(avgReturn, riskFreeRate, stdDev)
Parameters:
avgReturn (float) : The average return of the investment.
riskFreeRate (float) : The risk-free rate of return.
stdDev (float) : The standard deviation of the investment's returns.
Returns: The calculated Sharpe Ratio, or na if standard deviation is zero.
calculateDownsideDeviation(returns)
Parameters:
returns (array) : An array of floats representing the returns.
Returns: The standard deviation of the downside returns, or 0 if no downside returns exist.
calculateSortinoRatio(avgReturn, downsideDeviation)
Parameters:
avgReturn (float) : The average return of the investment.
downsideDeviation (float) : The standard deviation of the downside returns.
Returns: The calculated Sortino Ratio, or na if downside deviation is zero.
calculateVaR(returns, confidenceLevel)
Parameters:
returns (array) : An array of floats representing the returns.
confidenceLevel (float) : A float representing the confidence level (e.g., 0.95 for 95% confidence).
Returns: The Value at Risk at the specified confidence level.
calculateCVaR(returns, varValue)
Parameters:
returns (array) : An array of floats representing the returns.
varValue (float) : The Value at Risk threshold.
Returns: The average Conditional Value at Risk, or na if no returns are below the threshold.
calculateExpectedPriceRange(currentPrice, ev, stdDev, confidenceLevel)
Parameters:
currentPrice (float) : The current price of the asset.
ev (float) : The expected value (in percentage terms).
stdDev (float) : The standard deviation (in percentage terms).
confidenceLevel (float) : The confidence level for the price range (e.g., 1.96 for 95% confidence).
Returns: A tuple containing the minimum and maximum expected prices.
calculateRollingStdDev(returns, window)
Parameters:
returns (array) : An array of floats representing the returns.
window (int) : An integer representing the rolling window size.
Returns: An array of floats representing the rolling standard deviation of returns.
calculateRollingVariance(returns, window)
Parameters:
returns (array) : An array of floats representing the returns.
window (int) : An integer representing the rolling window size.
Returns: An array of floats representing the rolling variance of returns.
calculateRollingMean(returns, window)
Parameters:
returns (array) : An array of floats representing the returns.
window (int) : An integer representing the rolling window size.
Returns: An array of floats representing the rolling mean of returns.
calculateRollingCoefficientOfVariation(returns, window)
Parameters:
returns (array) : An array of floats representing the returns.
window (int) : An integer representing the rolling window size.
Returns: An array of floats representing the rolling coefficient of variation of returns.
calculateRollingSumOfPercentReturns(returns, window)
Parameters:
returns (array) : An array of floats representing the returns.
window (int) : An integer representing the rolling window size.
Returns: An array of floats representing the rolling sum of percent returns.
calculateRollingCumulativeProduct(returns, window)
Parameters:
returns (array) : An array of floats representing the returns.
window (int) : An integer representing the rolling window size.
Returns: An array of floats representing the rolling cumulative product of returns.
calculateRollingCorrelation(priceReturns, volumeReturns, window)
Parameters:
priceReturns (array) : An array of floats representing the price returns.
volumeReturns (array) : An array of floats representing the volume returns.
window (int) : An integer representing the rolling window size.
Returns: An array of floats representing the rolling correlation.
calculateRollingPercentile(returns, window, percentile)
Parameters:
returns (array) : An array of floats representing the returns.
window (int) : An integer representing the rolling window size.
percentile (int) : An integer representing the desired percentile (0-100).
Returns: An array of floats representing the rolling percentile of returns.
calculateRollingMaxMinPercentReturns(returns, window)
Parameters:
returns (array) : An array of floats representing the returns.
window (int) : An integer representing the rolling window size.
Returns: A tuple containing two arrays: rolling max and rolling min percent returns.
calculateRollingPriceToVolumeRatio(price, volData, window)
Parameters:
price (array) : An array of floats representing the price data.
volData (array) : An array of floats representing the volume data.
window (int) : An integer representing the rolling window size.
Returns: An array of floats representing the rolling price-to-volume ratio.
determineMarketRegime(priceChanges)
Parameters:
priceChanges (array) : An array of floats representing the price changes.
Returns: A string indicating the market regime ("Bull", "Bear", or "Neutral").
determineVolatilityRegime(price, window)
Parameters:
price (array) : An array of floats representing the price data.
window (int) : An integer representing the rolling window size.
Returns: An array of floats representing the calculated volatility.
classifyVolatilityRegime(volatility)
Parameters:
volatility (array) : An array of floats representing the calculated volatility.
Returns: A string indicating the volatility regime ("Low" or "High").
method percentPositive(thisArray)
Returns the percentage of positive non-na values in this array.
This method calculates the percentage of positive values in the provided array, ignoring NA values.
Namespace types: array
Parameters:
thisArray (array)
_candleRange()
_PreviousCandleRange(barsback)
Parameters:
barsback (int) : An integer representing how far back you want to get a range
redCandle()
greenCandle()
_WhiteBody()
_BlackBody()
HighOpenDiff()
OpenLowDiff()
_isCloseAbovePreviousOpen(length)
Parameters:
length (int)
_isCloseBelowPrevious()
_isOpenGreaterThanPrevious()
_isOpenLessThanPrevious()
BodyHigh()
BodyLow()
_candleBody()
_BodyAvg(length)
_BodyAvg function.
Parameters:
length (simple int) : Required (recommended is 6).
_SmallBody(length)
Parameters:
length (simple int) : Length of the slow EMA
Returns: a series of bools, after checking if the candle body was less than body average.
_LongBody(length)
Parameters:
length (simple int)
bearWick()
bearWick() function.
Returns: a SERIES of FLOATS, checks if it's a blackBody(open > close), if it is, than check the difference between the high and open, else checks the difference between high and close.
bullWick()
barlength()
sumbarlength()
sumbull()
sumbear()
bull_vol()
bear_vol()
volumeFightMA()
volumeFightDelta()
weightedAVG_BullVolume()
weightedAVG_BearVolume()
VolumeFightDiff()
VolumeFightFlatFilter()
avg_bull_vol(userMA)
avg_bull_vol(int) function.
Parameters:
userMA (int)
avg_bear_vol(userMA)
avg_bear_vol(int) function.
Parameters:
userMA (int)
diff_vol(userMA)
diff_vol(int) function.
Parameters:
userMA (int)
vol_flat(userMA)
vol_flat(int) function.
Parameters:
userMA (int)
_isEngulfingBullish()
_isEngulfingBearish()
dojiup()
dojidown()
EveningStar()
MorningStar()
ShootingStar()
Hammer()
InvertedHammer()
BearishHarami()
BullishHarami()
BullishBelt()
BullishKicker()
BearishKicker()
HangingMan()
DarkCloudCover()
Duong_Sideway ZoneThis indicator is designed to identify sideway (ranging) zones on the price chart. It uses a Moving Average (MA) and criteria such as the number of price crosses over the MA, as well as breakout checks, to determine whether the market is in a sideway state. When a sideway zone is detected, it is highlighted with a yellow background on the chart.
Key Features:
MA Line: Uses a Moving Average (MA) as the basis for trend identification.
Sideway Threshold: Based on the number of price crosses over the MA within a specific period.
Breakout Check: Excludes zones from being considered sideway if a breakout occurs beyond the ATR threshold.
Visual Highlighting: Highlights sideway zones with a yellow background for easy identification.
This indicator is ideal for traders looking to identify ranging market phases to adjust their trading strategies accordingly.
For example, if within the last 20 candles, the number of times the closing price crosses the MA5 is greater than 4, it is considered a sideway zone, except in cases where the closing price of a recent candle has broken out of the highest/ lowest price of the previous 20 candles.
BOLLINGER BY HARSH### Description for the Indicator:
**Advanced Bollinger Bands + Inside Bar Signals**
This indicator is a versatile trading tool designed for precision and reliability, combining the power of Bollinger Bands with Inside Bar pattern detection and trend filtering. It offers traders a unique way to identify high-probability trading opportunities by integrating multiple market analysis techniques.
#### Key Features:
1. **Bollinger Bands:**
- Measures market volatility and identifies potential reversal zones.
- Upper and lower bands act as dynamic support and resistance levels.
2. **Inside Bar Pattern Detection:**
- Highlights areas of market consolidation and potential breakout setups.
- Displays inside bars directly on the chart for easy visualization.
3. **Trend Detection:**
- Uses an EMA (Exponential Moving Average) to determine market direction.
- Only signals trades aligned with the prevailing trend for better accuracy.
4. **Session Filter:**
- Allows you to restrict signals to specific trading sessions.
- Helps avoid false signals during low-liquidity periods.
5. **Advanced Buy & Sell Signals:**
- Buy signals: Inside bar near the lower Bollinger Band in an uptrend.
- Sell signals: Inside bar near the upper Bollinger Band in a downtrend.
- Reduces noise and focuses on high-quality setups.
6. **Risk Management Tools:**
- Automatically calculates take-profit and stop-loss levels based on ATR (Average True Range).
- Plots these levels on the chart to help traders manage risk effectively.
7. **Alerts for Signals:**
- Get notified instantly for buy and sell opportunities via TradingView alerts.
RSI-Adjusted 9SMAThis indicator integrates the Relative Strength Index (RSI) and a Simple Moving Average (SMA) to create a more robust trading signal by blending momentum and trend analysis. Here's how they work together:
How the RSI and SMA Work in Harmony
RSI (Momentum Indicator):
The RSI measures the speed and change of price movements, oscillating between 0 and 100.
Typically, an RSI value above 50 suggests bullish momentum, while values below 50 indicate bearish momentum.
The script further refines this by applying a 9-period EMA to the RSI. This smoothing process filters out noise, providing a clearer picture of momentum shifts.
SMA (Trend Indicator):
The SMA calculates the average price over a specific period (9 in this case), helping to smooth out price fluctuations and identify the overall trend.
By observing the SMA, traders can determine whether the market is trending upward, downward, or moving sideways.
Combining the Two for Stronger Signals:
The RSI EMA acts as a momentum filter. When it is above 50, it indicates the presence of bullish momentum. Under such conditions, the SMA turning blue provides a stronger confirmation of an uptrend.
Conversely, when the RSI EMA is below 50, it signals weakening momentum. The SMA turning white underlines the caution, suggesting potential bearish conditions or a lack of trend strength.
This combination ensures that traders are not just relying on the SMA's trend-following behavior but also factoring in the market's underlying momentum for more reliable entries and exits.
Why This Approach is Robust
Avoid False Signals:
The SMA alone can generate false signals in choppy or range-bound markets. By incorporating the RSI EMA, the script reduces the likelihood of acting on weak or non-committal trends.
Timing Entries and Exits:
When both the SMA and RSI EMA align (e.g., blue SMA and RSI EMA > 50), it provides a stronger case for entering trades. Similarly, misalignment (e.g., white SMA and RSI EMA ≤ 50) warns against entering during uncertain conditions.
Adapting to Market Conditions:
This dual approach captures both short-term momentum shifts (RSI EMA) and longer-term trend direction (SMA), making it useful across different market phases.
Practical Application
Bullish Setup:
RSI EMA > 50 + Blue SMA → Enter or stay in long positions.
Bearish Setup:
RSI EMA ≤ 50 + White SMA → Exit long positions or consider short opportunities.
This combination of indicators offers traders a balanced strategy that considers both the direction of the trend and the underlying momentum, resulting in more confident and timely decision-making.
Enhanced 20 SMA Signal BoxesEnhanced 20 SMA Signal Boxes
This indicator leverages the 20-period Simple Moving Average (SMA) to generate clear and actionable trading signals. Designed for traders looking to streamline their entry and exit decisions, the script provides a visual hierarchy with dynamic signal boxes and target levels.
Features:
Buy & Sell Signals:
Automatically detects when the price crosses above or below the 20 SMA and marks the signal candle with a yellow box for clear visualization of entry (top of the box) and risk (bottom of the box).
Dynamic Target Levels:
Three blue outlined boxes are generated for each signal to indicate profit-taking levels. The boxes dynamically adjust based on the signal candle’s range and come with customizable labels:
"Long Target" for buy signals
"Short Target" for sell signals
Alert System:
Get notified when the price enters or exits the signal candle or when target levels are reached.
Customization Options:
Adjust SMA color, thickness, and length.
Modify box opacity for better chart visibility.
Edit target labels and positionings to suit your trading style.
Risk/Reward Visualization:
The script calculates and displays the risk/reward ratio visually between the signal candle and the first target box.
Dynamic Styling:
Target boxes feature gradient shades to highlight increasing profit potential, and optional lines connect the signal candle to targets for organized visuals.
This indicator simplifies decision-making by providing clear signals and targets, making it suitable for day traders, swing traders, and scalpers alike.
Volatility Signaling 50SMAOverview of the Script:
The script implements a volatility signaling indicator using a 50-period Simple Moving Average (SMA). It incorporates Bollinger Bands and the Average True Range (ATR) to dynamically adjust the SMA's color based on volatility conditions. Here's a detailed breakdown:
Components of the Script:
1. Inputs:
The script allows the user to customize key parameters for flexibility:
Bollinger Bands Length (length): Determines the period for calculating the Bollinger Bands.
Source (src): The price data to use, defaulting to the closing price.
Standard Deviation Multiplier (mult): Scales the Bollinger Bands' width.
ATR Length (atrLength): Sets the period for calculating the ATR.
The 50-period SMA length (smaLength) is fixed at 50.
2. Bollinger Bands Calculation:
Basis: Calculated as the SMA of the selected price source over the specified length.
Upper and Lower Bands: Determined by adding/subtracting a scaled standard deviation (dev) from the basis.
3. ATR Calculation:
Computes the Average True Range over the user-defined atrLength.
4. Volatility-Based Conditions:
The script establishes thresholds for Bollinger Band width relative to ATR:
Yellow Condition: When the band width (upper - lower) is less than 1.25 times the ATR.
Orange Condition: When the band width is less than 1.5 times the ATR.
Red Condition: When the band width is less than 1.75 times the ATR.
5. Dynamic SMA Coloring:
The 50-period SMA is colored based on the above conditions:
Yellow: Indicates relatively low volatility.
Orange: Indicates moderate volatility.
Red: Indicates higher volatility.
White: Default color when no conditions are met.
6. Plotting the 50-Period SMA:
The script plots the SMA (sma50) with a dynamically assigned color, enabling visual analysis of market conditions.
Use Case:
This script is ideal for traders seeking to assess market volatility and identify changes using Bollinger Bands and ATR. The colored SMA provides an intuitive way to gauge market dynamics directly on the chart.
Example Visualization:
Yellow SMA: The market is in a low-volatility phase.
Orange SMA: Volatility is picking up but remains moderate.
Red SMA: Higher volatility, potentially signaling significant market activity.
White SMA: Neutral/default state.
DT Bollinger BandsIndicator Overview
Purpose: The script calculates and plots Bollinger Bands, a technical analysis tool that shows price volatility by plotting:
A central moving average (basis line).
Upper and lower bands representing price deviation from the moving average.
Additional bands for a higher deviation threshold (3 standard deviations).
Customization: Users can customize:
The length of the moving average.
The type of moving average (e.g., SMA, EMA).
The price source (e.g., close price).
Standard deviation multipliers for the bands.
Fixed Time Frame: The script can use a fixed time frame (e.g., daily) for calculations, regardless of the chart's time frame.
Key Features
Moving Average Selection:
The user can select the type of moving average for the basis line:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Smoothed Moving Average (SMMA/RMA)
Weighted Moving Average (WMA)
Volume Weighted Moving Average (VWMA)
Standard Deviation Multipliers:
Two multipliers are used:
Standard (default = 2.0): For the original Bollinger Bands.
Larger (default = 3.0): For additional bands.
Bands Calculation:
Basis Line: The selected moving average.
Upper Band: Basis + Standard Deviation.
Lower Band: Basis - Standard Deviation.
Additional Bands: Representing ±3 Standard Deviations.
Plots:
Plots the basis, upper, and lower bands.
Fills the area between the bands for visual clarity.
Plots and fills additional bands for ±3 Standard Deviations with lighter colors.
Alerts:
Generates an alert when the price enters the range between the 2nd and 3rd standard deviation bands.
The alert can be used to notify when price volatility increases significantly.
Background Highlighting:
Colors the chart background based on alert conditions:
Green if the price is above the basis line.
Red if the price is below the basis line.
Offset:
Adds an optional horizontal offset to the plots for fine-tuning their alignment.
How It Works
Input Parameters:
The user specifies settings such as moving average type, length, multipliers, and fixed time frame.
Calculations:
The script computes the basis (moving average) and standard deviations on the fixed time frame.
Bands are calculated using the basis and multipliers.
Plotting:
The basis line and upper/lower bands are plotted with distinct colors.
Additional 3 StdDev bands are plotted with lighter colors.
Alerts:
An alert condition is created when the price moves between the 2nd and 3rd standard deviation bands.
Visual Enhancements:
Chart background changes color dynamically based on the price’s position relative to the basis line and alert conditions.
Usage
This script is useful for traders who:
Want a detailed visualization of price volatility.
Use Bollinger Bands to identify breakout or mean-reversion trading opportunities.
Need alerts when the price enters specific volatility thresholds.
Support and Resistance Non-Repainting [AlgoAlpha]Elevate your technical analysis with the Non-Repainting Support and Resistance indicator from AlgoAlpha. Designed for traders who value precision, this tool highlights key support and resistance zones without repainting, ensuring reliable signals for better market decisions.
Key Features
🔍 Concise Zones: Identifies critical levels in real-time without repainting.
🖍 Customizable Appearance: Choose your preferred colors for bullish and bearish zones.
📏 Pivot Sensitivity Settings: Adjust the lookback period to fit different market conditions.
🔔 Visual Alerts: Highlights zones on your chart with clear, dynamic boxes and lines.
How to Use
Add the Indicator : Add it to your favorites chart by clicking the star icon. Adjust the lookback period, max zone duration, and colors to match your strategy.
Analyze the Chart : Look for zones where prices frequently react, indicating strong support or resistance.
Set Alerts : Enable notifications for new zone formations and zone invalidations, ensuring you never miss critical market moves.
How It Works
The indicator detects pivot highs and lows using a specified lookback period. When a pivot is confirmed, it draws corresponding support or resistance zones using TradingView’s built-in drawing tools. These zones extend until price breaks through them or they expire based on a maximum allowed duration. The indicator continuously checks if price interacts with any active zones and adjusts accordingly, ensuring accurate and real-time visualization.