HMA Swing Levels [BigBeluga]An advanced swing structure and trend-following tool built on Hull Moving Average logic, designed to detect major reversals and track dynamic support/resistance zones.
This indicator analyzes price swings using pivot highs/lows and a smoothed HMA trend baseline. It highlights key reversal levels and keeps them active until breached, giving traders a clear visual framework for price structure and trend alignment. The pivots are calculated in real-time using non-lagging logic, making them highly responsive to market conditions.
🔵 CONCEPTS
Combines a fast-reacting Hull Moving Average (HMA) with pivot logic to capture precise directional changes.
Detects non-lagging reversal highs and lows when pivot points form and the HMA direction flips.
Projects these reversal levels forward as horizontal support/resistance lines until broken by price.
Active trend is shown with a step-style trail line that reflects HMA bias over time.
🔵 FEATURES
Swing Level Detection:
Identifies high/low reversals when trend direction changes and plots horizontal zones.
Non-lagging logic of swing points detection:
if h == high and high < h and change > 0
// Detected Swing High
if l == low and low > l and change < 0
// Detected Swing Low
Persistent Support & Resistance Lines:
Each detected swing high or low is extended forward until price invalidates the level. Dotted style is applied once breached.
Color-Coded Trend Trail:
Displays a stepped trend trail using HMA slope: lime = uptrend, blue = downtrend.
Automatic Labeling:
Each reversal level is labeled with its price for clear reference.
Age-Based Line Thickness:
Every level increases in thickness every 250 bars. The longer the level lasts, the stronger it is.
🔵 HOW TO USE
Use green (support) and blue (resistance) levels to frame key reaction zones.
Trade with the trend defined by the trail color: lime for bullish bias, blue for bearish.
Explore where buy or sell orders are stacked
Look for breaks of swing lines to anticipate trend shifts or breakout setups.
Adjust the "Trend Change" input to tune the sensitivity of swing detection.
Adjust the "SwingLevels" input to define how far back to search for valid pivots.
🔵 CONCLUSION
HMA Swing Levels offers a hybrid approach to structural and trend-based trading. With automated non-lagging swing detection, persistent support/resistance tracking, and intuitive HMA-based trend coloring, it provides a powerful visual system for discretionary and systematic traders alike.
Pivot points and levels
Candle Opens by HAZEDCandle Opens by HAZED
🎯 Overview
A clean, optimized indicator that displays key timeframe opening prices with enhanced performance and modern styling. Perfect for identifying critical support/resistance levels across multiple timeframes without chart clutter.
📈 Key Features
- 5 Major Timeframes: Daily, Weekly, Monthly, Quarterly, and Yearly opens
- Current Opens Only: No historical lookback - shows only the most recent/relevant levels
- Smart Positioning: Toggle between staggered lines (prevents overlap) or uniform length
- Dual Label Styles: Choose plain text (minimal) or enhanced labels with prices
- Performance Optimized: Streamlined code for faster loading and smoother operation
- Alert System: Get notified when any timeframe opens change
- Extended Hours Support: Works with pre/post market sessions
🎨 Customization Options
- Individual color selection for each timeframe
- Adjustable line width (1-4px)
- Right extension length control
- Optional left tail extensions
- Show/hide labels with style options
- Same length lines toggle for clean alignment
⚙️ Advanced Settings
- Discover Prices: Use chart data instead of HTF requests (for data feed discrepancies)
- Extended Hours: Display opens during pre/post market sessions
- Alert Controls: Enable/disable notifications for timeframe changes
📊 Default Configuration
- Enabled: Daily (Green), Weekly (Orange), Monthly (Red), Yearly (Blue)
- Disabled: Quarterly (Purple) - easily enabled if needed
- Labels: Enhanced style with prices shown by default
- Lines: 2px width, staggered positioning for optimal spacing
🚀 Performance Improvements
- Removed unnecessary historical data tracking
- Optimized drawing functions for better responsiveness
- Cleaner variable management and memory usage
- Enhanced yearly open detection algorithm
💡 Best Use Cases
- Swing trading: Identify key weekly/monthly levels
- Day trading: Respect daily opens as support/resistance
- Long-term investing: Monitor yearly opens for major trends
- Multi-timeframe analysis: See all key levels at once
🔧 Technical Notes
- Uses proper request.security() calls for accurate data
- Smart change detection prevents unnecessary redraws
- Handles different chart timeframes automatically
- Compatible with all asset classes and exchanges
Original concept enhanced and optimized by HAZED for modern trading needs.
Pivot Liquidity Sweep [scalpmeister]📌 Pivot Liquidity Sweep
Scalp-oriented, liquidity sweep-based advanced signal and strategy indicator.
This indicator analyzes the price's sweeping of significant pivot levels and the subsequent breakouts to generate long/short signals based on different logics. It is sensitive to both classic sweep logic and strong reversal candles. Additionally, it visually marks liquidity gathering zones, offering excellent opportunities especially for scalp and intraday traders.
⚙️ Features and Strategy Types
🟢 Automatic Pivot Detection:
Pivot high/low levels are detected and stored based on the number of left and right bars.
🔴 Sweep Detection (Stop Hunt):
If the price violates a pivot level with a wick and closes inside, it is considered a sweep (liquidity cleaning). Strategies activate after this sweep.
🧠 5 Different Signal Styles:
SweepBreak:
It is expected that the extreme (high/low) level of the sweeping candle is broken with a close.
PivotBreak:
After the sweep, the first newly formed pivot in the trend direction is expected to break. (It is dynamically determined and drawn on the chart.)
StrongSweep:
It is sufficient if the candle following the sweep surpasses the previous candle with a single candle. No additional breakout is expected.
StrongCandle:
Strong momentum candles measured with a special RSI calculation are taken into account. It considers strong opposite-direction candles formed shortly after a pivot sweep.
ReversalCandleSweep:
Reversal candles that close in the opposite direction after a sweep (e.g., a red close on a sweep candle formed at the top or a green close at the bottom) are directly considered as signals.
📐 Technical Details:
Signals are triggered only once (triggered control).
Sweep lines (green/red), Long and Short lines (Orange)
Strong candles are filtered using an RSI-momentum-based measurement system (StrongCandle).
Sweep and breakout zones are dynamically invalidated. That is, if the zones are violated by the price, the signals and lines are automatically canceled.
🎯 Who Should Use It?
Professional traders working with liquidity zones
Scalp and intraday strategy practitioners
Those focused on stop hunts, sweeps, and reversal zones
🔔 Alert Support:
Sweep High / Low Alert
Long / Short Signal Alert
DP_MoneyFlow_Osc_V4**DP_Moneyflow_Osc_V4** is a custom, volume‐weighted momentum oscillator built around the classic Money Flow Index (MFI), with a few twists to help you spot more reliable reversal points:
***Best way to use it is to take the signals as alert points, to understand when money is starting to flow in or starting to flow out. It is not intended to be a Buy or Sell signal at the point of entry where the label is printed.***
1. **Core Calculation**
* Computes the standard MFI on your chart’s native timeframe:
* Money Flow = typical price (H+L+C)/3 × volume
* Segregates positive vs. negative flow based on whether price rose or fell on each bar
* Smooths each with an N-bar SMA, forms the ratio, and maps it into a 0–100 scale
2. **Inversion & Smoothing**
* You can **invert** the oscillator around 50 (so peaks become troughs and vice versa) with the **Reverse MFI** toggle.
* Applies two layers of smoothing (one for raw noise reduction, another for longer-term trend stability).
3. **Dynamic Coloring**
* Above Overbought (OB) threshold → solid red; below Oversold (OS) → solid green.
* In between, it linearly fades from red/green toward black as it approaches the 50 midpoint.
* **Invert Colors** flips the hue logic (red ↔ green) if you prefer.
4. **Overbought/Oversold Zones**
* Plots horizontal lines at your chosen OB/OS levels.
* Optionally fills the zone between them for quick visual reference.
5. **Peak/Trough Signal Labels**
* Detects **true extremes** by finding when the oscillator reverses direction right at or beyond your OB/OS levels.
* Prints a tiny “OB” or “OS” label **exactly at that pivot bar**, so you see the high or low of the swing.
6. **Alternation Toggle**
* Prevents two consecutive “OS” or “OB” labels by enforcing strict Buy/Sell alternation—turn this on or off via **Enable Signal Alternation**.
---
**Use-Case**: This oscillator excels at pinpointing the *tops* and *bottoms* of strong volume‐backed moves, giving you clear pivot markers rather than every threshold crossover. Tweak the smoothing and threshold inputs to calibrate sensitivity to your market and timeframe.
cd_cisd_market_CxHi Traders,
Overview:
Many traders follow market structure to identify the market direction and seek trade opportunities in line with the trend.
However, markings derived from user-defined inputs can create different structures, depending on personal choices. For instance, choosing a pivot distance of 3 instead of 2 alters the structure, even though the chart remains the same. Ideally, the structure should remain consistent.
"Change in State Delivery" ( CISD ) is a widely accepted concept among traders and is considered a significant indicator of market direction based on the gain/loss of CISD levels.
In this indicator, CISD is selected as the primary criterion for marking market structure, eliminating the influence of user-dependent variations.
Here is a summary of the key logic and rules applied:
• When the price forms a new high/low, that level is only considered a pivot if a CISD has occurred.
• A bullish CISD is always followed by a bearish CISD, and vice versa.
• Pivot points form the internal structure.
• The internal structure is used to interpret the swing structure.
• Probabilities are derived from internal structure patterns.
________________________________________
Details:
How is CISD determined?
As is commonly known:
• When price makes a new high, the opening level of the first candle in the consecutive bullish candle sequence is marked.
• When price makes a new low, the opening of the first candle in the consecutive bearish sequence is marked.
• If there’s only one candle in the sequence, its opening level is used.
In a bullish market, losing a bearish CISD level (i.e., a close below it) or in a bearish market, gaining a bullish CISD level (i.e., a close above it) is interpreted as a potential shift in buyer-seller dominance and a possible market reversal.
________________________________________
How are internal (pivot) levels determined?
• When price closes below a bearish CISD level, the highest candle's high becomes a pivot high (PH).
• When price closes above a bullish CISD level, the lowest candle's low becomes a pivot low (PL).
• If the new PH is above the previous PH, it’s labeled as HH (Higher High); otherwise, LH (Lower High).
• If the new PL is below the previous PL, it’s labeled as LL (Lower Low); otherwise, HL (Higher Low).
________________________________________
Internal Market Structure:
• A series of HHs indicates a bullish internal structure.
• A series of LLs indicates a bearish internal structure.
________________________________________
Swing (Main) Market Structure:
Using internal pivots and previous swing levels, the main market structure is derived.
• A new swing high (SH) requires the price to move above the previous SH.
• A new swing low (SL) requires the price to move below the previous SL.
________________________________________
Probability Calculation:
Pivot levels forming the internal structure are coded as five-element sequences.
There are 64 possible combinations of such sequences made from consecutive PH and PL values.
Each pattern’s frequency from its starting candle is tracked.
To make it more understandable:
For example, after the four-sequence “HH, LL, LH,HL”, either HH or LH might follow.
The table shows the statistical likelihood of both possible outcomes for the most recent four-element sequence on the chart.
________________________________________
How reliable is it?
To assess reliability, results are calculated from the beginning using:
Success Rate (Suc. Rt) = Number of Correct Predictions / Total Predictions
This value is added to the table for reference.
It’s important to note that no statistical outcome guarantees certainty—every result offers a different interpretation. What truly matters is to avoid getting stopped out 😊.
________________________________________
Menu Options:
Show/hide preferences and color selections can be customized via the indicator menu.
________________________________________
What’s Coming in Future Versions?
Features such as FVG (Fair Value Gaps) between swing levels, volume imbalances, order blocks / mitigation blocks, Fibonacci levels, and relevant trade suggestions will be added.
________________________________________
This is a BETA version that I believe will help simplify your market reading. I’d be happy to hear your feedback and suggestions.
Cheerful Trading!
ADR et %+Vol (ADR ou %)This indicator identifies breakout bars based on significant price movements combined with increased trading volume. It allows you to define breakout thresholds in two ways:
Key Features:
Threshold Method: Choose between:
Fixed Percentage (%): Specify an exact percentage move.
ADR-based (%): Utilize the Average Daily Range (ADR) multiplied by a factor of your choice.
ADR Calculation: Offers two distinct calculation methods to suit your trading style:
True Range (TR): Incorporates overnight gaps, making it ideal for swing trading.
High-Low (H-L): Purely intraday measure, suitable for day trading without gap consideration.
Timeframe Flexibility:
Select the desired timeframe for ADR calculation (e.g., Daily, Weekly, Hourly), providing flexibility to match your specific trading horizon.
Visual Signals:
Blue Bar Coloring: Highlights breakout candles clearly.
Blue Circle Markers: Signals bars with significant price movement accompanied by strong volume.
Information Display:
Shows the ADR percentage, selected timeframe, and calculation method directly on the chart (top-right), providing instant clarity about the current settings.
Usage Recommendations:
Use True Range ADR if you hold positions overnight or trade multi-day swings.
Opt for High-Low ADR if you're trading purely intraday and prefer simpler measures.
This versatile indicator is suited for both swing and intraday traders looking for reliable volatility measures combined with volume confirmation.
Directional Change Extremes by CR86Подтверждение сигналов в индкаторе Directional Change происходит на основе алгоритма отката цены (sigma), заданного как процент от предыдущего экстремума. Процесс следующий:
Поиск вершины (Top): Изначально индикатор ищет максимум (tmp_max). Когда цена откатывает ниже текущего максимума на величину sigma (например, close < tmp_max - tmp_max * sigma), вершина подтверждается, и сигнал Top фиксируется. Это запускает поиск основания.
Поиск основания (Bottom): После подтверждения вершины минимальная цена (tmp_min) обновляется. Когда цена растет выше текущего минимума на sigma (например, close > tmp_min + tmp_min * sigma), основание подтверждается, и сигнал Bottom фиксируется. Это переключает индикатор обратно к поиску вершины.
Условия: Подтверждение происходит только при закрытии бара, что обеспечивает стабильность сигнала. Метки "Confirm" появляются на баре, где выполнено условие отката.
Пример: Если tmp_max = 1000 и sigma = 0.031, подтверждение Top произойдет, когда цена упадет ниже 969 (1000 * 0.969).
English
Signal confirmation in the Directional Change indicator is based on a price retracement algorithm (sigma) defined as a percentage of the previous extreme. The process is as follows:
Top Detection: The indicator initially seeks a maximum (tmp_max). A top is confirmed when the price retraces below the current maximum by sigma (e.g., close < tmp_max - tmp_max * sigma), triggering a Top signal. This shifts the focus to bottom detection.
Bottom Detection: After a top is confirmed, the minimum price (tmp_min) is updated. A bottom is confirmed when the price rises above the current minimum by sigma (e.g., close > tmp_min + tmp_min * sigma), triggering a Bottom signal. This switches the indicator back to seeking a top.
Conditions: Confirmation occurs only on bar close, ensuring signal stability. "Confirm" labels appear on the bar where the retracement condition is met.
Example: If tmp_max = 1000 and sigma = 0.031, a Top is confirmed when the price drops below 969 (1000 * 0.969).
SMT DivergenceSMT Divergence Indicator
This powerful indicator identifies high-probability reversal points by detecting SMT (Smart Money Technique) divergences between two correlated assets. It spots subtle shifts in market momentum, revealing when one asset fails to confirm the price action of another—often signaling an impending trend change.
Key Features:
Inter-Market Divergence Detection: Automatically compares the price action of the main symbol with a second user-defined asset.
Identifies Key Reversals: Pinpoints both bullish and bearish SMT divergences, highlighting hidden strength in downtrends and underlying weakness in uptrends.
Customizable Pivot Detection: Allows fine-tuning of the pivot length to adjust sensitivity for different market conditions and timeframes.
Flexible Display Modes: Choose between clean 'Lines' connecting the diverging pivots or precise 'Labels' marking the exact high/low points.
Full Visual Customization: Complete control over the colors and line thickness for seamless integration with your existing chart layout.
Built-in Alerts: Stay notified of every potential opportunity with alerts for both bullish and bearish signals.
Settings:
Core Parameters:
Comparison Symbol: Select the second asset to compare against for divergence analysis (e.g., NQ1! if you are charting ES1!).
Pivot Length: Defines the number of bars to the left and right required to confirm a pivot high or low.
Visual Settings:
Display Style: Choose to visualize divergences as 'Lines' or 'Labels'.
Bearish/Bullish Color: Set custom colors for bearish and bullish divergence indicators.
Line Width: Adjust the thickness of the divergence lines for optimal visibility.
Perfect for traders who utilize inter-market analysis to confirm trade ideas. The SMT Divergence indicator provides a crucial edge by exposing non-confirmations between related assets, allowing for earlier and more confident entries into potential market reversals.
The Butterfly [theUltimator5]This is a technical analysis tool designed to automatically detect and visualize Butterfly harmonic patterns based on recent market pivot structures. This indicator uses a unique plotting and detection algorithm to find and display valid Butterfly patterns on the chart.
The indicator works in real-time and historically by identifying major swing highs and lows (pivots) based on a user-defined ZigZag length. It then evaluates whether the most recent price structure conforms to the ideal proportions of a bullish or bearish Butterfly pattern. If the ratios between price legs XA, AB, BC, and projected CD meet defined tolerances, the pattern is plotted on the chart along with a projected D point for potential reversal.
Key Features:
Automatic Pivot Detection: The script analyzes recent price action to construct a ZigZag pattern, identifying swing points as potential X, A, B, and C coordinates.
Butterfly Pattern Validation: The pattern is validated against traditional Fibonacci ratios:
--AB should be approximately 78.6% of XA.
--BC must lie between 38.2% and 88.6% of AB.
--CD is projected as a multiple of BC, with user control over the ratio (e.g., 1.618–2.24).
Bullish and Bearish Recognition: The pattern logic detects both bullish and bearish Butterflies, automatically adjusting plotting direction and color themes.
Custom Ratio Tolerance: Users can define how strictly the AB/XA and BC/AB legs must adhere to ideal ratios, using a percentage-based tolerance slider.
Fallback Detection Logic: If a new pattern is not identified in recent bars, the script performs a backward search on the last four pivots to find the most recent valid pattern.
Force Mode: A toggle allows users to force the drawing of a Butterfly pattern on the most recent pivot structure, regardless of whether the ideal Fibonacci rules are satisfied.
Dynamic Visualization:
--Clear labeling of X, A, B, C, and D points.
--Colored connecting lines and filled triangles to visualize structure.
--Optional table displaying key Fibonacci ratios and how close each leg is to ideal values.
Inputs:
Length: Controls the sensitivity of the ZigZag pivots. Smaller values result in more frequent pivots.
Tolerance (%): Adjustable threshold for acceptable deviation in AB/XA and BC/AB ratios.
CD Length Multiplier: Projects point D by multiplying the BC leg using a value between 1.618 and 2.24.
Force New Pattern: Overrides validation checks to display a Butterfly structure on recent pivots regardless of ratio accuracy.
Show Table: Enables a table showing calculated ratios and deviations from the ideal.
Trend Lines by CR86The basic construction algorithm:
1. The baseline trend line through the closing prices:
First, the best fit line (linear regression) is calculated for the closing prices for a given period.
The least squares method is used to find the optimal slope and intersection point.
2. Search for key deviation points:
For each bar in the period, the deviation of the maximum and minimum from the regression baseline is calculated.
The point with the maximum deviation of the maximum upward from the regression line (for the resistance line) is located
The point with the maximum deviation of the minimum is located down from the regression line (for the support line)
3. Optimizing the slope of the lines:
Lines with an optimized slope are drawn through the found key points.
The algorithm selects the slope so that the line best "bends around" the corresponding extremes (maxima for resistance, minima for support)
Numerical optimization is used to check the validity of the trend line.
4. The principle of validity:
For the support line: all points must be above or at the line level (with a tolerance of 1e-5)
For the resistance line: all points must be below or at the line level (with a tolerance of 1e-5)
Key Features
Adaptability: the lines automatically adjust to the actual price extremes
Mathematical precision: a rigorous mathematical approach with optimization is used
Logarithmic scaling: optional for dealing with highly volatile assets
The basic construction algorithm
1. The baseline trend line through the closing prices:
First, the best fit line (linear regression) is calculated for the closing prices for a given period.
The least squares method is used to find the optimal slope and intersection point.
2. Search for key deviation points:
For each bar in the period, the deviation of the maximum and minimum from the regression baseline is calculated.
The point with the maximum deviation of the maximum upward from the regression line (for the resistance line) is located
The point with the maximum deviation of the minimum is located down from the regression line (for the support line)
3. Optimizing the slope of the lines:
Lines with an optimized slope are drawn through the found key points.
The algorithm selects the slope so that the line best "bends around" the corresponding extremes (maxima for resistance, minima for support)
Numerical optimization is used to check the validity of the trend line.
4. The principle of validity:
For the support line: all points must be above or at the line level (with a tolerance of 1e-5)
For the resistance line: all points must be below or at the line level (with a tolerance of 1e-5)
Key Features
Adaptability: the lines automatically adjust to the actual price extremes
Mathematical precision: a rigorous mathematical approach with optimization is used
Logarithmic scaling: optional for dealing with highly volatile assets
***********************************************************************************************
Основной алгоритм построения:
1. Базовая линия тренда через цены закрытия:
Сначала вычисляется линия наилучшего соответствия (линейная регрессия) для цен закрытия за заданный период
Используется метод наименьших квадратов для нахождения оптимального наклона и точки пересечения
2. Поиск ключевых точек отклонения:
Для каждого бара в периоде вычисляется отклонение максимума и минимума от базовой линии регрессии
Находится точка с максимальным отклонением максимума вверх от линии регрессии (для линии сопротивления)
Находится точка с максимальным отклонением минимума вниз от линии регрессии (для линии поддержки)
3. Оптимизация наклона линий:
Через найденные ключевые точки проводятся линии с оптимизированным наклоном
Алгоритм подбирает такой наклон, чтобы линия наилучшим образом "огибала" соответствующие экстремумы (максимумы для сопротивления, минимумы для поддержки)
Используется численная оптимизация с проверкой валидности трендовой линии
4. Принцип валидности:
Для линии поддержки: все точки должны быть выше или на уровне линии (с допуском 1e-5)
Для линии сопротивления: все точки должны быть ниже или на уровне линии (с допуском 1e-5)
Ключевые особенности
Адаптивность: линии автоматически подстраиваются под фактические экстремумы цен
Математическая точность: используется строгий математический подход с оптимизацией
Логарифмическое масштабирование: опционально для работы с сильно волатильными активами
Protected Pivots Points by RiotwolftradingProtected Pivots Points by Riotwolftrading
---
You have an advanced visual tool designed for traders who want to identify and manage key price levels with maximum precision.
This script detects protected pivots (significant highs and lows) and marks them with horizontal lines on the chart. These lines automatically extend for a fixed number of bars or until price invalidates the level with a closing break.
---
🚀 What makes this indicator special?
---
✅ Protected pivot detection:
The indicator identifies protected highs and lows using a fixed pivot strength
✅ Wick break detection (liquidity sweep visualization):
When a wick crosses the pivot level **without the candle closing beyond the level, the indicator automatically changes the line’s color and style.
👉 This immediately shows the trader that the level was tested but remains structurally valid.
✅ Highly customizable visuals:
* Choose whether to show color for protected highs, lows, or wick break levels.
* Set your own colors, line styles (solid, dashed, dotted), and line widths.
---
### 🌟 Why is wick break detection so valuable?
---
💡 Instant context on price action:
No need to manually check every candle to see if a level was barely tested. The indicator changes the line’s appearance automatically, so you can focus on decisions.
💡 Clear distinction between untouched levels and tested levels:
* A level with no wick test is pristine support/resistance.
* A level tested by a wick but not invalidated is still valid — but may have been swept for liquidity.
💡 Crucial for precision trading strategies:
This is particularly important for strategies that rely on:
✅ Liquidity sweeps / stop hunts.
✅ Reversals from tested zones.
✅ Smart Money Concepts (SMC).
✅ ICT concepts, breakers, Quasimodo, BOS/MSS.
The wick break visualization helps filter false breakouts and highlights areas where institutional players may have stepped in.
💡 Avoid premature exits or entries:**
The color/style change tells you a level was tested but not broken, so you avoid overreacting to wick activity.
---
### ⚡ Example use case**
Imagine a protected low line:
🔹 Price dips and its wick touches the level — the line changes color (e.g. violet solid line).
🔹 The level is still valid because the close didn’t break it.
🔹 This could signal a stop hunt or liquidity grab, with a possible reversal opportunity right at that level.
---
### 🧭 **Why most pivot indicators don’t offer this**
Most pivot indicators:
❌ Simply mark the level and remove it after a close break.
❌ Don’t distinguish between a wick test and a true break.
🌟 **This indicator does — giving traders an extra layer of market insight.**
---
### ⚠ **Disclaimer**
This indicator is a visual aid to help identify key levels and price reactions. It does **not** generate buy or sell signals and should be used alongside your trading analysis and strategy.
---
Murrey Math Lines v6Murrey Math Lines v6
This is not just another Murrey Math indicator. It's a complete, ground-up modernization of the classic concept, rebuilt with the latest Pine Script features for unparalleled performance, accuracy, and usability. While preserving the core mathematical genius of T.H. Murrey's system, this version introduces a suite of modern tools designed for today's trader.
What are Murrey Math Lines?
Murrey Math Lines (MML) are a powerful system of support and resistance based on geometric formulas developed by T.H. Murrey. As a derivation of W.D. Gann's observations, Murrey's geometry simplifies Gann's theories into a more accessible application. The core principle is that price action tends to trend and retrace in 1/8th intervals.
These intervals create a "trading octave" with distinct levels, each having its own characteristic behavior:
& - Ultimate Resistance & Support: These lines are the hardest to break. They represent the top and bottom of the expected price range and are prime areas for reversals.
- Major Pivot: This is the most significant level, offering the strongest support and resistance within the octave. Price has a high probability of stopping and reversing here.
& - Strong Pivot/Reversal: These are strong, secondary pivot points where price often struggles to pass through.
& - The Trading Range: The price tends to consolidate between these two lines about 50% of the time. A decisive break outside this range often signals the start of a new trend.
& - Weak Support/Resistance: These levels are weaker, but when price moves too quickly towards them, they can act as initial stopping points or areas for a minor reversal.
& - Extended Octave: These lines show extreme overbought and oversold conditions beyond the primary 0/8 to 8/8 octave.
Modern Enhancements in This Version
Session-Locked Precision: Anchor the Murrey Lines to the start of a specific trading session (e.g., NYSE open). The levels remain constant for the entire session, providing a stable and reliable framework for your daily analysis.
Visual Trading & Reversal Zones: Instead of just lines, this indicator can fill the key trading range (3/8 to 5/8) and reversal zones (0/8-1/8 & 7/8-8/8) with color, giving you an instant visual reference of market sentiment.
Dynamic "Closest Price" Labels: Declutter your chart! The indicator can intelligently display only the label for the Murrey level closest to the current price, keeping your view clean while providing critical information at a glance.
Integrated Alert System: Never miss a key level touch again. Set up alerts for when the price approaches major lines, the trading range, or all lines, customized to your trading style.
Advanced Pine Script Engine: Built on a modern codebase using User-Defined Types and dynamic drawing objects (line, box, label). This ensures the indicator is fast, efficient, and non-repainting, even on lower timeframes.
Intuitive User Interface: Settings are neatly organized into collapsible groups with clear tooltips, making it incredibly easy to customize every aspect of the indicator, from calculation parameters to colors.
A Note on Accuracy
Some of the other Murrey Math indicators on TradingView use different formulas and therefore produce varying results. This version has been carefully checked against MML indicators on other professional platforms to ensure its calculations are accurate and reliable.
Credits
This indicator is a complete overhaul and modernization of the original "MM Lines " script. Full credit for the original calculation logic and concept goes to its author, JRL_6.
Grothendieck-Teichmüller Geometric SynthesisDskyz's Grothendieck-Teichmüller Geometric Synthesis (GTGS)
THEORETICAL FOUNDATION: A SYMPHONY OF GEOMETRIES
The 🎓 GTGS is built upon a revolutionary premise: that market dynamics can be modeled as geometric and topological structures. While not a literal academic implementation—such a task would demand computational power far beyond current trading platforms—it leverages core ideas from advanced mathematical theories as powerful analogies and frameworks for its algorithms. Each component translates an abstract concept into a practical market calculation, distinguishing GTGS by identifying deeper structural patterns rather than relying on standard statistical measures.
1. Grothendieck-Teichmüller Theory: Deforming Market Structure
The Theory : Studies symmetries and deformations of geometric objects, focusing on the "absolute" structure of mathematical spaces.
Indicator Analogy : The calculate_grothendieck_field function models price action as a "deformation" from its immediate state. Using the nth root of price ratios (math.pow(price_ratio, 1.0/prime)), it measures market "shape" stretching or compression, revealing underlying tensions and potential shifts.
2. Topos Theory & Sheaf Cohomology: From Local to Global Patterns
The Theory : A framework for assembling local properties into a global picture, with cohomology measuring "obstructions" to consistency.
Indicator Analogy : The calculate_topos_coherence function uses sine waves (math.sin) to represent local price "sections." Summing these yields a "cohomology" value, quantifying price action consistency. High values indicate coherent trends; low values signal conflict and uncertainty.
3. Tropical Geometry: Simplifying Complexity
The Theory : Transforms complex multiplicative problems into simpler, additive, piecewise-linear ones using min(a, b) for addition and a + b for multiplication.
Indicator Analogy : The calculate_tropical_metric function applies tropical_add(a, b) => math.min(a, b) to identify the "lowest energy" state among recent price points, pinpointing critical support levels non-linearly.
4. Motivic Cohomology & Non-Commutative Geometry
The Theory : Studies deep arithmetic and quantum-like properties of geometric spaces.
Indicator Analogy : The motivic_rank and spectral_triple functions compute weighted sums of historical prices to capture market "arithmetic complexity" and "spectral signature." Higher values reflect structured, harmonic price movements.
5. Perfectoid Spaces & Homotopy Type Theory
The Theory : Abstract fields dealing with p-adic numbers and logical foundations of mathematics.
Indicator Analogy : The perfectoid_conv and type_coherence functions analyze price convergence and path identity, assessing the "fractal dust" of price differences and price path cohesion, adding fractal and logical analysis.
The Combination is Key : No single theory dominates. GTGS ’s Unified Field synthesizes all seven perspectives into a comprehensive score, ensuring signals reflect deep structural alignment across mathematical domains.
🎛️ INPUTS: CONFIGURING THE GEOMETRIC ENGINE
The GTGS offers a suite of customizable inputs, allowing traders to tailor its behavior to specific timeframes, market sectors, and trading styles. Below is a detailed breakdown of key input groups, their functionality, and optimization strategies, leveraging provided tooltips for precision.
Grothendieck-Teichmüller Theory Inputs
🧬 Deformation Depth (Absolute Galois) :
What It Is : Controls the depth of Galois group deformations analyzed in market structure.
How It Works : Measures price action deformations under automorphisms of the absolute Galois group, capturing market symmetries.
Optimization :
Higher Values (15-20) : Captures deeper symmetries, ideal for major trends in swing trading (4H-1D).
Lower Values (3-8) : Responsive to local deformations, suited for scalping (1-5min).
Timeframes :
Scalping (1-5min) : 3-6 for quick local shifts.
Day Trading (15min-1H) : 8-12 for balanced analysis.
Swing Trading (4H-1D) : 12-20 for deep structural trends.
Sectors :
Stocks : Use 8-12 for stable trends.
Crypto : 3-8 for volatile, short-term moves.
Forex : 12-15 for smooth, cyclical patterns.
Pro Tip : Increase in trending markets to filter noise; decrease in choppy markets for sensitivity.
🗼 Teichmüller Tower Height :
What It Is : Determines the height of the Teichmüller modular tower for hierarchical pattern detection.
How It Works : Builds modular levels to identify nested market patterns.
Optimization :
Higher Values (6-8) : Detects complex fractals, ideal for swing trading.
Lower Values (2-4) : Focuses on primary patterns, faster for scalping.
Timeframes :
Scalping : 2-3 for speed.
Day Trading : 4-5 for balanced patterns.
Swing Trading : 5-8 for deep fractals.
Sectors :
Indices : 5-8 for robust, long-term patterns.
Crypto : 2-4 for rapid shifts.
Commodities : 4-6 for cyclical trends.
Pro Tip : Higher towers reveal hidden fractals but may slow computation; adjust based on hardware.
🔢 Galois Prime Base :
What It Is : Sets the prime base for Galois field computations.
How It Works : Defines the field extension characteristic for market analysis.
Optimization :
Prime Characteristics :
2 : Binary markets (up/down).
3 : Ternary states (bull/bear/neutral).
5 : Pentagonal symmetry (Elliott waves).
7 : Heptagonal cycles (weekly patterns).
11,13,17,19 : Higher-order patterns.
Timeframes :
Scalping/Day Trading : 2 or 3 for simplicity.
Swing Trading : 5 or 7 for wave or cycle detection.
Sectors :
Forex : 5 for Elliott wave alignment.
Stocks : 7 for weekly cycle consistency.
Crypto : 3 for volatile state shifts.
Pro Tip : Use 7 for most markets; 5 for Elliott wave traders.
Topos Theory & Sheaf Cohomology Inputs
🏛️ Temporal Site Size :
What It Is : Defines the number of time points in the topological site.
How It Works : Sets the local neighborhood for sheaf computations, affecting cohomology smoothness.
Optimization :
Higher Values (30-50) : Smoother cohomology, better for trends in swing trading.
Lower Values (5-15) : Responsive, ideal for reversals in scalping.
Timeframes :
Scalping : 5-10 for quick responses.
Day Trading : 15-25 for balanced analysis.
Swing Trading : 25-50 for smooth trends.
Sectors :
Stocks : 25-35 for stable trends.
Crypto : 5-15 for volatility.
Forex : 20-30 for smooth cycles.
Pro Tip : Match site size to your average holding period in bars for optimal coherence.
📐 Sheaf Cohomology Degree :
What It Is : Sets the maximum degree of cohomology groups computed.
How It Works : Higher degrees capture complex topological obstructions.
Optimization :
Degree Meanings :
1 : Simple obstructions (basic support/resistance).
2 : Cohomological pairs (double tops/bottoms).
3 : Triple intersections (complex patterns).
4-5 : Higher-order structures (rare events).
Timeframes :
Scalping/Day Trading : 1-2 for simplicity.
Swing Trading : 3 for complex patterns.
Sectors :
Indices : 2-3 for robust patterns.
Crypto : 1-2 for rapid shifts.
Commodities : 3-4 for cyclical events.
Pro Tip : Degree 3 is optimal for most trading; higher degrees for research or rare event detection.
🌐 Grothendieck Topology :
What It Is : Chooses the Grothendieck topology for the site.
How It Works : Affects how local data integrates into global patterns.
Optimization :
Topology Characteristics :
Étale : Finest topology, captures local-global principles.
Nisnevich : A1-invariant, good for trends.
Zariski : Coarse but robust, filters noise.
Fpqc : Faithfully flat, highly sensitive.
Sectors :
Stocks : Zariski for stability.
Crypto : Étale for sensitivity.
Forex : Nisnevich for smooth trends.
Indices : Zariski for robustness.
Timeframes :
Scalping : Étale for precision.
Swing Trading : Nisnevich or Zariski for reliability.
Pro Tip : Start with Étale for precision; switch to Zariski in noisy markets.
Unified Field Configuration Inputs
⚛️ Field Coupling Constant :
What It Is : Sets the interaction strength between geometric components.
How It Works : Controls signal amplification in the unified field equation.
Optimization :
Higher Values (0.5-1.0) : Strong coupling, amplified signals for ranging markets.
Lower Values (0.001-0.1) : Subtle signals for trending markets.
Timeframes :
Scalping : 0.5-0.8 for quick, strong signals.
Swing Trading : 0.1-0.3 for trend confirmation.
Sectors :
Crypto : 0.5-1.0 for volatility.
Stocks : 0.1-0.3 for stability.
Forex : 0.3-0.5 for balance.
Pro Tip : Default 0.137 (fine structure constant) is a balanced starting point; adjust up in choppy markets.
📐 Geometric Weighting Scheme :
What It Is : Determines the framework for combining geometric components.
How It Works : Adjusts emphasis on different mathematical structures.
Optimization :
Scheme Characteristics :
Canonical : Equal weighting, balanced.
Derived : Emphasizes higher-order structures.
Motivic : Prioritizes arithmetic properties.
Spectral : Focuses on frequency domain.
Sectors :
Stocks : Canonical for balance.
Crypto : Spectral for volatility.
Forex : Derived for structured moves.
Indices : Motivic for arithmetic cycles.
Timeframes :
Day Trading : Canonical or Derived for flexibility.
Swing Trading : Motivic for long-term cycles.
Pro Tip : Start with Canonical; experiment with Spectral in volatile markets.
Dashboard and Visual Configuration Inputs
📋 Show Enhanced Dashboard, 📏 Size, 📍 Position :
What They Are : Control dashboard visibility, size, and placement.
How They Work : Display key metrics like Unified Field , Resonance , and Signal Quality .
Optimization :
Scalping : Small size, Bottom Right for minimal chart obstruction.
Swing Trading : Large size, Top Right for detailed analysis.
Sectors : Universal across markets; adjust size based on screen setup.
Pro Tip : Use Large for analysis, Small for live trading.
📐 Show Motivic Cohomology Bands, 🌊 Morphism Flow, 🔮 Future Projection, 🔷 Holographic Mesh, ⚛️ Spectral Flow :
What They Are : Toggle visual elements representing mathematical calculations.
How They Work : Provide intuitive representations of market dynamics.
Optimization :
Timeframes :
Scalping : Enable Morphism Flow and Spectral Flow for momentum.
Swing Trading : Enable all for comprehensive analysis.
Sectors :
Crypto : Emphasize Morphism Flow and Future Projection for volatility.
Stocks : Focus on Cohomology Bands for stable trends.
Pro Tip : Disable non-essential visuals in fast markets to reduce clutter.
🌫️ Field Transparency, 🔄 Web Recursion Depth, 🎨 Mesh Color Scheme :
What They Are : Adjust visual clarity, complexity, and color.
How They Work : Enhance interpretability of visual elements.
Optimization :
Transparency : 30-50 for balanced visibility; lower for analysis.
Recursion Depth : 6-8 for balanced detail; lower for older hardware.
Color Scheme :
Purple/Blue : Analytical focus.
Green/Orange : Trading momentum.
Pro Tip : Use Neon Purple for deep analysis; Neon Green for active trading.
⏱️ Minimum Bars Between Signals :
What It Is : Minimum number of bars required between consecutive signals.
How It Works : Prevents signal clustering by enforcing a cooldown period.
Optimization :
Higher Values (10-20) : Fewer signals, avoids whipsaws, suited for swing trading.
Lower Values (0-5) : More responsive, allows quick reversals, ideal for scalping.
Timeframes :
Scalping : 0-2 bars for rapid signals.
Day Trading : 3-5 bars for balance.
Swing Trading : 5-10 bars for stability.
Sectors :
Crypto : 0-3 for volatility.
Stocks : 5-10 for trend clarity.
Forex : 3-7 for cyclical moves.
Pro Tip : Increase in choppy markets to filter noise.
Hardcoded Parameters
Tropical, Motivic, Spectral, Perfectoid, Homotopy Inputs : Fixed to optimize performance but influence calculations (e.g., tropical_degree=4 for support levels, perfectoid_prime=5 for convergence).
Optimization : Experiment with codebase modifications if advanced customization is needed, but defaults are robust across markets.
🎨 ADVANCED VISUAL SYSTEM: TRADING IN A GEOMETRIC UNIVERSE
The GTTMTSF ’s visuals are direct representations of its mathematics, designed for intuitive and precise trading decisions.
Motivic Cohomology Bands :
What They Are : Dynamic bands ( H⁰ , H¹ , H² ) representing cohomological support/resistance.
Color & Meaning : Colors reflect energy levels ( H⁰ tightest, H² widest). Breaks into H¹ signal momentum; H² touches suggest reversals.
How to Trade : Use for stop-loss/profit-taking. Band bounces with Dashboard confirmation are high-probability setups.
Morphism Flow (Webbing) :
What It Is : White particle streams visualizing market momentum.
Interpretation : Dense flows indicate strong trends; sparse flows signal consolidation.
How to Trade : Follow dominant flow direction; new flows post-consolidation signal trend starts.
Future Projection Web (Fractal Grid) :
What It Is : Fibonacci-period fractal projections of support/resistance.
Color & Meaning : Three-layer lines (white shadow, glow, colored quantum) with labels showing price, topological class, anomaly strength (φ), resonance (ρ), and obstruction ( H¹ ). ⚡ marks extreme anomalies.
How to Trade : Target ⚡/● levels for entries/exits. High-anomaly levels with weakening Unified Field are reversal setups.
Holographic Mesh & Spectral Flow :
What They Are : Visuals of harmonic interference and spectral energy.
How to Trade : Bright mesh nodes or strong Spectral Flow warn of building pressure before price movement.
📊 THE GEOMETRIC DASHBOARD: YOUR MISSION CONTROL
The Dashboard translates complex mathematics into actionable intelligence.
Unified Field & Signals :
FIELD : Master value (-10 to +10), synthesizing all geometric components. Extreme readings (>5 or <-5) signal structural limits, often preceding reversals or continuations.
RESONANCE : Measures harmony between geometric field and price-volume momentum. Positive amplifies bullish moves; negative amplifies bearish moves.
SIGNAL QUALITY : Confidence meter rating alignment. Trade only STRONG or EXCEPTIONAL signals for high-probability setups.
Geometric Components :
What They Are : Breakdown of seven mathematical engines.
How to Use : Watch for convergence. A strong Unified Field is reliable when components (e.g., Grothendieck , Topos , Motivic ) align. Divergence warns of trend weakening.
Signal Performance :
What It Is : Tracks indicator signal performance.
How to Use : Assesses real-time performance to build confidence and understand system behavior.
🚀 DEVELOPMENT & UNIQUENESS: BEYOND CONVENTIONAL ANALYSIS
The GTTMTSF was developed to analyze markets as evolving geometric objects, not statistical time-series.
Why This Is Unlike Anything Else :
Theoretical Depth : Uses geometry and topology, identifying patterns invisible to statistical tools.
Holistic Synthesis : Integrates seven deep mathematical frameworks into a cohesive Unified Field .
Creative Implementation : Translates PhD-level mathematics into functional Pine Script , blending theory and practice.
Immersive Visualization : Transforms charts into dynamic geometric landscapes for intuitive market understanding.
The GTTMTSF is more than an indicator; it’s a new lens for viewing markets, for traders seeking deeper insight into hidden order within chaos.
" Where there is matter, there is geometry. " - Johannes Kepler
— Dskyz , Trade with insight. Trade with anticipation.
Elliott Wave Universal PRO [Full Ratios]Elliott Wave Universal PRO
Overview
This advanced Elliott Wave indicator helps traders identify and project potential wave structures with Fibonacci ratios. It supports both impulse and corrective patterns with multiple variations, providing visual projections for standard, minimal, and maximal wave extensions.
Key Features
✅ Multiple Wave Patterns
Impulse waves (Classic, Extended, Diagonal, Truncated, etc.)
Corrective waves (Zigzag, Flat, Triangle, Double/Triple Zigzag, etc.)
✅ Customizable Projections
Adjustable start/end points for wave labeling
Standard, minimal, and maximal Fibonacci-based projections
✅ Visual Customization
Color/style settings for different ratio types
Clean labeling for wave structure clarity
✅ Flexible Display
Toggle between impulse/correction modes
Enable/disable ratio projections as needed
How to Use
Set Points: Define the start (0) and first wave (A) using the input settings.
Select Pattern: Choose from impulse or correction templates.
Adjust Display: Customize colors, line styles, and ratio visibility.
⚠ Note: This tool is for educational purposes and should be used alongside other analysis methods. Past performance does not guarantee future results.
Elliott Wave Universal PRO
Обзор
Этот продвинутый индикатор волн Эллиотта помогает трейдерам определять и прогнозировать волновые структуры с использованием соотношений Фибоначчи. Поддерживает импульсные и коррекционные модели с различными вариациями, визуализируя стандартные, минимальные и максимальные проекции волн.
Основные функции
✅ Различные волновые модели
Импульсы (Классические, Удлиненные, Диагонали, Усеченные и др.)
Коррекции (Зигзаги, Плоскости, Треугольники, Двойные/Тройные зигзаги и др.)
✅ Настраиваемые проекции
Ручное задание точек начала (0) и первой волны (A)
Стандартные, минимальные и максимальные проекции на основе Фибоначчи
✅ Гибкость отображения
Настройка цветов и стилей линий
Четкие метки для удобного анализа структуры
✅ Управление отображением
Переключение между импульсами и коррекциями
Включение/отключение типов проекций
Как использовать
Установите точки: Задайте начало (0) и первую волну (A) во входных параметрах.
Выберите шаблон: Укажите тип структуры (импульс/коррекция).
Настройте отображение: Измените цвета, стили линий и видимость проекций.
⚠ Важно: Индикатор предназначен для образовательных целей. Используйте его в сочетании с другими методами анализа.
Market Sell-Off GaugeOVERVIEW
The Market Sell‑Off Gauge identifies high‑conviction, risk‑off entry opportunities by detecting broad market sell‑off behavior and rising stablecoin dominance, then confirming risk‑off sentiment via NDX weakness, VIX spikes, and elevated volume. It uses fuzzy logic and sigmoid scaling to convert raw signals into a smooth, bounded metric.
FEATURES
Sell‑Off Detection - calculates percentage drops in the primary asset over a user‑defined lookback.
Stablecoin Dominance Surge - tracks combined USDT/USDC dominance rises as a proxy for on‑chain “flight to safety.”
Macro Confirmation
NDX Weakness (NASDAQ‑100)
VIX Spikes (CBOE Volatility Index)
Elevated Volume on declining bars
Fuzzy Logic & Scaling - component values feed into a fuzzy‑logic membership scor and are passed through a sigmoid compressor (–1 to +1). Weighted aggregation derives the final result of the gauge (or metric).
VISUALISATION
Continuous line plot - Smoothed metric (–1 to +1), colored cold‑to‑warm.
Entry circles - Highlighted when all conditions (fuzzy or crisp) are met after the time offset.
Time‑Offset marker - Vertical line/label showing the user‑specified “start” bar.
Component table - Displays real‑time % changes & volume multiples in the lower right of the indicator.
USAGE
Asset drop % - The threshold percent decline to register a sell‑off.
Stables rise % - The threshold percent increase in stablecoin dominance to qualify as a “flight to safety.”
NDX drop % - The threshold percent decline in the NASDAQ‑100 for macro confirmation.
VIX rise % - The threshold percent increase in VIX. Contributes to risk‑off validation.
Volume Multiplier - Defines how many times above SMA volume must rise to confirm conviction.
Lookback Period - Controls the number of bars over which % changes are measured.
Time Offset - Point in time beyond which bars to “fade” historical signals, enables focus on recent data only.
Fuzzy Logic Settings - Enables fuzzy scoring and set membership threshold & sensitivity.
Weights - allows for adjusting the relative importance of each component (Asset, Stables, NDX, VIX, Volume).
Sigmoid Steepness (k) - Controls curve steepness for compression (0.1 = very flat → 5.0 = very sharp S‑curve).
Chart & settings
Best applied on 4H or Daily BTCUSD (or similar) charts to capture meaningful sell‑off events.
Combine with broader trend filters (e.g., moving averages) for trend‑aligned entries.
Adjust Sigmoid Steepness and Membership Sensitivity to fine‑tune signal crispness vs. smoothness. Refer to tooltips.
Disclaimer
This indicator is intended for educational purposes only. Always perform your own due diligence before making financial decisions.
Option Range Projector PRO (with Alerts)Indicator Name: Option Range Projector PRO (with Alerts)
Short Description
This is a powerful and flexible tool for traders that visualizes expected price movement ranges based on option pricing principles and statistical deviations. The indicator plots standard deviation levels (Sigmas) and boundaries calculated from the price of an options Straddle, providing a unique insight into market volatility expectations.
It is ideal for options traders, as well as those who trade futures or spot assets and want to gain an edge by understanding where the market anticipates price boundaries on a specific date.
Core Concepts
The indicator is based on three key ideas:
Standard Deviation (Sigma, σ): In statistics, this is a measure of value dispersion. In trading, when applied to prices, standard deviation levels show the probable range within which the price is expected to remain until a specific date (expiration).
±1σ (1 Sigma): Approximately 68.2% probability that the price will stay within this range.
±2σ (2 Sigmas): Approximately 95.4% probability. These levels often act as strong support/resistance.
±3σ (3 Sigmas): Approximately 99.7% probability. Reaching these levels is a statistically rare event.
Implied Volatility (IV): This is a key component. IV is the market's forecast of the asset's future volatility. It is derived from current option prices and reflects how significant the price movements are expected to be by traders. The higher the IV, the wider the calculated ranges will be.
Straddle-Based Levels: A straddle is an options strategy involving the simultaneous purchase of a Call and a Put option with the same strike price and expiration date. The cost of this combination (Call + Put) directly reflects the market's expected price movement in points. Our indicator uses this value to construct alternative, highly accurate boundaries of the expected range.
Key Features
Flexible Expiration Choice: Easily switch between standard contracts (Weekly, Monthly, Quarterly) or set any custom number of days to expiration (DTE).
Dual Volatility Calculation Mode: Use automatic calculation based on historical data or enter a precise IV value manually (e.g., from your broker's terminal) for maximum accuracy.
Two Types of Predictive Levels: Visualize classic standard deviations (Sigmas) and/or levels calculated from the Straddle price for a comprehensive analysis.
Expiration Comparison: Enable the display of additional levels for a different expiration date to visually compare short-term and long-term market expectations.
"Greeks" Calculation: The indicator calculates and displays key option Greeks (Delta, Gamma, Theta, Vega), helping to deepen the understanding of an option position's characteristics.
Informative Table: All key data—ATM price, IV, DTE, level prices, Greeks, and option prices—are consolidated into one clear table for quick analysis.
Customizable Alerts: Get instant notifications directly in TradingView when the price crosses any of the important levels (±1σ, ±2σ, ±3σ).
Full Visual Customization: Control colors, line thickness, labels, and zone fills to adapt the indicator to your trading style.
How to Use (Settings)
Price Settings:
Auto-detect ATM Price: When enabled, the indicator will use the current closing price as the At-The-Money (ATM) price.
Manual ATM Price: If auto mode is disabled, you can set a precise ATM price manually.
Volatility Settings:
Auto-calculate IV: Calculates historical volatility over a specified period. Useful if you don't have access to real-time IV.
Manual IV Value: (Recommended for accuracy). Enter the Implied Volatility (IV) value for the desired strike from your brokerage terminal or analytical services here.
Expiration:
Contract Type: Choose one of the standard terms (Weekly, Monthly, Quarterly) or "Custom" to use a manual day input.
Days to Expiration: Active only for the "Custom" type.
Show Multiple Expirations: Enables a second set of levels with a different term for comparison.
Straddle Boundaries:
Use Manual Input: Allows you to enter the precise Call and Put Settle prices from the official exchange summary (e.g., from the CME website). This provides the most accurate boundaries based on real market prices.
Trading Ideas and Application
Mean Reversion Trading: The ±2σ and ±3σ levels often act as strong overbought/oversold zones. A price reaching these extreme values has a high statistical probability of reversing or correcting back towards the central ATM price.
Trend Confirmation and Breakouts: A confident close outside the ±1σ range can indicate the beginning of a strong directional move.
Risk Management: Use the levels to set stop-losses or determine profit targets. For example, when opening a trade near the +1σ level, you might consider a target at +2σ and place a stop-loss behind the ATM level.
Volatility Analysis: By comparing the width of the ranges for different expirations, you can assess how the market is pricing short-term versus long-term risks. A narrow range suggests low expectations, while a wide range indicates high ones.
Disclaimer: This indicator is an analysis tool and does not provide direct financial advice or trading signals. All trading decisions are your own. Use this indicator in conjunction with other analysis methods.
CDP - Counter-Directional-Pivot🎯 CDP - Counter-Directional-Pivot
📊 Overview
The Counter-Directional-Pivot (CDP) indicator calculates five critical price levels based on the previous day's OHLC data, specifically designed for multi-timeframe analysis. Unlike standard pivot points, CDP levels are calculated using a unique formula that identifies potential reversal zones where price action often changes direction.
⚡ What Makes This Script Original
This implementation solves several technical challenges that existing pivot indicators face:
🔄 Multi-Timeframe Consistency: Values remain identical across all timeframes (1m, 5m, 1h, daily) - a common problem with many pivot implementations
🔒 Intraday Stability: Uses advanced value-locking technology to prevent the "stepping" effect that occurs when pivot lines shift during the trading session
💪 Robust Data Handling: Optimized for both liquid and illiquid stocks with enhanced data synchronization
🧮 CDP Calculation Formula
The indicator calculates five key levels using the previous day's High (H), Low (L), and Close (C):
CDP = (H + L + C) ÷ 3 (Central Decision Point)
AH = 2×CDP + H – 2×L (Anchor High - Strong Resistance)
NH = 2×CDP – L (Near High - Moderate Resistance)
AL = 2×CDP – 2×H + L (Anchor Low - Strong Support)
NL = 2×CDP – H (Near Low - Moderate Support)
✨ Key Features
🎨 Visual Elements
📈 Five Distinct Price Levels: Each with customizable colors and line styles
🏷️ Smart Label System: Shows exact price values for each level
📋 Optional Value Table: Displays all levels in an organized table format
🎯 Clean Chart Display: Minimal visual clutter while maximizing information
⚙️ Technical Advantages
🔐 Session-Locked Values: Prices are locked at market open, preventing intraday shifts
🔄 Multi-Timeframe Sync: Perfect consistency between daily and intraday charts
✅ Data Validation: Built-in checks ensure reliable calculations
🚀 Performance Optimized: Efficient code structure for fast loading
💼 Trading Applications
🔄 Reversal Zones: AH and AL often act as strong turning points
💥 Breakout Confirmation: Price movement beyond these levels signals trend continuation
🛡️ Risk Management: Use levels for stop-loss and take-profit placement
🏗️ Market Structure: Understand daily ranges and potential price targets
📚 How to Use
🚀 Basic Setup
Add the indicator to your chart (works on any timeframe)
Customize colors for easy identification of support/resistance zones
Enable the value table for quick reference of exact price levels
📈 Trading Strategy Examples
🟢 Long Bias: Look for bounces at NL or AL levels
🔴 Short Bias: Watch for rejections at NH or AH levels
💥 Breakout Trading: Enter positions when price decisively breaks through anchor levels
↔️ Range Trading: Use CDP as the central reference point for range-bound markets
🎯 Advanced Strategy Combinations
RSI Integration for Enhanced Signals: 📊
📉 Oversold Bounces: Combine RSI below 30 with price touching AL/NL levels for high-probability long entries
📈 Overbought Rejections: Look for RSI above 70 with price rejecting AH/NH levels for short opportunities
🔍 Divergence Confirmation: When RSI shows bullish divergence at support levels (AL/NL) or bearish divergence at resistance levels (AH/NH), it often signals stronger reversal potential
⚡ Momentum Confluence: RSI crossing 50 while price breaks through CDP can confirm trend direction changes
⚙️ Configuration Options
🎨 Line Customization: Adjust width, style (solid/dashed/dotted), and colors
👁️ Display Preferences: Toggle individual levels, labels, and value table
📍 Table Position: Place the value table anywhere on your chart
🔔 Alert System: Get notifications when price crosses key levels
🔧 Technical Implementation Details
🎯 Data Reliability
The script uses request.security() with lookahead settings to ensure historical accuracy while maintaining real-time functionality. The value-locking mechanism prevents the common issue where pivot levels shift during the trading day.
🔄 Multi-Timeframe Logic
⏰ Intraday Charts: Display previous day's calculated levels as stable horizontal lines
📅 Daily Charts: Show current day's levels based on yesterday's OHLC
🔍 Consistency Check: All timeframes reference the same source data
🤔 Why CDP vs Standard Pivots?
Counter-Directional Pivots often provide more accurate reversal points than traditional pivot calculations because they incorporate the relationship between high/low ranges and closing prices more effectively. The formula creates levels that better reflect market psychology and institutional trading behaviors.
💡 Best Practices
💧 Use on liquid markets for most reliable results
📊 RSI Combination: Add RSI indicator for overbought/oversold confirmation and divergence analysis
📊 Combine with volume analysis for confirmation
🔍 Consider multiple timeframe analysis (daily levels on hourly charts)
📝 Test thoroughly in paper trading before live implementation
💪 Example Market Applications
NASDAQ:AAPL AAPL - Tech stock breakouts through AH levels
$NYSE:SPY SPY - Index trading with CDP range analysis
NASDAQ:TSLA TSLA - Volatile stock reversals at AL/NL levels
⚠️ This indicator is designed for educational and analytical purposes. Always combine with proper risk management and additional technical analysis tools.
Auto Trendlines (Finviz Style)Oculus Auto Trendlines
Version 1.0 | Pine Script v6
Overview
Oculus Auto Trendlines automatically identifies and plots the most significant support and resistance trendlines by connecting the two most recent swing highs (resistance) and swing lows (support) over a user-defined pivot lookback. Each line extends dynamically to the right, recalculates in real time, and self-invalidates when price decisively breaks beyond it by a configurable tolerance.
Key Features
Automatic Pivot Detection
Uses ta.pivothigh and ta.pivotlow over your chosen bar span to pinpoint significant market turning points.
Dynamic Trendline Drawing
Connects the last two valid pivots to form support and resistance lines that update and extend to the right each bar.
Break-Triggered Refresh
When price closes beyond a drawn trendline by more than the break tolerance, that line is removed and a new one is drawn from the next valid pivots.
Configurable Sensitivity
Pivot Lookback: Number of bars on each side to define swings.
Break Tolerance: Percentage buffer to prevent false invalidations on minor wicks.
Clean Overlay
Minimal code and plotting ensures your chart remains uncluttered—only one support and one resistance line are visible at any time.
How to Use
Add to Chart: Apply “Oculus Auto Trendlines” to any symbol and timeframe.
Set Inputs:
Pivot Lookback: Larger values produce smoother, longer-term lines; smaller values react faster to recent price.
Break Tolerance (%): Adjust to allow for minor wicks or noise without resetting lines.
Read Trendlines:
The red resistance line connects the two most recent swing highs.
The green support line connects the two most recent swing lows.
Lines automatically redraw when invalidated by a clean break beyond tolerance.
Combine with Other Analysis: Use these auto-drawn trendlines alongside indicators like moving averages, volume, or price patterns for stronger confluence.
Inputs
Pivot Lookback: 10 (bars each side)
Break Tolerance (%): 0.2%
Version History
1.0 – Initial release with real-time pivot detection, auto-updating trendlines, and break validation.
Disclaimer
This indicator is provided for educational purposes. Always backtest settings on historical data, verify trendline relevance, and apply proper risk management before trading live.
Worldwide Sessions and Open Range BreakoutThis script shows when the various normal market hours for each of the major worldwide markets (Asia, New York, and London). It also draws a line on the opening range for each of these market sessions. The opening range defaults to the first 15 minutes of the session, but this can be customized.
This script does automatically handle the session times regardless of your time zone or what time frame you are on. No need to set anything! This probably can't handle non-normal trading days, such as partial days.
This script is made for futures, but would likely work for other markets, like Forex.
Candlestick Body and Wick Midpoints [Dire]Summary
This indicator provides a deeper look into intra-bar price action by plotting the precise halfway point of each candlestick's body, top wick, and bottom wick. It renders three distinct, color-coded horizontal lines on each of the most recent candles, helping traders identify hidden micro-levels of interest.
How It Works
For each candlestick, the indicator calculates and plots:
Top Wick Midpoint: The median price of the sell-off (or profit-taking) range.
Body Midpoint: The equilibrium or "fair price" point between the open and close.
Bottom Wick Midpoint: The median price of the buy-up (or support) range.
How to Use
These levels can serve as micro-pivots or points of interest for price action analysis. A return to a previous wick's midpoint may signal a potential reaction. Observing how these levels align over several bars can reveal subtle areas of price consensus or rejection that are not obvious from standard candle charts.
Customization
Lookback Period: Easily adjust the number of recent candles to analyze via the "Inputs" tab.
Colors: The color for each of the three lines (Top Wick, Body, and Bottom Wick) can be fully customized in the "Style" tab of the indicator settings.
Momentum Flip Pro - Advanced ZigZag Trading SystemMomentum Flip Pro - Advanced ZigZag Trading System
Complete User Guide
📊 What This Indicator Does
The Momentum Flip Pro is an advanced position-flipping trading system that automatically identifies trend reversals using ZigZag patterns combined with momentum analysis. It's designed for traders who want to always be in the market, flipping between long and short positions at optimal reversal points.
Key Features:
Automatically flips positions at each ZigZag reversal point
Dynamic stop loss placement at exact ZigZag levels
Real-time trading dashboard with performance metrics
Capital tracking and ROI calculation
Three momentum engines to choose from
🎯 How It Works
Entry Signal: When a ZigZag point appears (circle on chart), the indicator:
Exits current position (if any)
Immediately enters opposite position
Places stop loss at the exact ZigZag price
Exit Signal: Positions are closed when the next ZigZag appears, then immediately reversed
Position Management:
Long Entry: ZigZag bottom (momentum turns UP)
Short Entry: ZigZag peak (momentum turns DOWN)
Stop Loss: Always at the ZigZag entry price
Take Profit: Next ZigZag point (automatic position flip)
⚙️ Recommended Settings
For Day Trading (5m-15m timeframes):
Momentum Engine: Quantum
- RSI Length: 9-12
- Quantum Factor: 3.5-4.0
- RSI Smoothing: 3-5
- Threshold: 8-10
For Swing Trading (1H-4H timeframes):
Momentum Engine: MACD
- Fast Length: 12
- Slow Length: 26
- Signal Smoothing: 9
- MA Type: EMA
For Position Trading (Daily):
Momentum Engine: Moving Average
- Average Type: EMA or HMA
- Length: 20-50
📈 How to Use for Trading
Add to Chart:
Add indicator to your chart
Set your starting capital
Choose your preferred momentum engine
Understanding Signals:
Green circles: Strong bullish momentum reversal
Red circles: Strong bearish momentum reversal
Purple circles: Normal momentum reversal
Entry labels: Show exact entry points with tooltips
Trading Rules:
Enter LONG when you see an up arrow + green/purple circle
Enter SHORT when you see a down arrow + red/purple circle
Stop loss is automatically at the ZigZag level
Hold until next ZigZag appears (exit + reverse)
Risk Management:
Risk per trade = Entry Price - Stop Loss
Position size = (Capital * Risk %) / Risk per trade
Recommended risk: 1-2% per trade
💡 Best Practices
Market Conditions:
Works best in trending markets
Excellent for volatile pairs (crypto, forex majors)
Avoid during low volume/consolidation
Timeframe Selection:
Lower timeframes (5m-15m): More signals, higher noise
Higher timeframes (1H+): Fewer signals, higher reliability
Sweet spot: 15m-1H for most traders
Momentum Engine Selection:
Quantum: Best for volatile markets (crypto, indices)
MACD: Best for trending markets (forex, stocks)
Moving Average: Best for smooth trends (commodities)
📊 Dashboard Interpretation
The trading dashboard shows:
Current Capital: Your running balance
Position: Current trade direction
Entry/Stop: Your risk levels
Statistics: Win rate and performance
ROI: Overall return on investment
⚠️ Important Notes
Always Active: This system is always in a position (long or short)
No Neutral: You're either long or short, never flat
Automatic Reversal: Positions flip at each signal
Stop Loss: Fixed at entry ZigZag level (doesn't trail)
🎮 Quick Start Guide
Beginners: Start with default settings on 1H timeframe
Test First: Use paper trading to understand the signals
Small Size: Begin with 1% risk per trade
Track Results: Monitor the dashboard statistics
Adjust: Fine-tune momentum settings based on results
🔧 Customization Tips
Color Signals: Enable to see momentum strength
Dashboard Position: Move to preferred screen location
Visual Settings: Adjust colors for your theme
Alerts: Set up for automated notifications
This indicator is ideal for traders who prefer an always-in-market approach with clear entry/exit rules and automated position management. The key to success is choosing the right momentum engine for your market and maintaining disciplined risk management.
Multi-Timeline 1.0Multi-TimeLines 1.0 - Comprehensive Description
WHAT IT DOES:
This indicator creates dynamic horizontal support/resistance lines based on opening prices captured at user-defined New York times. Unlike static horizontal lines, these levels automatically appear and disappear based on sophisticated session logic, providing traders with time-sensitive reference levels that adapt to market sessions.
HOW IT WORKS - TECHNICAL IMPLEMENTATION:
1.
Timezone Conversion Engine:
The script uses Pine Script's "America/New_York" timezone functions to ensure all time calculations are based on NY time, regardless of the user's chart timezone. This eliminates confusion and provides consistent behavior across global markets.
2.
Dual-Category Time Classification System:
The indicator employs a unique two-category classification system:
Category A (16:00-23:59 NY): Evening times that extend overnight until next day 15:59 NY
Category B (00:00-15:59 NY): Day times that extend until same day 15:59 NY
This classification handles the complex logic of overnight sessions and prevents lines from incorrectly resetting at midnight for evening times.
3. Price Capture Mechanism:
Uses precise time-hit detection with backup systems for edge cases (especially midnight 00:00). When a specified time occurs, the script captures the bar's opening price and stores it in persistent variables using Pine Script's var declarations.
4. Session-Aware Display Logic:
Lines only appear during their designated "display windows" - periods when the captured price level is relevant. The script uses conditional plotting with plot.style_linebr to create clean breaks when lines are inactive.
5. Smart Reset System:
Different reset behaviors based on time classification:
Category A times persist across midnight (for overnight analysis)
Category B times reset on day changes (except 00:00 which captures AT day change)
Automatic cleanup when display windows close
ORIGINALITY & UNIQUE FEATURES:
1. Overnight Session Handling:
Unlike basic horizontal line tools, this script properly handles overnight spans for evening times, making it invaluable for analyzing gaps and overnight price action.
2. Automatic Session Management:
No manual line drawing required - the script automatically manages when lines appear/disappear based on NY market sessions (15:59 close, 18:00 after-hours start).
3. Time-Window Display Logic:
Lines only show during relevant periods, reducing chart clutter and focusing attention on currently active levels.
TRADING CONCEPTS & APPLICATIONS:
1. Session-Based Analysis:
Capture opening prices at key session times:
00:00 NY: Sydney/Asian session start
03:00 NY: London pre-market
08:00 NY: London session open
09:30 NY: NYSE opening bell
18:00 NY: After-hours start
2. Gap Analysis:
Evening times (20:00-23:59) that extend overnight are particularly useful for:
Identifying potential gap-fill levels
Tracking overnight high/low breaks
Setting reference points for next-day trading
3. Support/Resistance Framework:
Opening prices at significant times often act as:
Intraday support/resistance levels
Reference points for breakout/breakdown analysis
Pivot levels for mean reversion strategies
HOW TO USE:
1. Time Input:
Enter times in "HH:MM" format using 24-hour NY time:
"09:30" for NYSE open
"15:30" for late-day reference
"20:00" for evening level (extends overnight)
2. Line Behavior:
Blue/Green/Cyan/Red lines: Your custom times
Yellow line: After-hours day open (18:00 NY start)
Lines appear with breaks during inactive periods
3. Strategic Setup:
Use 2-3 key session times for your trading style
Combine morning times (immediate reference) with evening times (overnight analysis)
Toggle after-hours line based on your market focus
CALCULATION METHOD:
The script uses direct opening price capture (no smoothing or averaging) at precise time hits, ensuring the most accurate representation of actual market levels at specified times. This raw price approach maintains the integrity of actual market opening prices rather than manipulated or calculated values.
This method is particularly effective because opening prices at significant times often represent institutional order flow and can act as magnetic levels throughout subsequent sessions.
1st FVGOverview
This indicator is specifically designed for intraday price action traders who focus on the NASDAQ opening range. Its primary function is to automatically identify, plot, and alert on the very first Fair Value Gap (FVG) that forms during the critical 30-minute window of the New York morning session, from 9:30 AM to 10:00 AM ET.
The script intelligently ignores any gaps that rely on pre-market data, ensuring that the detected FVG is a true imbalance created by the initial volume and volatility of the regular trading session. This tool helps traders to quickly pinpoint a key area of interest right after the market opens.
Key Features
First FVG Detection: Pinpoints only the initial FVG of the session and ignores all subsequent ones for the day.
Specific Time Window: Operates strictly between 9:30 and 10:00 AM New York time.
Strict Formation Rule: To ensure accuracy, the entire 3-bar FVG pattern must form at or after the 9:30 AM candle. This prevents false signals from pre-market price action.
Visual Price Zones: Automatically draws a clean, colored box around the FVG, making the zone easy to see. The box can be extended to track future price interactions.
Customizable Display: Control how many historical FVGs to show on your chart and how far the zone extends to the right.
Built-in Alerts: Get real-time notifications the moment the first FVG is confirmed, so you never miss a potential setup.
How It Works
The indicator scans the price action candle by candle. Once the 9:30 AM ET session begins, it looks for the first valid 3-bar FVG pattern (also known as a price imbalance).
A Bullish FVG is identified when the low of the current candle is higher than the high of the candle two periods ago.
A Bearish FVG is identified when the high of the current candle is lower than the low of the candle two periods ago.
Once the first FVG for the day is detected and plotted, the script will remain dormant until the next trading day begins, keeping your chart clean and focused.
Settings
Number of FVG History: Controls how many of the most recent daily FVGs are displayed on the chart.
Extend Box To End: A checkbox to extend the FVG zone all the way to the right edge of the chart. This is useful for tracking how price interacts with the zone later in the day.
Manual Box Length: If the "Extend Box" option is unchecked, this input sets a fixed length for the box (in number of bars).
How to Set Up Alerts
Add the indicator to your chart.
Click the 'Alert' icon (alarm clock) in the TradingView toolbar.
In the 'Condition' dropdown menu, select "1st FVG".
A second dropdown will appear, which should be set to "Alert Function Call".
Choose your preferred notification options (e.g., pop-up, email, app notification).
Click 'Create'.
Disclaimer: This indicator is a tool for technical analysis and should not be considered as financial advice. Always use proper risk management and conduct your own research before making any trading decisions.