📊 Wyckoff - Spring + UT + Khang cu//@version=5
indicator("📊 Wyckoff - Spring + UT + Khang cu", overlay=true)
// === Tham so nguoi dung ===
lookback = input.int(50, "Tim ho tro/khang cu trong X nen", minval=5)
rangePerc = input.float(0.005, "Nguong gan ho tro/khang cu (%)", step=0.001)
volMultiplier = input.float(1.5, "Nguong Volume cao", step=0.1)
wickRatio = input.float(2.0, "Ty le bong/than", step=0.1)
avgVolLength = input.int(20, "So nen tinh volume trung binh", minval=1)
showLabel = input.bool(true, "Hien thi nhan")
showResLine = input.bool(true, "Hien thi duong khang cu")
// === Tinh toan volume va vung gia ===
avgVol = ta.sma(volume, avgVolLength)
resistance = ta.highest(high, lookback)
support = ta.lowest(low, lookback)
candleBody = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low
// === Phat hien UpThrust (UT) ===
isNearRes = high >= resistance * (1 - rangePerc)
isUT = upperWick > wickRatio * candleBody and close < open and volume > avgVol * volMultiplier and isNearRes
// === Phat hien Spring ===
isNearSup = low <= support * (1 + rangePerc)
isSpring = lowerWick > wickRatio * candleBody and close > open and volume > avgVol * volMultiplier and isNearSup
// === Hien thi nhan tren bieu do ===
plotshape(isUT and showLabel, title="UT", location=location.abovebar, color=color.red, style=shape.labeldown, text="UT", textcolor=color.white)
plotshape(isSpring and showLabel, title="Spring", location=location.belowbar, color=color.green, style=shape.labelup, text="Spring", textcolor=color.white)
// === To mau nen: do cho UT + Spring, xam cho nen khac ===
barcolor(isUT or isSpring ? color.rgb(255, 0, 0) : color.new(color.gray, 60))
// === Ve duong khang cu ===
var line resLine = na
if (showResLine)
if na(resLine)
resLine := line.new(x1=bar_index, y1=resistance, x2=bar_index + 1, y2=resistance, extend=extend.right, color=color.orange, style=line.style_dashed)
else
line.set_xy1(resLine, bar_index, resistance)
line.set_xy2(resLine, bar_index + 1, resistance)
Analisi trend
Jack's ADX with 5TF TABLEUpdated the table to show 5 timeframes.
When trend momentum aligns for added confirmation
Aurora Flow Oscillator [QuantAlgo]The Aurora Flow Oscillator is an advanced momentum-based technical indicator designed to identify market direction, momentum shifts, and potential reversal zones using adaptive filtering techniques. It visualizes price momentum through a dynamic oscillator that quantifies trend strength and direction, helping traders and investors recognize momentum shifts and trading opportunities across various timeframes and asset class.
🟢 Technical Foundation
The Aurora Flow Oscillator employs a sophisticated mathematical approach with adaptive momentum filtering to analyze market conditions, including:
Price-Based Momentum Calculation: Calculates logarithmic price changes to measure the rate and magnitude of market movement
Adaptive Momentum Filtering: Applies an advanced filtering algorithm to smooth momentum calculations while preserving important signals
Acceleration Analysis: Incorporates momentum acceleration to identify shifts in market direction before they become obvious
Signal Normalization: Automatically scales the oscillator output to a range between -100 and 100 for consistent interpretation across different market conditions
The indicator processes price data through multiple filtering stages, applying mathematical principles including exponential smoothing with adaptive coefficients. This creates an oscillator that dynamically adjusts to market volatility while maintaining responsiveness to genuine trend changes.
🟢 Key Features & Signals
1. Momentum Flow and Extreme Zone Identification
The oscillator presents market momentum through an intuitive visual display that clearly indicates both direction and strength:
Above Zero: Indicates positive momentum and potential bullish conditions
Below Zero: Indicates negative momentum and potential bearish conditions
Slope Direction: The angle and direction of the oscillator provide immediate insight into momentum strength
Zero Line Crossings: Signal potential trend changes and new directional momentum
The indicator also identifies potential overbought and oversold market conditions through extreme zone markings:
Upper Zone (>50): Indicates strong bullish momentum that may be approaching exhaustion
Lower Zone (<-50): Indicates strong bearish momentum that may be approaching exhaustion
Extreme Boundaries (±95): Mark potentially unsustainable momentum levels where reversals become increasingly likely
These zones are displayed with gradient intensity that increases as the oscillator moves toward extremes, helping traders and investors:
→ Identify potential reversal zones
→ Determine appropriate entry and exit points
→ Gauge overall market sentiment strength
2. Customizable Trading Style Presets
The Aurora Flow Oscillator offers pre-configured settings for different trading approaches:
Default (80,150): Balanced configuration suitable for most trading and investing situations.
Scalping (5,80): Highly responsive settings for ultra-short-term trades. Generates frequent signals and catches quick price movements. Best for 1-15min charts when making many trades per day.
Day Trading (8,120): Optimized for intraday movements with faster response than default settings while maintaining reasonable signal quality. Ideal for 5-60min or 4h-12h timeframes.
Swing Trading (10,200): Designed for multi-day positions with stronger noise filtering. Focuses on capturing larger price swings while avoiding minor fluctuations. Works best on 1-4h and daily charts.
Position Trading (14,250): For longer-term position traders/investors seeking significant market trends. Reduces false signals by heavily filtering market noise. Ideal for daily or even weekly charts.
Trend Following (16,300): Maximum smoothing that prioritizes established directional movements over short-term fluctuations. Best used on daily and weekly charts, but can also be used for lower timeframe trading.
Countertrend (7,100): Tuned to detect potential reversals and exhaustion points in trends. More sensitive to momentum shifts than other presets. Effective on 15min-4h charts, as well as daily and weekly charts.
Each preset automatically adjusts internal parameters for optimal performance in the selected trading context, providing flexibility across different market approaches without requiring complex manual configuration.
🟢 Practical Usage Tips
1/ Trend Analysis and Interpretation
→ Direction Assessment: Evaluate the oscillator's position relative to zero to determine underlying momentum bias
→ Momentum Strength: Measure the oscillator's distance from zero within the -100 to +100 range to quantify momentum magnitude
→ Trend Consistency: Monitor the oscillator's path for sustained directional movement without frequent zero-line crossings
→ Reversal Detection: Watch for oscillator divergence from price and deceleration of movement when approaching extreme zones
2/ Signal Generation Strategies
Depending on your trading approach, multiple signal strategies can be employed:
Trend Following Signals:
Enter long positions when the oscillator crosses above zero
Enter short positions when the oscillator crosses below zero
Add to positions on pullbacks while maintaining the overall trend direction
Countertrend Signals:
Look for potential reversals when the oscillator reaches extreme zones (±95)
Enter contrary positions when momentum shows signs of exhaustion
Use oscillator divergence with price as additional confirmation
Momentum Shift Signals:
Enter positions when oscillator changes direction after establishing a trend
Exit positions when oscillator direction reverses against your position
Scale position size based on oscillator strength percentage
3/ Timeframe Optimization
The indicator can be effectively applied across different timeframes with these considerations:
Lower Timeframes (1-15min):
Use Scalping or Day Trading presets
Focus on quick momentum shifts and zero-line crossings
Be cautious of noise in extreme market conditions
Medium Timeframes (30min-4h):
Use Default or Swing Trading presets
Look for established trends and potential reversal zones
Combine with support/resistance analysis for entry/exit precision
Higher Timeframes (Daily+):
Use Position Trading or Trend Following presets
Focus on major trend identification and long-term positioning
Use extreme zones for position management rather than immediate reversals
🟢 Pro Tips
Price Momentum Period:
→ Lower values (5-7) increase sensitivity to minor price fluctuations but capture more market noise
→ Higher values (10-16) emphasize sustained momentum shifts at the cost of delayed response
→ Adjust based on your timeframe (lower for shorter timeframes, higher for longer timeframes)
Oscillator Filter Period:
→ Lower values (80-120) produce more frequent directional changes and earlier response to momentum shifts
→ Higher values (200-300) filter out shorter-term fluctuations to highlight dominant market cycles
→ Match to your typical holding period (shorter holding time = lower filter values)
Multi-Timeframe Analysis:
→ Compare oscillator readings across different timeframes for confluence
→ Look for alignment between higher and lower timeframe signals
→ Use higher timeframe for trend direction, lower for earlier entries
Volatility-Adaptive Trading:
→ Use oscillator strength to adjust position sizing (stronger = larger)
→ Consider reducing exposure when oscillator reaches extreme zones
→ Implement tighter stops during periods of oscillator acceleration
Combination Strategies:
→ Pair with volume indicators for confirmation of momentum shifts
→ Use with support/resistance levels for strategic entry and exit points
→ Combine with volatility indicators for comprehensive market context
🔍 Phat hien Spring Wyckoff (hien thi sau 1 nen)//@version=5
indicator("🔍 Phat hien Spring Wyckoff (hien thi sau 1 nen)", overlay=true)
// === Tham so nguoi dung ===
lookbackSupport = input.int(50, "Tim ho tro trong X nen", minval=5)
volumeLookback = input.int(20, "So nen tinh volume trung binh", minval=1)
volMultiplier = input.float(1.5, "Nguong volume cao bat thuong", step=0.1)
showSupportLine = input.bool(true, "Hien thi duong ho tro")
// === Tim day gan nhat lam ho tro ===
lowestLow = ta.lowest(low, lookbackSupport)
// === Tinh volume trung binh ===
avgVol = ta.sma(volume, volumeLookback)
// === Dieu kien Spring (o cay nen hien tai) ===
isSpringNow = low < lowestLow and close > lowestLow and volume > avgVol * volMultiplier
// === Tri hoan tin hieu 1 nen de hien thi chu o cay ke tiep ===
isSpringPrev = isSpringNow
// === Hien thi chu "Spring" o cay nen ke tiep ===
plotshape(isSpringPrev, style=shape.labelup, location=location.belowbar, color=color.green, size=size.small, text="Spring", textcolor=color.white)
// === Ve duong ho tro mau tim, dam ===
plot(showSupportLine ? lowestLow : na, title="Ho tro", color=color.purple, linewidth=2, style=plot.style_line)
Change of Character FanChange of Character Fan
Overview
The Change of Character Fan is designed to help traders detect shifts (changes of character) in market direction and sentiment before they become fully visible through traditional candlestick analysis. Instead of relying solely on the shape or close of candlesticks, this indicator offers a direct, real-time look at the internal price action occurring within a single bar. This visibility into intrabar dynamics can potentially allow traders to enter or exit trades earlier, minimize false signals, and reduce their dependence on multiple lower-timeframe charts.
How it Works:
The indicator plots a "fan" consisting of five distinct slope lines within the current bar. Each line represents the internal trend of price movement based on user-defined lower timeframe data intervals.
By default, these intervals are set to 3, 5, 8, 13, and 21 samples from 1-second timeframe data.
Each line only appears when it has collected the minimum required number of intrabar data points.
The fan lines use a progressive opacity scale (lighter to darker), visually highlighting the confidence level or probability of directional continuation within the current bar.
At the open of every new bar, the fan disappears completely and gradually reappears as new data is gathered, ensuring clarity and eliminating outdated signals.
Understanding the Mathematics: Linear Regression Model
This indicator is built around the concept of a linear regression model. Linear regression is a statistical technique used to model and analyze relationships between variables—in this case, time (independent variable) and price (dependent variable).
How Linear Regression Works:
Linear regression fits a straight line (called a "line of best fit") through a set of data points, minimizing the overall distance between each point and the line itself.
Mathematically, this is achieved by minimizing the squared differences (errors) between the observed values (actual prices) and the predicted values (prices on the line).
The linear model used here can be expressed in the form:
y = mx + b
where:
𝑦
y is the predicted price,
𝑥
x represents time (each data sample interval),
𝑚
m is the slope of the line, representing the direction and velocity of the trend,
𝑏
b is the intercept (the theoretical price when x=0).
Why a Linear Model is Beneficial in this Indicator:
Simplicity and Reliability: Linear regression is simple, robust, and widely accepted as a baseline predictive model. It requires minimal computational resources, providing instant updates in real-time trading conditions.
Immediate Directional Feedback: The slope derived from linear regression immediately communicates the directional tendency of recent price action. A positive slope indicates upward pressure, and a negative slope signals downward pressure.
Noise Reduction: Even when price fluctuations are noisy or erratic, linear regression summarizes overall direction clearly, making it easier to detect genuine directional shifts (change of character) rather than random price noise.
Intrabar Analysis: Traditional candlestick analysis relies on fully formed candles, potentially delaying signals. By using linear regression on very short-term (intrabar) data, traders can detect shifts in momentum more quickly, providing an earlier signal than conventional candle patterns alone.
Practical Application:
This indicator helps traders to visually identify:
Early Trend Reversals: Intrabar analysis reveals momentum shifts potentially signaling reversals before they become obvious on conventional candles.
Momentum Continuations: Confidence is gained when all lines in the fan are clearly pointing in the same direction, indicating strong intrabar conviction.
Reduced False Signals: Traditional candlestick signals (e.g., hammer candles) sometimes produce false signals due to intrabar noise. By looking directly into intrabar dynamics, traders gain better context on whether candle patterns reflect genuine directional change or merely noise.
Important Requirements and Recommendations:
Subscription Requirements:
A TradingView subscription that supports sub-minute data (e.g., 1-second or 5-second resolution) is strongly recommended.
If your subscription doesn't include this data granularity, you must use a 1-minute lower timeframe, significantly reducing responsiveness. In this scenario, it's best suited for a 15-minute or higher chart, adjusting intervals to shorter periods.
Live Data Essential:
Real-time market data subscription is essential for the accuracy and effectiveness of this indicator.
Using delayed data reduces responsiveness and weakens the indicator's primary advantage.
Recommended Settings for Different Chart Timeframes:
1-minute chart: Use 1-second lower timeframe intervals (default intervals: 3, 5, 8, 13, 21).
5-minute chart: Adjust to a 5- or 10-second lower timeframe, possibly reducing intervals to shorter periods (e.g., 3, 5, 8, 10, 12).
15-minute or higher charts: Adjust lower timeframe to 1-minute if granular data is unavailable, with reduced interval lengths to maintain responsiveness.
Conclusion:
The Change of Character Fan empowers traders with early insight into directional shifts within each candle, significantly enhancing reaction speed, signal accuracy, and reducing dependency on multiple charts. Built on robust linear regression mathematics, it combines clarity, responsiveness, and ease-of-use in a powerful intrabar analysis tool.
Trade smarter, see sooner, and react faster.
Best Fit Linear Regression with StdDev BandsBest Fit Linear Regression with Standard Deviation Bands
The Best Fit Linear Regression with StdDev Bands is a custom TradingView indicator designed to analyze price trends and volatility over a specified number of bars. It plots a linear regression line representing the best fit for the selected price data, accompanied by optional standard deviation bands to visualize price dispersion.
📈 Key Features
Linear Regression Line: Calculates the best-fit line over a user-defined number of bars, providing a clear visualization of the prevailing price trend.
TradingView
Standard Deviation Bands: Optional upper and lower bands set at a multiple of the standard deviation from the regression line, indicating potential support and resistance levels.
Price Source Selection: Choose between using the closing price or the midpoint (average of high and low) for calculations.
Weighting Options: Apply True Range weighting to emphasize periods of higher volatility in the regression calculation.
Trend Strength Indicator: Displays a normalized strength value between -1 and 1, indicating the direction and magnitude of the trend.
Customizable Appearance: Adjust line color, width, label position, and background color to suit your preferences.
Extendable Lines: Option to extend the regression and standard deviation lines beyond the visible bars for projection purposes.
⚙️ Input Parameters
Bars to Analyze: Number of bars to include in the regression calculation (default: 100).
Price Value: Select "Close" or "Midpoint" as the data source for calculations.
Weighting Method: Choose between "None" or "True Range" weighting.
Line Color & Width: Customize the color and thickness of the regression line.
Label Position: Place the informational label at the start, center, or end of the regression line.
Label Background Color: Set the background color for the informational label.
Extend Line Beyond Visible Bars: Option to project the regression line into future bars.
Show Standard Deviation Bands: Toggle the visibility of the standard deviation bands.
Standard Deviation Multiplier: Set the multiplier for the standard deviation bands (default: 1.0).
StdDev Bands Color: Customize the color and transparency of the standard deviation bands.
🧮 How It Works
Data Collection: Gathers price data based on the selected source (Close or Midpoint) over the specified number of bars.
Weighting (Optional): Applies True Range weighting if selected, giving more importance to bars with higher volatility.
Regression Calculation: Computes the slope and intercept of the best-fit line using the least squares method.
Standard Deviation: Calculates the standard deviation of the price data from the regression line to determine the dispersion.
Plotting: Draws the regression line and, if enabled, the upper and lower standard deviation bands.
Labeling: Displays a label indicating the trend direction (Bullish, Bearish, or Neutral), strength percentage, and standard deviation value.
📊 Interpretation
Trend Direction: The slope of the regression line indicates the trend direction.
Trend Strength: The normalized strength value provides insight into the magnitude of the trend.
Price Position: Prices near or beyond the standard deviation bands may indicate overbought or oversold conditions.
TradingView
🛠️ Use Cases
Trend Analysis: Identify and confirm the direction and strength of market trends.
Volatility Assessment: Gauge market volatility through the width of the standard deviation bands.
Support and Resistance: Use the standard deviation bands to identify potential support and resistance levels.
Trade Timing: Assist in determining optimal entry and exit points based on price interaction with the regression line and bands.
This indicator is particularly useful for traders seeking a statistical approach to trend analysis, offering customizable options to tailor the tool to various trading strategies and preferences.
MTF Trend Fusion - V1📌 MTF Trend Fusion - V1
Multi-Timeframe (MTF) Trend Indicator
🔍 Description: What Does It Do?
This indicator helps you visually analyze the overall market trend by combining Exponential Moving Averages (EMA) calculated on three different timeframes. It determines the trend direction by checking whether the price is above or below the EMAs from all selected timeframes.
The trend direction is clearly visualized through background color:
Green Background: Price is above the EMA on all three timeframes (bullish trend)
Red Background: Price is below the EMA on all three timeframes (bearish trend)
This approach aims to provide a more reliable trend confirmation by filtering out short-term misleading signals.
⚙️ How It Works
The script takes input from the user for three different timeframes and one EMA length. It calculates EMAs on those timeframes and determines the trend as follows:
If the price is above EMA1, EMA2, and EMA3 → Bullish signal
If the price is below EMA1, EMA2, and EMA3 → Bearish signal
In all other cases (mixed structure) → No signal
The background color is adjusted accordingly. All three EMAs are also plotted on the chart with different colors.
🛠️ How to Use
After activating the script, use the settings panel to select your desired three timeframes and the EMA length.
Regardless of your main chart's timeframe, this indicator analyzes the trend structure based on the selected timeframes.
You can quickly interpret the trend direction through the colored background.
🧠 Approach and Interpretation
This indicator helps you evaluate trend direction from a broader perspective using multi-timeframe (MTF) analysis. It focuses on understanding the overall direction rather than short-term price movements.
It can be particularly useful for:
Trend-following strategies
As a filter tool
Lower timeframe traders to see the higher timeframe trend direction
⚠️ Warnings & Recommendations
This is an indicator, not a strategy. It should not be used alone for buy/sell decisions.
Remember that EMA values are recalculated on different timeframes, which may introduce a delay effect.
Optimal settings may vary across markets and assets. Optimization is recommended.
📈 Default Settings
EMA Length: 50
Timeframe 1: 15 Minutes
Timeframe 2: 60 Minutes (1 Hour)
Timeframe 3: 240 Minutes (4 Hours)
💡 Why This Script?
This script goes beyond a simple EMA structure and offers a powerful tool for trend filtering. It reduces contradictions caused by different timeframes and provides stronger decision support.
With the combined EMA data:
Trend direction becomes clearer
False signals are filtered
The decision-making process is simplified
📌 Note: This indicator does not provide investment advice. It is designed to support your own analysis.
VWAP Bounce & Squeeze- VWAP
- 20/50 EMA
- 15 min Opening Range
- volume spike and candle body simulating Bookmap/DOM
- custom confluence detection for VWAP, EMA, candle structure
- signals for long and short opportunities
- automated risk/reward boxes
- automated trailing stop suggestions
S5TW/S5FI/S5TH [SP500]This indicator plots three key S&P 500 breadth indices (S5TW, S5FI, S5TH), helping traders quickly identify market breadth conditions. Oversold (green background) and overbought (red background) conditions are highlighted based on customizable threshold levels, enhancing visual clarity for market timing.
EMA ConditionsThis indicator was developed with the intention to display current market conditions according to the EMAs. There's a little box in the top right to display the conditions. I wanted to design something that shows already established market conditions, which is why I chose to use EMAs and candle closes as the source for identifying market conditions.
Personally, I scalp momentum in trending market conditions, so having an already established trend lets me know when it's appropriate for me to apply my edge on my lower time frame. I use a 5m time frame for my setups and this is where I apply this indicator. I designed the indicator to function off any time frame, so you can use this indicator with whatever time frame you want.
There are 5 conditions that I've set in place for this indicator, they're as follows:
1. Bullish conditions are met when price has closed 3+ consecutive candles over both EMAs (9 and 20 EMAs by default, but you can also choose what EMAs you want).
2. Bearish conditions are met when price has closed 3+ consecutive candles below both EMAs.
3. Reversal conditions are met when EMAs have crossed, and it will show those reversal conditions for the following 4 bars after the EMA cross over has taken place. Once there have been 4 bars closed, it will then show whatever condition is currently present.
4. Wait conditions are met when price is above/below (depending on direction of trend) the 9 ema.
- So in a bull trend, if price is below the 9 ema, it'll show "Wait"
5. Flat conditions are met when both EMAs are showing minimal changes in value over a specified number of candles. This indicates that EMAs are moving sideways and volatility is low. Likely in range bound or chop environments.
- The Flat threshold is adjustable. I have it set to 0.03% with a candle look back of 2 bars. This works the best for my edge, but you can set them to what you want.
The Flat and Wait conditions will override all other conditions. The Reversal conditions will override both Bullish and Bearish conditions. This way, when the indicator is showing Bullish or Bearish conditions, you'll know that nothing else is present.
Since I only trade in trending market conditions, I only trade when Bullish or Bearish conditions are met. If anything else is there then I'm not looking for my setups at that time. But you can use this however you'd like. If you like trading ranges, then trade when EMAs show flat. If you want to fade reversals and trade mean reversion, wait for a reversal condition to show and then look to fade that move. Get creative with it and with your edge. Don't put yourself in a box.
This indicator was made using Grok AI since I have no clue how to write code. I'll make the script available for everyone, so you can make adjustments yourself and do your own thing with it if you want.
If you have any questions or suggestions on how to improve the indicator, feel free to contact me on X: x.com
EMA6–EMA18 Trend Signal SystemThis is a dual-timeframe trend-following indicator designed for intraday traders.
It combines exponential moving averages (EMAs) from two timeframes:
1-hour EMA6 and EMA18 are used to define the major trend direction.
If EMA6 > EMA18 on the hourly chart, the background turns green (indicating an uptrend).
If EMA6 < EMA18, the background turns red (indicating a downtrend).
Entry signals are triggered only on the 15-minute chart:
A long signal appears when EMA6 crosses above EMA18 during an hourly uptrend.
A short signal appears when EMA6 crosses below EMA18 during an hourly downtrend.
Signal arrows are plotted directly on the chart:
Green triangle up = Long signal
Red triangle down = Short signal
Both EMA6 and EMA18 are plotted for visual reference.
This setup helps align lower timeframe entries with higher timeframe trend confirmation, offering traders more precise entry points and reducing noise.
—
The script is intended for use on 15-minute charts and works best in trending markets.
© All rights reserved. Author: hank552
30 Normalized Price with LimitsThis indicator shows the normalized price of the top 30 NASDAQ companies.
The main purpose of the indicator is to identify which company is primarily driving the NASDAQ and to anticipate the market using the information we have.
This indicator is designed to be used in combination with other similar ones I’ve published, which monitor the RSI, CCI, MACD, etc., of the top 30 NASDAQ companies.
Exponential Trend [AlgoAlpha]OVERVIEW
This script plots an adaptive exponential trend system that initiates from a dynamic anchor and accelerates based on time and direction. Unlike standard moving averages or trailing stops, the trend line here doesn't follow price directly—it expands exponentially from a pivot determined by a modified Supertrend logic. The result is a non-linear trend curve that starts at a specific price level and accelerates outward, allowing traders to visually assess trend strength, persistence, and early-stage reversal points through both base and volatility-adjusted extensions.
CONCEPTS
This indicator builds on the idea that trend-following tools often need dynamic, non-static expansion to reflect real market behavior. It uses a simplified Supertrend mechanism to define directional context and anchor levels, then applies an exponential growth function to simulate trend acceleration over time. The exponential growth is unidirectional and resets only when the direction flips, preserving trend memory. This method helps avoid whipsaws and adds time-weighted confirmation to trends. A volatility buffer—derived from ATR and modifiable by a width multiplier—adds a second layer to indicate zones of risk around the main trend path.
FEATURES
Exponential Trend Logic : Once a directional anchor is set, the base trend line accelerates using an exponential formula tied to elapsed bars, making the trend stronger the longer it persists.
Volatility-Adjusted Extension : A secondary band is plotted above or below the base trend line, widened by ATR to visualize volatility zones, act as soft stop regions or as a better entry point (Dynamic Support/Resistance).
Color-Coded Visualization : Clear green/red base and extension lines with shaded fills indicate trend direction and confidence levels.
Signal Markers & Alerts : Triangle markers indicate confirmed trend reversals. Built-in alerts notify users of bullish or bearish direction changes in real-time.
USAGE
Use this script to identify strong trends early, visually measure their momentum over time, and determine safe areas for entries or exits. Start by adjusting the *Exponential Rate* to control how quickly the trend expands—the higher the rate, the more aggressive the curve. The *Initial Distance* sets how far the anchor band is placed from price initially, helping filter out noise. Increase the *Width Multiplier* to widen the volatility zone for more conservative entries or exits. When the price crosses above or below the base line, a new trend is assumed and the exponential projection restarts from the new anchor. The base trend and its extension both shift over time, but only reset on a confirmed reversal. This makes the tool especially useful for momentum continuation setups or trailing stop logic in trending markets.
30 Prezzi Normalizzati (Daily Reset)This indicator shows the normalized price of the top 30 NASDAQ companies. Like the previous one, its main use is to identifying which company is primarily driving the NASDAQ and in anticipating the market using the information at our disposal. The difference between this indicator and others is that the price is anchored to a common starting point for all companies, offering a clearer view of the market's opening dynamics.
This indicator is designed to be used in combination with other similar tools I’ve published, which track the RSI, CCI, MACD, etc.., of the top 30 NASDAQ companies
30 CCI Normalizzati (Daily Reset)This indicator displays the normalized CCI of the top 30 companies in the NASDAQ.
The main utility of the indicator is to identify which company is primarily driving the NASDAQ and which one is not highly correlated, allowing you to anticipate entries into zones that can be considered similar to overbought and oversold conditions, or to spot divergences.
Essentially, this indicator is a composite CCI.
This indicator is designed to be used in combination with other similar tools I've published, which track the RSI, ATR, MACD, etc., of the top 30 NASDAQ companies.
Moving Average Trend ToolsI. How M.A.T.T. Adds Value to the TradingView Community:
The "Moving Average Trend Tools" (M.A.T.T.) is a versatile Pine Script v6 indicator that empowers traders with clear trend analysis, reliable trade signals, and real-time insights. Its intuitive design and robust features make it a valuable addition to the TradingView Community Scripts by catering to traders of all levels. Here’s why it stands out:
Clear Trend Visualization: M.A.T.T. plots a moving average (MA) with dynamic coloring—green for rising, red for falling, and gray for flat—based on a user-defined lookback period. This simplifies trend interpretation, helping traders quickly assess market momentum.
Reliable Trade Signals : The script identifies price crossovers above or below the MA, plotting green circles for bullish crosses and red for bearish, confirmed on closed bars to prevent repainting. These signals guide entry and exit points for trend-following or reversal strategies.
Real-Time Extension Detection : M.A.T.T. calculates percentage price deviations from the MA, displaying real-time labels when thresholds (e.g., 6%) are exceeded. This highlights overextended moves, ideal for spotting reversals or pullbacks, with alerts to keep traders informed.
Extensive Customization : Traders can tailor the MA type (SMA, EMA, WMA, HMA), length, colors, line width, and label sizes. This flexibility supports diverse strategies across markets like stocks, forex, and crypto, from scalping to swing trading.
Automated Alerts : Alert conditions for crossovers and extensions integrate seamlessly with TradingView’s system, enabling traders to stay updated without constant chart monitoring.
M.A.T.T. combines trend analysis, signal generation, and overextension detection into a single, user-friendly tool. Its accessibility, reliability, and educational value for Pine Script learners make it a compelling contribution to the community.
II. What M.A.T.T. Does, How It Works, and Its Originality:
What It Does :
M.A.T.T. enhances trend analysis and trade decision-making through three core features:
Dynamic MA Visualization: Plots a customizable MA (SMA, EMA, WMA, or HMA) with trend-based coloring to reflect rising, falling, or flat market conditions.
Price Crossover Signals : Marks bullish (green circles) and bearish (red circles) crossovers, confirmed on closed bars, with alerts for trade opportunities.
Price Extension Labels : Displays real-time percentage deviations of price from the MA, with alerts when user-defined thresholds are breached, signaling potential reversals.
How It Works :
M.A.T.T. leverages Pine Script v6 for precise calculations and user-friendly outputs:
Inputs: Users select MA type, length, lookback period, colors, and thresholds for extensions, plus label styles and sizes for customization.
MA Calculation : A switch function computes the chosen MA (e.g., ta.ema(close, 21) for EMA). Trend direction is determined using ta.rising or ta.falling over the lookback period, coloring the MA accordingly.
Crossover Logic : Bullish crossovers (close > ma and close < ma ) and bearish crossovers (close < ma and close > ma ) are plotted as circles on confirmed bars (barstate.isconfirmed) to ensure reliability. Alerts trigger only on the first bar of a crossover.
Extension Logic : Percentage deviations are calculated as ((price - ma) / ma) * 100, using the high for above-MA extensions and low for below. Labels appear in real-time when thresholds are exceeded, with alerts on transitions to avoid noise.
Why It’s Original
M.A.T.T. distinguishes itself through a unique blend of features and thoughtful design:
All-in-One Design : It integrates dynamic MA coloring, non-repainting crossover signals, and real-time extension detection, addressing trend identification, trade signals, and overextension warnings in one tool—unlike most MA indicators that focus on a single aspect.
Real-Time Extension Labels : Displaying percentage deviations with customizable thresholds is a rare feature, ideal for volatile markets and not commonly found in standard scripts.
Non-Repainting Signals : Confirmed crossover signals enhance reliability for live trading, setting M.A.T.T. apart from less rigorous indicators.
Optimized Alert Condtions : Alerts trigger only on transitions (e.g., first bar of a crossover or extension), reducing noise and improving usability.
Visual and Functional Flexibility : Support for four MA types, extensive customization, and a clean interface (dynamic colors, tiny circles, clear labels) make it adaptable and user-friendly.
While MA plotting or crossovers exist elsewhere, M.A.T.T.’s seamless integration, real-time extension detection, alert conditions, and focus on reliability and customization create a distinctive, practical tool. Its balance of simplicity and sophistication makes it a unique asset for the TradingView community.
W%R Zone Scalper[BullByte] v1.0W%R Zone Scalper Strategy - The Definitive Deep Dive
1. Introduction: The Philosophy Behind the Strategy
This script, W%R Zone Scalper , is not just another Williams %R-based trading system—it is a refined, multi-filtered scalping engine designed to maximize edge in trending markets while minimizing false signals in choppy conditions . Unlike most basic %R strategies that blindly trade crossovers, this system introduces a sophisticated confluence of trend, volatility, and momentum filters , making it a high-probability scalper for intraday traders .
What Makes This Script Different?
✅ Originality: Most %R strategies rely solely on overbought/oversold levels, leading to whipsaws in ranging markets. This script intelligently combines:
- Trend confirmation (MA, Supertrend)
- Volatility filters (BB Width, Choppiness Index)
- Volume validation (to ensure real participation)
- ADX trend strength (to avoid weak, fake trends)
✅ Smart Trade Execution:
- Not just %R crossovers —entries are only taken when multiple filters align, reducing noise.
- Optional ATR-based SL/TP for disciplined risk management.
- Dashboard integration for real-time trade monitoring.
✅ Adaptability:
- Works on crypto, forex, and stocks (optimized for high-liquidity assets like BTC).
- Scalable from 1-minute scalping to 1-hour swing trades (adjust filters accordingly).
2. Core Components: A Surgical Breakdown
A. Williams %R - The Trigger Mechanism
- Default Settings:
- Length = 14 (optimal balance between sensitivity and reliability).
- Long Entry : Cross above -80 (oversold bounce with momentum).
- Short Entry : Cross below -20 (overbought rejection).
Why This Matters:
- Unlike RSI or Stochastic, %R is more aggressive in detecting reversals, making it ideal for scalping fast moves.
- However, raw %R signals are noisy—hence the need for additional filters.
B. The Moving Average (MA) - Trend Filter
- Purpose: Ensures trades are only taken in the direction of the broader trend.
- Types Available:
- SMA (Simple MA) – Smooth but laggy.
- EMA (Exponential MA) – Faster, default choice.
- WMA (Weighted MA) – More responsive to recent prices.
- HMA (Hull MA) – Minimal lag, excellent for scalping.
Entry Logic:
- Long : Price must be above MA (confirms uptrend).
- Short : Price must be below MA (confirms downtrend).
Why This Matters:
- Prevents counter-trend trades , which are high-risk in scalping.
- Works as a dynamic support/resistance .
C. Advanced Filters - The Edge Enhancers
1. Choppiness Index (CI) - Avoiding Sideways Markets
- Default:
- Length = 12
- Threshold = 38.2 (below = trending, above = choppy).
Why This Matters:
- Eliminates false signals in ranging markets (where %R crossovers fail most).
- Inspired by market cycle theory—only trades when volatility is directional.
2. ADX (Average Directional Index) - Trend Strength
- Default:
- Length = 14
- Threshold = 25 (only trade if ADX > 25 = strong trend).
Why This Matters:
- Many traders ignore ADX and get fake breakouts—this ensures trades happen only in high-momentum conditions.
3. Volume Filter - Confirming Real Moves
- Logic: Volume must be above its 50-period MA.
- Why This Matters:
- Low-volume breakouts often fail—this ensures institutional participation.
4. Bollinger Band Width (BBW) - Volatility Check
- Logic: BBW must be above its moving average (expanding volatility = good for scalping).
Why This Matters:
- Avoids low-volatility traps where price moves are insignificant.
5. Supertrend - Dynamic Trend Confirmation
- Logic:
- Longs : Price must be above Supertrend line.
- Shorts : Price must be below Supertrend line.
Why This Matters:
- Acts as a secondary trend filter , reducing whipsaws.
---
3. Risk Management - Protecting Capital
A. Position Sizing (Flexible & Adaptive)
- Default: 30% of equity per trade(aggressive but adjustable).
- Initial Capital: $1,000(example—modify based on your account size).
B. Stop Loss & Take Profit (ATR-Based)
- SL = 1.5x ATR (protects against sudden reversals).
- TP = 2x ATR (locks in profits before pullbacks).
Why ATR?
- Dynamic adjustment —wider in volatile markets, tighter in calm ones.
C. Manual Adjustments Required
- Commission: Default 0.1% (adjust per your broker).
- Leverage: Not hardcoded —apply based on your risk tolerance.
4. Optimal Time Frame & Asset Selection
- Best for: 5M - 15M charts(scalping).
- Also works on: 1H-4H(swing trades with adjusted filters).
- Best Assets:
- High-liquidity cryptos (BTC, ETH, SOL)
- Forex majors (EUR/USD, GBP/USD)
- High-beta stocks (TSLA, NVDA)
5. The Dashboard - Real-Time Trade Intelligence
- PnL Tracking (profit/loss in $ and %).
- Position Status (Long/Short/Flat).
- Filter Status (which ones are active).
- Key Indicators (%R, MA, Volume).
Why This Matters:
- No guesswork—all critical info in one place.
6. Strong Disclaimer
⚠️ This is not financial advice. Trading carries risk of loss.
- Backtest thoroughly before live trading.
- Start with small capital to validate performance.
- Modify SL/TP, leverage, and position sizing based on your risk profile.
- The developer is not liable for any losses incurred.
7. Why This Strategy Stands Out
Most %R strategies fail in real markets because they ignore:
❌ Trend context (trading reversals blindly).
❌ Volatility cycles (getting chopped up in sideways action).
❌ Volume confirmation (falling for fake breakouts).
This script solves those problems by:
✅ Only trading when multiple high-probability factors align.
✅ Using adaptive risk management (ATR-based SL/TP).
✅ Providing a real-time dashboard for decision-making.
8.Important Note on Backtesting & Customization
The performance results displayed with this script are based on:
- Asset BTC/USD
- Timeframe : 5-minute chart
- Key Filters Enabled :
- Moving Average (Trend Confirmation)
- Choppiness Index (Sideways Market Filter)
- Volume (Participation Validation)
Your Trading Approach May Vary
This configuration represents just one possible way to deploy the strategy. You can:
- Test alternative settings (adjust lengths, thresholds, or filters)
- Apply to different assets (cryptos, forex pairs, stocks)
- Experiment with timeframes (1m for ultra-scalping, 15m/1H for swing trades)
Critical Reminder
Always conduct your own forward testing before live trading. Market conditions change, and past performance never guarantees future results.
All the best!
Volume Range Profile with Fair Value (Zeiierman)█ Overview
The Volume Range Profile with Fair Value (Zeiierman) is a precision-built volume-mapping tool designed to help traders visualize where institutional-level activity is occurring within the price range — and how that volume behavior shifts over time.
Unlike traditional volume profiles that rely on fixed session boundaries or static anchors, this tool dynamically calculates and displays volume zones across both the upper and lower ends of a price range, revealing point-of-control (POC) levels, directional volume flow, and a fair value drift line that updates live with each candle.
You’re not just looking at volume anymore. You’re dissecting who’s in control — and at what price.
⚪ In simple terms:
Upper Zone = The upper portion of the price range, showing concentrated volume activity — typically where selling or distribution may occur
Lower Zone = The lower portion of the price range, highlighting areas of high volume — often associated with buying or accumulation
POC Bin = The bin (price level) with the highest traded volume in the zone — considered the most accepted price by the market
Fair Value Trend = A dynamic trend line tracking the average POC price over time — visualizing the evolving fair value
Zone Labels = Display real-time breakdown of buy/sell volume within each zone and inside the POC — revealing who’s in control
█ How It Works
⚪ Volume Zones
Upper Zone: Anchored at the highest high in the lookback period
Lower Zone: Anchored at the lowest low in the lookback period
Width is user-defined via % of range
Each zone is divided into a series of volume bins
⚪ Volume Bins (Histograms)
Each zone is split into N bins that show how much volume occurred at each level:
Taller = More volume
The POC bin (Point of Control) is highlighted
Labels show % of volume in the POC relative to the whole zone
⚪ Buy vs Sell Breakdown
Each volume bin is split by:
Buy Volume = Close ≥ Open
Sell Volume = Close < Open
The script accumulates these and displays total Buy/Sell volume per zone.
⚪ Fair Value Drift Line
A POC trend is plotted over time:
Represents where volume was most active across each range
Color changes dynamically — green for rising, red for falling
Serves as a real-time fair value anchor across changing market structure
█ How to Use
⚪ Identify Key Control Zones
Use Upper/Lower Zone structures to understand where supply and demand is building.
Zones automatically adapt to recent highs/lows and re-center volume accordingly.
⚪ Follow Institutional Activity
Watch for POC clustering near price tops or bottoms.
Large volumes near extremes may indicate accumulation or distribution.
⚪ Spot Fair Value Drift
The fair value trend line (average POC price) gives insight into market equilibrium.
One strategy can be to trade a re-test of the fair value trend, trades are taken in the direction of the current trend.
█ Understanding Buy & Sell Volume Labels (Zone Totals)
These labels show the total buy and sell volume accumulated within each zone over the selected lookback period:
Buy Vol (green label) → Total volume where candles closed bullish
Sell Vol (red label) → Total volume where candles closed bearish
Together, they tell you which side dominated:
Higher Buy Vol → Bullish accumulation zone
Higher Sell Vol → Bearish distribution zone
This gives a quick visual insight into who controlled the zone, helping you spot areas of demand or supply imbalance.
█ Understanding POC Volume Labels
The POC (Point of Control) represents the price level where the most volume occurred within the zone. These labels break down that volume into:
Buy % – How much of the volume was buying (price closed up)
Sell % – How much was selling (price closed down)
Total % – How much of the entire zone’s volume happened at the POC
Use it to spot strong demand or supply zones:
High Buy % + High Total % → Strong buying interest = likely support
High Sell % + High Total % → Strong selling pressure = likely resistance
It gives a deeper look into who was in control at the most important price level.
█ Why It’s Useful
Track where fair value is truly forming
Detect aggressive volume accumulation or dumping
Visually split buyer/seller control at the most relevant price levels
Adapt volume structures to current trend direction
█ Settings Explained
Lookback Period: Number of bars to scan for highs/lows. Higher = smoother zones, Lower = reactive.
Zone Width (% of Range): Controls how much of the range is used to define each zone. Higher = broader zones.
Bins per Zone: Number of volume slices per zone. Higher = more detail, but heavier on resources.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Zig Zag + Fibonacci PROPlots ZigZag structure with optional Fibonacci retracement levels.
Helps identify recent highs/lows and possible support/resistance zones.
Customizable levels and alert on price cross.
All-Time, Yearly & Monthly High/LowThis indicator visually tracks and displays:
• All-Time High (ATH) – The highest price the asset has ever reached
• All-Time Low (ATL) – The lowest price the asset has ever reached
• Yearly High/Low – The highest and lowest prices recorded in the current calendar year
• Monthly High/Low – The highest and lowest prices in the current calendar month
It helps traders quickly identify major support/resistance levels and historical price extremes across different timeframes. Level
Color
Updates When
All-Time High
Red
A new highest price ever is reached
All-Time Low
Green
A new lowest price ever is reached
Yearly High
Orange
New yearly high occurs or changes with new year
Yearly Low
Teal
New yearly low occurs or changes with new year
Monthly High
Fuchsia
New monthly high or at the start of each new month
Monthly Low
Navy Blue
New monthly low or at the start of each new month This indicator is especially useful for:
• Swing traders watching monthly or yearly trend zones
• Breakout traders looking to spot price levels where breakouts might occur
• Reversal traders using all-time levels for high-risk reward zones
• Long-term investors gauging historical extremes for entries/exits
RSI + SuperTrend Filter Strategy (45m BTCUSDT)🧠 Strategy Breakdown: RSI + SuperTrend Filter (45m BTCUSDT)
This strategy is built on a simple yet powerful principle: don’t fight the trend — and never ignore momentum exhaustion.
At its core, this setup looks for RSI-based reversal entries, but only when price action aligns with the underlying trend structure, defined by a modified SuperTrend. This combo filters out a large chunk of noise you typically get with RSI alone on lower timeframes.
📊 How It Works
Longs trigger when RSI crosses up from oversold and SuperTrend confirms a bullish bias.
Shorts trigger when RSI crosses down from overbought and SuperTrend confirms a bearish structure.
Each entry is paired with a tight SL (1%) and dynamic TP (1.5%), offering favorable risk:reward setups.
The script includes clean chart visuals — background zones, SL/TP lines, and real-time trend bands — built for clarity and decision speed.
⚙️ Why It Works
Too many RSI strategies reverse blindly — this doesn’t. By combining RSI oversold/overbought conditions with a directional SuperTrend filter, you get higher-quality entries, especially during high-volatility phases.
This is not designed for sideways markets — it’s meant to catch clean swings in structured trends. The 45m TF adds breathing room for better signal quality while still allowing for decent trade frequency.
📈 Backtest Snapshot (3m logic on 45m BTCUSDT)
💰 +213,885 USDT total P&L
🧠 239 trades, with solid coverage across sessions
📉 15% max drawdown
⚖️ Profit factor: 1.12
🔁 Dynamic execution-ready — ideal for automation or manual confirmations
🔧 Built For Traders Who:
Want non-repainting structure they can trust
Prefer mechanical entries with visual context
Are experimenting with automation-ready setups
Need something they can tweak and expand on
🔥 If you're serious about combining clean signals with trend confirmation — this is a solid foundation. Drop a comment if you want the multi-timeframe version or ideas on adding volume-based confirmations.
Multi-Factor Reversal AnalyzerMulti-Factor Reversal Analyzer – Quantitative Reversal Signal System
OVERVIEW
Multi-Factor Reversal Analyzer is a comprehensive technical analysis toolkit designed to detect market tops and bottoms with high precision. It combines trend momentum analysis, price action behavior, wave oscillation structure, and volatility breakout potential into one unified indicator.
This indicator is not a random mix of tools — each module is carefully selected for a specific purpose. When combined, they form a multi-dimensional view of the market, merging trend analysis, momentum divergence, and volatility compression to produce high-confidence signals.
Why Combine These Modules?
Module Combination Ideas & How to Use Them
Factor A: Trend Detector + Gold Zone
Concept:
• The Trend Detector (light yellow histogram) evaluates market strength:
• Histogram trending downward or staying below 50 → bearish conditions;
• Trending upward or staying above 50 → bullish conditions.
• The Gold Zone identifies areas of volatility compression — typically a prelude to explosive market moves.
Practical Application:
• When the Gold Zone appears and the Trend Detector is bearish → likely downside move;
• When the Gold Zone appears and the Trend Detector is bullish → likely upside breakout.
• Note: The Gold Zone does not mean the bottom is in. It is not a buy signal on its own — always combine it with other modules for directional bias.
Factor B: PAI + Wave Trend
Concept:
• PAI (Price Action Index) is a custom oscillator that combines price momentum with volatility dispersion, displaying strength zones:
• Green area → bullish dominance;
• Red area → bearish pressure.
• Wave Trend offers smoothed crossover signals via the main and signal lines.
Practical Application:
• When PAI is in the green zone and Wave Trend makes a bullish crossover → potential reversal to the upside;
• When PAI is in the red zone and Wave Trend shows a bearish crossover → potential start of a downtrend.
Factor C: Trend Detector + PAI
Concept:
• Combines directional trend strength with price action strength to confirm setups via confluence.
Practical Application:
• Trend Detector histogram bottoms out + PAI enters the green zone → high chance of upward reversal;
• Histogram tops out + PAI in the red zone → increased likelihood of downside continuation.
Multi-Factor Confluence (Advanced Use)
• When Trend Detector, PAI, and Wave Trend all align in the same direction (bullish or bearish), the directional signal becomes significantly more reliable.
• This setup is especially useful for trend-following or swing trade entries.
KEY FEATURES
1. Multi-Layer Reversal Logic
• Combines trend scoring, oscillator divergence, and volatility squeezes for triangulated reversal detection.
• Helps traders distinguish between trend pullbacks and true reversals.
2. Advanced Divergence Detection
• Detects both regular and hidden divergences using pivot-based confirmation logic.
• Customizable lookback ranges and pivot sensitivity provide flexible tuning for different market styles.
3. Gold Zone Volatility Compression
• Highlights pre-breakout zones using custom oscillation models (RSI, harmonic, Karobein, etc.).
• Improves anticipation of breakout opportunities following low-volatility compressions.
4. Trend Direction Context
• PAI and Trend Score components provide top-down insight into prevailing bias.
• Built-in “Straddle Area” highlights consolidation zones; breakouts from this area often signal new trend phases.
5. Flexible Visualization
• Color-coded trend bars, reversal markers, normalized oscillator plots, and trend strength labels.
• Designed for both visual discretionary traders and data-driven system developers.
USAGE GUIDELINES
1. Applicable Markets
• Suitable for stocks, crypto, futures, and forex
• Supports reversal, mean-reversion, and breakout trading styles
2. Recommended Timeframes
• Short-term traders: 5m / 15m / 1H — use Wave Trend divergence + Gold Zone
• Swing traders: 4H / Daily — rely on Price Action Index and Trend Detector
• Macro trend context: use PAI HTF mode for higher timeframe overlays
3. Reversal Strategy Flow
• Watch for divergence (WT/PAI) + Gold Zone compression
• Confirm with Trend Score weakening or flipping
• Use Straddle Area breakout for final trigger
• Optional: enable bar coloring or labels for visual reinforcement
• The indicator performs optimally when used in conjunction with a harmonic pattern recognition tool
4. Additional Note on the Gold Zone
The “Gold Zone” does not directly indicate a market bottom. Since it is displayed at the bottom of the chart, it may be misunderstood as a bullish signal. In reality, the Gold Zone represents a compression of price momentum and volatility, suggesting that a significant directional move is about to occur. The direction of that move—upward or downward—should be determined by analyzing the histogram:
• If histogram momentum is weakening, the Gold Zone may precede a downward move.
• If histogram momentum is strengthening, it may signal an upcoming rebound or rally.
Treat the Gold Zone as a warning of impending volatility, and always combine it with trend indicators for accurate directional judgment.
RISK DISCLAIMER
• This indicator calculates trend direction based on historical data and cannot guarantee future market performance. When using this indicator for trading, always combine it with other technical analysis tools, fundamental analysis, and personal trading experience for comprehensive decision-making.
• Market conditions are uncertain, and trend signals may result in false positives or lag. Traders should avoid over-reliance on indicator signals and implement stop-loss strategies and risk management techniques to reduce potential losses.
• Leverage trading carries high risks and may result in rapid capital loss. If using this indicator in leveraged markets (such as futures, forex, or cryptocurrency derivatives), exercise caution, manage risks properly, and set reasonable stop-loss/take-profit levels to protect funds.
• All trading decisions are the sole responsibility of the trader. The developer is not liable for any trading losses. This indicator is for technical analysis reference only and does not constitute investment advice.
• Before live trading, it is recommended to use a demo account for testing to fully understand how to use the indicator and apply proper risk management strategies.
CHANGELOG
v1.0: Initial release featuring integrated Price Action Index, Trend Strength Scoring, Wave Trend Oscillator, Gold Zone Compression Detection, and dual-type divergence recognition. Supports higher timeframe (HTF) synchronization, visual signal markers, and diversified parameter configurations.
Rolling Beta against SPY📈 Pine Script Showcase: Rolling Beta Against SPY
Understanding how your favorite stock or ETF moves in relation to a benchmark like the S&P 500 can offer powerful insights into risk and exposure. This script calculates and visualizes the rolling beta of any asset versus the SPY ETF (which tracks the S&P 500).
🧠 What Is Beta?
Beta measures the sensitivity of an asset's returns to movements in the broader market. A beta of:
- 1.0 means the asset moves in lockstep with SPY,
- >1.0 indicates higher volatility than the market,
- <1.0 implies lower volatility or possible defensive behavior,
- <0 suggests inverse correlation (e.g., hedging instruments).
🧮 How It Works
This script computes rolling beta over a user-defined window (default = 60 periods) using classic linear regression math:
- Calculates daily returns for both the asset and SPY.
- Computes covariance between the two return streams.
- Divides by the variance of SPY returns to get beta.
⚙️ Customization
You can adjust the window size to control the smoothing:
- Shorter windows capture recent volatility changes,
- Longer windows give more stable, long-term estimates.
📊 Visual Output
The script plots the beta series dynamically, allowing you to observe how your asset’s correlation to SPY evolves over time. This is especially useful in regime-change environments or during major macroeconomic shifts.
💡 Use Cases
- Portfolio construction: Understand how your assets co-move with the market.
- Risk management: Detect when beta spikes—potentially signaling higher market sensitivity.
- Market timing: Use beta shifts to infer changing investor sentiment or market structure.
📌 Pro Tip: Combine this rolling beta with volatility, Sharpe ratio, or correlation tracking for a more robust factor-based analysis.
Ready to add a layer of quantitative insight to your chart? Add the script to your watchlist and start analyzing your favorite tickers against SPY today!
PG Mean revision price to vwma and MAsHere's a concise breakdown for your users:
- Selection of Moving Average Type:- Choose VWMA, EMA, or SMA, along with the source (e.g., closing price) and length for the calculation.
- Price-MA Difference Calculation:- Calculates the difference between the closing price and the selected moving average.
- Additional Moving Averages:- Applies three customizable moving averages (MA1, MA2, MA3) to the price-MA difference.
- Dynamic Plotting:- Plots the price-MA difference in red, and overlays the moving averages (blue, orange, purple). MA1 can be dynamically colored red/green based on its trend.
- Zero Reference Line:- Includes a horizontal line at zero for easy visual reference.
This tool helps analyze price trends and deviations for better trading decisions!