Sector Analysis BhupeshSector Analysis on a Daily, Weekly and Monthly Basis. We can check and track sectors through this.
Analisi trend
T-Virus Sentiment [hapharmonic]🧬 T-Virus Sentiment: Visualize the Market's DNA
Remember the iconic T-Virus vial from the first Resident Evil? That powerful, swirling helix of potential has always fascinated me. It sparked an idea: what if we could visualize the market's underlying health in a similar way? What if we could capture the "genetic code" of market sentiment and contain it within a dynamic, 3D indicator? This project is the result of that idea, brought to life with Pine Script.
The indicator's main goal is to measure the strength and direction of market sentiment by analyzing the "genetic code" of price action through a variety of trusted indicators. The result is displayed as a liquid level within a DNA helix, a bubble density representing buying pressure, and a T-Virus mascot that reflects the overall mood.
🧐 Core Concept: How It Works
The primary output of the indicator is the "Active %" gauge you see on the right side of the vial. This percentage represents the overall sentiment score, calculated as an average from 7 different technical analysis tools. Each tool is analyzed on every bar and assigned a score from 1 (strong bearish pressure) to 5 (strong bullish potential).
In this indicator, we re-imagine market dynamics through the lens of a viral outbreak. A strong bear market is like a virus taking hold, pulling all technical signals down into a state of weakness. Conversely, a powerful bull market is like an antiviral serum ; positive signals rise and spread toward the top of the vial, indicating that the system is being injected with strength.
This is not just another line on a chart. It's a comprehensive sentiment dashboard designed to give an immediate, at-a-glance understanding of the confluence between 7 classic technical indicators. The incredible 3D model of the vial itself was inspired by a design concept found here .
⚛️ The 4 Core Elements of T-Virus Sentiment
These four elements work in harmony to give a complete, multi-faceted picture of market sentiment. Each component tells a different part of the story.
The Virus Mascot: An instant emotional cue. This character provides the quickest possible read on the overall market mood, combining sentiment with volume pressure.
The Antiviral Serum Level: The main quantitative output. This is the liquid level in the DNA helix and the percentage gauge on the right, representing the average sentiment score from all 7 indicators.
Buy Pressure & Bubble Density: This visualizes volume flow. The density of bubbles represents the intensity of accumulation (buying) versus distribution (selling). It's the "power" behind the move.
The Signal Distribution: This shows the confluence (or dispersion) of sentiment. Are all signals bullish and clustered at the top, or are they scattered, indicating a conflicted market? The position of the indicator labels is crucial, as each is assigned to one of five distinct zones:
Base Bottom: The market is at its weakest. Signals here suggest strong bearish control and distribution.
Lower Zone: The market is still bearish, but signals may be showing early signs of accumulation or bottoming.
Neutral Core (Center): A state of balance or sideways consolidation. The market is waiting for a new direction.
Upper Zone: Bullish momentum is becoming clear. Signals are strengthening and showing bullish control.
Top Cap: The market is "heating up" with strong bullish sentiment, potentially nearing overbought conditions.
🐂🐻 The Virus Mascot: The At-a-Glance Indicator
This character acts as a shortcut to confirm market health. It combines the sentiment score with volume, preventing false confidence in a low-volume rally.
Its state is determined by a dual-check: the overall "Antiviral Serum Level" and the "Buy Pressure" must both be above 50%.
Green & Smiling: The 'all clear' signal. This means that not only is the overall technical sentiment bullish, but it's also being supported by real buying pressure. This is a sign of a healthy bull market.
Red & Angry: A warning sign. This appears if either the sentiment is weak, or a bullish sentiment is not being confirmed by buying volume. The latter could indicate a potential "bull trap" or an exhaustive move.
This mascot can be disabled from the settings page under "Virus Mascot Styling" if a cleaner look is preferred.
🫧 Bubble Density: Gauging Buy vs. Sell Pressure
The bubbles visualize the battle between buyers and sellers. There are two modes to control how this is calculated:
Mode 1: Visible Range (The 'Big Picture' View)
This default mode is best for getting a broad, contextual understanding of the current session. It dynamically analyzes the volume of every single candlestick currently visible on the screen to calculate the buy/sell pressure ratio. It answers the question: "Over the entire period I'm looking at, who is in control?" As you zoom in or out, the calculation adapts.
Mode 2: Custom Lookback (The 'Precision' View)
This mode is for traders who need to analyze short-term pressure. You can define a fixed number of recent bars to analyze, which is perfect for scalping or understanding the volume dynamics leading into a key level. It answers the question: "What is happening right now ?" In the example above, a lookback of 2 focuses only on the most recent action, clearly showing intense, immediate selling pressure (few bubbles) and a corresponding drop in the sentiment score to 29%.
ℹ️ Interactive Tooltips: Dive Deeper
We believe in transparency, not 'black box' indicators. This feature transforms the indicator from a visual aid into an active learning tool.
Simply hover the mouse over any indicator label (like EMA, OBV, etc.) to get a detailed tooltip. It will explain the specific data points and thresholds that signal met to be placed in its current zone. This helps build trust in the signals and allows users to fine-tune the indicator settings to better match their own trading style.
🎯 The Scoring Logic Breakdown
The "Antiviral Serum Level" gauge is the average score from 7 technical analysis tools. Each is graded on a 5-point scale (1=Strong Bearish to 5=Strong Bullish). Here’s a detailed, transparent look at how each "gene" is evaluated:
Relative Strength Index (RSI)
Measures momentum and overbought/oversold conditions.
Group 1 (Strong Bearish): RSI > 80 (Extreme Overbought)
Group 2 (Bearish): 70 < RSI ≤ 80 (Overbought)
Group 3 (Neutral): 30 ≤ RSI ≤ 70
Group 4 (Bullish): 20 ≤ RSI < 30 (Oversold)
Group 5 (Strong Bullish): RSI < 20 (Extreme Oversold)
Exponential Moving Averages (EMA)
Evaluates the trend's strength and structure based on the alignment of multiple EMAs (9, 21, 50, 100, 200, 250).
Group 1 (Strong Bearish): A perfect bearish sequence (9 < 21 < 50 < ...)
Group 2 (Bearish Transition): Early signs of a potential reversal (e.g., 9 > 21 but still below 50)
Group 3 (Neutral / Mixed): MAs are intertwined or showing a partial bullish sequence.
Group 4 (Bullish): A strong bullish sequence is forming (e.g., 9 > 21 > 50 > 100)
Group 5 (Strong Bullish): A perfect bullish sequence (9 > 21 > 50 > 100 > 200 > 250)
Moving Average Convergence Divergence (MACD)
Analyzes the relationship between two moving averages to gauge momentum.
Group 1 (Strong Bearish): MACD & Histogram are negative and momentum is falling.
Group 2 (Weakening Bearish): MACD is negative but the histogram is rising or positive.
Group 3 (Neutral / Crossover): A crossover event is occurring near the zero line.
Group 4 (Bullish): MACD & Histogram are positive.
Group 5 (Strong Bullish): MACD & Histogram are positive, rising strongly, and accelerating.
Average Directional Index (ADX)
Measures trend strength, not direction. The score is based on both ADX value and the dominance of DI+ vs DI-.
Group 1 (Bearish / No Trend): ADX < 20 and DI- is dominant.
Group 2 (Developing Bearish Trend): 20 ≤ ADX < 25 and DI- is dominant.
Group 3 (Neutral / Indecision): Trend is weak or DI+ and DI- are nearly equal.
Group 4 (Developing Bullish Trend): 25 ≤ ADX ≤ 40 and DI+ is dominant.
Group 5 (Strong Bullish Trend): ADX > 40 and DI+ is dominant.
Ichimoku Cloud (IKH)
A comprehensive indicator that defines support/resistance, momentum, and trend direction.
Group 1 (Strong Bearish): Price is below the Kumo, Tenkan < Kijun, and Chikou is below price.
Group 2 (Bearish): Price is inside or below the Kumo, with mixed secondary signals.
Group 3 (Neutral / Ranging): Price is inside the Kumo, often with a Tenkan/Kijun cross.
Group 4 (Bullish): Price is above the Kumo with strong primary signals.
Group 5 (Strong Bullish): All signals are aligned bullishly: price above Kumo, bullish Tenkan/Kijun cross, bullish future Kumo, and Chikou above price.
Bollinger Bands (BB)
Measures volatility and relative price levels.
Group 1 (Strong Bearish): Price is below the lower band.
Group 2 (Bearish Territory): Price is between the lower band and the basis line.
Group 3 (Neutral): Price is hovering around the basis line.
Group 4 (Bullish Territory): Price is between the basis line and the upper band.
Group 5 (Strong Bullish): Price is above the upper band.
On-Balance Volume (OBV)
Uses volume flow to predict price changes. The score is based on OBV's trend and its position relative to its moving average.
Group 1 (Strong Bearish): OBV is below its MA and falling.
Group 2 (Weakening Bearish): OBV is below its MA but showing signs of rising.
Group 3 (Neutral): OBV is very close to its MA.
Group 4 (Bullish): OBV is above its MA and rising.
Group 5 (Strong Bullish): OBV is above its MA, rising strongly, and showing signs of a volume spike.
🧭 How to Use the T-Virus Sentiment Indicator
IMPORTANT: This indicator is a sentiment dashboard , not a direct buy/sell signal generator. Its strength lies in showing confluence and providing a quick, holistic view of the market's technical health.
Confirmation Tool: Use the "Active %" gauge to confirm a trade setup from your primary strategy. For example, if you see a bullish chart pattern, a high and rising sentiment score can add confidence to your trade.
Momentum & Trend Gauge: A consistently high score (e.g., > 75%) suggests strong, established bullish momentum. A consistently low score (< 25%) suggests strong bearish control. A score hovering around 50% often indicates a ranging or indecisive market.
Divergence & Warning System: Pay attention to divergences. If the price is making new highs but the sentiment score is failing to follow or is actively decreasing, it could be an early warning sign that the underlying momentum is weakening.
⚙️ Settings & Customization
The indicator is highly customizable to fit any trading style.
Position & Anchor: Control where the vial appears on the chart.
Styling (Vial, Helix, etc.): Nearly every visual element can be color-customized.
Signals: This is where the real power is. All underlying indicator parameters (RSI length, MACD settings, etc.) can be fine-tuned to match a personal strategy. The text labels can also be disabled if the chart feels cluttered.
Enjoy visualizing the market's DNA with the T-Virus Sentiment indicator
ICT HTF Candles + CISD + FVG, by AlephxxiiICT HTF Candles + CISD + FVG
A practical, friendly overlay for ICT-style trading
This indicator gives you three things at once—right on your chart:
HTF Candles Panel (context):
Compact candles from higher timeframes (e.g., 5m, 15m, 1H, 4H, 1D, 1W) appear to the right of price so you always see the higher-timeframe story without switching charts. It includes labels, remaining time for the current HTF candle, and optional open/high/low/close reference lines.
CISD Levels (bias flips):
Automatically plots +CISD and -CISD lines. When price closes above +CISD, the indicator considers bullish delivery. When price closes below -CISD, it considers bearish delivery. An on-chart table (optional) shows the current bias at a glance.
FVG (Fair Value Gaps):
Highlights inefficiency zones (gaps) on your current timeframe and/or a selected higher timeframe. You can choose to mark a gap “filled” when price hits the midpoint (optional).
Quick start (2 minutes)
Add to chart and keep your normal trading timeframe (e.g., 1–5m).
In settings → HTF 1..6, pick the higher timeframes you want to see (e.g., 5m, 15m, 1H, 4H, 1D, 1W).
Turn on FVG (current, HTF or both).
Watch +CISD / -CISD lines and the Current State table.
Close above +CISD → Bullish bias
Close below -CISD → Bearish bias
Trade with the bias and use FVGs as areas to refine entries or targets.
How to read it (the simple way)
Bias (CISD):
Bullish once price closes above the active +CISD level.
Bearish once price closes below the active -CISD level.
The small table (if enabled) says Bullish or Bearish right now.
HTF panel:
Shows higher-timeframe candles next to your current chart.
Labels show the timeframe (e.g., 1H) and a countdown for the current candle.
Optional traces draw HTF Open/High/Low/Close levels—great “magnets” for price.
FVGs:
Shaded boxes = potential inefficiency areas.
If Midpoint Fill is on, a touch of the midline counts as filled.
You can display current TF, HTF, or both.
Suggested workflow (popular ICT-style intraday)
Define bias with CISD
Only look for longs if Bullish, shorts if Bearish.
Check HTF context
Are you trading into a large HTF FVG or key HTF O/H/L/C level? That can be a target or a headwind.
Refine entries with FVGs
On your entry TF (1–5m), use fresh FVGs in the direction of the bias. Avoid fading straight into big HTF imbalances.
Key settings you’ll actually use
HTF 1..6: toggle each strip, select timeframe, and how many candles to show.
Style & layout: adjust offset, spacing, and width of the right-side panels.
Labels & timers: show/hide HTF name and remaining time; place labels at Top/Bottom/Both.
Custom daily open (NY): set the 1D candle to start at Midnight, 08:30, or 09:30 (America/New_York).
Trace lines: optional HTF O/H/L/C lines (style, width, anchor TF).
FVG module (extra): choose Current TF / HTF / Both, enable Midpoint Fill, auto-delete on fill, and show timeframe labels.
CISD lines: customize color, style (solid/dotted/dashed), thickness, and forward extension.
Table: enable/disable and choose its position.
Alerts
When a CISD completes, the script fires an alert (e.g., “Bullish CISD Formed” or “Bearish CISD Formed”).
Tip: Set your TradingView alert once on the indicator, then choose the alert message you want to receive.
Notes & limitations (read me)
“VI” label: The “Volume Imbalance” option marks price imbalances (body non-overlap). It does not read volume data.
Timezone: Daily logic and timers use America/New_York, which aligns with US indices/equities and common ICT practice.
Performance: This tool draws many boxes/lines/labels. If your chart feels heavy, reduce the number of HTFs or candles shown, or narrow panel width.
Repainting: HTF panels are designed to avoid future leakage; FVG logic follows standard 3-bar checks. As usual, wait for candle closes for confirmations.
Level cleanup: If Keep old CISD levels is OFF (default), the script keeps only the current active CISD to reduce clutter.
Quarterly Theory —Q1,Q2,Q3,Q4The Quarterly Theory Indicator is a trading tool designed to visualize the natural time-based cycles of the market, based on the principles of Quarterly Theory, popularized by the Inner Circle Trader (ICT). The indicator divides market sessions into four equal “quarters” to help traders identify potential accumulation, manipulation, and distribution phases (AMD model) and improve the timing of entries and exits.
Key Features:
Quarter Divisions (Q1–Q4):
Each market session (e.g., NY AM, London, Asia) is divided into four quarters.
Vertical lines mark the beginning of each quarter, making it easy to track session structure.
Optional labels show Q1, Q2, Q3, and Q4 directly on the chart.
True Open (Q2 Open):
The True Open is the opening price of Q2, considered a key reference point in Quarterly Theory.
A horizontal red line is drawn at the True Open price with a label showing the exact value.
This line helps traders filter bullish and bearish setups:
Buy below the True Open if the market is bullish.
Sell above the True Open if the market is bearish.
Session Awareness:
The indicator can automatically detect market sessions and reset lines and labels for each new session.
Ensures that only the current session’s True Open and quarter lines are displayed, reducing chart clutter.
Timeframe Flexibility:
Works on any chart timeframe (1-minute to daily).
Maintains accurate alignment of quarters and True Open regardless of the timeframe used.
Purpose of Quarterly Theory:
Quarterly Theory is based on the idea that market behavior is fractal and time-driven. By dividing sessions into four quarters, traders can anticipate potential market phases:
Q1: Initial price discovery and setup for the session.
Q2: Accumulation or manipulation phase, where the True Open is established.
Q3: Manipulation or Judas Swing phase designed to trap traders.
Q4: Distribution or trend continuation/reversal.
By visualizing these quarters and the True Open, traders can reduce ambiguity, identify high-probability setups, and improve their timing in line with the ICT AMD (Accumulation, Manipulation, Distribution) framework.
Fractals + FVG [Combined]Звісно, ось варіант опису англійською, який можна використати для публікації індикатора в TradingView.
Description
This script combines two powerful and widely-used trading concepts into a single, comprehensive indicator: Bill Williams Fractals with dynamic support/resistance lines and Fair Value Gaps (FVG) based on the popular logic from LuxAlgo.
The goal is to provide a cleaner chart by merging two essential tools, allowing traders to analyze market structure and imbalances simultaneously.
Features
1. Williams Fractals with Invalidation Lines
This part of the indicator identifies classic Bill Williams fractals and enhances them with a unique visualization feature.
Fractal Detection: Automatically identifies both bullish (bottom) and bearish (top) fractals. You can choose between a 3-bar or 5-bar pattern in the settings.
Dynamic S/R Lines: A horizontal line is automatically drawn from every confirmed fractal, acting as a potential support or resistance level.
Automatic Invalidation: A line is considered "invalidated" or breached when the body of a candle closes past it. When this happens, the line stops extending, changes its color to the "invalidated" color, and remains on the chart as a historical reference. This provides a clear, objective signal that a level has been broken.
Customization: You can fully customize the colors for the support, resistance, and invalidated lines to match your chart theme.
2. Fair Value Gaps (FVG) / Imbalance
This module incorporates the robust FVG detection logic from LuxAlgo to automatically identify and display market imbalances.
FVG Detection: Highlights bullish and bearish Fair Value Gaps on the chart with colored boxes, representing inefficiencies in price delivery.
Automatic Mitigation: The FVG boxes are automatically removed from the chart once the price has "mitigated" or filled the gap, keeping your workspace clean and focused on active imbalances.
Multi-Timeframe (MTF): You can set the indicator to find and display FVGs from a higher timeframe directly on your current chart.
Dashboard: An optional on-screen dashboard provides a quick summary of the total count of bullish/bearish FVGs and the percentage that have been mitigated.
Full Customization: Control the colors of FVG boxes, extend their length, and configure other visual style settings.
How to Use
Fractal Lines: Use the active support and resistance lines as key levels for potential bounces or breaks. A line's invalidation can serve as confirmation of a shift in market structure.
FVG Zones: Fair Value Gaps often act as "magnets" for price. Use these zones as potential targets for your trades or as areas of interest for entries when price retraces to fill the imbalance.
Combined Strategy: The true power of this indicator comes from combining both concepts. For example, a bullish FVG forming near a key fractal support level can create a high-probability confluence zone for a long entry. Similarly, a break and invalidation of a fractal resistance line might signal that price is heading towards the next bearish FVG above.
This indicator is a tool for analysis and should be used in conjunction with your own trading strategy and risk management rules.
Volume-Weighted Money Flow [sgbpulse]Overview
The VWMF indicator is an advanced technical analysis tool that combines and summarizes five leading momentum and volume indicators (OBV, PVT, A/D, CMF, MFI) into one clear oscillator. The indicator helps to provide a clear picture of market sentiment by measuring the pressure from buyers and sellers. Unlike single indicators, VWMF provides a comprehensive view of market money flow by weighting existing indicators and presenting them in a uniform and understandable format.
Indicator Components
VWMF combines the following indicators, each normalized to a range of 0 to 100 before being weighted:
On-Balance Volume (OBV): A cumulative indicator that measures positive and negative volume flow.
Price-Volume Trend (PVT): Similar to OBV, but incorporates relative price change for a more precise measure.
Accumulation/Distribution Line (A/D): Used to identify whether an asset is being bought (accumulated) or sold (distributed).
Chaikin Money Flow (CMF): Measures the money flow over a period based on the close price's position relative to the candle's range.
Money Flow Index (MFI): A momentum oscillator that combines price and volume to measure buying and selling pressure.
Understanding the Normalized Oscillators
The indicator combines the five different momentum indicators by normalizing each one to a uniform range of 0 to 100 .
Why is Normalization Important?
Indicators like OBV, PVT, and the A/D Line are cumulative indicators whose values can become very large. To assess their trend, we use a Moving Average as a dynamic reference line . The Moving Average allows us to understand whether the indicator is currently trending up or down relative to its average behavior over time.
How Does Normalization Work?
Our normalization fully preserves the original trend of each indicator.
For Cumulative Indicators (OBV, PVT, A/D): We calculate the difference between the current indicator value and its Moving Average. This difference is then passed to the normalization process.
- If the indicator is above its Moving Average, the difference will be positive, and the normalized value will be above 50.
- If the indicator is below its Moving Average, the difference will be negative, and the normalized value will be below 50.
Handling Extreme Values: To overcome the issue of extreme values in indicators like OBV, PVT, and the A/D Line , the function calculates the highest absolute value over the selected period. This value is used to prevent sharp spikes or drops in a single indicator from compromising the accuracy of the normalization over time. It's a sophisticated method that ensures the oscillators remain relevant and accurate.
For Bounded Indicators (CMF, MFI): These indicators already operate within a known range (for example, CMF is between -1 and 1, and MFI is between 0 and 100), so they are normalized directly without an additional reference line.
Reference Line Settings:
Moving Average Type: Allows the user to choose between a Simple Moving Average (SMA) and an Exponential Moving Average (EMA).
Volume Flow MA Length: Allows the user to set the lookback period for the Moving Average, which affects the indicator's sensitivity.
The 50 line serves as the new "center line." This ensures that, even after normalization, the determination of whether a specific indicator supports a bullish or bearish trend remains clear.
Settings and Visual Tools
The indicator offers several customization options to provide a rich analysis experience:
VWMF Oscillator (Blue Line): Represents the weighted average of all five indicators. Values above 50 indicate bullish momentum, and values below 50 indicate bearish momentum.
Strength Metrics (Bullish/Bearish Strength %): Two metrics that appear on the status line, showing the percentage of indicators supporting the current trend. They range from 0% to 100%, providing a quick view of the strength of the consensus.
Dynamic Background Colors: The background color of the chart automatically changes to bullish (a blue shade by default) or bearish (a default brown-gray shade) based on the trend. The transparency of the color shows the consensus strength—the more opaque the background, the more indicators support the trend.
Advanced Settings:
- Background Color Logic: Allows the user to choose the trigger for the background color: Weighted Value (based on the combined oscillator) or Strength (based on the majority of individual indicators).
- Weights: Provides full control over the weight of each of the five indicators in the final oscillator.
Using the Data Window
TradingView provides a useful Data Window that allows you to see the exact numerical values of each normalized oscillator separately, in addition to the trend strength data.
You can use this window to:
Get more detailed information on each indicator: Viewing the precise numerical data of each of the five indicators can help in making trading decisions.
Calibrate weights: If you want to manually adjust the indicator weights (in the settings menu), you can do so while tracking the impact of each indicator on the weighted oscillator in the Data Window.
The indicator's default setting is an equal weight of 20% for each of the five indicators.
Alert Conditions
The indicator comes with a variety of built-in alerts that can be configured through the TradingView alerts menu:
VWMF Cross Above 50: An alert when the VWMF oscillator crosses above the 50 line, indicating a potential bullish momentum shift.
VWMF Cross Below 50: An alert when the VWMF oscillator crosses below the 50 line, indicating a potential bearish momentum shift.
Bullish Strength: High But Not Absolute Consensus: An alert when the bullish trend strength reaches 60% or more but is less than 100%, indicating a high but not absolute consensus.
Bullish Strength at 100%: An alert when all five indicators (MFI, OBV, PVT, A/D, CMF) show bullish strength, indicating a full and absolute consensus.
Bearish Strength: High But Not Absolute Consensus: An alert when the bearish trend strength reaches 60% or more but is less than 100%, indicating a high but not absolute consensus.
Bearish Strength at 100%: An alert when all five indicators (MFI, OBV, PVT, A/D, CMF) show bearish strength, indicating a full and absolute consensus.
Summary
The VWMF indicator is a powerful, all-in-one tool for analyzing market momentum, money flow, and sentiment. By combining and normalizing five different indicators into a single oscillator, it offers a holistic and accurate view of the market's underlying trend. Its dynamic visual features and customizable settings, including the ability to adjust indicator weights, provide a flexible experience for both novice and experienced traders. The built-in alerts for momentum shifts and trend consensus make it an effective tool for spotting trading opportunities with confidence. In essence, VWMF distills complex market data into clear, actionable signals.
Important Note: Trading Risk
This indicator is intended for educational and informational purposes only and does not constitute investment advice or a recommendation for trading in any form whatsoever.
Trading in financial markets involves significant risk of capital loss. It is important to remember that past performance is not indicative of future results. All trading decisions are your sole responsibility. Never trade with money you cannot afford to lose.
StdDev Supply/Demand Zone RefinerThis indicator uses standard deviation bands to identify statistically significant price extremes, then validates these levels through volume analysis and market structure. It employs a proprietary "Zone Refinement" technique that dynamically adjusts zones based on price interaction and volume concentration, creating increasingly precise support/resistance areas.
Key Features:
Statistical Extremes Detection: Identifies when price reaches 2+ standard deviations from mean
Volume-Weighted Zone Creation: Only creates zones at extremes with abnormal volume
Dynamic Zone Refinement: Automatically tightens zones based on touch points and volume nodes
Point of Control (POC) Identification: Finds the exact price with maximum volume within each zone
Volume Profile Visualization: Shows horizontal volume distribution to identify key liquidity levels
Multi-Factor Validation: Combines volume imbalance, zone strength, and touch count metrics
Unlike traditional support/resistance indicators that use arbitrary levels, this system:
Self-adjusts based on market volatility (standard deviation)
Refines zones through machine-learning-like feedback from price touches
Weights by volume to show where real money was positioned
Tracks zone decay - older, untested zones automatically fade
Auto Entry/SL/TP Zones + Dashboard (Fib + MACD Edition)🔥 Auto Entry/SL/TP Zones + Dashboard (Fib + MACD Edition)
This indicator automatically builds Entry, Stop Loss, and Fibonacci-based Take Profit zones on the chart.
It also includes a smart dashboard that combines multiple confirmations to help filter false signals.
Features:
📍 Automatic Entry / Stop Loss / Take Profit (TP1, TP2, TP3) zones.
📊 Dashboard with real-time market conditions.
📈 RSI + Trend (SMA50) + MACD + Divergences + Volume filter.
🎯 Clear LONG / SHORT / WAIT signals.
🚦 Highlights bullish/bearish divergences.
🟢 Works on any symbol & timeframe.
Usage:
When the dashboard shows LONG, follow blue Entry zone with green TP targets above.
When SHORT, follow red Entry zone with green TP targets below.
If WAIT, market conditions are unclear – avoid entry.
⚡ Designed for both intraday and swing traders.
PDH/PDL (prev RTH) + Current ETH High/LowDescription:
This indicator automatically plots the key levels of PDH/PDL (Previous Day High/Low from regular trading hours – RTH) and ETH High/Low (Extended Hours: pre-market + after-hours) in real time.
• PDH/PDL: calculated at the close of RTH (09:30–16:00 NYSE) and anchored until the next day.
• ETH High/Low: updated live during extended hours (04:00–09:29 and 16:00–20:00 NYSE) and “frozen” at the RTH open for reference during the regular session.
• Customization options: colors, line styles (solid/dashed/dotted), thickness, labels, and the ability to extend lines to the right.
• Levels can also be displayed directly on the price scale.
This script is designed for traders who want a quick visualization of the most relevant levels from the previous day and extended hours, making it easier to identify supports, resistances, and potential reaction zones in price action.
By: Miguel Arenas
HH&LL / MSS Detector [Tek Tek Teknik Analiz]This indicator provides a safe trading opportunity by drawing Market Structure Shift levels to determine the direction of the market after capturing the peaks and valleys in the price flow.
Smart Money SignalsSmart Money Signals – Market Flow & Structure Visualizer
Overview
Smart Money Signals is a precision trading tool designed for traders who want to see market structure and momentum flow in real time. By detecting pivots, momentum imbalances, and dynamic support/resistance levels, the indicator transforms raw price action into a clear visual narrative of where capital is entering and exiting the market.
Instead of lagging averages or cluttered signals, Smart Money Signals highlights the moments that matter most—where bullish and bearish flows are confirmed, where support or resistance breaks, and where momentum zones show the true battleground between buyers and sellers. Its adaptive design makes it equally effective for scalpers seeking sharp entries, swing traders tracking reversals, and longer-term traders looking for confirmation of bias.
How It Works
The engine behind Smart Money Signals relies on swing detection and a configurable sensitivity filter. By monitoring directional momentum across recent bars, the system identifies bullish pivots (where downside exhaustion flips into strength) and bearish pivots (where upward thrust collapses into weakness).
When price confirms a pivot, the indicator draws flow lines to mark the breakout and labels them as either continuation or reversal events, depending on existing market bias. Momentum zones are automatically plotted, highlighting the critical areas where buyers defended price or sellers pressed it lower.
Dynamic support and resistance levels extend forward in time, updating live as price develops. These zones change color when broken, visually signaling whether structure has held or failed. Gradient background shading further emphasizes moments of extreme momentum, such as overbought or oversold surges, so that traders instantly see when market pressure intensifies.
Signals and Market Flows
Smart Money Signals provides visual cues that are both intuitive and actionable:
📈 Bullish Flow Signals appear when price breaks above a confirmed pivot, signaling continuation or reversal into strength.
📉 Bearish Flow Signals appear when price breaks below a confirmed pivot, indicating continuation or reversal into weakness.
Momentum Zones highlight the defended areas between pivots, giving traders a visual map of where structure is strongest.
Dynamic Support & Resistance lines extend across the chart, shifting from defense to failure when broken, ensuring that the most relevant levels are always visible.
Break Signals mark the exact bar where key levels give way, confirming structural violations in real time.
By filtering out noise and focusing on meaningful flow events, the system helps traders avoid overreaction and focus only on high-probability structural shifts.
Strategy Integration
Smart Money Signals is versatile across trading styles:
Trend Continuation : Enter in the direction of flow signals, using dynamic zones as both confirmation and stop-loss placement.
Reversal Trading : Watch for pivots tagged as reversal points, where market bias flips and new structure is created.
Momentum Zone Entries : Use the automatically drawn zones to identify low-risk entries on pullbacks or retests.
Bias Alignment : The integrated dashboard reveals the current market bias—bullish, bearish, or neutral—helping traders stay aligned with the dominant flow.
Stop-losses can be positioned beyond the dynamic zone on the opposite side, while take-profits may be guided by the width of zones or momentum-driven extensions. On higher timeframes, the indicator provides context for macro structure, while lower timeframes allow for tactical entry refinement.
Advanced Techniques
Traders seeking deeper precision can combine Smart Money Signals with volume or order flow tools to validate pivots and zone defenses. Monitoring the sequence of bullish and bearish flows helps identify trend maturity, while analyzing the success rate of pivots in the analytics panel builds a data-driven approach to confidence in signals.
Adjusting swing period and sensitivity allows the indicator to adapt to different market conditions, from volatile crypto pairs to steady forex majors. The flexible visual themes—Cyber, Ocean, Sunset, Matrix—ensure readability across setups, while gradient shading keeps the chart intuitive even under fast-moving conditions.
Why Use Smart Money Signals
Markets are driven by liquidity, momentum, and structure. Smart Money Signals uncovers these forces by translating price action into a clear visual map of flow. It shows:
Where structure was built.
Where it was defended.
Where it was broken.
And where momentum is likely to carry next.
By combining flow detection, dynamic zones, and a live analytics dashboard, the indicator provides traders with a complete framework for reading price action in real time.
Whether you trade crypto, forex, or indices, Smart Money Signals adapts seamlessly to any asset class, giving you clarity, precision, and confidence to execute without second-guessing.
Exit SIGNALWhen an asset is overbought, using various methods, CCI, RSI, etc, this indicator paints candles red to signify that a potential top is forming. It is normal when the trend is very strong to see 2 or 3 candles turn red before the top is in. I like to use this to narrow down when to take profits. It's not the most sophisticated and fancy script but it gets it's job done well. :]
If you have any questions about the indicator or wish to try it out yourself for free, comment below or DM me, thanks!
Building a profitable strategy is all about combining various factors, I'm a hybrid trader meaning I mostly learned to trade with price action and smart money concepts only at first however I then learned pinescript and added my own indicators I have personalized to create various strategies, especially when it comes to helping me know when trend has reversed as soon as possible with as little false flags as possible.
FUMO MA Cross Matrix 9/21/50/100/200 FUMO MA Cross Matrix is a flexible and advanced indicator designed for traders who rely on moving average crossovers as part of their strategy.
🔹 Key Features:
Supports 5 types of Moving Averages: EMA, SMA, SMMA (RMA), WMA, HMA.
Includes 5 standard MAs: 9, 21, 50, 100, 200 (toggle on/off individually).
Choose which MA crosses to monitor (9×21, 21×50, 50×100, 100×200, and 6 extended combinations).
On-chart signals (labels) when crosses occur.
Alerts system for every selected cross and also summary alerts (“Any Cross Up/Down”).
Option to trigger signals only on confirmed bars (no repaint).
Fully adjustable label visibility and signal style.
🔹 Use Cases:
Detect trend shifts (short-term vs long-term).
Build scalping, swing, or position trading strategies.
Combine with price action or volume analysis for stronger setups.
Quickly react to Golden Cross and Death Cross events.
🔹 How to Use:
Select your preferred MA type (EMA, SMA, etc.).
Enable the MAs (9, 21, 50, 100, 200) you want to plot.
Choose which crossovers to track in the settings.
Enable/disable on-chart labels for better visualization.
Set up alerts:
“CROSS UP/DOWN X>Y” for specific pairs.
“ANY CROSS UP/DOWN” for aggregated signals.
📌 Example Alerts
MA Cross UP 9>21 on BTCUSDT 15m @ 65432
Any selected MA cross DOWN on AAPL 1D @ 195.2
Gravity Trend Line with ±10% Bands_QianYu🌌 Law of Gravity in Stock Trading — by Hu Liyang (胡立阳)—often called the “Godfather of Asian Stock Markets”
✦ Conceptual Origin
The “Law of Gravity” was developed by Mr. Hu Liyang, drawing an analogy between the gravitational pull in physics and the relationship between stock prices and moving averages. It is a medium-term mean reversion theory that helps traders identify rebound opportunities when prices deviate too far from their trend lines.
📈 Indicator Summary: Gravity Trend Line with ±10% Bands
🔧 How It's Calculated:
Gravity Trend Line = Average of SMA(30) and SMA(70)
Represents the fair value zone or center of gravity for price over a medium-term period.
Upper Band = Gravity Line + 10%
Lower Band = Gravity Line - 10%
A shaded zone shows the space between the upper and lower bands — your "gravity channel."
🧭How to Use It for Swing Trading (1H and 4H Charts)
1. Trend Bias Filter
If price is consistently above the Gravity Line, the trend bias is bullish.
If price is below the Gravity Line, the bias is bearish.
Use this to align your trades with the prevailing direction on 4H (macro view) and fine-tune entries on 1H.
2.Trade Entry Zones
Long Setup (buy):
Look for price near or just below the lower band (oversold zone).
Combine with bullish candles or reversal indicators (e.g., MACD bullish crossover, RSI < 30 turning up).
Confirmation: price reclaims the lower band or moves toward gravity line.
Short Setup (sell):
Look for price near or just above the upper band (overbought zone).
Combine with bearish confirmation (e.g., MACD bearish crossover, RSI > 70 turning down).
Confirmation: price starts rejecting from upper band toward gravity line.
3. Take Profit / Exit Zones
Partial TP: At the Gravity Line (mean reversion level).
Final TP: At opposite band (if price has strong momentum).
Alternatively, exit on crossback below gravity line after a long, or above it after a short.
4. Avoiding Traps
Avoid entering trades in the middle of the band (around the Gravity Line) unless there's strong breakout confirmation.
Use 4H for trend context, and 1H for entry precision.
Avoid trading against the broader gravity slope:
If gravity line is clearly sloping up, favor longs.
If sloping down, favor shorts.
📘 Example Strategy Workflow:
Timeframe:
Use 4H for directional bias
Use 1H for entries and exits
Example Long Setup (1H Chart):
Price dips below lower band while 4H trend is up.
Bullish candle forms or RSI/MACD confirms momentum shift.
Entry: price closes back above the lower band.
TP1: near gravity line.
TP2: near upper band.
Or, exit when gain hits +8% to +15%, depending on risk appetite.
📌 Final Notes:
This is a mean-reversion + trend confirmation tool — best used with additional confluence (candlestick patterns, volume, divergence).
It works well in ranging to gently trending markets — not ideal for sharp breakouts unless combined with breakout filters.
This indicator is for educational and reference purposes only.
It is not intended to be a recommendation or signal to buy or sell any security.
Use at your own discretion. Always perform your own due diligence before trading.
Forward P/E CalculatorI could not find a forward P/E indicator that gave me proper results. So here is mine.
Gott's Copernican Trend PredictorThe Gott's Copernican Trend Predictor predicts trend duration using the Copernican Principle - Based on astrophysicist Richard Gott's temporal prediction method.
I had the idea to create this indicator after reading the book The Doomsday Calculation by William Poundstone.
Background & Theory
This indicator implements J. Richard Gott III's Copernican Principle - a statistical method that famously predicted the fall of the Berlin Wall and the duration of Broadway shows with remarkable accuracy.
The Copernican Principle Explained
Named after Copernicus who showed that Earth is not at the center of the universe, this principle assumes that you are not observing something at a special moment in time. When you observe a trend at any random point, you're statistically more likely to be seeing it during the "middle portion" of its lifetime rather than at its very beginning or end.
The Mathematics
Gott's formula provides a 95% confidence interval for how much longer a trend will continue:
Minimum remaining duration = Current Age ÷ 39
Maximum remaining duration = Current Age × 39
The factor of 39 comes from statistical analysis where:
There's only a 2.5% chance you're observing in the first 1/40th of the trend's life
There's only a 2.5% chance you're observing in the last 1/40th of the trend's life
This gives us 95% confidence that the trend will last between Age/39 and Age×39
How It Works
Trend Detection
The indicator uses dual moving averages (default: 50 & 200 period) to identify trend changes:
Bullish Cross: Fast MA crosses above Slow MA → Uptrend begins
Bearish Cross: Fast MA crosses below Slow MA → Downtrend begins
Real-Time Predictions
Once a trend is detected, the indicator continuously calculates:
Trend Age: How long the current trend has been active
Gott's 95% CI: Statistical range for remaining trend duration
Projected End Dates: Calendar dates when the trend might end
How to Use
Setup
Add the indicator to any timeframe (works on minutes, hours, days, weeks)
Customize MA periods and type (SMA, EMA, WMA)
Choose table position and font size for optimal viewing
Interpretation
Example: If a trend is 100 hours old:
Minimum duration: 100 ÷ 39 = ~3 more hours
Maximum duration: 100 × 39 = ~3,900 more hours
95% confidence: The trend will end between these times
This indicator might be useful for swing traders, trend followers, and quantitative analysts.
Coca-Cola example:
Coca-Cola's chart shows an uptrend spanning 810 weeks, approximately 15.5 years. According to Gott's Copernican Principle, this trend age generates a 95% confidence interval predicting the trend will continue for a minimum of 20 weeks and a maximum of 31,590 weeks.
On the other hand, a shorter trend age produces a proportionally smaller minimum duration and different risk profile in terms of statistical continuation probability. For this reason, more recent trends (and more recent companies) are likely to remain in trend for shorter.
ICT Multi-Session Hi/L/EQ
Indicator Overview: The "ICT Multi-Session Hi/L/EQ" indicator is a versatile tool designed for traders utilizing Inner Circle Trader (ICT) strategies, enabling the visualization of key price levels—High (H), Low (L), Equilibrium (EQ, the midpoint between high and low), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the session range—across up to 6 customizable market sessions on a single chart.
Core Functionality: It dynamically tracks and plots session-specific highs, lows, and EQ, updating in real-time as price action evolves, providing traders with immediate insights into potential support, resistance, and balance zones during defined periods like the Asian, London, or New York sessions. This multi-session capability allows for comprehensive market analysis without the need for multiple indicators.
Unique OTE Auto Detection: A standout feature is the automatic detection and directional calculation of OTE levels. When a session forms a new high, OTE levels are recalculated downward from the high to the low (bearish bias), highlighting potential short entry zones. Conversely, a new low triggers upward OTE levels from the low to the high (bullish bias), signaling long opportunities. This auto-detection adapts to market momentum without manual input, making it highly unique for ICT traders seeking efficient entry signals based on range retracements. No other indicator combines this session-based auto-directionality with OTE percentages tailored for ICT methodologies.
Left-Side Trimming Innovation: Another innovative aspect is the left-side trimming option, which allows users to limit the historical extension of lines to a user-defined number of bars (e.g., the last 8 bars), reducing chart clutter and focusing attention on recent price action. This feature is particularly unique as it addresses a common issue in multi-session indicators where full historical lines can overwhelm the chart, making it ideal for scalpers or day traders who prioritize clarity.
Without trimming the left side:
And when left side trimming is enabled:
Multi-Session Customization: Support for up to 6 independent sessions, each with individual time ranges (HHMM-HHMM format), timezones, and enable/disable toggles, offers unparalleled flexibility. Traders can configure sessions for specific market phases (e.g., Asia: 2000-0000 UTC) and customize colors, line styles (solid, dashed, dotted), and label properties separately, ensuring a personalized setup for global trading environments.
Auto-Deletion at Market Close: Levels can be automatically deleted at the session's calculated market close (17:00 NY timestamp), keeping the chart clean for the next session or day, a useful feature for avoiding accumulation of outdated levels.
Label and Visual Controls: Users can toggle labels on/off, adjust text color, background color, transparency, and size (tiny, small, normal, large), with options to stick labels to the right for better visibility. This level of customization ensures the indicator integrates seamlessly with any chart style.
No External Dependencies: All calculations are performed using built-in Pine Script functions on the chart's price data, making it self-contained and reliable without needing external libraries or data sources.
Professional and Compliant Design: Developed to comply with TradingView House Rules, this indicator is original in its combination of multi-session plotting, directional OTE auto-detection, and left-side trimming, providing traders with a robust tool for ICT-based analysis.
How It Works
Session Setup: Define session times and timezones in settings; the script tracks high/low from session start.
Level Calculation: High/low update on every bar; EQ is the midpoint. OTE levels recalculate directionally upon new extremes.
Drawing Mechanism: Lines extend with user-defined padding; trimming cuts left side for cleanliness.
Update Logic: OTE direction shifts based on new high/low detection, with levels refreshed accordingly.
Deletion: Auto-deletes at session end if enabled, resetting for new sessions.
Uniqueness and Innovation
Session OTE Auto Detection: Automatically adjusts OTE direction based on new highs/lows, a feature not commonly available in other indicators, enabling hands-free bias identification.
Left-Side Trimming: Unique clutter-reduction tool that trims historical lines, improving chart readability—a rare capability in session-based indicators.
Multi-Session Support: Handles 6 sessions independently, with per-session OTE, making it a one-stop tool for global market analysis.
Directional OTE: Adapts to market bias, offering dynamic entry zones tailored to ICT strategies.
Full Customization: Extensive controls for visuals and behavior, ensuring adaptability to individual trading styles.
User Guide: How to Use the "ICT Multi-Session Hi/L/EQ" Indicator
This guide provides a comprehensive, step-by-step explanation of how to use the "ICT Multi-Session Hi/L/EQ" indicator on TradingView. The indicator is designed to help Inner Circle Trader (ICT) enthusiasts plot key price levels—High (H), Low (L), Equilibrium (EQ, the midpoint), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the session range—across up to 6 customizable sessions. It also includes a Candle Open line for midnight or custom times. I'll break it down by settings groups, explaining each option, its purpose, how to tweak it, and tips for optimal use. All settings are accessible via the indicator's settings panel (cog icon next to the indicator name on your chart).
General Settings
These control global behaviors that apply to all sessions and levels. They allow you to customize the overall appearance and functionality of the indicator on your chart.
Line Padding (Bars Beyond Current): This integer input (default: 2, minimum: 0) extends the plotted lines beyond the current bar by the specified number of bars.
How to Use/Tweak: Increase this value (e.g., to 5) for longer forward projections of levels, useful for anticipating future price action. Decrease to 0 for no extension. It's ideal for traders who like to see levels projected ahead in volatile markets.
Tip: On lower timeframes (e.g., 5M), higher padding (4-6) helps visualize potential targets; on higher timeframes (1H), keep it low to avoid clutter.
Label Padding (Bars from Line End): An integer (default: 3, minimum: 0) that positions labels away from the end of the lines by the specified bars.
How to Use/Tweak: Adjust to move labels further right (higher value) or closer to the line end (lower value). This prevents label overlap with price action or other indicators.
Tip: If your chart has many labels, set to 5+ for better readability; use 1-2 for minimalistic setups.
Enable Left-Side Trimming: A boolean toggle (default: true) to trim lines from the left, limiting their historical extension.
How to Use/Tweak: Turn on to reduce chart clutter by showing only recent bars of the lines; turn off for full historical view. Pairs with "Left Trim Bars" for fine-tuning.
Tip: Enable for clean charts during live trading; disable for backtesting to see long-term patterns.
Left Trim Bars: An integer (default: 8, minimum: 1) specifying how many bars back from the current bar to trim lines when left trimming is enabled.
How to Use/Tweak: Set higher (e.g., 20) for more historical visibility while trimmed; lower (e.g., 4) for ultra-clean charts focusing on immediate action.
Tip: Use 8-12 for intraday trading on 15M charts; adjust based on timeframe to balance context and clarity.
Stick Labels to Right of Current Bar: A boolean toggle (default: true) to position labels at the right end of the lines.
How to Use/Tweak: Enable for labels to "stick" right, keeping them visible as the chart updates; disable for labels at the current bar position.
Tip: Keep enabled for real-time trading to avoid labels shifting left; disable for static analysis.
Delete Previous Session Lines/Labels on Market Close: A boolean toggle (default: true) to automatically delete session lines and labels at the calculated market close (17:00 NY time).
How to Use/Tweak: Enable to keep the chart clean by clearing old sessions; disable to retain historical levels for reference.
Tip: Enable for live trading to focus on active sessions; disable for educational reviews or backtesting.
Session 1 to 6 Settings
Each session has identical options, allowing independent configuration. I'll describe Session 1; replicate for others by changing the number (e.g., Session 2 uses "Session 2 Name", etc.).
Session Name: String input (default: "Asia" for Session 1) to label the session (e.g., "Asia" or "London").
How to Use/Tweak: Enter a descriptive name like "NY Open" for clarity in labels (e.g., "NY Open High").
Tip: Use short names to avoid long labels; this appears in all session labels for easy identification.
Session Time (HHMM-HHMM): Session input (default: "2000-0000" for Session 1) to define the start and end time.
How to Use/Tweak: Set the time range (e.g., "0930-1600" for NY session). Ensure start < end in 24-hour format.
Tip: Use for custom sessions like "London Kill Zone" (0800-1100); validate with the timezone setting.
Session Timezone: String selection (default: "America/New_York") from a list of options.
How to Use/Tweak: Choose the timezone matching your session (e.g., "Europe/London" for UK times).
Tip: Align with session name for accuracy; "Etc/UTC" for universal times.
Enable Session Drawings: Boolean toggle (default: true for Session 1, false for others) to activate the session's lines and labels.
How to Use/Tweak: Enable to show the session; disable to hide it without removing settings.
Tip: Enable one session at a time for focused analysis; use for multi-session overlays.
Enable EQ Line/Label: Boolean toggle (default: true) to show the EQ line and label.
How to Use/Tweak: Enable for midpoint plotting; disable to hide EQ while keeping high/low.
Tip: Useful for ICT fair value gaps; toggle off if focusing on extremes only.
Enable Labels: Boolean toggle (default: true) to show labels for high, low, EQ, and OTE levels.
How to Use/Tweak: Enable for annotated levels; disable for lines-only view.
Tip: Disable on crowded charts; customize label size for better readability.
Enable OTE Levels: Boolean toggle (default: false) to activate OTE levels (61.8%, 70%, 79%).
How to Use/Tweak: Enable for OTE plotting; disable to hide while keeping high/low/EQ.
Tip: Toggle on for entry zone identification; adjust colors for visual distinction.
Line Color: Color input (default varies by session, e.g., blue for Session 1) for lines.
How to Use/Tweak: Choose a color to differentiate sessions (e.g., green for bullish).
Tip: Use contrasting colors for multiple sessions; match your chart theme.
Line Style: String selection (default: "Dashed") from "Solid", "Dashed", "Dotted".
How to Use/Tweak: Select style for line appearance (e.g., dotted for OTE).
Tip: Use dashed for OTE to distinguish from solid high/low lines.
Label Text Color: Color input (default: white) for label text.
How to Use/Tweak: Set to contrast with background (e.g., black on white charts).
Tip: Use bright colors for visibility; match line color for cohesion.
Label Background Color: Color input (default: black) for label background.
How to Use/Tweak: Choose a semi-transparent background for readability.
Tip: Set to chart background color for subtle labels.
Label Transparency (0=opaque, 100=transparent): Integer input (default: 70) for label opacity.
How to Use/Tweak: Lower for solid labels (e.g., 0); higher for see-through (e.g., 90).
Tip: Use 50-80 for balance; 100 hides background entirely.
Label Text Size: String selection (default: "Small") from "Tiny", "Small", "Normal", "Large".
How to Use/Tweak: Choose size for label visibility (e.g., "Large" for emphasis).
Tip: "Small" for crowded charts; "Large" for main levels.
OTE 61.8% Color: Color input (default: purple) for 61.8% OTE line.
How to Use/Tweak: Customize to highlight the 61.8% level (e.g., gold for key entry).
Tip: Use distinct colors for each OTE level to differentiate (e.g., purple, orange, teal).
OTE 70% Color: Color input (default: orange) for 70% OTE line.
How to Use/Tweak: Set to a secondary color for mid-range OTE.
Tip: Coordinate with overall theme; use faded shades for less prominence.
OTE 79% Color: Color input (default: teal) for 79% OTE line.
How to Use/Tweak: Choose for the deepest OTE level (e.g., red for aggressive entries).
Tip: Make it stand out if 79% is your preferred entry zone.
Candle Open Settings
This section adds a custom open line (e.g., midnight open) with similar customization.
Use Time 1: Boolean toggle (default: true) to enable the first time setting.
How to Use/Tweak: Enable for the open line; disable to hide.
Tip: Use for midnight open in ICT setups; toggle off if not needed.
Name: String input (default: "Midnight Open") for the open line label.
How to Use/Tweak: Change to "Daily Open" or similar for context.
Tip: Keep short for clean labels.
Start Time: String input (default: "0000") for open range start.
How to Use/Tweak: Set in HHMM format (e.g., "0000" for midnight).
Tip: Ensure valid (0000-2359); pair with end time for narrow ranges.
End Time: String input (default: "0001") for open range end.
How to Use/Tweak: Set slightly after start (e.g., "0001") for precise open capture.
Tip: Use for quick ranges; start < end always.
Color: Color input (default: teal) for the open line.
How to Use/Tweak: Customize to distinguish from session lines.
Tip: Use gray for subtle open lines.
Timezone: String selection (default: "America/New_York") for the open line.
How to Use/Tweak: Choose matching your chart or session.
Tip: "Etc/UTC" for universal opens.
Enable Line/Label: Boolean toggle (default: true) for the open line/label.
How to Use/Tweak: Enable to show; disable to hide.
Tip: Use for daily opens in ICT; toggle off for session-only focus.
Enable Label: Boolean toggle (default: true) for the open label.
How to Use/Tweak: Enable for named label; disable for line-only.
Tip: Disable if labels clutter the chart.
Auto Delete at 18:00 NY: Boolean toggle (default: true) to delete at 18:00 NY.
How to Use/Tweak: Enable for cleanup; disable to retain.
Tip: Align with new day start; useful for resetting.
Stick Label to Right: Boolean toggle (default: true) for label positioning.
How to Use/Tweak: Enable for right-side labels; disable for current bar.
Tip: Keep enabled for visibility as chart updates.
Enable Left-Side Trimming: Boolean toggle (default: true) for open line trimming.
How to Use/Tweak: Enable to trim historical open line; disable for full view.
Tip: Similar to session trimming; use for clean charts.
Left Trim Bars: Integer input (default: 8) for open line trim bars.
How to Use/Tweak: Set the number of bars back to show when trimming.
Tip: Lower for more focus; higher for context.
Line Padding (Bars Beyond Current): Integer input (default: 2) for open line extension.
How to Use/Tweak: Increase for forward projection; decrease for no extension.
Tip: Match general padding for consistency.
Label Padding (Bars from Line End): Integer input (default: 3) for open label position.
How to Use/Tweak: Adjust to move label away from line end.
Tip: Higher for spaced labels; lower for compactness.
Line Style: String selection (default: "Solid") for open line style.
How to Use/Tweak: Choose "Dashed" or "Dotted" for distinction.
Tip: Use dotted for subtle opens.
Label Text Color: Color input (default: white) for open label text.
How to Use/Tweak: Set to contrast with background.
Tip: Black for light charts.
Label Background Color: Color input (default: black) for open label background.
How to Use/Tweak: Customize for visibility.
Tip: Semi-transparent for blend.
Label Transparency: Integer input (default: 70) for open label opacity.
How to Use/Tweak: 0 for opaque; 100 for transparent.
Tip: 50-80 for balance.
Label Text Size: String selection (default: "Small") for open label size.
How to Use/Tweak: "Large" for emphasis; "Tiny" for minimalism.
Tip: "Normal" for standard use.
PreviousDayHLEQCME_MINI:NQ1!
Indicator Overview: The "PreviousDayHLEQ" indicator is an essential tool for traders employing Inner Circle Trader (ICT) methodologies, designed to plot the High (H), Low (L), Equilibrium (EQ, the midpoint between high and low), and Optimal Trade Entry (OTE) levels at 61.8%, 70%, and 79% of the previous trading day's range. It provides a clear visual reference for potential support, resistance, and entry zones based on the prior day's price action, helping traders anticipate continuations or reversals in the current day. This indicator stands out by incorporating directional OTE auto-detection, adjusting levels based on whether the previous day formed a new high or low relative to the day before, offering insights into market bias without manual recalculation.
Core Functionality: It tracks and displays the previous day's high and low, calculating the EQ as the average for balance points, and OTE levels as percentage retracements of the range. The script uses a user-defined trading day definition (with timezone support) to accurately capture the day's extremes, ensuring alignment with global market sessions. This core setup allows traders to quickly identify key ICT levels like fair value gaps or liquidity pools from the prior day.
Unique OTE Auto Detection: One of the indicator's most innovative features is its automatic detection of OTE direction. If the previous day made a new high compared to the day before, OTE levels are calculated downward from the high to the low (bearish bias), highlighting potential short entries. Conversely, a new low triggers upward OTE levels from the low to the high (bullish bias), signaling long opportunities. This auto-detection is unique, as it dynamically adapts to historical price expansion without user input, a capability not found in standard previous day indicators that typically use fixed directions. It empowers ICT traders to gauge carry-over momentum from the prior day, such as in scenarios where a bullish expansion suggests buying dips to the 61.8% level.
Directional Bias Indication: Beyond plotting levels, the OTE calculation inherently indicates the previous day's bias (expansion upward or downward), providing context for current day trades. This unique bias detection helps traders align with market structure, e.g., favoring shorts if OTE is downward-oriented, enhancing decision-making in ICT frameworks like order block identification.
Left-Side Trimming Innovation: The indicator includes a highly unique left-side trimming option, allowing users to restrict the historical extension of lines to a specified number of bars (e.g., the last 8 bars). This reduces visual clutter on charts with long history, focusing attention on recent and relevant price action—a feature rarely seen in previous day indicators, where lines often span the entire chart and obscure current developments. Traders can toggle trimming on/off and adjust the bar count, making it ideal for clean, professional setups.
Customization and Visual Controls: Users can fully customize line colors (separate for high, low, EQ, and each OTE level), styles (solid, dashed, dotted), and label properties (text color, background color, transparency, size). This level of granularity ensures the indicator fits any chart theme or strategy, with options to enable/disable individual elements like EQ or OTE for minimalistic views. The stick-right label option keeps labels visible as the chart updates, preventing overlap.
Auto-Deletion at Trading Day End: Levels can be automatically cleared at the indicator's calculated market close (17:00 NY time), a unique feature that prevents accumulation of outdated data, keeping the chart fresh for the next day. This is particularly useful for day traders who reset their setups daily.
No External Dependencies: The indicator operates solely on chart price data using built-in Pine Script functions, ensuring reliability and compatibility without needing additional libraries or internet access.
How It Works
Previous Day Data Capture: The script identifies the previous trading day using the user-defined timezone and calculates high, low, EQ, and OTE levels based on that day's range.
OTE Calculation: Levels are computed as percentages of the range, with auto-detection switching direction if a new high/low was made relative to the day before.
Drawing and Trimming: Lines are plotted with user-set padding for extension, and trimming cuts the left side to focus on current action.
Update Mechanism: Levels update in real-time as the previous day's data is fixed, but the script refreshes on chart reloads or new days.
Deletion Logic: At market close, if auto-delete is enabled, all elements are removed to prepare for the next cycle.
Uniqueness and Innovation
Session OTE Auto Detection: Automatically determines OTE direction based on previous day's high/low expansion, a rare feature that provides bias insights not available in basic previous day high/low indicators, aiding ICT traders in identifying entry zones with market context.
Left-Side Trimming: This innovation allows customizable historical line length, solving chart clutter issues unique to previous day indicators that typically show full history, enhancing usability for live trading.
Directional OTE with Multi-Level Support: Combines auto-bias detection with three OTE percentages (61.8%, 70%, 79%), offering more granular entry options than single-level tools, tailored for ICT's focus on range retracements.
Independent Customization per Element: Separate controls for high, low, EQ, and OTE colors/styles, plus transparency and size, provide unmatched flexibility compared to rigid indicators.
Auto-Deletion for Cleanliness: Unique cleanup at market close prevents level buildup, a practical feature for multi-day analysis not commonly implemented in similar tools.
How to Use It
Setup: Add to chart, configure timezone (e.g., "America/New_York"), and enable the indicator.
Customization: Adjust line colors (e.g., blue for high), styles (dashed for OTE), and enable trimming (8 bars for focus).
Interpretation: Use OTE for entries (e.g., buy at 61.8% in bullish bias); EQ for reversion.
Tips: Test on historical data; combine with ICT concepts like CISD, FVG etc.
This indicator elevates ICT trading with its auto-detection and trimming. Use with risk management; trading carries risk
Bullish Breakaway Dual Session-Publish-Consolidated FVG
Inspired by the FVG Concept:
This indicator is built on the Fair Value Gap (FVG) concept, with a focus on Consolidated FVG. Unlike traditional FVGs, this version only works within a defined session (e.g., ETH 18:00–17:00 or RTH 09:30–16:00).
Bullish consolidated FVG & Bullish breakaway candle
Begins when a new intraday low is printed. After that, the indicator searches for the 1st bullish breakaway candle, which must have its low above the high of the intraday low candle. Any candles in between are part of the consolidated FVG zone. Once the 1st breakaway forms, the indicator will shades the candle’s range (high to low). Then it will use this candle as an anchor to search for the 2nd, 3rd, etc. breakaways until the session ends.
Session Reset: Occurs at session close.
Repaint Behavior:
If a new intraday (or intra-session) low forms, earlier breakaway patterns are wiped, and the system restarts from the new low.
Counter:
A session-based counter at the top of the chart displays how many bullish consolidated FVGs have formed.
Settings
• Session Setup:
Choose ETH, RTH, or custom session. The indicator is designed for CME futures in New York timezone, but can be adjusted for other markets.
If nothing appears on your chart, check if you loaded it during an inactive session (e.g., weekend/Friday night).
• Max Zones to Show:
Default = 3 (recommended). You can increase, but 3 zones are usually most useful.
• Timeframe:
Best on 1m, 5m, or 15m. (If session range is big, try higher time frame)
Usage
1. Avoid Trading in Wrong Direction
• No bullish breakaway = No long trade.
• Prevents the temptation to countertrade in strong downtrends.
2. Catch the Trend Reversal
• When a bullish breakaway appears after an intraday low, it signals a potential reversal.
• You will need adjust position sizing, watch out liquidity hunt, and place stop loss.
• Best entries of your preferred choices: (this is your own trading edge)
Retest
Breakout
Engulf
MA cross over
Whatever your favorite approach
• Reversal signal is the strongest when price stays within/above the breakaway candle’s
range. Weak if it breaks below.
3. Higher Timeframe Confirmation
• 1m can give false reversals if new lows keep forming.
• 5m often provides cleaner signals and avoids premature reversals.
Failed Trade Example:
This indicator will repaint if a new intraday session low is updated. So it is possible to have a failed trade. Here is an example from the same session in 1m chart. However, if you enter the trade later at another bullish breakaway candle signal. The loss can be mitigated by the profit.
Therefore you should use smaller position size for your 1st trade. You should also considering using 5m chart to avoid 1m bull trap. In this example, if you use 5m chart, you can totally avoid this failed trade.
If you enter the trade, you will see the intraday low is stop loss hunted. You can also see the 1st bullish breakaway candle is super weak. There are a lot of candles below the breakaway candle low, so it is very possible to fail.
In the next chart, you can see the failed traded get stop loss hunted. However you can enter another trade with huge profit to win back the loss from the 1st trade if you follow the rule.
Summary
This indicator offers 3 main advantages:
1. Prevents wrong-direction trades.
2. Confirms trend entry after reversal signals.
3. Filters false positives using higher timeframes.
How to sharp your edge:
1. ⏳Extreme patience⏳: Do not guess the bottom during a downtrend before a confirmed bullish breakaway candle. If you get caught, have the courage to cut loss. This is literally the most important usage of this indicator. Again, this is the most important rule of this indicator and actually the hardest rule to follow.
2. 🛎Better Entry🛎: After a confirmed bullish breakaway, you will always have a good opportunity to enter the trade using established trading technique. Your edge will come from the position size, draw down, stop loss placement, risk/reward ratio.
3. ✂Cut loss fast✂: If you enter a trade according to the rule, but you are still not making profit for a period of time, and the price is below the low of the breakaway candle. It is very likely you may hit stop loss soon (intraday session low). It won't be a bad idea to cut loss before stop loss hit.
4. 🔂Reentry with confidence after stop loss🔂: a stop loss will not invalidate the indicator. If you see a second chance to reenter, you should still follow the trade guide and rule.
5. 🕔Time frame matter🕔: try 1m, 3m, 5m, 10m, 15m time frame. Over time, you should know what time frame work best for you and the market. Higher time frame will reduce the noise of false positive trade, but it comes with a higher stop loss placement and less max profit, however it may come with a lower draw down. Time frame will matter depending on the range of the session. If the session range is small (<0.5%), lower time frame is good. If session range is big (>1%), 5m time frame is better. Remember to wait for candle to close, if you use higher time frame.
Last Mention:
The indicator is only used for bullish side trading.
RTH Levels: VWAP + PDH/PDL + ONH/ONL + IBAlgo Index — Levels Pro (ONH/ONL • PDH/PDL • VWAP±Bands • IB • Gaps)
Purpose. A session-aware, non-repainting levels tool for intraday decision-making. Designed for futures and indices, with clean visuals, alerts, and a one-click Minimal Mode for screenshot-ready charts.
What it plots
• PDH/PDL (RTH-only) – Prior Regular Trading Hours high/low, computed intraday and frozen at the RTH close (no 24h mix-ups, no repainting).
• ONH/ONL – Prior Overnight high/low, held throughout RTH.
• RTH VWAP with ±σ bands – Volume-weighted variance, reset each RTH.
• Initial Balance (IB) – First N minutes of RTH, plus 1.5× / 2.0× extensions after IB completes.
• Today’s RTH Open & Prior RTH Close – With gap detection and “gap filled” alert.
• Killzone shading – NY Open (09:30–10:30 ET) and Lunch (11:15–13:30 ET).
• Values panel (top-right) – Each level with live distance in points & ticks.
• Right-edge level tags – With anti-overlap (stagger + vertical jitter).
• Price-scale tags – Native trackprice markers that always “stick” to the axis.
⸻
New in v6.4
• Minimal Mode: one click for a clean look (thinner lines, VWAP bands/IB extensions hidden, on-chart right-edge labels off; price-scale tags remain).
• Theme presets: Dark Hi-Contrast / Light Minimal / Futures Classic / Muted Dark.
• Anti-overlap controls: horizontal staggering, vertical jitter, and baseline offset to keep tags readable even when levels cluster.
⸻
Quick start (2 minutes)
1. Add to chart → keep defaults.
2. Sessions (ET):
• RTH Session default: 09:30–16:00 (US equities cash hours).
• Overnight Session default: 18:00–09:29.
Adjust for your market if you use different “day” hours (e.g., many use 08:20–13:30 ET for COMEX Gold).
3. Theme & Minimal Mode: pick a Theme Preset; enable Minimal Mode for screenshots.
4. Visibility: toggle PD/ON/VWAP/IB/References/Panel to taste.
5. Right-edge labels: turn Show Right-Edge Labels on. If they crowd, tune:
• Anti-overlap: min separation (ticks)
• Horizontal offset per tag (bars)
• Vertical jitter per step (ticks)
• Right-edge baseline offset (bars)
6. Alerts: open Add alert → Condition: and pick the events you want.
⸻
How levels are computed (no repainting)
• PDH/PDL: Intraday H/L are accumulated only while in RTH and saved at RTH close for “yesterday’s” values.
• ONH/ONL: Accumulated across the defined Overnight window and then held during RTH.
• RTH VWAP & ±σ: Volume-weighted mean and standard deviation, reset at the RTH open.
• IB: First N minutes of RTH (default 60). Extensions (1.5×/2.0×) appear after IB completes.
• Gaps: Today’s RTH open vs prior RTH close; “Gap Filled” triggers when price trades back to prior close.
⸻
Practical playbooks (how to trade around the levels)
1) PDH/PDL interactions
• Rejection: Price taps PDH/PDL then closes back inside → mean-reversion toward VWAP/IB.
• Acceptance: Close/hold beyond PDH/PDL with momentum → continuation to next HTF/IB target.
• Alert: PD Touch/Break.
2) ONH/ONL “taken”
• Often one ON extreme is taken during RTH. ONH Taken / ONL Taken → check if it’s a clean break or sweep & reclaim.
• Sweep + reclaim near VWAP can fuel rotations through the ON range.
3) VWAP ±σ framework
• Balanced: First tag of ±1σ often reverts toward VWAP.
• Trend: Persistent trade beyond ±1σ + IB break → target ±2σ/±3σ.
• Alerts: VWAP Cross and VWAP Reject (cross then immediate fail back).
4) IB breaks
• After IB completes, a clean IB break commonly targets 1.5× and sometimes 2.0×.
• Quick return inside IB = possible fade back to the opposite IB edge/VWAP.
• Alerts: IB Break Up / Down.
5) Gaps
• Gap-and-go: Opening drive away from prior close + VWAP support → trend until IB completion.
• Gap-fill: Weak open and VWAP overhead/underfoot → trade toward prior close; manage on Gap Filled alert.
Pro tip: Stack confluences (e.g., ONL sweep + VWAP reclaim + IB hold) and respect your execution rules (e.g., require a 5-minute close in direction, or your order-flow confirmation).
⸻
Inputs you’ll actually touch
• Sessions (ET): Session Timezone, RTH Session, Overnight Session.
• Visibility: toggles for PD/ON/VWAP/IB/Ref/Panel.
• VWAP bands: set σ multipliers (±1/±2/±3).
• IB: duration (minutes) and extension multipliers (1.5× / 2.0×).
• Style & Theme: Theme Preset, Main Line Width, Trackprice, Minimal Mode, and anti-overlap controls.
⸻
Alerts included
• PD Touch/Break — High ≥ PDH or Low ≤ PDL
• ONH Taken / ONL Taken — First in-RTH take of ONH/ONL
• VWAP Cross — Close crosses VWAP
• VWAP Reject — Cross then immediate fail back
• IB Break Up / Down — Break of IB High/Low after IB completes
• Gap Filled — Price trades back to prior RTH close
Setup: Add alert → Condition: Algo Index — Levels Pro → choose event → message → Notify on app/email.
⸻
Panel guide
The top-right panel shows each level plus live distance from last price:
LevelValue (Δpoints | Δticks)
Coloring: green if level is below current price, red if above.
⸻
Styling & screenshot tips
• Use Theme Preset that matches your chart.
• For dark charts, “Dark Hi-Contrast” with Main Line Width = 3 works well.
• Enable Trackprice for crisp axis tags that always stick to the right edge.
• Turn on Minimal Mode for cleaner screenshots (no VWAP bands or IB extensions, on-chart tags off; price-scale tags remain).
• If tags crowd, increase min separation (ticks) to 30–60 and horizontal offset to 3–5; add vertical jitter (4–12 ticks) and/or push tags farther right with baseline offset (bars).
⸻
Behavior & limitations
• Levels are computed incrementally; tables refresh on the last bar for efficiency.
• Right-edge labels are placed at bar_index + offset and do not track extra right-margin scrolling (TradingView limitation). The price-scale tags (from trackprice) do track the axis.
• “RTH” is what you define in inputs. If your market uses different day hours, change the session strings so PDH/PDL reflect your definition of “yesterday’s session.”
⸻
FAQ
Q: My PDH/PDL don’t match the daily chart.
A: By design this uses RTH-only highs/lows, not 24h daily bars. Adjust sessions if you want a different definition.
Q: Right-edge tags overlap or don’t sit at the far right.
A: Increase min separation / horizontal offset / vertical jitter and/or push tags farther with baseline offset. If you want markers that always hug the axis, rely on Trackprice.
Q: Can I change killzones?
A: Yes—edit the session strings in settings or request a version with user inputs for custom windows.
⸻
Disclaimer
Educational use only. This is not financial advice. Always apply your own risk management and confirmation rules.
⸻
Enjoy it? Please ⭐ the script and share screenshots using Minimal Mode + a Theme Preset that fits your style.
KAMA Trend Flip - SightLing LabsBuckle up, traders—this open-source KAMA Trend Flip indicator is your ticket to sniping trend reversals with a Kaufman Adaptive Moving Average (KAMA) that’s sharper than a Wall Street shark’s tooth. No voodoo, no fluff—just raw, volatility-adaptive math that dances with the market’s rhythm. It zips through trending rockets and chills in choppy waters, slashing false signals like a samurai. Not laggy like the others - this thing is the real deal!
Core Mechanics:
• Efficiency Ratio (ER): Reads the market’s pulse (0-1). High ER = turbo-charged MA, low ER = smooth operator.
• Adaptive Smoothing: Mixes fast (default power 2) and slow (default 30) constants to match market mood swings.
• Trend Signals: KAMA climbs = blue uptrend (bulls run wild). KAMA dips = yellow downtrend (bears take over). Flat = gray snooze-fest.
• Alerts: Instant pings on flips—“Trend Flip Up” for long plays, “Down” for shorts. Plug into bots for set-and-forget domination.
Why It Crushes:
• Smokes static MAs in volatile arenas (crypto, stocks, you name it). Backtests show 20-30% fewer fakeouts than SMA50.
• Visual Pop: Overlays price with bold blue/yellow signals. Slap it on BTC 1D to see trends light up like Times Square.
• Tweakable: Dial ER length (default 50) to your timeframe. Short for scalps, long for swing trades.
Example Settings in Action:
• 10s Chart (Hyper-Scalping): Set Source: Close, ER Length: 100, Fast Power: 1, Slow Power: 6. Catches micro-trends in crypto like a heat-seeking missile. Blue/yellow flips scream entry/exit on fast moves.
• 2m Chart (Quick Trades): Set Source: Close, ER Length: 14, Fast Power: 1, Slow Power: 6. Perfect for rapid trend shifts in stocks or forex. Signals align with momentum bursts—check historical flips for proof.
Deployment:
• Drop it on any chart. Backtest settings to match your asset’s volatility—tweak until it sings.
• Pair with RSI or volume spikes for killer confirmation. Pro move: Enter on flip + volume pop, exit on reverse.
• Strategy-Ready: Slap long/short logic on alerts to build a lean, mean trading machine.
Open source from SightLing Labs—grab it, hack it, profit from it. Share your tweaks in the comments and let’s outsmart the market together. Trade hard, win big!
Trendlines Oscillator [LuxAlgo]The Trendlines Oscillator helps traders identify trends and momentum based on the normalized distances between the current price and the most recently detected bullish and bearish trend lines.
The indicator features bullish and bearish momentum, a signal line with crossings, and multiple smoothing options.
🔶 USAGE
The indicator displays three lines: two for momentum and one for the signal. When one of the momentum lines (bullish or bearish) crosses the signal line, the tool displays a dot to indicate which momentum is gaining strength.
As a general rule, when the green bullish momentum line is above the red bearish momentum line, it indicates buyer strength. This means that the actual prices are farther from the support trend lines than the resistance trend lines. The opposite is true for seller strength.
To calculate bullish momentum, the tool first identifies bullish trend lines acting as support below the price. Then, it measures the delta between the price and those trend lines and normalizes the reading into the displayed momentum values.
The same process is used for bearish momentum, but with bearish trendlines acting as resistance above the price.
🔹 Length & Memory
Modifying the Length and Memory values will cause the tool to display different momentum values.
Traders can adjust the length to detect larger trendlines and adjust the memory to indicate how many trendlines the tool should consider.
As the chart above shows, smaller values make the tool more responsive, while larger values are useful for detecting larger trends.
🔹 Smoothing
By default, the data is not smoothed, and the signal uses a triangular moving average with a length of 10. Traders can smooth both the data and the signal line.
Traders can choose from up to ten different methods, or none. Some examples are shown on the chart above.
🔶 DETAILS
The steps for the calculations are as follows:
1. Gather the pivots, highs, and lows.
ph = fixnan(ta.pivothigh(lengthInput, lengthInput))
pl = fixnan(ta.pivotlow(lengthInput, lengthInput))
2. Calculate the slope and y-intercept for each trendline between contiguous lower highs (resistance) or higher lows (support).
if ph < ph
slope = (ph - ph )/(n-lengthInput - phx1)
res.unshift(l.new(ph - slope * phx1, slope))
if pl > pl
slope = (pl - pl )/(n-lengthInput - plx1)
sup.unshift(l.new(pl - slope * plx1, slope))
3. Calculate the value of each trendline on the current bar, then calculate the difference with the current price (delta). To calculate the relative sum of deltas, only consider trendlines below the price for support or above the price for resistance.
method get_point(l id, x)=>
id.slope * x + id.intercept
for element in sup
point = element.get_point(n)
if sourceInput > point
sup_sum += sourceInput - point
sup_den += math.abs(sourceInput - point)
for element in res
point = element.get_point(n)
if sourceInput < point
res_sum += point - sourceInput
res_den += math.abs(point - sourceInput)
4. Normalize the value from 0 to 100 by taking the sum of the relative values of the deltas divided by the sum of the absolute values of the deltas.
float supportLine = sup_sum / sup_den * 100
float resistanceLine = res_sum / res_den * 100
5. Smooth both values, then calculate the signal line as the difference between them.
float smoothSupport = smooth(supportLine,dataSmoothingInput,dataSmoothingLengthInput)
float smoothResistance = smooth(resistanceLine,dataSmoothingInput,dataSmoothingLengthInput)
float signal = math.abs(smoothSupport - smoothResistance)
float signalLine = smooth(signal,smoothingInput,smoothingLengthInput)
6. Calculate the crossing signals against the signal line, using only the first signal from each series of bullish or bearish crossings.
bullSignal = smoothSupport > signalLine and smoothSupport < signalLine
bearSignal = smoothResistance > signalLine and smoothResistance < signalLine
lastSignal := bullSignal and lastSignal == BEAR ? BULL : bearSignal and lastSignal == BULL ? BEAR : lastSignal
firstBull = ta.change(lastSignal) > 0
firstBear = ta.change(lastSignal) < 0
🔶 SETTINGS
Length: The size of the market structure used for trendline detection.
Memory: The number of trendlines used in calculations.
Source: The source for the calculations is closing prices by default.
🔹 Smoothing
Data Smoothing: Choose the smoothing method and length
Signal Smoothing: Choose the smoothing method and length
Tide Tracker ZonesTide Tracker Zones – Advanced Trend & Pullback Visualizer
Overview
Tide Tracker Zones is a sophisticated trading tool designed for traders who require clarity, precision, and actionable insights in real time. The indicator converts price action into dynamic trend zones, allowing users to instantly recognize market direction, potential reversals, and low-risk entry opportunities. By visualizing the market in this way, traders can focus on execution rather than deciphering complex charts.
Unlike static indicators, Tide Tracker Zones adapts to market volatility, providing a clear picture of bullish and bearish pressure across multiple timeframes. Its visual design, including color-coded trend zones, a prominent guide line, and carefully placed signals, ensures that market behavior is easy to interpret, making it suitable for scalping, swing trading, and longer-term strategies alike.
How It Works
The indicator relies on dynamic upper and lower bands derived from recent price ranges and a configurable multiplier. These bands expand during volatile periods and contract when price action stabilizes, creating flexible zones that reflect the dominant market tide.
A guide line tracks the active band, serving as a continuous reference for trend direction. Unlike traditional moving averages, the guide line does not clutter the chart but instead provides a subtle, intuitive indication of whether the market is in a bullish or bearish phase. Background shading reinforces this trend visually, highlighting bullish zones in one color and bearish zones in another, so the prevailing market flow is immediately clear.
The system continuously evaluates price relative to the bands to determine trend direction and detect potential reversals. When price crosses a band and flips the trend, the guide line updates, and signals are generated, providing traders with actionable information without overwhelming the chart.
Signals and Pullbacks
Tide Tracker Zones offers visual cues that make entry points more obvious and less speculative. Trend reversal arrows are plotted when the market changes direction: BUY arrows indicate a shift from bearish to bullish, and SELL arrows indicate a shift from bullish to bearish.
The indicator also highlights first pullbacks within an active trend. These pullback dots mark low-risk opportunities to enter a trend in progress, filtered to ensure that only the most relevant signals are displayed. The system uses ATR-based spacing to place arrows and dots vertically on the chart, preventing visual clutter and ensuring readability even during periods of high volatility.
Color-coded zones enhance situational awareness. Bullish zones are displayed in a customizable orange, while bearish zones are shown in green. Transparency is dynamically adjusted to maintain chart clarity while still providing a clear indication of trend strength.
Strategy Integration
Tide Tracker Zones can be used effectively for both trend-following and pullback strategies. Traders may enter positions in the direction of the guide line and colored zone, using trend reversal arrows for confirmation. First pullback dots offer tactical entries with reduced risk, allowing traders to enter a trend after a brief retracement.
Stop-loss levels can be placed just beyond the opposing trend zone, while take-profit targets may be determined using the width of the bands to account for market volatility. The indicator adapts seamlessly across multiple timeframes. Higher timeframes provide context and filter noise, while lower timeframes allow traders to refine entry timing. This makes it a versatile tool for scalping, swing trading, or longer-term positions.
Advanced Techniques
For traders seeking greater precision, Tide Tracker Zones can be combined with volume or momentum indicators to validate signals. Observing the sequence of trend arrows and pullback dots allows users to develop a systematic approach to entries and exits. Monitoring the width and behavior of the bands over time can also provide insights into periods of expanding or contracting volatility, helping traders anticipate market shifts.
Adjustments to the spread length and multiplier allow the indicator to be tuned for different assets and market conditions. By understanding the interaction between the guide line, trend zones, and pullback signals, traders can create a robust framework for decision-making, reducing guesswork and improving consistency.
Why Use Tide Tracker Zones
Tide Tracker Zones provides instant clarity and actionable insight in any market. Its dynamic zones and guide line give a clear visual understanding of trend direction, while trend reversal arrows and pullback dots highlight potential entry points. Unlike traditional indicators, it adapts to volatility and changing conditions, making it reliable across multiple asset classes and timeframes.
By combining trend detection, pullback analysis, and intuitive visual guidance, Tide Tracker Zones equips traders with a complete framework for disciplined, confident trading, transforming complex price action into a visual map of opportunity.