Contrarian Period High & LowContrarian Period High & Low
This indicator pairs nicely with the Contrarian 100 MA and can be located here:
Overview
The "Contrarian Period High & Low" indicator is a powerful technical analysis tool designed for traders seeking to identify key support and resistance levels and capitalize on contrarian trading opportunities. By tracking the highest highs and lowest lows over user-defined periods (Daily, Weekly, or Monthly), this indicator plots historical levels and generates buy and sell signals when price breaks these levels in a contrarian manner. A unique blue dot counter and action table enhance decision-making, making it ideal for swing traders, trend followers, and those trading forex, stocks, or cryptocurrencies. Optimized for daily charts, it can be adapted to other timeframes with proper testing.
How It Works
The indicator identifies the highest high and lowest low within a specified period (e.g., daily, weekly, or monthly) and draws horizontal lines for the previous period’s extremes on the chart. These levels act as dynamic support and resistance zones. Contrarian signals are generated when the price crosses below the previous period’s low (buy signal) or above the previous period’s high (sell signal), indicating potential reversals. A blue dot counter tracks consecutive buy signals, and a table displays the count and recommended action, helping traders decide whether to hold or flip positions.
Key Components
Period High/Low Levels: Tracks the highest high and lowest low for each period, plotting red lines for highs and green lines for lows from the bar where they occurred, extending for a user-defined length (default: 200 bars).
Contrarian Signals: Generates buy signals (blue circles) when price crosses below the previous period’s low and sell signals (white circles) when price crosses above the previous period’s high, designed to capture potential reversals.
Blue Dot Tracker: Counts consecutive buy signals (“blue dots”). If three or more occur, it suggests a stronger trend, with the table recommending whether to “Hold Investment” or “Flip Investment.”
Action Table: A 2x2 table in the bottom-right corner displays the blue dot count and action (“Hold Investment” if count ≥ 4, else “Flip Investment”) for quick reference.
Mathematical Concepts
Period Detection: Uses an approximate bar count to define periods (1 bar for Daily, 5 bars for Weekly, 20 bars for Monthly on a daily chart). When a new period starts, the previous period’s high/low is finalized and plotted.
High/Low Tracking:
Highest high (periodHigh) and lowest low (periodLow) are updated within the period.
Lines are drawn at these levels when the period ends, starting from the bar where the extreme occurred (periodHighBar, periodLowBar).
Signal Logic:
Buy signal: ta.crossunder(close , prevPeriodLow) and not lowBroken and barstate.isconfirmed
Sell signal: ta.crossover(close , prevPeriodHigh) and not highBroken and barstate.isconfirmed
Flags (highBroken, lowBroken) prevent multiple signals for the same level within a period.
Blue Dot Counter: Increments on each buy signal, resets on a sell signal or if price exceeds the entry price after three or more buy signals.
Entry and Exit Rules
Buy Signal (Blue Circle): Triggered when the price crosses below the previous period’s low, suggesting a potential oversold condition and buying opportunity. The signal appears as a blue circle below the price bar.
Sell Signal (White Circle): Triggered when the price crosses above the previous period’s high, indicating a potential overbought condition and selling opportunity. The signal appears as a white circle above the price bar.
Blue Dot Tracker:
Increments blueDotCount on each buy signal and sets an entryPrice on the first buy.
Resets on a sell signal or if price exceeds entryPrice after three or more buy signals.
If blueDotCount >= 3, the table suggests holding; if >= 4, it reinforces “Hold Investment.”
Exit Rules: Exit a buy position on a sell signal or when price exceeds the entry price after three or more buy signals. Combine with other tools (e.g., trendlines, support/resistance) for additional confirmation. Always apply proper risk management.
Recommended Usage
The "Contrarian Period High & Low" indicator is optimized for daily charts but can be adapted to other timeframes (e.g., 1H, 4H) with adjustments to the period bar count. It excels in markets with clear support/resistance levels and potential reversal zones. Traders should:
Backtest the indicator on their chosen asset and timeframe to validate signal reliability.
Combine with other technical tools (e.g., moving averages, Fibonacci levels) for stronger trade confirmation.
Adjust barsPerPeriod (e.g., ~120 bars for Weekly on hourly charts) based on the chart timeframe and market volatility.
Monitor the action table to guide position management based on blue dot counts.
Customization Options
Period Type: Choose between Daily, Weekly, or Monthly periods (default: Monthly).
Line Length: Set the length of high/low lines in bars (default: 200).
Show Highs/Lows: Toggle visibility of period high (red) and low (green) lines.
Max Lines to Keep: Limit the number of historical lines displayed (default: 10).
Hide Signals: Toggle buy/sell signal visibility for a cleaner chart.
Table Display: A fixed table in the bottom-right corner shows the blue dot count and action, with yellow (Hold) or green (Flip) backgrounds based on the count.
Why Use This Indicator?
The "Contrarian Period High & Low" indicator offers a unique blend of support/resistance visualization and contrarian signal generation, making it a versatile tool for identifying potential reversals. Its clear visual cues (lines and signals), blue dot tracker, and actionable table provide traders with an intuitive way to monitor market structure and manage trades. Whether you’re a beginner or an experienced trader, this indicator enhances your ability to spot key levels and time entries/exits effectively.
Tips for Users
Test the indicator thoroughly on your chosen market and timeframe to optimize settings (e.g., adjust barsPerPeriod for non-daily charts).
Use in conjunction with price action or other indicators for stronger trade setups.
Monitor the action table to decide whether to hold or flip positions based on blue dot counts.
Ensure your chart timeframe aligns with the selected period type (e.g., daily chart for Monthly periods).
Apply strict risk management to protect against false breakouts.
Happy trading with the Contrarian Period High & Low indicator! Share your feedback and strategies in the TradingView community!
枢轴点和水平
Rogue 4H ORRogue 4H OR – Opening Range
The Rogue 4H Daily OR is a powerful Opening Range tool designed to help traders identify key intraday levels and capitalize on failed breakout setups.
Key Features:
Custom Opening Range: Define your OR start and end times (default 4H) to suit any market – stocks, forex, or crypto.
Locked Levels: Once the OR session ends, the high and low are locked and projected across the trading day.
Fakeout Signals: Triangular buy/sell markers plot when price breaks out of the OR and then closes back inside, signaling potential reversal entries.
Daily Reset: Signals and ranges reset each trading day for clean analysis.
Session Cutoff: Optional cutoff time prevents late-day signals from cluttering your chart.
How to Use:
Adjust the OR start/end time to match your trading session (e.g., 09:30–13:30 for US stocks, 00:00–04:00 for crypto).
Watch for false breakouts → a close above the OR high that falls back inside signals a short, while a close below the OR low that reclaims the range signals a long.
Use the signals in confluence with trend, volume, or other confirmation tools for best results. **This is not financial advice.**
Designed for traders who thrive on intraday range dynamics and want a visual, session-based tool to spot high-probability setups.
**This is not financial advice**
Fibonacci Ret/Ext ProFibonacci Ret/Ext Pro - Advanced Fibonacci Retracement & Extension Tool
Transform your technical analysis with this professional-grade Fibonacci indicator that automatically detects market structure and draws precise retracement and extension levels.
Key Features:
🎯 Smart Market Structure Detection
Automatic pivot high/low identification with customizable periods
CHoCH (Change of Character) visualization
Real-time swing tracking with intelligent structure recognition
Bullish/bearish market structure highlighting
📊 Comprehensive Fibonacci Levels
Standard levels: 0, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
Extension levels: 127.2%, 161.8%
Negative retracement levels: -27.2%, -38.2%, -61.8%, -100%, -161.8%, -200%
Fully customizable level values and colors
⚙️ Advanced Customization
Individual level toggles - show only what you need
Custom colors for each Fibonacci level
Adjustable line widths and styles
Smart label positioning with price display
Golden Zone highlighting (customizable fill areas)
🔄 Dynamic Display Options
Real-time level extension to current bar
Swing line connections between pivots
Automatic level updates on structure changes
Clean chart display - old levels are automatically cleared
📍 Professional Labeling
Configurable label positions (left/right, above/below/on-line)
Multiple size options (tiny to large)
Price values displayed alongside Fibonacci ratios
Clean, professional appearance
How It Works:
The indicator automatically identifies significant swing highs and lows based on your chosen structure period. When market structure changes from bullish to bearish (or vice versa), it instantly calculates and displays Fibonacci levels from the most recent swing points. No manual drawing required - the algorithm handles everything automatically.
Perfect For:
Swing traders identifying key support/resistance levels
Day traders looking for precise entry/exit points
Position traders planning long-term entries
Anyone seeking professional Fibonacci analysis without manual plotting
Settings Presets:
Short (8 bars) - For intraday/scalping
Medium (21 bars) - For swing trading
Long (55 bars) - For position trading
Custom - Define your own structure period
This indicator provides clean, professional Fibonacci analysis that updates automatically as market structure evolves. No more manual Fibonacci drawing - let the algorithm identify the key levels for you.
Want to take your trading to the next level?
This Fibonacci tool is just one component of a complete trading system. For the full professional experience, check out my Optimus Indicator - a comprehensive full-stack trading system that includes:
Multi-timeframe trend analysis
Advanced buy/sell signals with filtering
Win/loss tracking and statistics
Stop loss management
Real-time alerts and notifications
And much more...
The Optimus Indicator provides everything a serious trader needs in one integrated platform. If you're ready for professional-grade trading tools, reach out privately for access to the complete system.
Disclaimer: This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose.
Z-Score Trend Channels [BackQuant]Z-Score Trend Channels
A self-contained price-statistics framework that turns a rolling z-score into price channels, bias states, and trade markers. Run either trend-following or mean-reversion from the same tool with clear, on-chart context.
What it is
A rolling statistical map that measures how far price is from its recent average in standard-deviation units (z-score).
Adaptive channels drawn in price space from fixed z thresholds, so the rails breathe with volatility.
A simple trend proxy from z-score momentum to separate trending from ranging conditions.
On-chart signals for pullback entries, stretched extremes, and practical exits.
Core idea (plain English math)
Rolling mean and volatility - Over a lookback you get the average price and its standard deviation.
Z-score - How many standard deviations the current price is above or below its average: z = (price - mean) / stdev. z near 0 means near average; positive is above; negative is below.
Noise control - An EMA smooths the raw z to reduce jitter and false flickers.
Channels back in price - Fixed z levels are converted back to price to form the upper, lower, and extreme rails.
Trend proxy - A smoothed change in z is used as a lightweight trend-strength line. Positive strength with positive z favors uptrend; negative strength with negative z favors downtrend.
What you see on the chart
Channels and fills - Mean, upper, lower, and optional extreme lines. The area mean->upper tints with the bearish color, mean->lower tints with the bullish color.
Background tint (optional) - Soft green, red, or neutral based on detected trend state.
Signals - Bullish Entry (triangle up) when z exits the oversold zone upward; Bearish Entry (triangle down) when z exits the overbought zone downward; Extreme markers (diamonds) at the extreme bands with a one-bar turn.
Table - Current z, trend state, trend strength, distance to bands, market state tag, and a quick volatility regime label.
Edge labels - MEAN, OB, and OS labels slightly projected forward with level values.
Inputs you will actually use
Z-Score Period - Lookback for mean and stdev. Larger = slower and steadier rails, smaller = more reactive.
Smoothing Period - EMA on z. Lower = earlier but choppier flips; higher = later but cleaner.
Price Source - Default hlc3. Choose close if you prefer session-close logic.
Upper and Lower Thresholds - Default around +2.0 and -2.0. Tighten for more signals, widen for fewer and stronger.
Extreme Upper and Lower - Deeper stretch guards, e.g., +/- 2.5.
Strength Period - EMA on z momentum. Sets how fast the trend proxy flips.
Trend Threshold - Minimum absolute z to accept a directional bias.
Visual toggles - Channels, signals, background tint, stats table, colors, and optional last-bar trend label.
How to use it: trend-following playbook
Read the state - Uptrend when z > Trend Threshold and trend strength > 0. Downtrend when z < -Trend Threshold and trend strength < 0. Neutral otherwise.
Entries - In an uptrend, prefer Bullish Entry signals that fire near the lower channel. In a downtrend, prefer Bearish Entry signals that fire near the upper channel.
Stops - Conservative: beyond the extreme channel on your side. Tighter: just outside the standard band that framed the signal.
Exits - For longs, exit or trim on a cross back through z = 0 or a clean tag of the upper threshold. For shorts, mirror with z = 0 up-cross or tag of the lower threshold. You can also reduce if trend strength flips against you.
Adds - In strong trends, additional signals near your side’s band can be add points. Avoid adding once z hovers near the opposite band for several bars.
How to use it: mean-reversion playbook
Find stretch - Standard reversions: Bullish Entry when z leaves the oversold zone upward; Bearish Entry when z leaves the overbought zone downward. Aggressive reversions: Extreme markers at extreme bands with a one-bar turn.
Entries - Take the signal as price exits the zone. Prefer setups where trend strength is near zero or tilting against the prior push.
Targets - First target is the mean line. A runner can aim for the opposite standard channel if momentum keeps flipping.
Stops - Outside the extreme band beyond your entry. If fading without extremes, place risk just beyond the opposite standard band.
Filters - Optional: skip counter-trend fades against a very strong trend state unless your risk is tight and predefined.
Reading the stats table
Current Z-Score - Magnitude and sign of displacement now.
Trend State - Uptrend, Downtrend, or Ranging.
Trend Strength - Smoothed z momentum. Higher absolute values imply stronger directional conviction.
Distance to Upper/Lower - Percent distance from price to each band, useful for sizing targets or judging room left.
Market State - Overbought, Oversold, Extreme OB, Extreme OS, or Normal.
Volatility Regime - High, Normal, or Low relative to recent distribution. Expect bands to widen in High and tighten in Low.
Parameter guidance (conceptual)
Z-Score Period - Choose longer for a structural mean, shorter for a reactive mean.
Smoothing Period - Lower for earlier but noisier reads; higher for slower but steadier reads.
Thresholds - Start around +/- 2.0. Tighten for scalping or quiet ranges. Widen for noisy or fast markets.
Trend Threshold and Strength Period - Raise to avoid weak, transient bias. Lower to capture earlier regime shifts.
Practical examples
Trend pullback long - State shows Uptrend. Price tests the lower channel; z dips near or below the lower threshold; a Bullish Entry prints. Stop just below extreme lower; first target mean; keep a runner if trend strength stays positive.
Mean-revert short - State is Ranging. z tags the extreme upper, an Extreme Bearish marker prints, then a Bearish Entry prints on the leave. Stop above extreme upper; target the mean; consider a runner toward the lower channel if strength turns negative.
Potential Questions you might have
Why z-score instead of fixed offsets - Because the bands adapt with volatility. When the tape gets quiet the rails tighten, when it runs hot the rails expand. Your entries stay normalized.
Do I need both modes - No. Many users run only trend pullbacks or only mean-reversions. The tool lets you toggle what you need and keep the chart readable.
Multi-timeframe workflow - A common approach is to set bias from a higher timeframe’s trend state and execute on a lower timeframe’s signals that align with it.
Summary
Z-Score Trend Channels gives you an adaptive mean, volatility-aware rails, a simple trend lens, and clear signals. Trade the trend by buying pullbacks in green and selling pullbacks in red, or fade stretched extremes back to the mean with defined risk. One framework, two strategies, consistent logic.
DSN-LocalPeakMarkerThis Indicator identifies local highs and lows and paints the related level.
The calculation is done on every new candle.
Opening Range TraderThis indicator, "Opening Range Trader," provides visual tools for defining and tracking two customizable intraday ranges plus today’s open, high, and low. It is designed for day traders to identify support, resistance, and breakout opportunities by automatically marking key price levels that often shape the day's momentum.
It offers:
Customizable start and end times for two independent time ranges.
Toggle options to display lines for the selected ranges and for today’s open, high, and low.
Automatic adaptation for New York market hours.
Real-time updates for session highs/lows and today’s evolving levels.
Traders use this to watch for breakouts above or below the opening range (ORB strategy), to fade false moves when price returns inside the range, or to participate in trending moves after volatility begins. A common setup is entering long on closes above the range high, or short on closes below the range low, with stops and targets based on the range’s width or the opposite boundary.
Risk management approaches include placing stop losses at the midpoint or at the opposite end of the range, and adjusting targets for measured moves. Volume confirmation can help filter valid breakouts, while adapting times for specific assets and trading styles maximizes flexibility.
The second range allows traders to repeat similar strategies later in the session for evolving momentum windows, making this indicator useful for multiple intraday setups.
BankNifty Radar @BhupiXBankNifty Radar
This indicator automatically detects and plots the most important support and resistance zones where markets often show reversal or breakout moves. These levels are based on key price reactions and are highly useful for identifying potential big moves in Index, Futures, and Options Charts.
🔹 Key Features
Auto-detection of major support & resistance levels
Works across Index, Futures & Options Charts
Highlights zones where strong reversal or breakout is likely
Helps traders plan entries, exits, and stop-loss levels
Ideal for intraday as well as positional trading
🔹 How to Use
Use support levels to identify buying opportunities during pullbacks
Use resistance levels to spot selling opportunities or possible breakouts
Combine with volume/momentum indicators for higher accuracy
Options traders can use these levels to select ATM/OTM strikes with better conviction
⚡ This tool is designed to give traders a clear view of where the market is likely to react, making it easier to catch big moves after reversals or breakouts.
This indicator tracks & Draw BankNifty Index & options important support and resistance levels and 10 options Strikes Live prices & Price Change and price change in % in one place.
This Indicator Work Only BankNifty Index ,Futures & Option Strike charts charts.
📌 Financial Disclaimer
This indicator is created for educational and informational purposes only. It does not constitute financial or investment advice. Past performance is not indicative of future results. Trading in stocks, futures, and options involves substantial risk of loss and may not be suitable for all investors. Please consult with your financial advisor before making any trading or investment decisions. Use this indicator at your own risk.
Inversion Fair Value Gap Signals [AlgoAlpha]🟠 OVERVIEW
This script is a custom signal tool called Inversion Fair Value Gap Signals (IFVG) , designed to detect, track, and visualize fair value gaps (FVGs) and their inversions directly on price charts. It identifies bullish and bearish imbalances, monitors when these zones are mitigated or rejected, and extends them until resolution or expiration. What makes this script original is the inclusion of inversion logic—when a gap is filled, the area flips into an opposite "inversion fair value gap," creating potential reversal or continuation zones that give traders additional context beyond classic FVG analysis.
🟠 CONCEPTS
The script builds on the Smart Money Concepts (SMC) principle of fair value gaps, where inefficiencies form when price moves too quickly in one direction. Detection requires a three-bar sequence: a strong up or down move that leaves untraded price between bar highs and lows. To refine reliability, the script adds an ATR-based size filter and prevents overlap between zones. Once created, gaps are tracked in arrays until mitigation (price closing back into the gap), expiration, or transformation into an inversion zone. Inversions act as polarity flips, where bullish gaps become bearish resistance and bearish gaps become bullish support. Lower-timeframe volume data is also displayed inside zones to highlight whether buying or selling pressure dominated during gap creation.
🟠 FEATURES
Automatic detection of bullish and bearish FVGs with ATR-based thresholding.
Inversion logic: mitigated gaps flip into opposite-colored IFVG zones.
Volume text overlay inside each zone showing up vs down volume.
Visual markers (△/▽ for FVG, ▲/▼ for IFVG) when price exits a zone without mitigation.
🟠 USAGE
Apply the indicator to any chart and enable/disable bullish or bearish FVG detection depending on your focus. Use the colored gap zones as areas of interest: bullish gaps suggest possible continuation to the upside until mitigated, while bearish gaps suggest continuation down. When a gap flips into an inversion zone, treat it as potential support/resistance—bullish IFVGs below price may act as demand, while bearish IFVGs above price may act as supply. Watch the embedded up/down volume data to gauge the strength of participants during gap formation. Use the △/▽ and ▲/▼ markers to spot when price rejects gaps or inversions without filling them, which can indicate strong trending momentum. For practical use, combine alerts with your trade plan to track when new gaps form, when old ones are resolved, or when key zones flip into inversions, helping you align entries, targets, or reversals with institutional order flow logic.
Session High Low TrackerTracks the Asia, London, NY AM and NY PM swing highs and lows. What's different here is when a level is broken, it can continue to draw a dotted line so the levels stay on the chart until
end of day. Also has shading options for each session.
Synthesis DeFi - Fractals - Daily - v7.0This is a free trial version of SynthesisDeFi.com fractals.
A simplified fractal analysis indicator that identifies key market structure points on daily timeframes. This tool automatically detects trend reversals and plots fractal highs and lows with connecting lines, helping traders visualize major support and resistance levels
Why use Synthesis DeFi fractals?
Harmonic Patterns
Wycoff
Elliot Waves
Dow Theory
Created by Oliver Fujimori | SynthesisDeFi.com
Perfect for swing traders and position traders focused on daily market structure analysis
1H Color-Change Open Levels (non-repainting)objective way of getting levels. better than anything else out there
Previous Day Close LinesWhat does the script do?
--Draws a line on the current session from previous day close.
--Leaves previous day close lines behind, notice the reaction around them.
1H Open Level System-Lomeli indicatorsThis level system is a objective way of getting precise levels! Used by some of the trading goats
SOFR Swap Spreads (2Y, 5Y, 10Y, 30Y)This indicator models real-time SOFR swap spreads across 2Y, 5Y, 10Y, and 30Y maturities by comparing SOFR Swapnote Futures (ICEEUR) to corresponding Treasury yields (TVC). It calculates the spread for each tenor and overlays a 90-day moving average as a fair value model, with ±1 standard deviation bands.
Anchored EMA/VWAP### Anchored EMA/VWAP Indicator
**Description:**
The **Anchored EMA/VWAP Indicator** is a powerful and versatile tool designed for traders seeking to analyze price trends and momentum from a user-defined anchor point in time. Built for TradingView using Pine Script v6, this indicator calculates and displays multiple **Exponential Moving Averages (EMAs)**, **Volume-Weighted Exponential Moving Averages (VWEMAs)**, and a **Volume-Weighted Average Price (VWAP)**, all anchored to a specific date and time chosen by the user. By anchoring these calculations, traders can focus on price action relative to significant market events, such as news releases, earnings reports, or key support/resistance levels.
The indicator supports multi-timeframe (MTF) analysis, allowing users to compute EMAs, VWEMAs, and VWAP on a higher or custom timeframe (e.g., 5-minute, 1-hour, daily) while overlaying the results on the current chart. It also includes customizable cross signals for EMA and VWEMA pairs, marked with distinct shapes (circles, diamonds, squares) to highlight potential trend changes or reversals. These features make the indicator ideal for trend-following, momentum trading, and identifying key price levels across various markets, including stocks, forex, cryptocurrencies, and commodities.
**Key Features:**
- **Anchored Calculations**: EMAs, VWEMAs, and VWAP start calculations from a user-specified anchor time, enabling analysis relative to significant market moments.
- **Multi-Timeframe Support**: Compute indicators on any timeframe (e.g., 60-minute, daily) and display them on the chart’s timeframe for flexible analysis.
- **Customizable EMAs and VWEMAs**: Four EMAs and four VWEMAs with adjustable lengths (default: 9, 21, 50, 100) and colors, with options to show or hide each.
- **Volume-Weighted Metrics**: VWAP and VWEMAs incorporate volume data, providing a more robust representation of market activity compared to standard EMAs.
- **Cross Signals**: Visual markers (circles, diamonds, squares) for crossovers between EMA and VWEMA pairs, with customizable visibility to highlight bullish (up) or bearish (down) signals.
- **User-Friendly Interface**: Organized input groups for General, EMA, VWEMA, VWAP, Arrow Settings, and Cross Visibility, with intuitive inline inputs for length and color customization.
- **Visual Clarity**: Overlaid on the price chart with distinct colors and line styles (dotted for EMAs, dashed for VWEMAs, solid for VWAP) to ensure easy interpretation.
**How to Use:**
1. **Set the Anchor Time**: Click a specific bar or enter a date/time (default: June 1, 2025) to start calculations from a significant market event.
2. **Select Timeframe**: Choose a timeframe (e.g., "5" for 5-minute, "D" for daily) to compute the indicators, allowing alignment with your trading strategy.
3. **Customize EMAs and VWEMAs**: Adjust lengths and colors for up to four EMAs and VWEMAs, and toggle their visibility to focus on relevant lines.
4. **Enable VWAP**: Display the anchored VWAP to identify volume-weighted price levels, useful as dynamic support/resistance.
5. **Monitor Cross Signals**: Enable cross visibility for specific EMA or VWEMA pairs to spot potential trend changes. Bullish crosses (e.g., shorter EMA crossing above longer EMA) are marked with green shapes below the bar, while bearish crosses are marked with red shapes above the bar.
6. **Interpret Signals**: Use EMA/VWEMA crossovers for trend confirmation, VWAP as a mean-reversion level, and volume-weighted VWEMAs for momentum analysis in high-volume markets.
**Use Cases:**
- **Trend Trading**: Identify trend direction using EMA and VWEMA crossovers, with shorter lengths (e.g., 9, 21) for faster signals and longer lengths (e.g., 50, 100) for trend confirmation.
- **Mean Reversion**: Use the anchored VWAP as a dynamic support/resistance level to trade pullbacks or breakouts.
- **Event-Based Analysis**: Anchor the indicator to significant events (e.g., earnings, economic data releases) to analyze price behavior post-event.
- **Multi-Timeframe Strategies**: Combine higher timeframe EMAs/VWAPs with lower timeframe price action for high-probability setups.
**Settings:**
- **Anchor Time**: Set the starting point for calculations (default: June 1, 2025).
- **Timeframe**: Choose the timeframe for calculations (default: 5-minute).
- **EMA/VWEMA Lengths**: Default lengths of 9, 21, 50, and 100 for both EMAs and VWEMAs, adjustable per user preference.
- **Colors**: Customizable colors with slight transparency for visual clarity.
- **Cross Visibility**: Toggle specific EMA and VWEMA cross signals (e.g., EMA1/EMA2, VWEMA1/VWEMA3) to reduce chart clutter.
- **Arrow Colors**: Green for bullish crosses, red for bearish crosses.
**Notes:**
- The indicator is overlaid on the price chart, ensuring seamless integration with price action analysis.
- VWEMAs and VWAP are volume-sensitive, making them particularly effective in markets with significant volume fluctuations.
- Ensure the anchor time is set to a valid historical or future bar to avoid calculation errors.
- Cross signals are conditional on non-NA values to prevent false positives during initialization.
**Author**: NEPOLIX
**Version**: 6 (Pine Script v6)
**Published**: For TradingView Community
This indicator is a must-have for traders looking to combine anchored, volume-weighted, and multi-timeframe analysis into a single, customizable tool. Whether you're a day trader, swing trader, or long-term investor, the Anchored EMA/VWAP Indicator provides actionable insights for informed trading decisions.
Z-AxisZ-Axis is a new and unique indicator that can visualize volume. This indicator is all the stuff I used to do manually on charts. It shows where individual big bags of money are. It flags statistically significant volume by making a ray, higher volume will be different colors. Same color scheme as fire - white hot.
Some people try to wonder what the "market maker" thinks or where did they buy. I personally think of the elusive "market maker" like a school of fish moving together. Squeeze the timeframe down to 1 minute, and you see all the fish that think the same way.
Purple means that candle is in the top 7 standard deviations, or 7x.
Red is 10x
Orange is 15x
Yellow is 20x
White is 25x, and triggers an AVWAP.
25 Standard deviations is 99% followed by "9" for 137 decimal spaces... and it still triggers. ye ha.
Once price has moved 2% against the opening of the candle, it's dimmed/liquidated. When this happens, that means that anyone who bought at that candle open at 50x leverage, they are now a ghost.
Price is often drawn to "liquidity wells", visualized here as the black space between pivots.
Whole number highlightsThis very simple indicator provides what should be a built-in TradingView feature: it highlights the whole number currency amounts (dollar, pound, euro, etc.) on your chart with a simple and unobtrusive dotted line. By default, a slightly thicker dotted line is used on whole number multiples of ten.
These are important to highlight because they often act as "psychological levels" in the marketplace, especially when they coincide with more significant levels of support or resistance. They can also help provide a sense of scale to the chart, which is useful when switching between various zoom levels.
It's open-source, so it can be easily combined into other indicators, which should especially be useful for those with limited plans who are allowed a limited number of indicators.
Disclaimer : Use at your own risk. This indicator and the strategy described herein are not in any way financial advice, nor does the author of this script make any claims about the effectiveness of this indicator or of any related strategy, which may depend highly on the discretion and skill of the trader executing it, among many other factors outside of the author's control. The author of this script accepts no liability, and is not responsible for any trading decisions that you may or may not make as a result of this indicator. You should expect to lose money if using this indicator.
Market Sessions Table, H/L/POCHello Everyone,
This is my first effort and first script for the community. This indicator has two major parts
Table with Pre-Market Session Time, Regular Market Session Time and Commodity Market Session
High, Low and POC (Middle) of 4 Hour, Previous 1 Day and Last Week
This will mark the following:
High, Low and POC of 4 Hours Candle with Lines
High, Low and POC of previous day Candle with Lines
High, Low and POC of previous week Candle with Lines
User has option to either disable any or all the Lines.
User has option to change the color, size and line type (flat or dotted) on lines.
User also has an option to see the High, Low and POC in a separate table as well.
Table with Pre-Market Session Time, Regular Market Session Time and Commodity Market Session
As the name suggest this is a table which shows the Pre-Market Session Time, Regular Market Session Time and Commodity Market Session of US, UK, Tokyo and Indian Exchanges.
User has an ability to enable or disable any Exchange or session.
User can also enable or disable highlighting a particular market session in the chart background.
Additionally user can choose to display the different market session is there own local time zone. Since I am from India I choose to display the open and close of market session as per India standard time.
Guys please suggest any improvement or anything additional you wanted on the same indicator.
3CRGANG - SUPPLY/DEMAND ZONESOverview
The "3CRGANG - SUPPLY/DEMAND ZONES" indicator is a sophisticated tool designed to identify, classify, and visualize dynamic supply (resistance) and demand (support) zones on your TradingView charts. It goes beyond basic level plotting by incorporating a state-based system that tracks how zones evolve based on price interactions, helping traders anticipate potential reversals, continuations, or breakdowns at key levels. Zones are categorized into states like Untested, Verified, Weak, Flipped, and Broken, providing contextual insights into their strength and reliability. This indicator is particularly useful for swing traders, scalpers, and position traders who rely on price action around institutional levels, as it filters noise and highlights actionable zones with customizable alerts and visual aids.
Built on Pine Script v6, it overlays directly on your chart with semi-transparent boxes for zones, optional labels for quick reference, and alert triggers for zone tests. The invite-only access ensures users benefit from its proprietary enhancements, making it a premium alternative to generic zone indicators.
How It's Built: Core Concepts and Calculations
At its foundation, the indicator detects potential supply and demand zones using a fractal-based pivot detection method, which identifies local highs and lows by comparing a central bar's price to surrounding bars within a validation window. This window is dynamically adjusted via a "Fractal Sensitivity Factor" (default 6.0), which scales the lookback period relative to your chart's timeframe—ensuring zones adapt to market volatility without over- or under-fitting. For example, on a 15-minute chart, this might equate to checking 18-24 bars around a candidate pivot for confirmation.
Once a fractal pivot is confirmed:
Zone Boundaries: The zone is constructed around the pivot high/low, extended by a fraction of the Average True Range (ATR, period 7) using the "Zone Boundary ATR Multiplier" (default 0.3). This creates a band that accounts for typical price fluctuations, preventing overly tight or loose zones. A subtle "Zone Fuzz Factor" (default 0.15) adds a minor buffer to the ATR-derived extension, allowing for fine-tuning in choppy markets without altering the core range.
Merging Overlaps: To avoid clutter, overlapping zones of the same type (or flipped counterparts) are intelligently merged through up to 2-3 passes (configurable via "Max Merge Passes"). This consolidation increases the "test count" for the resulting zone, reflecting cumulative price rejections and enhancing its perceived strength.
Zone Testing and Classification: Price interactions with zones are evaluated using one of two methods:
Dynamic - Bars: Counts tests when price wicks into the zone from outside or closes out after entering, with a minimum gap (0-2 bars) to prevent rapid-fire counts in ranging markets.
Mechanical - Pivots: Enhances the dynamic method by requiring a mechanical pivot (e.g., via TradingView's built-in pivothigh/pivotlow) within the zone during the test, adding a layer of confirmation for more conservative signals. Tests are tallied with a "Weak Zone Test Threshold" (default 1), classifying zones as:
Untested: No interactions yet—fresh levels with high potential.
Weak: 1 or fewer meaningful tests—early signals that may fade.
Verified: Multiple tests (above threshold)—strong, repeatedly respected levels.
Flipped: A broken zone that reverses role (e.g., resistance becomes support), based on a decisive close beyond the boundary.
Broken: Permanently invalidated by a strong breakout, optionally displayed for historical context.
Time and Session Integration: Zones are timestamped and limited to a "Back Limit" (default 500 bars) for performance. It incorporates a custom holiday library (importing from RotemB's LIBRARY_3CRGANG_Holidays_Library) to detect closures across major exchanges (NYSE, LSE, FSE, SSX, TSE, HKSE), adjusting session times for half-days and full holidays. Alerts are filtered by user-selected sessions, weekends, and a "Do Not Disturb" (DND) mode with timezone-aware scheduling (e.g., UTC+3 Jerusalem default, selectable from 90+ global options).
This combination of fractal detection, ATR-based sizing, multi-pass merging, and test-driven state evolution draws from classic supply/demand principles but refines them with proprietary logic to handle real-world market dynamics, such as volatility clustering and institutional session biases.
Why It’s Useful
Supply and demand zones are foundational to price action trading, representing areas where large orders accumulate and cause reversals or pauses. This indicator streamlines the process by automating zone discovery and maintenance, saving time compared to manual drawing. Its state system adds predictive value: Verified zones often signal high-probability bounces, while Flipped ones highlight role reversals for trend continuation trades. Alerts notify you of tests in real-time, ideal for multi-chart monitoring, and session/holiday filters reduce false signals during low-liquidity periods (e.g., no alerts on Christmas for NYSE-linked assets).
Traders benefit from reduced emotional bias—zones "age out" beyond the back limit, focusing on recent action—and customizable visuals prevent chart overload. In volatile markets like forex or crypto, the ATR-adjusted boundaries adapt better than fixed-percentage methods, while the test count helps gauge exhaustion (e.g., over-tested Weak zones may signal impending breaks). Overall, it enhances decision-making by providing not just levels, but their evolving context.
How to Use It
Add to Chart:
Search for "3CRGANG - SUPPLY/DEMAND ZONES" in TradingView's invite-only scripts (access required). Apply to any timeframe from 1-minute to yearly, though it shines on intraday (15M-4H) for active trading.
Configure Inputs:
Test Mode: Choose "Dynamic - Bars" for sensitive, wick-focused testing or "Mechanical - Pivots" for stricter, pivot-confirmed interactions. Adjust "Minimum Test Gap" (0-2) to filter rapid tests and "Weak Zone Test Threshold" (1-3) to define strength tiers.
Pivot Filters: Tune "Fractal Sensitivity Factor" (5-14) for fewer/more zones—higher values for smoother trends, lower for chop.
Zone Width: Set "Zone Boundary ATR Multiplier" (0-1) for tighter/wider bands; use "Zone Fuzz Factor" (0-1) sparingly for boundary tweaks.
Visual: Select zone style (Solid/Dashed/Dotted), linewidth (1-3), and horizontal extension (None/Right/Both). Toggle visibility per state (e.g., hide Broken for cleaner charts).
Labels: Enable "Show Labels" for state/type info; add "Show Zone Size" (in pips/$) and "Show Test Count" for details. Adjust shift for positioning.
Alerts: Enable per state (Untested/Weak/Verified/Flipped). Filter by sessions (e.g., enable NYSE for US equities), holidays, weekends, and DND (set time ranges in your timezone to mute notifications).
Colors: Customize per state/type for intuitive visuals (e.g., red shades for resistance).
Trading Application:
Entries: Buy at Verified Demand (green) tests, sell at Verified Supply (red). Use Flipped zones for breakout confirmation.
Exits/Risk: Place stops beyond zone boundaries; trail profits on Weak/Flipped signals indicating fading strength.
Alerts Setup: In TradingView's alert dialog, select this indicator and configure for "alert() function calls only" to receive zone-test notifications.
Multi-Timeframe: View higher-TF zones on lower charts for confluence (e.g., daily zones on 1H).
Best Practices: Combine with volume or oscillators; backtest on your asset to optimize sensitivity.
Chart Example: XAG/USD (m5 timeframe)
Chart Notes
The chart displays zones on XAGUSD (M5 timeframe), presenting a clear price action structure with three distinct zones. A green Verified Support zone, marked with a translucent green box, indicates a robust demand level that has been tested multiple times and held firm. A blue Weak Support zone, outlined with a lighter blue box, reflects a less-tested support level with fewer rejections, suggesting lower reliability. A gold Flipped Resistance zone, highlighted with a golden box, initially acted as a resistance with rejections before breaking through and retesting as a support zone, showcasing its transition. Labels appear to the right of each zone, displaying details such as "VERIFIED SUPPORT (6.72 points, T=3)" for the Verified zone, "WEAK SUPPORT (6.9 points, T=1)" for the Weak zone, and "FLIPPED SUPPORT (3.85 points, T=10)" for the Flipped zone, with sizes in dollars (or pips if under $1) and test counts included. Zones extend horizontally to the right based on the user-defined shift setting, with customizable dashed or dotted borders for enhanced visual clarity.
Requires 500 bars of history for optimal performance. Alerts are muted during holidays (e.g., Lunar New Year) or Do Not Disturb periods.
Settings
Test Mode: Choose method (Dynamic - Bars or Mechanical - Pivots), set minimum test gap (0-2 bars), and weak zone threshold (1-3 tests).
General: Adjust back limit (250-1000 bars).
Pivot Filters: Set fractal sensitivity factor (5-14) and max merge passes (1-3).
Zone Width: Define ATR multiplier (0-1) and fuzz factor (0-1).
Visual: Select zone style (Solid, Dashed, Dotted), line width (1-3), shift end right (1-50 bars), and extension (None, Right, Both).
Visibility: Toggle display for each state (Untested, Verified, Weak, Flipped, Broken).
Labels: Enable labels, set shift (1-50 bars), size, and show size/test counts.
Alerts: Enable alerts by state (Untested, Weak, Verified, Flipped).
DND Settings: Set timezone, Do Not Disturb hours, and weekend alerts.
Sessions Alerts: Filter alerts by exchange (NYSE, LSE, etc.) and holiday settings.
Colors: Assign colors to each zone state and type.
Why It's Unique and Worth Invite-Only Access
While supply/demand indicators exist, this one stands out through its integrated ecosystem: adaptive fractal pivots with sensitivity scaling, multi-pass overlap merging that preserves test history, and a nuanced state machine that evolves zones based on configurable test mechanics—far beyond simple high/low plotting or basic breakouts. The proprietary blending of ATR fuzzing, retroactive test validation during zone creation, and global exchange holiday/session filtering (with half-day adjustments) minimizes irrelevant alerts, a common pain point in public scripts. It doesn't rely solely on built-ins or educational code; instead, it enhances them with custom logic for zone lifecycle management, making it resilient across assets and timeframes.
This originality justifies its closed-source nature—revealing the full interplay of fractal windowing, merge algorithms, and alert conditioning could dilute its edge. As an invite-only script, it provides clear value through premium features like timezone-aware DND, comprehensive holiday integration (e.g., Lunar New Year for HKSE), and state-aware alerts, which aren't replicated in free alternatives. Traders seeking an efficient, low-noise tool for institutional-level analysis will find it worth the access, as it delivers actionable insights that generic indicators overlook.
Disclaimer
This indicator assists in zone identification but does not guarantee success. Trading involves risk, and past performance is not indicative of future results. Always use proper risk management.
Sessions - Full HeightEN : Full-height background sessions using bgcolor(). Asia, London, and New York sessions with configurable time windows, colors, and timezone. Open-source for learning and reuse.
RU : Индикатор заливает фон сессий на всю высоту графика (Азия, Лондон, Нью-Йорк). Настраиваемые окна времени и цвета.
Pivot SuperTrend Auto-Opt + WFO + MultiObj + Filter/Diag# Pivot SuperTrend (NetProfit Auto-Optimization) — Summary & Quick Start
## What this strategy is
A self-optimizing **SuperTrend-style** strategy for TradingView Pine v6 that:
- builds a **walk-forward, net-profit optimizer** directly on the chart,
- adapts its trailing stop/entry logic to **market regime** and **volatility**, and
- exposes a **filter/gate suite** so you can dial aggressiveness vs. noise without breaking auto-optimization.
Default tuning: **Bybit ETHUSDT Perpetual, 30m** (works elsewhere once tuned).
---
## Core logic (high level)
### 1) SuperTrend backbone (with Center/Pivots)
- **Center line**: smoothed running pivot from `ta.pivothigh/low`.
- **SuperTrend bands**: `Center ± Factor × ATR(length)` with a carry rule to reduce whipsaws.
- **Trend state**: `+1` above band, `-1` below band.
- **Flip**: trend change; can require **1-bar confirmation**.
### 2) Adaptive smoothing (AMA of ST)
- Performance-weighted **alpha** smooths the trailing stop.
- Alpha clamped to `alpha_min…alpha_max` using optimizer’s fitness.
### 3) On-chart net-profit optimizer (walk-forward)
- Grid of parameters:
- ATR Length `len` (min…max…step)
- ATR Factor `F` (min…max…step)
- Performance memory `A` (min…max…step)
- Each grid point is paper-traded **each bar** including fees/slippage → **fitness = net profit EMA**.
- Every `opt_interval` bars the **best** candidate is activated (with hysteresis).
- Optional: apply only **ATR margin** gate inside the optimizer for speed/stability.
### 4) Regime detection & anti-chop
- Custom **ADX** + **Center slope** to classify **trend** vs **range**.
- Adaptive thresholds in range regime (distance-to-center, ST-near-center block, etc.).
- Optional **ATR fast/slow ratio** gate.
- Other tools: **min bars since flip**, **hold bars after flip**, **distance to center**, **ST near center** block.
### 5) Entry logic
- **Immediate on flip** or **1-bar confirm**.
- Must pass the **Filter Suite** (toggleable gates):
- ATR-margin cross (hard cross or wick reject)
- Trend Regime (require trend)
- Hold-after-flip
- Distance-to-center
- ST-near-center block
- Volatility ratio (ATR fast/slow)
- Min bars since flip (flip cooldown)
- Daily trade cap & post-loss cooldown
- Trading session window
### 6) Starter preset (failsafe)
- Lenient defaults so trades start quickly to build warm-up data; then you can tighten gates.
### 7) Position management
- Strategy entries for “LONG” / “SHORT”.
- Optional **50% take-profit on Center** (“usecenter”).
- **Only-Long** mode supported with separate exit logic if regime turns bearish.
### 8) Risk controls
- **Max trades per day**, **cooldown bars after loss**, **session window**.
- Optional **bar coloring**, **trend shading**, **signal markers**.
- **Diagnostics** labels show which gate blocked an entry (letters `M T H D N V F C CD S`).
### 9) Alerts & Bybit webhook
- Use alert condition: **Any alert() function call**.
- Fires `"LONG_CONFIRMED"` / `"SHORT_CONFIRMED"`.
---
## Inputs overview
- **Pivot / Center**: pivot length; show pivots & center.
- **Visual**: line widths, bar colors, shading; warm-up bars.
- **Execution / Costs**: fee (bps), slippage (bps), “Only long”, 50% center-close.
- **Auto-Optimize**: grids for `len`, `F`, `A`, interval, memory, acceptance floor.
- **Signal Controls**: 1-bar confirm, ATR margin, min bars since flip.
- **Anti-Chop**: distance to center, hold bars, slope len, ST-near-center ATR, ATR slow len & ratio.
- **Trend Regime**: ADX len/threshold, center slope threshold, “require trend”.
- **Risk Gates**: max trades/day, loss cooldown bars.
- **Session**: optional 07:00–22:00 UTC filter.
- **Diagnostics**: show gate diagnostics labels.
- **Filter Suite**: toggle each gate; optional “apply margin to optimizer”.
- **Starter preset** selector.
---
## Plots & UI
- **Adaptive SuperTrend** (active candidate),
- **PP Center** (optional),
- **Trend shading** (price vs ST zone),
- **Entry/Exit markers** (triangles),
- **Diagnostics** text labels (optional).
---
## Webhook notes (Bybit v5)
If you use a direct Bybit webhook:
- **Symbol**: TradingView may emit `ETHUSDT.P`. Bybit wants `ETHUSDT`. Your relay should **strip `.P`**.
- **Side**: TV provides `buy/sell`. Bybit expects `Buy/Sell` → normalize casing in the relay.
- **Reduce-only**: mark exits and partial closes reduce-only to avoid reversals in Hedge mode.
- **Market orders**: pass `"orderType":"Market"`; ignore price or set to `"marketPrice"` if your relay requires it.
**Entry (Market)**
```json
{
"exchange": "BYBIT",
"category": "linear",
"symbol": "{{ticker}}",
"side": "{{strategy.order.action}}",
"orderType": "Market",
"qty": "{{strategy.order.contracts}}",
"reduceOnly": false,
"timestamp": "{{timenow}}",
"clientOrderId": "pst_{{strategy.order.id}}_{{timenow}}"
}
AI - Gaussian Channel Strategy AI – Gaussian Channel Strategy is a long-only swing trading strategy designed for Bitcoin and other assets on daily charts. It combines an adaptive Gaussian Channel with Supertrend and Stochastic RSI filters to identify potential bullish breakouts or pullback entries. The channel defines trend direction and volatility, while the Stochastic RSI provides momentum confirmation. Positions are opened only when the price closes above the channel’s upper band under favorable momentum conditions, and are closed when the price crosses back below the band.
This script is intended for educational and research purposes. Parameters such as poles, period length, ATR factor, and RSI settings can be adjusted to fit different markets and timeframes.
Disclaimer: This script does not guarantee profits and should not be considered financial advice. Past performance is not indicative of future results. Trading involves risk, and you are solely responsible for your own decisions and outcomes.






















