Moving Average ToolkitMoving Average Toolkit - Advanced MA Analysis with Flexible Source Input
A powerful and versatile moving average indicator designed for maximum flexibility. Its unique source input feature allows you to analyze moving averages of ANY indicator or price data, making it perfect for creating custom combinations with RSI, Volume, OBV, or any other technical indicator.
Key Features:
• Universal Source Input:
- Analyze moving averages of any data: Price, Volume, RSI, MACD, Custom Indicators
- Perfect for creating advanced technical setups
- Identify trends in any technical data
• 13 Moving Average Types:
- Traditional: SMA, EMA, WMA, RMA, VWMA
- Advanced: HMA, T3, DEMA, TEMA, KAMA, ZLEMA, McGinley, EPMA
• Dual MA System:
- Compare two different moving averages
- Independent settings for each MA
- Perfect for multiple timeframe analysis
• Visual Offset Analysis:
- Dynamic color changes based on momentum
- Fill between current and offset values
- Clear visualization of trend strength
Usage Examples:
• Price Trend: Traditional MA analysis using price data
• Volume Trend: Apply MA to volume for volume trend analysis
• RSI Trend: Smooth RSI movements for clearer signals
• Custom: Apply to any indicator output for unique insights
Settings:
• Fully customizable colors for bull/bear conditions
• Adjustable offset periods
• Independent length settings
• Optional second MA for comparison
Perfect for:
• Advanced technical analysts
• Multi-indicator strategy developers
• Custom indicator creators
• Traders seeking flexible analysis tools
This versatile toolkit goes beyond traditional moving averages by allowing you to apply sophisticated MA analysis to any technical data, creating endless possibilities for custom technical analysis strategies.
Multitimeframe
Cointegration Buy and Sell Signals [EdgeTerminal]The Cointegration Buy And Sell Signals is a sophisticated technical analysis tool to spot high-probability market turning points — before they fully develop on price charts.
Most reversal indicators rely on raw price action, visual patterns, or basic and common indicator logic — which often suffer in noisy or trending markets. In most cases, they lag behind the actual change in trend and provide useless and late signals.
This indicator is rooted in advanced concepts from statistical arbitrage, mean reversion theory, and quantitative finance, and it packages these ideas in a user-friendly visual format that works on any timeframe and asset class.
It does this by analyzing how the short-term and long-term EMAs behave relative to each other — and uses statistical filters like Z-score, correlation, volatility normalization, and stationarity tests to issue highly selective Buy and Sell signals.
This tool provides statistical confirmation of trend exhaustion, allowing you to trade mean-reverting setups. It fades overextended moves and uses signal stacking to reduce false entries. The entire indicator is based on a very interesting mathematically grounded model which I will get into down below.
Here’s how the indicator works at a high level:
EMAs as Anchors: It starts with two Exponential Moving Averages (EMAs) — one short-term and one long-term — to track market direction.
Statistical Spread (Regression Residuals): It performs a rolling linear regression between the short and long EMA. Instead of using the raw difference (short - long), it calculates the regression residual, which better models their natural relationship.
Normalize the Spread: The spread is divided by historical price volatility (ATR) to make it scale-invariant. This ensures the indicator works on low-priced stocks, high-priced indices, and crypto alike.
Z-Score: It computes a Z-score of the normalized spread to measure how “extreme” the current deviation is from its historical average.
Dynamic Thresholds: Unlike most tools that use fixed thresholds (like Z = ±2), this one calculates dynamic thresholds using historical percentiles (e.g., top 10% and bottom 10%) so that it adapts to the asset's current behavior to reduce false signals based on market’s extreme volatility at a certain time.
Z-Score Momentum: It tracks the direction of the Z-score — if Z is extreme but still moving away from zero, it's too early. It waits for reversion to start (Z momentum flips).
Correlation Check: Uses a rolling Pearson correlation to confirm the two EMAs are still statistically related. If they diverge (low correlation), no signal is shown.
Stationarity Filter (ADF-like): Uses the volatility of the regression residual to determine if the spread is stationary (mean-reverting) — a key concept in cointegration and statistical arbitrage. It’s not possible to build an exact ADF filter in Pine Script so we used the next best thing.
Signal Control: Prevents noisy charts and overtrading by ensuring no back-to-back buy or sell signals. Each signal must alternate and respect a cooldown period so you won’t be overwhelmed and won’t get a messy chart.
Important Notes to Remember:
The whole idea behind this indicator is to try to use some stat arb models to detect shifting patterns faster than they appear on common indicators, so in some cases, some assumptions are made based on historic values.
This means that in some cases, the indicator can “jump” into the conclusion too quickly. Although we try to eliminate this by using stationary filters, correlation checks, and Z-score momentum detection, there is still a chance some signals that are generated can be too early, in the stock market, that's the same as being incorrect. So make sure to use this with other indicators to confirm the movement.
How To Use The Indicator:
You can use the indicator as a standalone reversal system, as a filter for overbought and oversold setups, in combination with other trend indicators and as a part of a signal stack with other common indicators for divergence spotting and fade trades.
The indicator produces simple buy and sell signals when all criteria is met. Based on our own testing, we recommend treating these signals as standalone and independent from each other . Meaning that if you take position after a buy signal, don’t wait for a sell signal to appear to exit the trade and vice versa.
This is why we recommend using this indicator with other advanced or even simple indicators as an early confirmation tool.
The Display Table:
The floating diagnostic table in the top-right corner of the chart is a key part of this indicator. It's a live statistical dashboard that helps you understand why a signal is (or isn’t) being triggered, and whether the market conditions are lining up for a potential reversal.
1. Z-Score
What it shows: The current Z-score value of the volatility-normalized spread between the short EMA and the regression line of the long EMA.
Why it matters: Z-score tells you how statistically extreme the current relationship is. A Z-score of:
0 = perfectly average
> +2 = very overbought
< -2 = very oversold
How to use it: Look for Z-score reaching extreme highs or lows (beyond dynamic thresholds). Watch for it to start reversing direction, especially when paired with green table rows (see below)
2. Z-Score Momentum
What it shows: The rate of change (ROC) of the Z-score:
Zmomentum=Zt − Zt − 1
Why it matters: This tells you if the Z-score is still stretching out (e.g., getting more overbought/oversold), or reverting back toward the mean.
How to use it: A positive Z-momentum after a very low Z-score = potential bullish reversal A negative Z-momentum after a very high Z-score = potential bearish reversal. Avoid signals when momentum is still pushing deeper into extremes
3. Correlation
What it shows: The rolling Pearson correlation coefficient between the short EMA and long EMA.
Why it matters: High correlation (closer to +1) means the EMAs are still statistically connected — a key requirement for cointegration or mean reversion to be valid.
How to use it: Look for correlation > 0.7 for reliable signals. If correlation drops below 0.5, ignore the Z-score — the EMAs aren’t moving together anymore
4. Stationary
What it shows: A simplified "Yes" or "No" answer to the question:
“Is the spread statistically stable (stationary) and mean-reverting right now?”
Why it matters: Mean reversion strategies only work when the spread is stationary — that is, when the distance between EMAs behaves like a rubber band, not a drifting cloud.
How to use it: A "Yes" means the indicator sees a consistent, stable spread — good for trading. "No" means the market is too volatile, disjointed, or chaotic for reliable mean reversion. Wait for this to flip to "Yes" before trusting signals
5. Last Signal
What it shows: The last signal issued by the system — either "Buy", "Sell", or "None"
Why it matters: Helps avoid confusion and repeated entries. Signals only alternate — you won’t get another Buy until a Sell happens, and vice versa.
How to use it: If the last signal was a "Buy", and you’re watching for a Sell, don’t act on more bullish signals. Great for systems where you only want one position open at a time
6. Bars Since Signal
What it shows: How many bars (candles) have passed since the last Buy or Sell signal.
Why it matters: Gives you context for how long the current condition has persisted
How to use it: If it says 1 or 2, a signal just happened — avoid jumping in late. If it’s been 10+ bars, a new opportunity might be brewing soon. You can use this to time exits if you want to fade a recent signal manually
Indicator Settings:
Short EMA: Sets the short-term EMA period. The smaller the number, the more reactive and more signals you get.
Long EMA: Sets the slow EMA period. The larger this number is, the smoother baseline, and more reliable trend bases are generated.
Z-Score Lookback: The period or bars used for mean & std deviation of spread between short and long EMAs. Larger values result in smoother signals with fewer false positives.
Volatility Window: This value normalizes the spread by historical volatility. This allows you to prevent scale distortion, showing you a cleaner and better chart.
Correlation Lookback: How many periods or how far back to test correlation between slow and long EMAs. This filters out false positives when EMAs lose alignment.
Hurst Lookback: The multiplier to approximate stationarity. Lower leads to more sensitivity to regime change, higher produces a more stricter filtering.
Z Threshold Percentile: This value sets how extreme Z-score must be to trigger a signal. For example, 90 equals only top/bottom 10% of extremes, 80 = more frequent.
Min Bars Between Signals: This hard stop prevents back-to-back signals. The idea is to avoid over-trading or whipsaws in volatile markets even when Hurst lookback and volatility window values are not enough to filter signals.
Some More Recommendations:
We recommend trying different EMA pairs (10/50, 21/100, 5/20) for different asset behaviors. You can set percentile to 85 or 80 if you want more frequent but looser signals. You can also use the Z-score reversion monitor for powerful confirmation.
Event-Based Multi MA v1.1📈 Event-Based Multi MA v1.1 — Smart Trading with Dynamic MA Updates
Overview
In a world where most moving averages blindly follow every candle, Event-Based Multi MA v1.1 introduces a smarter logic:
➡️ Update moving averages only when significant price movements occur.
Forget the noise. Focus on what's important.
This indicator recalculates your moving averages only after meaningful price shifts, allowing you to spot true trends and avoid market whipsaws.
Key Features
✅ Event-Driven Logic
Set events based on:
Points: Absolute price change
Percent: Relative price movement
ATR: Volatility-adjusted dynamic movement
✅ Seven Fully Customizable Moving Averages (MA1–MA7)
Each MA offers:
Custom timeframe
Selection of types (EMA, SMA, WMA, VWMA, HMA, LSMA, DEMA, TEMA, ALMA, RMA)
Adjustable lengths and colors
✅ Reduced Market Noise
MAs adjust only after important price actions — cutting down lag and false signals.
✅ Multi-Timeframe Analysis
You can blend moving averages from different timeframes (e.g., 15m, 1H, Daily) into a single chart — perfect for professional multi-frame strategy building.
Settings Explained
Event Trigger Type: Select Points, Percent, or ATR-based movement.
Event Threshold: The amount of price movement needed to trigger a new calculation.
ATR Length: If ATR mode is selected, this controls the sensitivity.
Each Moving Average (MA1 to MA7) has:
MA Type: Choose the smoothing method that suits your trading style.
Length: The number of bars used in the calculation.
Color: Customize visual styling.
Timeframe: Load MAs from different timeframes into your current chart.
How to Use It in Trading
🔹 Trend Confirmation
Wait for event-triggered updates. Fresh MAs after a significant move are much stronger signals than constantly refreshing MAs.
🔹 Momentum Breakouts
Combine short-term (e.g., MA1, MA2) and long-term (e.g., MA5, MA6) MAs. When short-term MAs cross above/below long-term after an event, it's a powerful breakout cue.
🔹 Dynamic Support/Resistance
Use slow-moving MAs like 100-200 length across different timeframes.
The event-based recalculation keeps them relevant to recent major price moves.
🔹 Volatility Filters
Switch to ATR-based events to adapt moving average updates during volatile periods and calm markets.
Why It Beats Traditional Moving Averages
🚀 No More Overfitting to Every Candle
You focus only on impactful price changes.
🚀 Multi-Timeframe Flexibility
Blend micro and macro views seamlessly in one chart.
🚀 Cleaner Signals, Less Noise
Event-triggered recalculations filter out useless minor price wobbles.
🚀 Customization Beyond Standard MAs
TEMA, HMA, ALMA, DEMA, VWMA — all included for ultra-fine-tuned strategies.
✨ Ready to Upgrade Your Trading?
Forget the old, slow MAs.
Use intelligence. Trade events, not noise.
→ Add Event-Based Multi MA v1.1 to your chart and experience true precision!
Paul_BDT Osc. CHOPOverview:
This indicator is an advanced multi-timeframe Choppiness Index tool, designed to help assess market conditions across various timeframes simultaneously. It assists in identifying whether the market is in a trending or ranging (choppy) phase, enhancing decision-making for both scalping and intraday strategies.
This script integrates:
• Choppiness Index computation (with EMA smoothing and Bollinger Bands).
• Multi-timeframe analysis (preset scalping/intraday setups or manual selection).
• Visual aids (color-coded plots, labels, and background highlights).
• Alert mechanisms for key conditions (choppy breakouts and trends).
⸻
Key Features & Functionalities:
1. Choppiness Index Calculation:
• The Choppiness Index (CHOP) quantifies market volatility—whether price action is consolidating (high CHOP values) or trending (low CHOP values).
• Formula:
\text{CHOP} = 100 \times \frac{\log\left(\frac{\sum \text{True Range}}{\text{High}{\text{max}} - \text{Low}{\text{min}}}\right)}{\log(\text{Period})}
• It is smoothed with an Exponential Moving Average (EMA) for stability.
• Bollinger Bands are applied to the CHOP for dynamic range visualization.
⸻
2. Multi-Timeframe Support:
• Preset Modes:
• Scalping Setups: 1min, 3min, 5min, 15min.
• Intraday Setups: 15min, 30min, 1H, 4H.
• Manual Configuration: Three customizable timeframes (e.g., daily, 3-day, weekly).
• Dynamic Display: Traders can choose which timeframes to visualize and whether to display labels with timeframe identifiers.
⸻
3. Visualization Aids:
• Plots:
• Primary CHOP with Bollinger Bands on the current chart’s timeframe (UT).
• Additional CHOP plots across selected timeframes, color-coded for easy differentiation.
• Labels:
• Labels are displayed on the chart for each timeframe, showing the CHOP value and its corresponding timeframe.
• These labels refresh every bar for clarity.
• Background Highlights:
• Signals choppy breakouts with a yellow overlay when the CHOP crosses below both its EMA and a set threshold (default: 50).
⸻
4. Alert System:
Two main alert types are built-in:
• Choppy Trend Alerts: Triggered when the CHOP crosses below the threshold (e.g., 50), signaling a potential shift toward a trending market.
• Choppy Spike Alerts: Activated when CHOP crosses below both its EMA and the threshold within a single candle—indicative of sudden shifts in market conditions.
• Alerts include:
• Directional bias (Long or Short based on candle close).
• Open/close levels.
• Stop-loss reference (previous bar’s high/low).
• Timestamp in the chosen time zone.
⸻
Strategic Application:
• Ranging Markets:
• CHOP values above threshold indicate high choppiness (consolidation).
• Suitable for range-bound strategies (mean reversion, scalping inside ranges).
• Trending Markets:
• CHOP values below threshold signal trending phases.
• Optimal for momentum or breakout strategies.
• Multi-Timeframe Edge:
• Cross-referencing CHOP conditions across multiple timeframes helps confirm higher probability setups.
• E.g., alignment between intraday and higher timeframes enhances confidence in trend continuations or reversals.
• Choppy Spikes:
• The spike detection (cross below both EMA and threshold within one candle) flags rapid transitions—potential breakout or breakdown scenarios.
⸻
Customization :
• Adapt CHOP period length and threshold based on asset volatility.
• Configure specific timeframes matching your strategy (scalping, intraday, swing).
• Enable or disable visual components (labels, background highlights, alerts) for a cleaner interface.
⸻
Conclusion:
This indicator provides a comprehensive and adaptable tool to monitor market structure dynamics across multiple timeframes. It’s particularly effective in discerning the right trading environment—whether to engage in trend-following or range-bound strategies. The integration of visual cues and proactive alerts ensures being informed of critical market transitions, enhancing timing and risk management.
FXTDPR Dual Timeframe High-Low BoxesThe "Dual Timeframe High-Low Boxes" indicator is designed to visualize price ranges and key levels across two user-defined timeframes (default: 15-minute and 4-hour) on the same chart. It draws rectangular boxes representing the high and low price levels within each timeframe, along with a horizontal line indicating the opening price of the timeframe. Labels are added to mark the opening price with bilingual text (English/Turkish). The indicator is highly customizable, allowing users to adjust timeframes, colors, transparency, line styles, and display options.
// Key Features:
// 1. **Dual Timeframe Support**: Simultaneously displays boxes for two timeframes (e.g., 15M and 4H), enabling analysis of both short-term and long-term price movements.
// 2. **High-Low Boxes**: Each box represents the highest and lowest prices within the selected timeframe, dynamically updating as new highs or lows occur.
// 3. **Opening Price Line**: A horizontal line is drawn at the opening price of each timeframe, fixed from the start to the end of the timeframe period.
// 4. **Bilingual Labels**: Labels display the timeframe and opening price in both English and Turkish (e.g., "15M Open Price / Açılış Fiyatı") for enhanced accessibility.
// 5. **Customizable Display**: Users can choose to display boxes for both timeframes, only Timeframe 1, or only Timeframe 2 via the "Display Timeframes" setting.
// 6. **Color and Style Customization**: Separate settings for bullish/bearish box colors, opening price line color, line style (solid, dashed, dotted), and label text color for each timeframe.
// 7. **Transparency Control**: Adjustable transparency for boxes to prevent chart clutter.
// 8. **Performance Optimization**: Limits the number of displayed boxes to 500 (via max_boxes_count) to ensure smooth performance.
// 9. **Accurate Timing**: Boxes start precisely at the beginning of each timeframe’s candle (e.g., 16:45 for 15M, 00:00 for 4H), ensuring alignment with the selected timeframe.
// 10. **No Input Confirmation**: The indicator starts with default settings (15M and 4H, both displayed) without requiring user confirmation, streamlining the setup process.
// How It Works:
// - The indicator uses request.security() to fetch time data for the user-defined timeframes and detects new timeframe periods using ta.change().
// - For each timeframe, it initializes a box at the start of the period, setting the initial high, low, and open prices.
// - As new candles form within the timeframe, the box’s high and low boundaries are updated to reflect the highest and lowest prices.
// - The box color changes based on whether the closing price is above (bullish) or below (bearish) the opening price.
// - A fixed horizontal line is drawn at the opening price, spanning the timeframe’s duration, with a label at the end of the box indicating the timeframe and opening price.
// - Users can toggle between displaying both timeframes or a single timeframe, with all settings (colors, styles, transparency) applied independently for each timeframe.
// Usage:
// - Add the indicator to your chart, and it will automatically display 15M and 4H boxes with default settings.
// - Use the settings menu to customize timeframes, colors, line styles, transparency, or to select which timeframes to display.
// - Ideal for identifying support/resistance levels, breakout opportunities, or trend analysis across multiple timeframes.
// Notes:
// - For optimal performance, use a chart timeframe equal to or lower than the smaller selected timeframe (e.g., 15M chart for 15M and 4H boxes).
// - The indicator is designed for flexibility, supporting timeframes from 1 minute to monthly periods.
// - To avoid chart clutter, adjust transparency settings or reduce max_boxes_count for long historical data.
Timeframe Titans: Market Structure & MTF Order Blocks🟩 OVERVIEW
A combined market structure and order block indicator. Displays fractals, zigzags, Break Of Structure and Change Of Character lines. Shows order blocks on the chart and a higher timeframe.
Unique features include:
• The structure rules require counter fractals for BOS. This enables us to use more responsive fractal settings without creating excessive noise.
• Structure is strict. After the initial CHoCH there is always one and only one active CHoCH line.
• Order blocks can be filtered by market structure.
• Order blocks are based entirely on candle patterns (which appear to be unique among all the indicators we tested) instead of using pivots or other configurable calculations.
• Order blocks have separate mitigation levels, not merely the edge of the block, and being partially mitigated is a separate logical state.
🟩 WHAT IS MARKET STRUCTURE?
There are many ways to conceptualise and code market structure — the prevailing trend derived from important price levels. All of them start with identifying highs and lows in price, then use breaks of those levels to assign a trend.
This indicator displays the following market structure features:
• Williams Fractals to derive high and low pivots.
• Zigzag lines, which connect highs and lows.
• Break of Structure (BOS) lines, which are formed from the highest high in an *uptrend* or the lowest low in a *downtrend*. A break of a BOS line signals trend continuation.
• Change of Character (CHoCH) lines, which are formed from the highest high in a *downtrend* or the lowest low in an *uptrend*. A break of a CHoCH line signals trend reversal.
• Market structure bias, which is derived from the break of a CHoCH line. If a CHoCH line is broken to the upside, the trend is bullish, and if to the downside, bearish.
(For more details of the market structure features of this indicator, see the FEATURES OF THIS INDICATOR section.)
This definition of market structure implies that:
• There can only ever be one single active BOS line.
• There can only ever be one single active CHoCH line.
• A break of a BOS line creates a new CHoCH line.
• A break of a CHoCH line creates a new bias, a new BOS line, and a new CHoCH line.
• Before we can create a BOS, we need to know the bias, for which we need the CHoCH, for which we need BOS... just one of the chicken-vs-egg difficulties of coding market structure.
To understand how this indicator differs from other market structure indicators, see the COMPARISON WITH OTHER INDICATORS section.
🟩 WHAT ARE ORDER BLOCKS?
Order blocks are candle patterns that appear at highs and lows. The theory is that these areas are where many orders were filled — too many for the order book, causing an imbalance in buyers and sellers. As such, these areas can form support or resistance levels when price returns to them.
This indicator displays the following features related to order blocks:
• Imbalances, also called Fair Value Gaps.
• Order blocks of two different types (Imbalance Block and Standard Order Blocks)
(For more details of the order block features of this indicator, see the FEATURES OF THIS INDICATOR section.)
There are different patterns that can define order blocks, but the common element is that price should move vigorously away from the area after the pattern forms.
To understand how this indicator differs from other order block indicators, see the COMPARISON WITH OTHER INDICATORS section.
🟩 FEATURES OF THIS INDICATOR
Pivots
Shows Williams high and low fractals, with a configurable lookback. The pivots are always calculated, since they are the building block of all other market structure features. The pivot shape display can be turned on or off, and the display customised.
Zigzag
Draws lines between the highs and lows. The lines can be shown or hidden, and the colour and thickness configured.
Break of Structure
BOS lines are always calculated, but can be shown or hidden. The appearance can be customised. BOS lines are drawn from the candle that has the high or low that defines their level. They always extend until they are broken or the bias changes. The BOS lines have an optional, configurable label. When a BOS line is broken, an optional, configurable label is drawn on that bar.
Change of Character
CHoCH lines can be shown, hidden, and customised. CHoCH lines always extend until they are broken or a new CHoCH line is formed. CHoCH lines have optional labels. A different, customisable label is drawn when a CHoCH line is broken.
Market structure bias
Market structure bias is derived from the break of a CHoCH line. If a CHoCH line is broken to the upside, the trend is bullish, and if to the downside, bearish. The background is shaded a configurable colour based on the trend.
Imbalances
Imbalances are drawn in configurable colours. When they are mitigated, you can choose to change the colour, delete them, or leave them.
Order blocks
Two types of imbalance order blocks are displayed: Standard Order Blocks and Imbalance Blocks. They can be shown or hidden, and customised, independently.
Each order block has a mitigation line with configurable colours and style. If price exceeds the mitigation line, the order block is mitigated and is considered inactive.
The order blocks, or their labels, can be deleted when the order block is mitigated. If not deleted, their colour is changed and they no longer extend with each new bar.
Order blocks on the chart timeframe can be shown conditionally within the context of the market structure: you can choose to show:
• Pro-trend order blocks (bearish order blocks that were created in bearish market structure and vice-versa).
• Counter-trend order blocks (bearish order blocks that were created in bullish market structure and vice-versa).
• All order blocks.
Higher timeframe
Imbalances and order blocks can be independently shown and customised on a single higher timeframe. The HTF functions of this indicator do not repaint because they use confirmed data.
You can choose a custom, fixed higher timeframe, or an "Auto" mode where the script automatically chooses the higher timeframe based on the chart timeframe.
Script information messages
An optional table shows information about the script, including configuration problems, such as if a custom HTF is not actually higher than the chart timeframe.
🟩 HOW TO USE
There are very many ways to use market structure and order blocks in trading and we recommend you study extensively, and if possible get a trusted mentor.
Here is a random example we found on the recent GBPUSD chart. In the screenshot below, the left chart is at 30m and the right is at 5m. We've toggled various settings to make the chart clearer for demonstration purposes.
1 — We get a CHoCH break on the higher timeframe. So our bias (if we are trying to trade with the trend) is bearish. Now we look for some other confluence.
2 — Price revisits the top of the range and mitigates an imbalance block. It wicks the CHoCH (resetting it) but does not break it on close. The bearish market structure is thus preserved. For these reasons, we're thinking about a short, and we switch to the 5m chart on the right to find an entry. We've chosen a Custom HTF of 30m to match the left chart and we can see the mitigated HTF order block, marked "30m IB". We can see when price moves definitively out of the order block area to the downside.
3 — A bearish order block is formed and very quickly price comes back into it. We could enter a short here with a stop above the closest relevant fractal.
4 — Another bearish order block forms and price retests it. Another entry. Two previous 5m bullish order blocks at the bottom of the chart act as support. We could potentially close our short here.
5 — Another test of the same block, which was not mitigated the first time. Another potential short entry. As it happens, price makes a massive run lower here, such that we could trail our stop down one ATR above every single high fractal (marked out using manual rays and a public ATR indicator) for a good R:R, but that's not the point.
This is a made-up, retrofitted example with a fairly generic methodology. It's just to show how some of the features of this indicator could be used in trading:
• Market structure can give a bias. It can also mark interesting levels.
• Using multiple timeframes, while more complex, can level up your trading experience.
• Price trading back into order blocks can be a good R:R entry.
Your actual way of trading, your playbook of setups, your knowledge of your strengths and weakness as a trader, is your own.
🟩 LIMITATIONS
This indicator is intended for use on Forex markets, although order blocks and market structure do form on any reasonably liquid asset.
The HTF uses confirmed data, so you need to wait until the HTF bar is closed before the order block can form. Therefore it does not repaint, in the sense that people worry about repainting, of changing data in the past. We use the latest recommended method of fetching HTF data .
The market structure uses live chart data, so structure and order blocks that are created by conditions on an open realtime bar can appear and disappear as the current bar close changes. This is quite normal .
The Williams pivots are by definition only confirmed after a defined number of bars, and like everyone else we plot them offset into the past.
Similarly, we offset order blocks into the past so that they start on the candle that has the high or low that defines the order block, not the candle that created them. For HTF order blocks, we calculate the number of chart bars back assuming a 24-hour market, which gives accurate offsets only on Forex and other symbols that trade close to 24 hours each day.
🟩 COMPARISON WITH OTHER INDICATORS
There are a great number of market structure and order block indicators already published on TradingView. Since there are only a certain number of highs and lows on the chart from which to produce structure and order blocks, they all look somewhat similar. However, this indicator, written entirely from scratch without reference to the code of any other indicators, is unique and original in two kinds of ways: in patterns and in features.
PRECISE PATTERNS
We believe that edge in trading can be found in, amongst other things, precision in analysis. You can't truly trust your backtests if your system is not repeatable, and your system is repeatable only if its definitions are precise.
We trade with this indicator, and our students trade with it as well. Why did we spend months creating a new indicator instead of using one of the many existing ones, most of which are free and open source?
Because they are not quite how we wanted.
The indicator was created from our proprietary structure rules, which are based on the generally accepted understanding of market structure, with some specific tweaks.
To prepare this description (after the indicator is finished), we searched for "Market Structure", "CHoCH", and "SMC" and list below all popular (with over 3K boosts; excluding invite-only) indicators that show market structure with CHoCH (sometimes called MSS). We configured the settings to most closely match how our indicator works, added both indicators to the same chart, and looked for relevant differences.
The purpose of this section is not to try to say that this indicator is better than any other, but just that it is different. This difference is important for us and our students.
Indicator #1
As you can see, the indicator interpreted the first part of the chart as a downtrend, whereas ours interpreted it as an uptrend. The structure is completely different, because our Williams Fractal lookback is 2, and the minimum "Swing Points" value for Indicator #1 is 10. Although this indicator is deservedly popular, it isn't what we can use for the way we trade.
Indicator #2
Setting the "Zigzag Length" to 2 results in wildly different market structure, as shown below. For many fractals, this indicator does not place the zigzag at the highest high or lowest low, as ours does consistently. It does not highlight the trend in any way. It gives many Market Structure Breaks in a short period. Although it's again wildly popular, it doesn't match our way of encoding market structure.
Indicator #3
Again, setting the "Pivot lb" and "Pivot rb" inputs to 2 gives much too sensitive market structure. This is because this indicator does not require, as we do, a counter-fractal to form after a fractal in order to confirm a BOS. We believe that this rule gives less noisy structure while also being responsive. Most indicators attempt to compensate for this by having a much larger lookback period. While this does of course give fewer pivots and less noise, this is simply a different logic and gives different results. Note also that although this indicator correctly defines the first section of the chart as an uptrend, it does not draw a CHoCH line. As discussed above, our definition of market structure means that there should always be one and only one active CHoCH line, and we draw this at the earliest sensible opportunity.
Indicator #4
Again, the lack of any extra pivot confirmation logic means that this indicator creates different structure with the same lookback period. Also note the lack of initial CHoCH.
Indicator #5
The lowest lookback is 3, and so this indicator too gives very different structure.
Indicator #6
Of course, using a lookback of 2 gives different structure with this indicator too. For variety, here we show a lookback of 5, which is the lowest setting that returns significantly less noisy structure. You can see that the main CHoCH at the top of the chart is similar but not at the same place. Increasing the lookback does not ever result in a CHoCH at the same place, because the logic is simply different. When the lookback increases above 10, no CHoCH lines are drawn at the top at all.
Indicator #7
This indicator uses the highest/lowest price for the last 10 bars (fixed), along with some other bar conditions. You can see the resulting structure is quite different. Among other differences, it does not create a BOS at the top of the chart, even in an uptrend, and it does not create an opposing CHoCH when the existing CHoCH is broken.
Indicator #8
With "Custom" market structure and a length of 2, BOS and CHoCH lines are drawn by this indicator but in incongruous places.
Conclusion
Although we only illustrate the top few alternatives, we did check many, many others.
These market structure indicators may produce useful output, but their structure differs significantly from ours. We didn't even need to get into specific examples because the general approaches are so different. It is up to the user to decide which indicator, and which interpretation of market structure, best suits their needs.
ORDER BLOCKS
Continuing, we illustrate differences with the most popular order block indicators, trying to get them to match our order blocks. Note that some of these are also in the previous list as market structure indicators.
Order blocks are always formed at swings when price moves away with force, so they will be sort of the same across all the very many existing order block indicators. We are looking for precision and differentiation, as we did with market structure.
Indicator #1
This indicator does not have ability to display mitigated order blocks, only active ones. The order blocks do not match at all.
Indicator #2
With a period of 2, this indicator marks many of the same order blocks as ours. It doesn't extend the blocks, and doesn't mark them when mitigated. The logic for choosing the order block candle is also clearly different.
Indicator #3
Even with very sensitive settings, this indicator did not create as many order blocks as ours and they are quite different.
Indicator #4
Again you can see the logic for choosing candles and creating blocks is simply different. This indicator has inadequate protection against empty arrays, which causes runtime errors on charts with not much history (not a problem for Forex charts in general, but noticeable on the testing chart).
Indicator #5
We were unable to get the order blocks to extend with this indicator, although it should be possible. Anyway the blocks are wildly different.
Indicator #6
Even with the most sensitive settings, this indicator showed only one order block on our test chart.
Indicator #7
This indicator incorporates complex price action concepts. Nevertheless, the order blocks are very different indeed.
Indicator #8
This indicator forms quite different blocks to ours. It has several interesting settings including a choice of using the candle body or wick.
Indicator #9
We were not able to configure this indicator to produce the same order blocks as ours.
Indicator #10
On very sensitive settings, this indicator matches many of our order blocks, but at the same time many are different.
Conclusion
None of the indicators tested here (nor the many others we looked at previously) use the same logic as ours. The differences are so obvious that we don't have to call out individual blocks and analyse how they differ.
Fundamentally, other indicators seem to use variable precision for pivots in their order block detection calculations. Our order blocks are pure candle patterns with two different rulesets for Standard Order Blocks and Imbalance Order Blocks, and this logic does not change.
Note that our order blocks do not always automatically extend to the swing high or low, nor allow the user to choose the limit of the block, but use unique rules.
In summary, our indicator differs from other order block indicators in terms of fundamental detection logic, candle placement, boundary definition, mitigation levels, and logical states (see below).
UNIQUE COMBINATION OF FEATURES
In comparison to all other indicators we looked at, our indicator:
• Uses order blocks with three states: active, mitigated, and partially mitigated. Our mitigation lines for order blocks are rules-based. If price touches the mitigation line, the order block is considered fully mitigated. If price goes inside the order block but does not hit the mitigation line, it is only partially mitigated. These three states are visually distinguished.
• Has the most extensive visual customisation options of all those we looked at. We believe that being able to customise how you see indicator outputs is very important for reducing mental load while analysing and trading.
• Has a unique feature that combines market structure and order blocks, where the user can choose to show pro-trend order blocks (bullish blocks that are formed in bullish structure and vice-versa) or counter-trend blocks (bullish blocks that are formed in bearish structure and vice-versa).
• Approximates an initial trend bias very quickly, so we can start creatng BOS, CHoCH, etc.
• Requires a counter pivot to confirm a BOS line. This seemingly small logical step actually creates very different structure, as we saw in the comparison section.
• Uses a sophisticated array-based sorting mechanism to preserve the selected number of imbalances, use the rest of the TradingView box allowance for order blocks, and delete excess order block objects (not just drawings) in reverse historical order.
• Hides order block drawings if they are a configurable distance away from price. Magically redraws them if price moves closer.
• Includes an equivalent to the system "Calculated bars" setting for the high timeframe, to avoid unnecessary processing and improve performance.
🟩 CODING CONSIDERATIONS
This indicator consists of all original code written by @SimpleCryptoLife for Timeframe_Titans.
AI was used for the following purposes:
• Autocomplete
• Checking that bullish and bearish logic is parallel in a given function
• Querying the names and locations of variables hundreds of lines away when we forgot what they're called, like an expensive search-and-replace
• Help with debugging (it usually makes up elaborate and wrong ideas though)
It was not used to replace the coder's expertise and creativity, or to "vibe-code" some black-box functionality we didn't understand. We can recommend that you use AI the same way.
═════════════════════════════════════════════════════════════
Micro Gaps DetectorSimple Micro Gap Indicator: A Technical Analysis Tool
The Simple Micro Gap Indicator is a specialized momentum indicator designed to identify and analyze micro gaps between consecutive candlesticks in financial charts. Unlike traditional gap analysis that focuses on larger price gaps, this indicator specifically targets smaller, less noticeable spaces between candles.
Key Features:
Detects minimal price disparities between consecutive candlesticks
Helps identify potential short-term momentum shifts
Useful for high-frequency trading and scalping strategies
Functions as a momentum indicator for short-term price movements
Supertrend X2 + CalcSize Calculator:
Size Calculator is a risk management tool that helps traders position themselves intelligently by calculating optimal position size, stop loss, and take profit levels based on account capital, ATR volatility, and personal risk tolerance. It takes the guesswork out of sizing so you can focus on execution.
Features:
✅ Risk-based position sizing
✅ ATR-based stop loss & take profit levels
✅ Dynamic leverage estimation
✅ Support for long and short positions
✅ Visual display of key levels and metrics via table
✅ Works across any timeframe with locked timeframe support
How It Works:
This tool computes the ideal position size as a % of account capital based on how much you're willing to risk per trade and how far your stop loss is (in ATR units). It calculates corresponding stop loss and take profit prices, and visually plots them along with a floating table of metrics. You can lock the timeframe used for ATR and price, keeping your risk logic stable even when changing chart views.
Customizable Inputs:
Account capital and risk tolerance
ATR-based stop loss & take profit multiples
Trade direction (Long or Short)
ATR period and locked timeframe
Optional detailed metrics display
Dual SuperTrend:
The Dual Supertrend indicator enhances the classic Supertrend strategy by layering two customizable Supertrend signals with independent ATR settings. This setup gives you a deeper, more nuanced read on trend strength and potential entry zones.
Features:
✅ Two Supertrend lines (each with adjustable ATR periods and multipliers)
✅ Optional Heikin Ashi candle smoothing for noise reduction
✅ Color-coded trend background for fast visual analysis
✅ Multi-timeframe trend table overlay (customizable)
✅ Built-in signal logic to identify "Long", "Short", or "N/A" zones
✅ Built-in alerts from Long and Short Entry Zones
How It Works:
The script calculates two Supertrend levels using separate ATR settings. Trend direction is derived from the relationship between price and each band. When the larger (slower) Supertrend flips and the smaller (faster) confirms, it signals a potential entry. The multi-timeframe table helps you align trades across different timeframes.
Customizable Inputs:
ATR Periods & Multipliers for both Supertrends
Timeframes for entry zone detection (up to 4)
Enable/disable Heikin Ashi candles for smoother trend detection
SMC Entry Signals MTF v2📘 User Guide for the SMC Entry Signals MTF v2 Indicator
🎯 Purpose of the Indicator
This indicator is designed to identify reversal entry points based on Smart Money Concepts (SMC) and candlestick confirmation. It’s especially useful for traders who use:
Imbalance zones, order blocks, breaker blocks
Liquidity grabs
Multi-timeframe confirmation (MTF)
📈 How to Use the Signals on the Chart
✅ LONG Signal (green triangle below the candle):
Conditions:
Price is in a discount zone (below the FIB 50% level)
A bullish engulfing candle appears
A bullish Order Block (OB) or Breaker Block is detected
There’s an upward imbalance
A bullish OB is confirmed on the higher timeframe
➡️ How to act:
Consider entering long on the current or next candle.
Place your stop-loss below the OB or the nearest swing low.
Take profit at the nearest liquidity zone or premium area (above FIB 50%).
🔻 SHORT Signal (red triangle above the candle):
Conditions:
Price is in a premium zone (above FIB 50%)
A bearish engulfing candle appears
A bearish OB or Breaker Block is detected
There’s a downward imbalance
A bearish OB is confirmed on the higher timeframe
➡️ How to act:
Consider short entry after the signal.
Place your stop-loss above the OB or swing high.
Target the discount zone or the next liquidity pocket.
⚙️ Recommended Settings by Trading Style
Trading Style Suggested Settings Notes
Intraday (1–15m) fibLookback = 20–50, obLookback = 5–10, htf_tf = 1H/4H Fast signals. Use Discount/Premium + Engulfing.
Swing/Position (1H–1D) fibLookback = 50–100, obLookback = 10–20, htf_tf = 1D/1W Higher trust in MTF confirmation. Ideal with fundamentals.
Scalping (1m) fibLookback = 10–20, obLookback = 3–5, htf_tf = 15m/1H Remove Breaker and MTF for quick reaction trades.
🧠 Best Practices for Traders
Trend Filtering:
Use EMAs or volume to confirm the current trend.
Take longs only in uptrends, shorts in downtrends.
Liquidity Zones:
Use this indicator after liquidity grabs.
OBs and Breakers often appear right after stop hunts.
Combine with Manual Zones:
This works best when paired with manually drawn OBs and key levels.
Backtest the Signals:
Use Bar Replay mode on TradingView to test past signals.
🧪 Example Trade Setup
Example on BTCUSDT 15m:
Price drops into the discount zone.
A green triangle appears (bullish engulfing + OB + imbalance + HTF OB).
You enter long, stop below the OB, target the premium zone.
🎯 This type of setup often gives a risk/reward ratio of 1:2 or better — profitable even with a 40% win rate.
⏰ Alerts & Automation
Enable alerts:
"SMC Long Entry" — fires when a long signal appears.
"SMC Short Entry" — fires when a short signal appears.
You can integrate this with bots via webhook, like:
TradingConnector, 3Commas, Alertatron, etc.
✅ What This Indicator Gives You
High-probability entries using SMC logic
Customizable filters for entry logic
Multi-timeframe confirmation for stronger setups
Suitable for both intraday and swing trading
MACD DualScope※日本語説明もあります。
📌 MACD DualScope – Fusion of Higher & Lower Timeframes
MACD DualScope is a multi-timeframe visualization tool that combines the power of two MACD readings in one view.
The background color reflects the trend direction of the higher timeframe MACD, while the indicator window shows the MACD of the current chart timeframe.
✅ Key Features
Visual background showing higher timeframe MACD direction (Green = Bullish, Red = Bearish)
Full MACD (MACD line, Signal line, Histogram) display for the lower/current timeframe
Separate parameter settings for higher and lower timeframes
Customizable higher timeframe (e.g., 1H, 4H, D, etc.)
Adjustable background transparency
Perfect for traders who want to capture the broader trend while timing precise entries on lower timeframes.
----------------------------------------------------------------------------------
📌 MACD DualScope - 上位足 × 下位足の融合ビジョン
MACD DualScopeは、異なる時間軸のMACDを同時に視覚化するインジケーターです。
背景には上位足のMACDの方向性をカラーで表示し、インジケーターウィンドウには現在の足(下位足)のMACDを表示します。
✅ 主な機能
上位足のMACD方向を背景色で表示(上昇:緑 / 下降:赤)
下位足のMACD、シグナル、ヒストグラムをチャートで視覚化
上位・下位それぞれでMACDのパラメーターを個別設定可能
上位足の時間足を自由に選択可能(例:1H, 4H, Dなど)
背景の透明度もカスタマイズ可能
トレンドの大きな流れと短期の変化を同時に捉えたいトレーダーにおすすめのツールです!
EMA Trend Pro: Dynamic Clouds & ColorsEMA Trend Pro is your ultimate trend companion, built for traders who want clarity, precision, and confidence in their entries.
This script fuses dynamic EMA cloud zones with breakout and pullback signals — giving you real-time insights into market structure and momentum. Whether you're trading crypto, forex, stocks, or futures, EMA Trend Pro adapts to your style.
🔧 Key Features:
✅ EMA Stack Clouds with Folding Sensitivity (9/21/48/200)
✅ Bullish / Bearish trend labels with real-time dashboard
✅ Volume strength analysis (High, Normal, Low)
✅ Breakout signal alerts (momentum-based)
✅ Pullback signal alerts (trend resumption)
✅ Fully customizable: EMA lengths, signal visibility, cloud opacity
✅ Works across all assets and timeframes
🛠️ Designed for scalping, swing trading, and intraday setups.
🔔 Built-in alerts make automation seamless — no guesswork.
💡 Usage Tips:
Use clouds and trend labels to identify structure and bias
Trade breakouts when EMAs align and volume confirms
Look for pullbacks into the EMA zone and enter on resumption
📅 Market Hours Filter: Keeps signals relevant during core trading hours (9:30 AM–4 PM ET).
👤 Developed by @glapougbaegarmondeh
🧠 Version 1.0 | 📆 Released: April 24, 2025
SynchroTrend Oscillator (STO) [PhenLabs]📊 SynchroTrend Oscillator
Version: PineScript™ v5
📌 Description
The SynchroTrend Oscillator (STO) is a multi-timeframe synchronization tool that combines trend information from three distinct timeframes into a single, easy-to-interpret oscillator ranging from -100 to +100.
This indicator solves the common problem of having to analyze multiple timeframe charts separately by consolidating trend direction and strength across different time horizons. The STO helps traders identify when markets are truly synchronized across timeframes, potentially indicating stronger trend conditions and higher probability trading opportunities.
Using either Moving Average crossovers or RSI analysis as the trend definition metric, the STO provides a comprehensive view of market structure that adapts to various trading strategies and market conditions.
🚀 Points of Innovation
Triple-timeframe synchronization in a single view eliminates chart switching
Dual trend detection methods (MA vs Price or RSI) for flexibility across different markets
Dynamic color intensity that automatically increases with signal strength
Scaled oscillator format (-100 to +100) for intuitive trend strength interpretation
Customizable signal thresholds to match your risk tolerance and trading style
Visual alerts when markets reach full synchronization states
🔧 Core Components
Trend Scoring System: Calculates a binary score (+1, -1, or 0) for each timeframe based on selected metrics, providing clear trend direction
Multi-Timeframe Synchronization: Combines and scales trend scores from all three timeframes into a single oscillator
Dynamic Visualization: Adjusts color transparency based on signal strength, creating an intuitive visual guide
Threshold System: Provides customizable levels for identifying potentially significant trading opportunities
🔥 Key Features
Triple Timeframe Analysis: Synchronizes three user-defined timeframes (default: 60min, 15min, 5min) into one view
Dual Trend Detection Methods: Choose between Moving Average vs Price or RSI-based trend determination
Adjustable Signal Smoothing: Apply EMA, SMA, or no smoothing to the oscillator output for your preferred signal responsiveness
Dynamic Color Intensity: Colors become more vibrant as signal strength increases, helping identify strongest setups
Customizable Thresholds: Set your own buy/sell threshold levels to match your trading strategy
Comprehensive Alerts: Six different alert conditions for crossing thresholds, zero line, and full synchronization states
🎨 Visualization
Oscillator Line: The main line showing the synchronized trend value from -100 to +100
Dynamic Fill: Area between oscillator and zero line changes transparency based on signal strength
Threshold Lines: Optional dotted lines indicating buy/sell thresholds for visual reference
Color Coding: Green for bullish synchronization, red for bearish synchronization
📖 Usage Guidelines
Timeframe Settings
Timeframe 1: Default: 60 (1 hour) - Primary higher timeframe for trend definition
Timeframe 2: Default: 15 (15 minutes) - Intermediate timeframe for trend definition
Timeframe 3: Default: 5 (5 minutes) - Lower timeframe for trend definition
Trend Calculation Settings
Trend Definition Metric: Default: “MA vs Price” - Method used to determine trend on each timeframe
MA Type: Default: EMA - Moving Average type when using MA vs Price method
MA Length: Default: 21 - Moving Average period when using MA vs Price method
RSI Length: Default: 14 - RSI period when using RSI method
RSI Source: Default: close - Price data source for RSI calculation
Oscillator Settings
Smoothing Type: Default: SMA - Applies smoothing to the final oscillator
Smoothing Length: Default: 5 - Period for the smoothing function
Visual & Threshold Settings
Up/Down Colors: Customize colors for bullish and bearish signals
Transparency Range: Control how transparency changes with signal strength
Line Width: Adjust oscillator line thickness
Buy/Sell Thresholds: Set levels for potential entry/exit signals
✅ Best Use Cases
Trend confirmation across multiple timeframes
Finding high-probability entry points when all timeframes align
Early detection of potential trend reversals
Filtering trade signals from other indicators
Market structure analysis
Identifying potential divergences between timeframes
⚠️ Limitations
Like all indicators, can produce false signals during choppy or ranging markets
Works best in trending market conditions
Should not be used in isolation for trading decisions
Past performance is not indicative of future results
May require different settings for different markets or instruments
💡 What Makes This Unique
Combines three timeframes in a single visualization without requiring multiple chart windows
Dynamic transparency feature that automatically emphasizes stronger signals
Flexible trend definition methods suitable for different market conditions
Visual system that makes multi-timeframe analysis intuitive and accessible
🔬 How It Works
1. Trend Evaluation:
For each timeframe, the indicator calculates a trend score (+1, -1, or 0) using either:
MA vs Price: Comparing close price to a moving average
RSI: Determining if RSI is above or below 50
2. Score Aggregation:
The three trend scores are combined and then scaled to a range of -100 to +100
A value of +100 indicates all timeframes show bullish conditions
A value of -100 indicates all timeframes show bearish conditions
Values in between indicate varying degrees of alignment
3. Signal Processing:
The raw oscillator value can be smoothed using EMA, SMA, or left unsmoothed
The final value determines line color, fill color, and transparency settings
Threshold levels are applied to identify potential trading opportunities
💡 Note:
The SynchroTrend Oscillator is most effective when used as part of a comprehensive trading strategy that includes proper risk management techniques. For best results, consider using the oscillator in conjunction with support/resistance levels, price action analysis, and other complementary indicators that align with your trading style.
SHA Session Killzones-[1.0.0]
🔰 SHA Session Killzones
Created by:
Version: 1.0.0
Timeframes: Optimized for 5m,10m, 15m, 30m, and 1h
✨ Description:
The SHA Session Killzones indicator automatically highlights the most volatile market hours — the Asian, London, and New York sessions — directly on your chart. Each killzone is color-coded and visually boxed to help you identify:
- 🟧 Asian Killzone (07:00–09:00)
- 🟦 London Killzone (13:00–15:00)
- 🟪 New York Killzone (19:00–21:00)
This indicator helps you:
- 🔍 Focus only on high-probability trading windows
- 🚫 Avoid low-liquidity traps
- 🔄 Plan breakout/reversal strategies during peak hours
- 📊 Use session highs/lows as key intraday S/R levels
⚙️ Features:
- Adjustable time zones (default: UTC+7)
- Automatic session labeling
- Clean and minimal visuals for optimal chart clarity
- Compatible with all instruments, especially Gold (XAUUSD)
🧠 How to Use:
- Use with your trading strategy to filter out noise
- Apply on 10m–30m timeframes for maximum precision
📌 Tip:
Use in confluence with market structure, volume spikes, or news catalysts for more effective entries.
ZenAlgo - RangerThe core of the indicator is the daily range, anchored around the 1-minute timeframe VWAP (volume-weighted average price), with ±2 standard deviations defining the upper and lower bounds. This range dynamically forms throughout the day and then gets “locked” at 23:59 each day to establish historical reference values.
The indicator calculates this locked VWAP and standard deviation per day, which serves two primary purposes:
Drawing today's real-time evolving range , updated each minute.
Plotting previous daily ranges , based on historical locked VWAPs and standard deviations, providing visual reference boxes on the chart.
This design enables the trader to identify mean-reversion zones and persistent directional biases based on volume-weighted price consensus.
Multiple Standard Deviation Layers
Beyond the ±2.0 deviation bounds, optional lines are available at half-step increments (e.g., ±0.5, ±1.5, ..., ±4.5) and full-step levels beyond ±2.0 (±3.0, ±4.0, ±5.0). These provide a customizable grid to visualize price extremes, tail behavior, or potential breakout zones relative to volume-adjusted price equilibrium.
Users can enable only the levels they need, offering flexibility depending on their strategy (e.g., scalping versus swing trading).
Historical Range Retention
The script stores up to 70 previous daily VWAP + standard deviation values (adjustable). For each, it draws a full range box and standard deviation lines in the past. This historical context helps in understanding how current price interacts with prior days’ balance zones.
These boxes are always drawn from 00:00 to 23:59 UTC , ensuring consistent alignment across instruments and avoiding session-based discrepancies.
Monday Range Reference (Drawn on Tuesdays)
On Tuesdays, the indicator plots the previous Monday's VWAP-based range across the rest of the week. This serves as a persistent contextual anchor for traders watching weekly unfolding behavior. The range is defined identically (VWAP ±2σ) and drawn from Monday 00:00 through the following Monday.
This method assumes Monday often sets the tone or structure for the week, and tracking this level through time may highlight support/resistance confluence or range expansion scenarios.
Each Monday range is extended over 7 days and includes dashed lines at the 25%, 50%, and 75% marks within the range. These midrange markers help traders assess microstructure behaviors (e.g., reversion to median, failure to hold midpoint, etc.).
Daily Volume Delta via 4H Candles
The indicator also integrates daily buy/sell volume deltas , derived from 4-hour candles of the regular session (non-Heikin Ashi). The logic categorizes volume as:
Buy volume when candle closes above the previous close.
Sell volume when it closes below.
Even split when the candle closes flat.
These volumes accumulate each day to derive net delta (buy - sell). This delta is recorded for each day and can optionally be displayed. A similar process tracks the delta for each Monday range on an ongoing basis.
This information quantifies the market’s aggressive buying vs. selling , correlating with price positions inside or outside the VWAP ranges. A strong delta in one direction may justify a price sustaining above/below VWAP, or diverging from the previous range.
Interpretation and Best Usage Practices
VWAP±2σ Range : Considered a high-probability area for consolidation or reversal. Mean-reverting strategies can benefit from signals within this area.
VWAP±3.0 and beyond : Extreme deviations may signal exhaustion or breakout potential, but are less frequent.
Previous Range Overlap : Overlap of today’s price with past VWAP zones may indicate support/resistance zones.
Monday Range on Tuesday : Persistent levels where the week may repeatedly pivot. Best used on instruments that exhibit weekly cyclical behavior (e.g., indices, forex).
Delta Behavior : Sharp positive or negative delta combined with price outside VWAP bands may suggest initiative participation and potential trend continuation.
Added Value Over Free Alternatives
While many free VWAP tools exist, this script differs in several specific and factual ways:
Anchored 1-minute VWAP lock at a consistent daily timestamp (23:59 UTC), enabling historical analysis.
Historical storage of previous VWAP ranges , with adjustable memory depth and visual continuity.
Flexible standard deviation plotting , down to 0.5 increments, tailored to the user's strategy needs.
Dedicated Monday range analysis , not common in freely available scripts.
Volume delta tracking per day and per Monday range , offering a directional volume view unavailable in standard VWAP implementations.
Persistent and visual interpretation framework using extended boxes and dashed lines for easier contextual navigation.
Each of these additions increases the script’s utility for methodical traders relying on volume-weighted statistics, without requiring additional configuration or external calculations.
Limitations and Disclaimers
VWAP based on 1-minute resolution : The indicator uses minute-level data to calculate daily VWAP and standard deviation. This offers high fidelity on liquid instruments but may produce noisy or unreliable levels on illiquid assets or during periods of low volume. For example, microcap stocks or thinly traded altcoins might not yield stable VWAP centers.
Inferred buy/sell volume : Volume delta is estimated using price movement from one candle to the next (close-to-close logic), rather than actual trade-level aggressor data (which is not accessible via TradingView). This approximation may misclassify volume in choppy or low-volatility environments, especially in assets where price changes do not correlate well with order flow (e.g., crypto during low-volume weekends).
Non-continuous markets and price gaps : For assets that do not trade continuously (e.g., stocks, futures), the VWAP calculation starts fresh every day at 00:00 UTC, regardless of the instrument’s official session start. As a result:
Pre-market/post-market trades may be included in VWAP when analyzing equities, even though they are often excluded in professional VWAP tools.
Opening gaps in equities and futures may distort early VWAP values due to lack of volume context, especially if the previous day's session was already closed when new data begins accumulating.
Weekend gaps in crypto, although less frequent due to 24/7 trading, can still influence delta accumulation if abrupt moves happen during low liquidity periods.
Daily session alignment : The VWAP anchoring and box drawing uses 00:00 UTC to 23:59 UTC windows. For instruments with different official session timings (e.g., US equities, CME futures), this may cause mismatches between expected session VWAPs and the ones shown in this script.
Conclusion
The ZenAlgo – Ranger script offers a systematic visualization of volume-adjusted price behavior, combining statistical VWAP ranges with volume delta overlays. By integrating daily and weekly reference zones, this tool supports structured decision-making in various market environments, particularly for traders prioritizing mean reversion, range expansion, or trend confirmation.
Linear Regression with StdDev BandsLinear Regression with Standard Deviation Bands Indicator
This indicator plots a linear regression line along with upper and lower bands based on standard deviation. It helps identify potential overbought and oversold conditions, as well as trend direction and strength.
Key Components:
Linear Regression Line: Represents the average price over a specified period.
Upper and Lower Bands: Calculated by adding and subtracting the standard deviation (multiplied by a user-defined factor) from the linear regression line. These bands act as dynamic support and resistance levels.
How to Use:
Trend Identification: The direction of the linear regression line indicates the prevailing trend.
Overbought/Oversold Signals: Prices approaching or crossing the upper band may suggest overbought conditions, while prices near the lower band may indicate oversold conditions.
Dynamic Support/Resistance: The bands can act as potential support and resistance levels.
Alerts: Option to enable alerts when the price crosses above the upper band or below the lower band.
Customization:
Regression Length: Adjust the period over which the linear regression is calculated.
StdDev Multiplier: Modify the width of the bands by changing the standard deviation multiplier.
Price Source: Choose which price data to use for calculations (e.g., close, open, high, low).
Alerts: Enable or disable alerts for band crossings.
This indicator is a versatile tool for understanding price trends and potential reversal points.
RSI MTF CorrelationRSI MTF Correlation
This indicator detects unusual movement between RSI values on the current timeframe and a higher timeframe (multi-timeframe), generating volatility alerts or identifying potential market phase shifts.
Applying for FX:XAUUSD and BINANCE:BTCUSD.P
How To Read Data
How To Use
When RSI volatility across multiple timeframes behaves abnormally, bar colors shift from gray to orange, blue, or purple, indicating increasing levels of volatility.
Once volatility returns to a normal state (gray), it may signal a potential reversal trade opportunity.
Alert is available in the indicator.
How to Trade
Set alerts using the built-in functions of this indicator, or monitor the chart manually.
When abnormal RSI volatility occurs, bar colors will shift from gray to orange, blue, or purple, reflecting increasing levels of volatility.
Wait until a green or red bar appears to trigger a trade:
Green bar: signals a potential buy setup
Red bar: signals a potential sell setup
Stop-Loss (SL): place below the nearest swing low (for buy) or above the nearest swing high (for sell), typically 20–30 pips.
Take-Profit (TP): follow a Risk-to-Reward ratio of 1:1, 1:2, or ideally 1:5 or higher depending on market structure.
Breakeven adjustment is optional and can be applied according to your trading style and market conditions.
Notice:
Follow the higher timeframe trend for more reliable signals.
Strictly adhere to risk and money management principles.
If you experience 2–3 consecutive stop-losses, this may indicate a trend shift or an unclear market condition. In such cases, wait for a new trend to form before re-entering.
How It Works
Under normal market conditions, RSI movements across different timeframes show a relatively correlated pattern.
When this correlation breaks (abnormal RSI volatility), it often signals a possible trend shift in the lower timeframe.
To preserve the dominant trend, the higher timeframe typically pulls the lower one back in line, resulting in sharp V-shaped price movements (flash dumps/pumps).
This behavior helps us identify and isolate abnormal corrections, enabling high-probability trade setups.
However, in some cases, a genuine trend reversal in the lower timeframe can be strong enough to impact the higher timeframe. This may lead to invalidation of trade setups (i.e., stop-loss hits).
We acknowledge this risk and manage it through R:R (risk-to-reward) ratio strategies and robust capital management.
Happy trading ❤️.
Market Open & Pre-Open Linesversion 1.0 2025-04-23
Stated vertical line for market open and pre-market open. Market option include US, EU, UK, JP and AU. This line do auto-defined during daylight saving time. This help for those trade during market open and benefit for those doing backtest on it.
Radonezh Kir-Mary Beauty editionOverview
Dedicated to rev. Kirill and Mary of Radonezh.
This indicator uniquely combines Cumulative Volume Delta (CVD) and price momentum with dynamic normalization to identify trend strength, reversals, supported by a combination of more traditional signal logic. Unlike traditional momentum oscillators, it integrates volume dynamics and advanced directional index to filter false signals and adapts to market volatility through automated scaling, offering a holistic view of price-action reliability.
Core Innovations
Adapive Signals: Uses a proprietary correlation algorithm to weight momentum values, reducing noise in choppy markets.
Lower timeframe entry points: (currently 1 minute only) and HTF line statuses for timeframe synchronisation (currently only 15 minutes and 1 hour status) for super-precise entry points
Automatic drawing of resistance and support lines based on the proprietary algorithm for detecting volume/price synchronization and desynchronization levels.
"Victor-predictor": price chart pointing line that shows where the price supposedly goes based on the machine-learning simulation with pine script based on the main 3 traditional classical indicators. Works independently from the rest of the indicator. Developed by @Skorcez (same team).
Automatic recognition of possible long and short stop order placement levels. I do not filter them so use only within the general context of the indicator.
Key Features
Volume-Price Correlation: CVD reflects institutional order flow, while price momentum quantifies trend acceleration.
Auto-Scaling: Adjusts output range based on recent volatility (ATR), preventing overbought/oversold false positives.
Visual Alerts: Marks divergence zones with colored trendlines and labels (regular/hidden bullish/bearish).
Unique Value
By fusing volume delta dynamics with momentum filtering, this script addresses a critical gap in traditional indicators that treat price and volume in isolation. The closed-source logic focuses on institutional accumulation/distribution patterns, providing actionable signals without repainting.
Compatible with all assets and timeframes. No promotional content or external links included.
============================================
Trading strategy
============================================
Position Signals via DEMA Momentum Line Coloration
The main indicator line (orange/black) determines entry/exits based on its color intensity, which reflects trend strength and confirmation from filtered signals. Here's how it works:
Long Positions (Green/Teal)
Weak Long:
Dark Green = Price momentum rising without volume/Machine Learning (ML) confirmation.
Example: main line turns green but lacks volume spikes or ML buy signals.
Strong Long:
Bright Green = Momentum confirmed by:
Volume Surge: Volume exceeds 1.5x 20-period average.
ML Confirmation: ML score > 0.7 with price above EMA20.
Post-Drop Recovery: Price rebounds after a >1% drop on high volume. (not active as of now, will add a bit later, still working on it)
Short Positions (Red/Orange)
Weak Short:
Orange = Momentum declines without bearish confirmation.
Strong Short:
Bright Red = Confirmed by:
Volume Divergence: Rising price with falling CVD momentum.
ML Bearish: ML score > 0.7 + price below EMA20.
Overextension: RSI > 70 + price above upper Bollinger Band.
Neutral (Gray)
Flat Momentum:
Gray = Momentum near zero (±0.05) + low volatility (ATR < 1% of price).
Action: Avoid trades until color intensifies or stay in a position with a trailing stoploss until it's clear where the market goes (use HTF signal colour table to know what to expect).
Key Features
Adaptive Confirmation:
Colors brighten when signals align across:
Volume acceleration
RSI and a few other extremes (oversold/overbought)
Machine Learning predictions
Dynamic Risk Zones:
Gray areas highlight low-confidence periods, while bright colors mark high-probability entries.
Usage: Enter longs when the line turns bright green and exits when it fades to dark green/gray. Reverse for shorts. Combine with the built-in Victor-Predictor signals for optimal accuracy
============================================
Plans to add soon:
============================================
Dynamic Normalization: Scales CVD and price momentum to a fixed range (default: -20 to +20) using volatility-adjusted multipliers, ensuring consistent interpretation across assets/timeframes.
Divergence Detection: Flags discrepancies between volume-driven momentum (CVD) and price trends, highlighting potential reversals.
Adding 2 nearest psychological support and resistance levels.
Trend Matrix Multi-Timeframe Dashboard(TechnoBlooms)Trend Matrix Multi-Timeframe Dashboard is a Minimalist Multi-Timeframe Trend Analyzer with Smart Indicator Integration. Trend Matrix MTF Dashboard is a clean, efficient, and visually intuitive trend analyzer built for traders who value simplicity without compromising on technical depth.
This dashboard empowers you to track trend direction across multiple timeframes using a curated set of powerful technical indicators—all from one compact visual panel. The design philosophy is simple: eliminate clutter, highlight trend clarity, and accelerate your decision-making process.
Key Features
✅ Minimalist Design with Maximum Insight
A compact dashboard view designed for clean charts and focused trading
Optimized layout shows everything you need—nothing you don’t
✅ Multi-Timeframe Access at a Glance
Instantly read the trend direction of selected indicators on multiple timeframes (e.g., 15m, 1h, 4h, 1D)
Customize the timeframe stack to fit scalping, intraday, swing, or positional strategies
✅ Robust Technical Indicators Built In
Each one is hand-picked for trend reliability:
MACD – Momentum and crossover confirmation
RSI – Overbought/oversold and directional shift
EMA – Dynamic support/resistance and trend bias
Bollinger Bands – Volatility structure and trend containment
PVT – Volume-Weighted Trend Confirmation
Supertrend – Price-following trend tracker
✅ Live Updates & Lightweight Performance
Built to update efficiently on every bar close
Minimal performance impact even with multiple timeframes active
By offering multi-timeframe (MTF) access to proven trend-following indicators, Trend Matrix helps you confidently align with the market’s dominant direction—without jumping between charts or analyzing indicators one by one.
This indicator offers customizable settings. The trader can choose the input parameters timeframes as per the choice.
Trend Matrix Multi-Timeframe Dashboard helps traders to identify trend based on technical indications. Trader can refer this while taking trading decisions.
🧠 Ideal For
Scalpers who need higher timeframe confirmation
Swing traders identifying clean entries aligned with the macro trend
Trend followers seeking clarity before committing capital
Price action & SMC traders validating market structure setups
Beginners who want a high-level trend guide without messy indicators
The Hebrew CalendarThis indicator displays the current Hebrew (Jewish) calendar date based on the real-time Gregorian calendar. Features included:
Calculates and displays the current Hebrew day, month, and year.
Recognizes leap years and adjusts month counts accordingly.
Aligns with traditional Hebrew month names (Tishrei, Cheshvan, Kislev, etc.).
The calculations align with the Hebrew Calendar Converter from:
👉 www.chabad.org
The results are shown in a table overlay on your chart's top-right corner. This indicator is great for symbolic traders, astro enthusiasts, or anyone interested in ancient timekeeping systems woven into financial timeframes. Enjoy, time travelers! ⌛
The Mayan CalendarThis indicator displays the current date in the Mayan Calendar, based on real-time UTC time. It calculates and presents:
🌀 Long Count (Baktun.Katun.Tun.Uinal.Kin) – A linear count of days since the Mayan epoch (August 11, 3114 BCE).
🔮 Tzolk'in Date – A 260-day sacred cycle combining a number (1–13) and one of 20 day names (e.g., 4 Ajaw).
🌾 Haab' Date – A 365-day civil cycle divided into 18 months of 20 days + 5 "nameless" days (Wayeb').
The calculations follow Smithsonian standards and align with the Maya Calendar Converter from the National Museum of the American Indian:
👉 maya.nmai.si.edu
The results are shown in a table overlay on your chart's top-right corner. This indicator is great for symbolic traders, astro enthusiasts, or anyone interested in ancient timekeeping systems woven into financial timeframes. Enjoy, time travelers! ⌛
ATR & Session & Pivot & Note – MultiTF Utility**ATR & Session & Pivot – MultiTF Utility**
**Description**:This versatile indicator is designed for technical analysis in Forex, Crypto, Gold, and Silver markets. It displays ATR (Average True Range) values across multiple timeframes (Current, 1m, 5m, 15m, 1H, 4H, 1D, 1W) with TP/SL levels, alongside Pivot Point analysis (minor and major), Structure Lines, and Trading Session Boxes.
**Features:**
- **Multi-Timeframe ATR Table:** Shows ATR values for various timeframes with customizable table position (top/middle/bottom, left/center/right) and decimal precision.
- **Custom Text Colors:** Distinct colors for 5m (red), 1H (blue), My ATR (green), and LQ Close (purple).
- **Pivot Points:** Identifies minor pivots (HH, LH, LL, HL) with 9 left and 4 right bars, and major pivots with 18 left and 9 right bars.
- **Structure Lines:** Displays lines connecting pivots with adjustable style and width.
- **Session Boxes:** Highlights New York, London, Tokyo, and Sydney sessions (Tehran timezone +3:30) with customizable background transparency and day-of-week labels.
- **Special Calculations:** Includes My ATR, ATI, SCEP, LQ Close, Min LQ, Max LQ, My CL, and Min Reward.
**How to Use:**
1. Add the indicator to your chart.
2. Customize table position, colors, decimal precision, and enable/disable sessions or pivots via settings.
3. Use ATR values for setting TP/SL levels and leverage pivots and session boxes to identify key market levels.
**Settings:**
- **Table Position & Style:** Adjust table placement and font size.
- **ATR Options:** Enable/disable specific timeframes or special calculations.
- **Sessions:** Toggle visibility of trading sessions and adjust transparency.
- **Pivots:** Enable/disable minor/major pivots and set bar counts.
- **Structure Lines:** Activate lines and customize color, width, and style.
**Ideal For**:Traders seeking a comprehensive tool for ATR analysis, pivot identification, and session-based trading across multiple timeframes.
**Note:** Tailor the settings to align with your trading strategy and market for optimal results.
Anilk_3X_Trend_Pulse🧠 What is it trying to do?
It shows whether the price of a stock (or crypto, etc.) is bullish, bearish, or neutral based on how prices are moving over different time periods.
Based on this, it gives a strength score:
+100 means strong bullish momentum (upward)
-100 means strong bearish momentum (downward)
0 means no clear direction (Neutral)
🎨 What does it show on the chart?
It draws 3 colored lines (Blue, Green, Red) below your price chart (in a separate panel):
Blue = Short-term strength
Green = Medium-term strength
Red = Long-term strength
You also see 3 reference lines:
+100 = Bullish line
0 = Neutral line
-100 = Bearish line
🧰 Why is this useful for a trader?
It helps you visually judge momentum across different timeframes.
You can see if all timeframes are pointing in the same direction, which can signal a strong trend.
Great for deciding:
Whether to enter a trade
Whether to stay in or exit
Whether the market is confused or trending clearly
📌 In simple terms:
"This script acts like a trend strength meter across short, medium, and long periods — helping traders see if the market is going up, down, or just stuck."
Would you like a visual example or want this added to your TradingView chart?
// Disclaimer: Please backtest this indicator across different timeframes before using it for live trading to ensure it performs as expected.