True Seasonal Pattern [tradeviZion]True Seasonal Pattern: Uncover Hidden Market Cycles
Markets have rhythms and patterns that repeat with surprising regularity. The True Seasonal Pattern indicator reveals these hidden cycles across different timeframes, helping you anticipate potential market movements based on historical seasonal tendencies.
What This Indicator Does
The True Seasonal Pattern analyzes years of historical price data to identify recurring seasonal trends. It then plots these patterns on your chart, showing you both the historical pattern and future projection based on past seasonal behavior.
Automatic Timeframe Detection: Works with Monthly, Weekly, and Daily charts
Historical Pattern Analysis: Analyzes up to 100 years of data (customizable)
Future Projection: Projects the seasonal pattern ahead on your chart
Smart Smoothing: Applies appropriate smoothing based on your timeframe
How to Use This Indicator
Add the indicator to a Daily, Weekly, or Monthly chart (not designed for intraday timeframes)
The indicator automatically detects your chart's timeframe
The blue line shows the historical seasonal pattern
Watch for potential turning points in the pattern that align with other technical signals
Seasonal patterns work best as a supporting factor in your analysis, not as standalone trading signals. They are particularly effective in markets with well-established seasonal influences.
Best Applications
Futures Markets: Commodities and futures often show strong seasonal tendencies due to production cycles, weather patterns, and economic factors
Stock Indices: Many stock markets demonstrate regular seasonal patterns (like the "Sell in May" phenomenon)
Individual Stocks: Companies with seasonal business cycles often show predictable price patterns
Practical Applications
Identify potential turning points based on historical seasonal patterns
Plan entries and exits around seasonal tendencies
Add seasonal context to your existing technical analysis
Understand why certain months or periods might show consistent behavior
Pro Tip: For best results, use this tool on instruments with at least 5+ years of historical data. Longer timeframes often reveal more reliable seasonal patterns.
Important Notes
This indicator works best on Daily, Weekly, and Monthly timeframes - not intraday charts
Seasonal patterns are tendencies, not guarantees
Always combine seasonal analysis with other technical tools
Past patterns may not repeat exactly in the future
// Sample of the seasonal calculation approach
float yearHigh = array.max(currentYearHighs)
float yearLow = array.min(currentYearLows)
// Calculate seasonality for each period
for i = 0 to array.size(currentYearCloses) - 1
float periodClose = array.get(currentYearCloses, i)
if not na(periodClose) and yearHigh != yearLow
float seasonality = (periodClose - yearLow) / (yearHigh - yearLow) * 100
I developed this indicator to help traders incorporate seasonal analysis into their trading approach without the complexity of traditional seasonal tools. Whether you're analyzing agricultural commodities, energy futures, or stock indices, understanding the seasonal context can provide valuable insights for your trading decisions.
Remember: Markets don't always follow seasonal patterns, but when they do, being aware of these tendencies can give you a meaningful edge in your analysis.
Indicatori e strategie
ADX Forecast [Titans_Invest]ADX Forecast
This isn’t just another ADX indicator — it’s the most powerful and complete ADX tool ever created, and without question the best ADX indicator on TradingView, possibly even the best in the world.
ADX Forecast represents a revolutionary leap in trend strength analysis, blending the timeless principles of the classic ADX with cutting-edge predictive modeling. For the first time on TradingView, you can anticipate future ADX movements using scientifically validated linear regression — a true game-changer for traders looking to stay ahead of trend shifts.
1. Real-Time ADX Forecasting
By applying least squares linear regression, ADX Forecast projects the future trajectory of the ADX with exceptional accuracy. This forecasting power enables traders to anticipate changes in trend strength before they fully unfold — a vital edge in fast-moving markets.
2. Unmatched Customization & Precision
With 26 long entry conditions and 26 short entry conditions, this indicator accounts for every possible ADX scenario. Every parameter is fully customizable, making it adaptable to any trading strategy — from scalping to swing trading to long-term investing.
3. Transparency & Advanced Visualization
Visualize internal ADX dynamics in real time with interactive tags, smart flags, and fully adjustable threshold levels. Every signal is transparent, logic-based, and engineered to fit seamlessly into professional-grade trading systems.
4. Scientific Foundation, Elite Execution
Grounded in statistical precision and machine learning principles, ADX Forecast upgrades the classic ADX from a reactive lagging tool into a forward-looking trend prediction engine. This isn’t just an indicator — it’s a scientific evolution in trend analysis.
⯁ SCIENTIFIC BASIS LINEAR REGRESSION
Linear Regression is a fundamental method of statistics and machine learning, used to model the relationship between a dependent variable y and one or more independent variables 𝑥.
The general formula for a simple linear regression is given by:
y = β₀ + β₁x + ε
β₁ = Σ((xᵢ - x̄)(yᵢ - ȳ)) / Σ((xᵢ - x̄)²)
β₀ = ȳ - β₁x̄
Where:
y = is the predicted variable (e.g. future value of RSI)
x = is the explanatory variable (e.g. time or bar index)
β0 = is the intercept (value of 𝑦 when 𝑥 = 0)
𝛽1 = is the slope of the line (rate of change)
ε = is the random error term
The goal is to estimate the coefficients 𝛽0 and 𝛽1 so as to minimize the sum of the squared errors — the so-called Random Error Method Least Squares.
⯁ LEAST SQUARES ESTIMATION
To minimize the error between predicted and observed values, we use the following formulas:
β₁ = /
β₀ = ȳ - β₁x̄
Where:
∑ = sum
x̄ = mean of x
ȳ = mean of y
x_i, y_i = individual values of the variables.
Where:
x_i and y_i are the means of the independent and dependent variables, respectively.
i ranges from 1 to n, the number of observations.
These equations guarantee the best linear unbiased estimator, according to the Gauss-Markov theorem, assuming homoscedasticity and linearity.
⯁ LINEAR REGRESSION IN MACHINE LEARNING
Linear regression is one of the cornerstones of supervised learning. Its simplicity and ability to generate accurate quantitative predictions make it essential in AI systems, predictive algorithms, time series analysis, and automated trading strategies.
By applying this model to the ADX, you are literally putting artificial intelligence at the heart of a classic indicator, bringing a new dimension to technical analysis.
⯁ VISUAL INTERPRETATION
Imagine an ADX time series like this:
Time →
ADX →
The regression line will smooth these values and extend them n periods into the future, creating a predicted trajectory based on the historical moment. This line becomes the predicted ADX, which can be crossed with the actual ADX to generate more intelligent signals.
⯁ SUMMARY OF SCIENTIFIC CONCEPTS USED
Linear Regression Models the relationship between variables using a straight line.
Least Squares Minimizes the sum of squared errors between prediction and reality.
Time Series Forecasting Estimates future values based on historical data.
Supervised Learning Trains models to predict outputs from known inputs.
Statistical Smoothing Reduces noise and reveals underlying trends.
⯁ WHY THIS INDICATOR IS REVOLUTIONARY
Scientifically-based: Based on statistical theory and mathematical inference.
Unprecedented: First public ADX with least squares predictive modeling.
Intelligent: Built with machine learning logic.
Practical: Generates forward-thinking signals.
Customizable: Flexible for any trading strategy.
⯁ CONCLUSION
By combining ADX with linear regression, this indicator allows a trader to predict market momentum, not just follow it.
ADX Forecast is not just an indicator — it is a scientific breakthrough in technical analysis technology.
⯁ Example of simple linear regression, which has one independent variable:
⯁ In linear regression, observations ( red ) are considered to be the result of random deviations ( green ) from an underlying relationship ( blue ) between a dependent variable ( y ) and an independent variable ( x ).
⯁ Visualizing heteroscedasticity in a scatterplot against 100 random fitted values using Matlab:
⯁ The data sets in the Anscombe's quartet are designed to have approximately the same linear regression line (as well as nearly identical means, standard deviations, and correlations) but are graphically very different. This illustrates the pitfalls of relying solely on a fitted model to understand the relationship between variables.
⯁ The result of fitting a set of data points with a quadratic function:
_______________________________________________________________________
🥇 This is the world’s first ADX indicator with: Linear Regression for Forecasting 🥇_______________________________________________________________________
_________________________________________________
🔮 Linear Regression: PineScript Technical Parameters 🔮
_________________________________________________
Forecast Types:
• Flat: Assumes prices will remain the same.
• Linreg: Makes a 'Linear Regression' forecast for n periods.
Technical Information:
ta.linreg (built-in function)
Linear regression curve. A line that best fits the specified prices over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length - 1 - offset), where intercept and slope are the values calculated using the least squares method on the source series.
Syntax:
• Function: ta.linreg()
Parameters:
• source: Source price series.
• length: Number of bars (period).
• offset: Offset.
• return: Linear regression curve.
This function has been cleverly applied to the RSI, making it capable of projecting future values based on past statistical trends.
______________________________________________________
______________________________________________________
⯁ WHAT IS THE ADX❓
The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder. It measures the strength of a trend in a market, regardless of whether the trend is up or down.
The ADX is an integral part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and the Minus Directional Indicator (-DI). By combining these components, the ADX provides a comprehensive view of market trend strength.
⯁ HOW TO USE THE ADX❓
The ADX is calculated based on the moving average of the price range expansion over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and has three main zones:
• Strong Trend: When the ADX is above 25, indicating a strong trend.
• Weak Trend: When the ADX is below 20, indicating a weak or non-existent trend.
• Neutral Zone: Between 20 and 25, where the trend strength is unclear.
______________________________________________________
______________________________________________________
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔹 +DI > -DI
🔹 +DI < -DI
🔹 +DI > ADX
🔹 +DI < ADX
🔹 -DI > ADX
🔹 -DI < ADX
🔹 ADX > Threshold
🔹 ADX < Threshold
🔹 +DI > Threshold
🔹 +DI < Threshold
🔹 -DI > Threshold
🔹 -DI < Threshold
🔹 +DI (Crossover) -DI
🔹 +DI (Crossunder) -DI
🔹 +DI (Crossover) ADX
🔹 +DI (Crossunder) ADX
🔹 +DI (Crossover) Threshold
🔹 +DI (Crossunder) Threshold
🔹 -DI (Crossover) ADX
🔹 -DI (Crossunder) ADX
🔹 -DI (Crossover) Threshold
🔹 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔸 +DI > -DI
🔸 +DI < -DI
🔸 +DI > ADX
🔸 +DI < ADX
🔸 -DI > ADX
🔸 -DI < ADX
🔸 ADX > Threshold
🔸 ADX < Threshold
🔸 +DI > Threshold
🔸 +DI < Threshold
🔸 -DI > Threshold
🔸 -DI < Threshold
🔸 +DI (Crossover) -DI
🔸 +DI (Crossunder) -DI
🔸 +DI (Crossover) ADX
🔸 +DI (Crossunder) ADX
🔸 +DI (Crossover) Threshold
🔸 +DI (Crossunder) Threshold
🔸 -DI (Crossover) ADX
🔸 -DI (Crossunder) ADX
🔸 -DI (Crossover) Threshold
🔸 -DI (Crossunder) Threshold
🔮 +DI (Crossover) -DI Forecast
🔮 +DI (Crossunder) -DI Forecast
🔮 ADX (Crossover) +DI Forecast
🔮 ADX (Crossunder) +DI Forecast
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Linear Regression: (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Linear Regression (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : ADX Forecast
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
Liquidity Sweep Detector – PDH/PDL LevelsPrevious Day High/Low Liquidity Sweep Detector (Intraday Accurate)
This indicator tracks the previous day's high and low using intraday data, rather than the daily candle, ensuring precise sweep detection across lower timeframes (15m to 4H).
It monitors for liquidity sweeps—moments when price briefly moves above the previous high or below the previous low—and visually marks these events on the chart.
Key Features
Intraday-accurate PDH/PDL tracking
Real-time sweep detection
On-chart labels marking sweep events
Toggleable table showing sweep status
Alert conditions for PDH/PDL sweep triggers
Best For
Traders who use Smart Money Concepts (SMC), liquidity-based strategies, or look for stop hunts and reversal zones tied to key prior-day levels.
Works well across FX, crypto, and indices on 15m, 1H, and 4H charts.
StarterPack MAsThis indicator includes 5 moving averages widely used in modern price action analysis:
EMA 9 (green): captures recent candle momentum
SMA 20 (gold): classic reference for pullbacks
SMA 50 (red): dynamic short- to mid-term support and resistance
SMA 200 (blue): long-term trend foundation
EMA 400 (pink): used by traders tracking institutional moves
Perfect for identifying trend direction, balance zones, and key confluence areas.
Use it with strategy and discipline. Moving averages show the path — execution is up to you.
Best SMA FinderThis script, Best SMA Finder, is a tool designed to identify the most robust simple moving average (SMA) length for a given chart, based on historical backtest performance. It evaluates hundreds of SMA values (from 10 to 1000) and selects the one that provides the best balance between profitability, consistency, and trade frequency.
What it does:
The script performs individual backtests for each SMA length using either "Long Only" or "Buy & Sell" logic, as selected by the user. For each tested SMA, it computes:
- Total number of trades
- Profit Factor (total profits / total losses)
- Win Rate
- A composite Robustness Score, which integrates Profit Factor, number of trades (log-scaled), and win rate.
Only SMA configurations that meet the user-defined minimum trade count are considered valid. Among all valid candidates, the script selects the SMA length with the highest robustness score and plots it on the chart.
How to use it:
- Choose the strategy type: "Long Only" or "Buy & Sell"
- Set the minimum trade count to filter out statistically irrelevant results
- Enable or disable the summary stats table (default: enabled)
The selected optimal SMA is plotted on the chart in blue. The optional table in the top-right corner shows the corresponding SMA length, trade count, Profit Factor, Win Rate, and Robustness Score for transparency.
Key Features:
- Exhaustive SMA optimization across 991 values
- Customizable trade direction and minimum trade filters
- In-chart visualization of results via table and plotted optimal SMA
- Uses a custom robustness formula to rank SMA lengths
Use cases:
Ideal for traders who want to backtest and auto-select a historically effective SMA without manual trial-and-error. Useful for swing and trend-following strategies across different timeframes.
📌 Limitations:
- Not a full trading strategy with position sizing or stop-loss logic
- Only one entry per direction at a time is allowed
- Designed for exploration and optimization, not as a ready-to-trade system
This script is open-source and built entirely from original code and logic. It does not replicate any closed-source script or reuse significant external open-source components.
WaveNode [ParadoxAlgo]WaveNode is an open-source, multi-framework breakout tool that blends Donchian highs/lows, Bollinger-band volatility, volume spikes and an ATR buffer into one clean visual package. It ships with five one-click “Trading Style” presets (Scalping → Long-Term Investing) so users can drop it on any chart, pick a style, and immediately see context-aware breakout triangles and adaptive channels—no manual tuning required.
What the Indicator does
WaveNode tracks the previous bar’s highest high and lowest low to build a Donchian envelope, wraps price in a two-sigma Bollinger shell to gauge contraction/expansion, then confirms breakouts only when:
• Price closes beyond the prior Donchian extreme plus an ATR % buffer.
• Volume exceeds its moving-average × style-specific multiplier.
• Volatility is expanding (current BB width > its own average).
When all filters line up, a blue (bull) or red (bear) triangle prints on the bar. The channel body is softly filled with a neutral gradient so signals stay visible against any theme.
Inputs & presets
Trading Style
Scalping · Day Trading · Swing Trading · Short-Term Investing · Long-Term Investing
Dropdown auto-loads lengths, multipliers and buffers for the chosen horizon.
All other parameters are hard-coded inside each preset to keep the UI minimal; feel free to fork the code and expose more sliders if you prefer.
How to read it
1. Wait for expansion – when the shaded channel widens after a squeeze, conditions ripen for a move.
2. Watch the triangles – a triangle marks the bar where price, volume and volatility align.
3. Use your own risk plan – WaveNode is a signal generator, not a complete trading system.
Risk & compliance
WaveNode is released for educational purposes only. It does not provide financial advice or guarantees of future results. Always back-test and forward-test on demo before risking real capital. By using WaveNode you accept full responsibility for all trading decisions—past performance is not indicative of future returns.
BK AK-9I am incredibly proud to introduce my fourth indicator to the TradingView community:
BK AK-9 — a next-level momentum-volatility hybrid, built for traders who demand precision.
🔥 Why “AK-9”? The Meaning Behind the Name
This indicator is deeply personal to me.
The “AK” in the name represents the initials of my mentor — the man whose guidance shaped my journey in trading, discipline, and strategy.
His wisdom is woven into every line of code, every design choice, and every purpose behind this tool.
The “9” holds its own powerful meaning:
9 is the number of completion and breakthrough — the moment where preparation meets opportunity.
The AK-9 weapon itself is a suppressed variant of the legendary AK platform, built for stealth, precision, and maximum impact in close-quarters combat.
It’s quiet, adaptive, and deadly effective — just like this indicator cuts through market noise, adapts to volatility, and pinpoints moments of maximum opportunity.
✨ About the BK AK-9 Indicator
The BK AK-9 is not just an oscillator.
It’s a multi-layered trading weapon combining:
✅ RSI → Stochastic → Bollinger Bands on Stoch RSI → momentum measured inside volatility.
✅ Dynamic or Static Background Flash → when extremes hit, you get instant visual alerts.
✅ Color-coded %K zones →
🔴 Red: oversold
🟢 Green: overbought
🔵 Blue: neutral
✅ Volatility-adaptive bands → instead of relying on static levels, the bands expand and contract dynamically using standard deviation.
🛡️ Why This Indicator Matters
Pinpoints exhaustion zones statistically, not emotionally.
Confirms breakouts with volatility evidence, not just price action.
Filters noise and helps you wait for high-probability setups.
Gives you visual edge with color-coded momentum and background flash.
Perfect for:
🔹 Breakout traders confirming momentum surges.
🔹 Mean-reversion traders catching exhaustion pivots.
🔹 Swing traders using multi-layered momentum analysis.
🔹 Momentum traders hunting volatility-backed entries.
💥 How to Use BK AK-9
Breakout Confirmation → when Stoch RSI breaks above upper Bollinger Band (green zone, flash ON), ride the trend.
Mean Reversion Trades → when Stoch RSI drops below lower Bollinger Band (red zone, flash ON), look for reversals.
Noise Filtering → stay patient inside the blue zone, wait for extremes.
Advanced Sync → align it with Gann levels, harmonic patterns, Fibonacci clusters, or Elliott waves for maximum edge.
🙏 Final Thoughts
This isn’t just another tool — it’s a weapon in your trading arsenal.
🔹 Dedicated to my mentor, A.K., whose wisdom and legacy guide my work.
🔹 Designed around the number 9, the number of completion, transition, and breakthrough.
🔹 Built to help traders act with precision, discipline, and clarity.
But above all, I give praise and glory to Gd — the true source of wisdom, insight, and success.
Markets will test your patience and your skill, but faith tests your soul. Through every challenge, every victory, and every setback, Gd remains the constant.
This tool is simply another way to use the gifts He has given — to help others rise.
⚡ Stay Ready, Stay Sharp
The markets are a battlefield. But with the right tools, the right strategy, and the right mindset — you will always stay 10 steps ahead.
🔥 Stay locked. Stay loaded. Trade with precision. 🔥
Gd bless, and may He guide us all to wisdom and success. 🙏
Distance from 52W High & LowThis indicator calculates and plots two percentage metrics in %
Distance from 52 week low
Distance from 52 week high
Features:
Green line: % above 52 week low
Red line: % above 52 week high
Alerts when price is 5% of either extreme
Perfect for traders/ investors who track opportunities near long term lows or highs
AWR_Oscillateur de DéviationThis indicator calculates linear regression index according to several configurable periods.
There are a total of eight configurable periods.
Each time, the indicator will calculate for each specified range the best linear regression line & then it will plot it as an oscillator.
For example, if the price is at 2 standard deviation of his linear regression line, it will plot it at 2 on the graph. etc...
It will currently be configured by default between 0 and 5000 UT, which provides both a short-term and a very long-term view.
You can set a specific color for each linear regression index.
As a reminder, the linear regression line is based on the least squares method, meaning: the more the price deviates from its regression line, the more statistically likely it is to return to its regression line. From two standard deviations or minus two standard deviations, it is generally statistically proven that we will trend towards the regression line over time.
Here are some key applications:
1. Trend Identification – you can use it to identify the general direction of each period by analysing the slope of linear regression index
2. Support and Resistance Levels – Regression channels help traders identify support and resistance zones, providing insight into optimal entry and exit points in a trend.
3. You can also use the short period linear regression index vs the long period linear regression index to identify important pivot points.
I've added red & blue color to help to identify excess points. Be careful, an excess can be more excessive than expected... ;-)
Automatic HTF MA CloudsAutomatically display higher time frame HTF clouds based on presets.
Fifteen selections in total. Default settings based on Barky's DTF concepts.
Five presets left blank.
A simple table display CTF and HTF. Can be turned off in settings.
CTF1 1m → HTF1 5m
CTF2 2m → HTF2 10m
CTF3 10m → HTF3 1h
CTF4 1h → HTF4 4h
CTF5 4h → HTF5 1d
CTF6 1d → HTF6 1w
CTF7 1w → HTF7 1M
CTF8 1M → HTF8 3M
CTF9 3M → HTF9 6M
CTF10 6M → HTF10 12M
CTF11 blank → HTF11 blank
CTF12 blank → HTF12 blank
CTF13 blank → HTF13 blank
CTF14 blank → HTF14 blank
CTF15 blank → HTF15 blank
Swing Oracle + Cycle M5 // (\_/)
// ( •.•)
// (")_(")
Follow the White Rabbitz
Swing Oracle + Cycle M5 is a custom TradingView indicator combining a normalized oscillator (NDOS) with a 7-day cycle counter, designed for 5-minute charts. It helps traders identify overbought/oversold swing zones while tracking the market’s position within a weekly cycle that resets every Tuesday at midnight.
1. Inputs
Horizontal Levels
High Level (line_up): above this, NDOS signals overbought (“buy zone”)
Low Level (line_dn): below this, NDOS signals oversold (“sell zone”)
Mid-High / Mid-Low (line_mid_high, line_mid_low): for nuanced thresholding
Extra Levels (line_extra1–line_extra4): four additional hidden levels for advanced tuning
Trendline Source
Choose between EMA 8 or SMA 231 via trendline_source
Display Options
Draw Background Color? (button1): toggles colored background based on NDOS zone
Draw Candlesticks? (button2): toggles bar-coloring according to NDOS
2. Trendline & NDOS Calculation
Trendline
If “EMA8” selected: calculates ema(close, 8)
If “SMA231”: calculates sma(close, 231)
NDOS (Normalized Difference Oscillator)
Computes distance of current trendline value from its local high and low over the past Length bars (length)
Rendered on a 0–100 scale with a color gradient between two user-defined colors (gradientbull/gradientbear).
3. Weekly Cycle Counter (M5)
Cycle Start Detection
Marks every Tuesday at 00:00 as cycle zero (isTuesdayZero), storing its timestamp.
Cycle Number
Computes the number of full 7-day intervals since the last stored Tuesday, then plots it as a semi-transparent histogram aligned with the NDOS panel.
4. Visualization & Styles
Oscillator Plot
Thick line for NDOS, colored blue above line_up, red below line_dn, neutral otherwise—overlaid with the same gradient as the histogram.
Horizontal Levels
Distinct plots for each user level (High, Low, Mid-High, Mid-Low).
Filled Zones
Buy Zone: area between NDOS and High Level
No-Trade Zone: between High and Low Levels
Sell Zone: area between NDOS and Low Level
Optional Coloring
Background and candlesticks can be tinted based on whether NDOS is in buy or sell territory.
5. Typical Use Case
*Scalping & Swing: Quickly spot overbought/oversold conditions on 5-minute bars.
*Cycle Awareness: Ensure entries/exits align with your preferred phase of the weekly cycle (e.g., early vs. late in a Tuesday→Tuesday loop).
*Customization: Adjust levels, gradient colors, and trendline source to match your strategy’s sensitivity and preferred look.
MSS, BOS, and FVG Trend ConfirmationSwing High and Swing Low Detection:
We're identifying the swing high and swing low using a length parameter that helps us find significant peaks and troughs. This is essential for both the MSS and BOS checks.
Market Structure Shift (MSS):
We check if the recent swing high is greater than the previous swing high (for an uptrend) and if the recent swing low is higher than the previous swing low. The same logic applies for a downtrend.
Break of Structure (BOS):
The script checks if the current price breaks above the last swing high for an uptrend or below the last swing low for a downtrend.
Fair Value Gap (FVG):
A FVG is detected when there's a significant imbalance. The script looks for cases where the price has moved sharply, and there might be a gap to fill.
Candle Color:
If MSS, BOS, and FVG all align to confirm an uptrend, the candle will turn blue.
If all three indicators align to confirm a downtrend, the candle will turn grey.
Signals:
For visual confirmation, we plot shapes above or below bars indicating when the uptrend or downtrend is confirmed.
Durbtrade BBW Bollinger Bands Width (+EMA) [Main Chart]If green arrow comes then it means volatility is coming
Distance to EMASimple indicator to show the distance to the H1 50 EMA in a number of common time frames below and above. Useful as a quick glance to spot divergences in price before a reversion to the mean / polarity reversal.
Note that this is multi-timeframe but the distances are calculated differently depending upon context.
There are some presets where the distance is calculated to the H1 50 EMA when in timeframes below this:
M1, M4, M15 & H1 all calculate based upon the price distance to the H1 50 EMA, since this is a useful directional indicator for lower timeframes to see where we are wrt H1 without having to switch.
However above the H1, there's H4, H8 and H12 presets - but these use the 1D 50 EMA since I generally use these in HTF calculations.
Any other timeframe will use whatever the indicator is set up as in the options menu.
Liquidity Sweep AlertThis alert script detects liquidity sweeps, which occur when price briefly breaks above a recent high or below a recent low, then quickly reverses. These events often indicate institutional stop hunts and potential market reversals. The alert is triggered when a candle exceeds a defined high/low range but fails to close beyond it—signaling a failed breakout. It's ideal for identifying high-probability reversal zones in both trending and ranging markets.
Minh Phan VWAP Pullback Long SignalThe “Minh Phan VWAP Pullback Long Signal” indicator is designed to detect high-probability long entries based on a combination of VWAP pullbacks, EMA trend confirmation, and RSI strength. It targets momentum traders looking to join the trend after a minor retracement.
The logic begins with price trading above the VWAP, indicating bullish control. A pullback is confirmed when price returns close to the VWAP within a 1% range, suggesting a potential bounce zone. Next, EMA 9 must be greater than EMA 21, confirming an upward trend structure. Finally, RSI must be above 65, showing strong bullish momentum and filtering out weak setups.
When all conditions align, the script plots a green triangle under the candle, signaling a potential long trade. The indicator also includes visual plots of VWAP, EMA 9, and EMA 21, allowing traders to monitor structure and confluence. An optional RSI plot is displayed in the sub-pane for deeper analysis.
This tool is particularly effective for intraday or swing traders in crypto, forex, and stocks. It also includes an alertcondition to notify traders in real time when a long setup appears, making it useful for both manual trading and automation.
Volume Peak BarsThis indicator helps identify the highest volume areas in a given time period. I've found that typically price is attracted to high volume areas. This indicator is based on the same principles as the Opening Range Breakout theory however instead of setting a "time" the indicator sets this range based on high volume. These levels also tend to be very strong support and resistance areas as lots of liquidity lies in these high volume pockets.
This indicator will automatically adjust the highest volume area for that given trading day.
You can also adjust the Time frame depending on your trading style - Swing vs. Scalp. ie. If you want to see a 1, 5 minute volume high for scalpers, or if you are more interested in a 15,30, 60 etc. minute range for swing trading.
The indicator also allows you to see 1 previous zone. All of this can be selected or unselected in the settings.
Thanks! Good Luck.
AWR Optimized LR (Multiple)Attached you will find the indicator that calculates linear regression lines according to several configurable periods.
There are a total of eight configurable periods.
Each time, the indicator will calculate for each specified range the best linear regression line & channel (2 standard regressions) for that period and then plot it on the graph.
It will currently be configured by default between 0 and 5000 UT, which provides both a short-term and a very long-term view.
You can set a specific color for each linear regression channels.
As a reminder, the linear regression line is based on the least squares method, meaning: the more the price deviates from its regression line, the more statistically likely it is to return to its regression line. From two standard deviations or minus two standard deviations), it is generally statistically proven that we will trend towards the regression line over time.
Application of Regression Lines in Trading
Regression lines are widely used in trading and financial analysis to understand market trends and make informed predictions. Here are some key applications:
1. Trend Identification – Traders use regression lines to visualize the general direction of a stock or asset price, helping to confirm an upward or downward trend.
2. Price Predictions – Linear regression models assist in estimating future price movements based on historical data, allowing traders to anticipate changes.
3. Risk Assessment – By analyzing the slope and variation of a regression line, traders can gauge market volatility and potential risks.
4. Support and Resistance Levels – Regression channels help traders identify support and resistance zones, providing insight into optimal entry and exit points in a trend.
5. You can also use the short period linear regression channels vs the long period linear regression channels to identify important pivot points.
TMC - THE MAGICAL CORD by MrCryptoBTCTMC - THE MAGICAL CORD By MrCryptoBTC (Not For Sale - FREE)
The "TMC - THE MAGICAL CORD" indicator by MrCryptoBTC is a simple trend-following tool designed for TradingView, utilizing Volume-Weighted Average Price (VWAP) crossovers to identify market trends and generate trading signals. It plots two VWAP lines—a fast VWAP and a slow VWAP—and uses their relationship to determine trend direction. The indicator provides "BUY" signals for entering bullish trends and "SELL" signals for entering bearish trends. The VWAP lines are dynamically coloured to reflect the trend, and alerts are included to notify traders of trend changes.
How It Works
1. Trend Identification:
* The indicator calculates two VWAPs: a fast VWAP (fast_length) and a slow VWAP (slow_length), both weighted by volume using the rma (Running Moving Average) function applied to the product of hlc3(average of high, low, and close) and volume, divided by the rma of volume.
* A Buy trend is identified when the fast VWAP crosses above the slow VWAP, triggering a "BUY" signal with a cyan label above the candle.
* A Sell trend is identified when the fast VWAP crosses below the slow VWAP, triggering a "SELL" signal with a red label below the candle.
* The VWAP lines are plotted with dynamic coloring: green during an uptrend (fast VWAP > slow VWAP), red during a downtrend (fast VWAP < slow VWAP), and silver when neutral.
2. Visualization:
* The fast and slow VWAP lines are plotted on the chart, with a filled area between them to visually highlight the trend direction.
* "BUY" and "SELL" labels are placed at the high or low of the candle where the crossover occurs, providing clear entry signals.
3. Alerts:
* Alerts are set up for "BUY" and "SELL" signals, notifying traders of trend changes with messages like "VWAP GREEN - Buy Signal" and "VWAP RED - Sell Signal."
Recommended Setup
* Timeframes:
* Scalping/Day Trading: Use on lower timeframes like 5-minute or 15-minute charts for quicker signals.
* Swing Trading: Use on higher timeframes like 1-hour or 4-hour charts for more reliable trends.
[NIC] Volatility Anomaly Indicator (Inspired by Jeff Augen)Volatility Anomaly Indicator (Inspired by Jeff Augen)
The Volatility Anomaly Indicator, inspired by Jeff Augen’s The Volatility Edge in Options Trading, helps traders spot price distortions by analyzing volatility imbalances. It compares short-term (10-day) and long-term (30-day) historical volatility (HV), plotting the ratio in a subgraph with clusters of dots to highlight anomalies—red for volatility spikes (potential sells) and green for calm periods (potential buys).
Originality: This indicator uniquely adapts Augen’s volatility concepts into a visual tool, focusing on relative volatility distortions rather than absolute levels, making it ideal for volatile assets like $TQQQ.
Features:
Calculates the ratio of short-term to long-term volatility.
Detects spikes (ratio > 1.5) and calm periods (ratio < 0.67) with customizable thresholds.
Plots volatility ratio as a blue line, with red/green dots for anomalies.
Includes optional buy/sell signals on the main chart (if overlay is enabled).
How It Works
The indicator computes historical volatility using log returns, then calculates the short-term to long-term volatility ratio. Spikes and calm periods are marked with dots in the subgraph, and threshold lines (1.5 and 0.67) provide context. Buy signals (green triangles) trigger during calm periods, and sell signals (red triangles) during spikes.
How to Use
Apply to any chart (e.g., NASDAQ:TQQQ daily).
Adjust inputs: Short Volatility Period (10), Long Volatility Period (30), Volatility Spike Threshold (1.5).
Watch for red dot clusters (spikes, potential sells) and green dot clusters (calm, potential buys).
Combine with price action or RSI for confirmation.
Why Use This Indicator?
Focuses on volatility-driven price inefficiencies.
Clear visualization with dot clusters.
Customizable for different assets and timeframes.
Limitations
Not a standalone system; requires confirmation.
May give false signals in choppy markets.
Volatility Gaussian Bands [BigBeluga]The Volatility Gaussian Bands are a technical analysis tool used to assess market volatility and potential price movements. They are constructed by integrating Gaussian (normal) distribution principles with volatility measures to create dynamic bands around price data.
Key Features of Volatility Gaussian Bands:
Basis in Gaussian Distribution:
These bands assume that price returns follow a normal distribution, allowing for probabilistic modeling of expected price ranges.
TMC - THE MAGICAL CORD by MrCryptoBTCTMC - THE MAGICAL CORD By MrCryptoBTC (Not For Sale - FREE)
The "TMC - THE MAGICAL CORD" indicator by MrCryptoBTC is a simple trend-following tool designed for TradingView, utilizing Volume-Weighted Average Price (VWAP) crossovers to identify market trends and generate trading signals. It plots two VWAP lines—a fast VWAP and a slow VWAP—and uses their relationship to determine trend direction. The indicator provides "BUY" signals for entering bullish trends and "SELL" signals for entering bearish trends. The VWAP lines are dynamically coloured to reflect the trend, and alerts are included to notify traders of trend changes.
How It Works
1. Trend Identification:
* The indicator calculates two VWAPs: a fast VWAP (fast_length) and a slow VWAP (slow_length), both weighted by volume using the rma (Running Moving Average) function applied to the product of hlc3(average of high, low, and close) and volume, divided by the rma of volume.
* A Buy trend is identified when the fast VWAP crosses above the slow VWAP, triggering a "BUY" signal with a cyan label above the candle.
* A Sell trend is identified when the fast VWAP crosses below the slow VWAP, triggering a "SELL" signal with a red label below the candle.
* The VWAP lines are plotted with dynamic coloring: green during an uptrend (fast VWAP > slow VWAP), red during a downtrend (fast VWAP < slow VWAP), and silver when neutral.
2. Visualization:
* The fast and slow VWAP lines are plotted on the chart, with a filled area between them to visually highlight the trend direction.
* "BUY" and "SELL" labels are placed at the high or low of the candle where the crossover occurs, providing clear entry signals.
3. Alerts:
* Alerts are set up for "BUY" and "SELL" signals, notifying traders of trend changes with messages like "VWAP GREEN - Buy Signal" and "VWAP RED - Sell Signal."
Recommended Setup
* Timeframes:
* Scalping/Day Trading: Use on lower timeframes like 5-minute or 15-minute charts for quicker signals.
* Swing Trading: Use on higher timeframes like 1-hour or 4-hour charts for more reliable trends.