Double Top/Bottom DetectorDouble Top/Bottom Detector Indicator Description
Overview
The Double Top/Bottom Detector is a technical analysis tool designed to automatically identify and label potential double top and double bottom patterns on price charts. By combining pivot point detection with configurable height tolerance and pullback depth criteria, this indicator helps traders visually spot possible trend reversal zones without manual drawing or guesswork.
Key Features
• Pivot Point Identification
The indicator uses a symmetric window approach to find true highs and lows. A pivot high is confirmed only when a bar’s high exceeds the highs of a specified number of bars both before and after it. Likewise, a pivot low is established when a bar’s low is the lowest in its surrounding window.
• Double Top and Double Bottom Detection
– Height Tolerance: Ensures that the two pivot points forming the pattern are within a user-defined percentage of each other.
– Pullback Depth: Measures the drop (for a double top) or the rise (for a double bottom) between the two pivot points and confirms that it meets a minimum percentage threshold.
• Automatic Drawing and Labeling
When a valid double top is detected, a red line connects the two pivot highs and a “Double Top” label is centered above the line. For a double bottom, a green line connects the two pivot lows and a “Double Bottom” label appears below the midpoint.
• Pivot Visualization for Debugging
Small red and green triangles mark every detected pivot high and pivot low on the chart, making it easy to verify and fine-tune settings.
Parameters
Height Tolerance (%) – The maximum allowable percentage difference between the two pivot heights (default 2.0).
Pullback Minimum (%) – The minimum required percentage pullback (for tops) or rebound (for bottoms) between the two pivots (default 5.0).
Pivot Lookback – The number of bars to look back and forward for validating pivot points (default 5).
Window Length – The number of bars over which to compute pullback extrema, equal to twice the pivot lookback plus one (default derived from pivot lookback).
Usage Instructions
1. Copy the Pine Script code into TradingView’s editor and select version 6.
2. Adjust the parameters based on the asset’s volatility and timeframe. A larger lookback window yields fewer but more reliable pivots; tighter height tolerance produces more precise pattern matches.
3. Observe the chart for red and green triangles marking pivot highs and lows. When two qualifying pivots occur, the indicator draws a connecting line and displays a descriptive label.
4. To extend the number of visible historical lines and labels, increase the max\_lines\_count and max\_labels\_count settings in the indicator declaration.
Customization Ideas
• Add volume or moving average filters to reduce false signals.
• Encapsulate pivot logic into reusable functions for cleaner code.
• Incorporate alert conditions to receive notifications when new double top or bottom patterns form.
This indicator is well suited for medium- to long-term analysis and can be combined with risk management rules to enhance decision making.
Penunjuk dan strategi
XAU/XAG Ratio + Posiciones + Señales (solo riesgo)Spread Strategy using xau and xag ratios. You also have a table with the proportion of the entry's
Ratio up : sell xau buy xag
ratio down : buy xau sell xag
Trade managment on your own.
personaly
i trade daily chart
i open and close simultaniusly both positions, and look for a 1:2,5 ratio RB. you can also use stop loss when the ratio goes against you
Custom Bias TableTradingview indicator that creates a resizable, repositionable table with:
: 2 columns: TIMEFRAME and BIAS
: Adjustable number of rows
: Customizable text for each cell
: Customizable text color
: Positioned in the top-right of the chart
Khalid Grid Trading Levels//@version=5
indicator("Khalid Grid Trading Levels", overlay=true)
lowerPrice = input.float(1.8, "Lower Price")
upperPrice = input.float(3.2, "Upper Price")
numGrids = input.int(10, "Number of Grids")
gridSpacing = (upperPrice - lowerPrice) / numGrids
// Draw grid lines
for i = 0 to numGrids
level = lowerPrice + i * gridSpacing
line.new( x1 = bar_index - 500, y1 = level, x2 = bar_index + 500, y2 = level, color = color.gray, width = 1, style = line.style_solid )
OB🚀 NEW TradingView Indicator – Order Blocks! 📊
Tired of messy charts full of clutter?
Meet the indicator that does the heavy lifting:
🔹 Automatically marks all Order Blocks (OB)
🔹 Auto-deletes them once they’re broken (when price closes beyond the high/low)
🔹 Keeps your chart clean, clear, and focused
🔹 Works on all timeframes
🔹 Fully customizable to match your trading style
CVD VWAP (1m CVD, Daily/Weekly + EMA + WMA)🟠 CVD VWAP (1m CVD, Daily/Weekly + EMA + WMA)
This custom indicator combines Cumulative Volume Delta (CVD) with a VWAP-style calculation, built on 1-minute resolution data, and includes smoothed trend analysis via EMA and WMA.
🔍 Key Features:
1-Minute CVD Calculation:
Captures buying vs. selling pressure by comparing close vs. open price per minute.
CVD-Based VWAP:
A custom VWAP that uses CVD instead of price, reset Daily or Weekly (user-selectable). This helps identify volume-weighted mean "pressure" rather than price-weighted mean value.
Smoothed Trend Lines:
EMA (Exponential Moving Average): Applied to the CVD to show short-term momentum shifts.
WMA (Weighted Moving Average): Highlights trend strength and sensitivity with adjustable period, thickness, and color.
Flexible Visuals:
Adjustable thickness for each line.
Displayed in a separate pane for clear analysis, independent of price action.
⚙️ Inputs:
VWAP Reset Mode: Choose between Daily or Weekly reset.
EMA Period & Thickness
WMA Period, Color & Thickness
🧠 Use Cases:
Detect divergence between price and CVD-based VWAP.
Monitor trend alignment via CVD, EMA, and WMA.
Evaluate volume-driven moves, especially during session opens or key volume spikes.
💡 Ideal for traders focused on volume-based analysis, order flow insights, or those looking to enhance VWAP strategies using a more nuanced approach with CVD.
Clock&Flow MM+InfoThis script is an indicator that helps you visualize various moving averages directly on the price chart and gain some additional insights.
Here's what it essentially does:
Displays Different Moving Averages: You can choose to see groups of moving averages with different periods, set to nominal cyclical durations. You can also opt to configure them for instruments traded with classic or extended trading hours (great for Futures), and they'll adapt to your chosen timeframe.
Colored Bands: It allows you to add colored bands to the background of the chart that change weekly or daily, helping you visualize time cycles. You can customize the band colors.
Information Table: A small table appears in a corner of the chart, indicating which cycle the moving averages belong to (daily, weekly, monthly, etc.), corresponding to the timeframe you are using on the chart.
Customization: You can easily enable or disable the various groups of moving averages or the colored bands through the indicator's settings.
It's a useful tool for traders who use moving averages to identify trends and support/resistance levels, and who want a quick overview of market cycles.
Questo script è un indicatore che aiuta a visualizzare diverse medie mobili direttamente sul grafico dei prezzi e a ottenere alcune informazioni aggiuntive.
In pratica, fa queste cose:
Mostra diverse medie mobili: Puoi scegliere di vedere gruppi di medie mobili con periodi diversi impostati sulle durate cicliche nominali. Puoi scegliere se impostarle per uno strumento quotato con orario di negoziazione classico o esteso (ottimo per i Futures) e si adattano al tuo timeframe).
Bande colorate: Ti permette di aggiungere delle bande colorate sullo sfondo del grafico che cambiano ogni settimana o ogni giorno, per aiutarti a visualizzare i cicli temporali. Puoi scegliere il colore delle bande.
Tabella informativa: In un angolo del grafico, compare una piccola tabella che indica a quale ciclo appartengono le medie mobili (giornaliero, settimanale, mensile, ecc.) e corrispondono in base al timeframe che stai usando sul grafico.
Personalizzazione: Puoi facilmente attivare o disattivare i vari gruppi di medie mobili o le bande colorate tramite le impostazioni dell'indicatore.
È uno strumento utile per i trader che usano le medie mobili per identificare trend e supporti/resistenze, e che vogliono avere un colpo d'occhio sui cicli di mercato.
Volume-Weighted SMI with Divergence Alerts📊 Volume-Weighted SMI with Divergence Alerts
This indicator is a modified version of the Stochastic Momentum Index (SMI) that incorporates volume-weighting to give more significance to price movements during high-volume periods. It also includes optional divergence alerts for improved signal precision.
🔍 Key Features:
Volume-Weighted SMI: Enhances the traditional SMI by amplifying signals during high-volume conditions.
WMA Smoothing: Applies a weighted moving average for clearer trend structure.
Custom Thresholds: Adjustable upper and lower bounds (default ±80) to identify overbought/oversold zones.
Divergence Alerts:
Detects bullish divergence (price makes lower lows, SMI makes higher lows).
Detects bearish divergence (price makes higher highs, SMI makes lower highs).
Sends alerts without plotting markers to keep your chart clean.
⚙️ Inputs:
SMI Length: Lookback for high/low range.
K Smoothing: Smooths the volume-weighted SMI signal.
WMA Length: Period of the WMA applied to the smoothed SMI.
Upper/Lower Threshold: Custom levels for signal zones.
Pivot Lookback: Defines the swing structure used in divergence detection.
🔔 Alerts:
Set a TradingView alert on:
“Any alert() function call”
to receive real-time divergence notifications (bullish or bearish) directly from the indicator.
🧠 How to Use:
Look for crossovers of the WMA with the SMI line to confirm shifts in momentum.
Use threshold levels for overbought/oversold identification.
Watch for divergence alerts to anticipate potential reversals or exhaustion.
Clock&Flow IntegratedThis script is a custom technical indicator that combines two popular technical analysis tools: the Stochastic Oscillator and the ADX (Average Directional Index).
The goal is to provide users with an integrated view of momentum and trend strength directly on the chart, but in separate panes from the price.Key FeaturesThe script offers the following characteristics: Selectable Indicators: You can choose which indicators to display on the chart via input options:
Stochastic (showStoch): Displays the Stochastic oscillator.DMS Directional Movement System (showADX): Displays the ADX and the DI lines (+DI and -DI).Configurable Parameters:
You can customize the parameters of each indicator to adapt them to your trading strategies:
Stochastic: K (kLen): Length of the %K period (default value: 16).D (dLen): Length of the %D period (default value: 16).Smooth (smoothK): Smoothing period for %K (default value: 3).
ADX: DI Period (diLen): Period for +DI and -DI calculation (default value: 14).
ADX Smoothing : Smoothing period for the ADX (default value: 14).Threshold (adxThreshold): A threshold for the ADX (default value: 25), useful for identifying trend strength.
Calculations and VisualizationThe script performs calculations for both indicators independently:
Stochastic Calculation: Uses TradingView's ta.stoch and ta.sma functions to calculate the %K and %D lines.Stochastic Plotting: If showStoch is active, the %K (blue, histogram) and %D (red, line) lines are plotted. Two dotted horizontal lines are also added at 80 (Overbought) and 20 (Oversold) to indicate overbought and oversold zones.
Manual ADX Calculation: Unlike the Stochastic, the calculation of ADX, +DI, and -DI is performed manually step-by-step, using the ta.rma (adaptive moving average) and math.abs (absolute value) functions. This manual approach offers greater transparency on the calculation method.ADX + DI Plotting: If showADX is active, the ADX (black), +DI (light blue, histogram), and -DI (red, histogram) are plotted. A dotted horizontal line is also added at the ADX threshold (adxThreshold) to facilitate trend strength interpretation.
UsageThis indicator is designed to be added to the lower panel of the chart (overlay=false), separate from the price, allowing for clear analysis of individual indicators without cluttering the main chart.In summary, "Clock&Flow Integrated" is a versatile tool for traders who wish to combine momentum analysis (Stochastic) with directional trend strength (ADX) in a single customizable indicator.
The basic value of the Stochastic is intended to show results on cyclical closures that occur near the K and D crossover.
Questo script è un indicatore tecnico personalizzato che combina due strumenti popolari di analisi tecnica: lo Stocastico e l'ADX (Average Directional Index). L'obiettivo è fornire agli utenti una visione integrata del momentum e della forza del trend direttamente sul grafico, ma in finestre separate dal prezzo.
Lo script offre le seguenti caratteristiche:
Indicatori Selezionabili: Puoi scegliere quali indicatori visualizzare sul grafico tramite delle opzioni di input:
Stocastico: Visualizza l'oscillatore Stocastico.
DMS Directional Movement System (showADX): Visualizza l'ADX e le linee DI (+DI e -DI).
Parametri Configurabili: È possibile personalizzare i parametri di ciascun indicatore per adattarli alle proprie strategie di trading:
Stocastico:
K (kLen): Lunghezza del periodo %K (valore predefinito: 16).
D (dLen): Lunghezza del periodo %D (valore predefinito: 16).
Smooth (smoothK): Periodo di smoothing per %K (valore predefinito: 3).
ADX:
Periodo DI (diLen): Periodo per il calcolo di +DI e -DI (valore predefinito: 14).
ADX Smoothing (adxSmoothing): Periodo di smoothing per l'ADX (valore predefinito: 14).
Threshold (adxThreshold): Una soglia per l'ADX (valore predefinito: 25), utile per identificare la forza del trend.
Calcoli e Visualizzazione
Lo script esegue i calcoli per entrambi gli indicatori in modo indipendente:
Calcolo Stocastico: Utilizza le funzioni ta.stoch e ta.sma di TradingView per calcolare le linee %K e %D.
Plotting Stocastico: Se showStoch è attivo, le linee %K (blu, istogramma) e %D (rossa, linea) vengono plottate. Vengono anche aggiunte due linee orizzontali tratteggiate a 80 (Overbought) e 20 (Oversold) per indicare le zone di ipercomprato e ipervenduto.
Calcolo ADX Manuale: Contrariamente allo Stocastico, il calcolo dell'ADX, del +DI e del -DI viene eseguito manualmente passo dopo passo, utilizzando le funzioni ta.rma (media mobile adattiva) e math.abs (valore assoluto). Questo approccio manuale offre maggiore trasparenza sul metodo di calcolo.
Plotting ADX + DI: Se showADX è attivo, l'ADX (nero), il +DI (blu chiaro, istogramma) e il -DI (rosso, istogramma) vengono plottati. Viene inoltre aggiunta una linea orizzontale tratteggiata alla soglia ADX (adxThreshold) per facilitare l'interpretazione della forza del trend.
Utilizzo
Questo indicatore è pensato per essere aggiunto al pannello inferiore del grafico , separato dal prezzo, permettendo un'analisi chiara dei singoli indicatori senza affollare il grafico principale.
In sintesi, "Clock&Flow Integrated" è uno strumento versatile per i trader che desiderano combinare l'analisi del momentum (Stocastico) con quella della forza direzionale del trend (ADX) in un unico indicatore personalizzabile.
Il valore di base dello Stocastico è pensato per avere una risultanza sulle chiusure cicliche che avvengono in prossimità dell'incrocio di K con D.
Logarithmischer Trendkanal (sichtbar, in Preisskala + Stilwahl)Indikator for log Charts showing a freely configurable trend channel with the retrurns p.a.
REAL_TPforget all the moving avergaes just try this real average formula and rectify your trading technique. have a great day !!!
Rollover Candles 23:00-00:00 UTC+1This indicator highlights the Forex Market Rollover candles during which the spreads get very high and some 'fake price action' occurs. By marking them orange you always know you are dealing with a rollover candle and these wicks/candles usually get taken out later on because there are no orders in these candles.
Optimal settings: The rollover takes only 1 hour, so put the visibility of the indicator on the 1 hour time frame and below (or just the 1h).
Auto Fib (Retracement + Extensions + Alerts)Fibonacci retracement and extension levels
✅ Trend-based update (auto-detects swing high/low)
✅ Labels for clarity
✅ Alerts for key Fibonacci levels (e.g. 38.2%, 61.8%)
RSI Buy Sell Signals[RanaAlgo]This RSI indicator provides a clean implementation of the Relative Strength Index with visual trading signals. It calculates RSI values using standard formula and displays buy/sell alerts when the indicator crosses the oversold (30) or overbought (70) thresholds. The background color changes to highlight extreme zones, with horizontal reference lines marking key levels. A compact table shows the current RSI value in the corner. The design focuses on clear signal generation while maintaining TradingView's native RSI accuracy, focused trading tool.
Daily High-Low RangeThis script visualizes the daily range between the high and low prices (High - Low) of each candle.
It's a simple yet effective tool to understand the raw price movement without considering gaps or closing prices.
Useful for identifying volatility spikes and potential breakout setups.
Smart Session SyncSmart Session Sync — Intelligent Trading Session Overlay
- By 0xTheChartist Code2trade
Smart Session Sync is designed to detect major reversal points and key price pivots formed on higher timeframes, particularly during high-volume periods of the day — often marking the footprints of institutional orders and whales.
🔍 Key Features:
Displays standard sessions (Asian, London, New York) and allows adding custom time sessions.
Offers two visualization modes:
Time session table
Visual session boxes plotted on the chart
Auto-sync with seasonal time changes (Summer/Winter), supports Daylight Saving Time (DST)
Full flexibility:
Toggle table, boxes, and labels on/off
Customize colors for all session elements
Choose which months are considered summer/winter
💡 Suggested Use Case:
Use Smart Session Sync to pinpoint critical price structures such as:
Peaks and troughs of trending waves
Highs/lows in Wyckoff trading ranges
Liquidity sweeps or untouched liquidity zones
----------------------
Swing Pivots + Static Dashboard (v5.7-k10-l-alert2)Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
HTF High/Low Targets This script plots the previous Highs and Lows of the 1HR, 4HR, Daily, and Weekly timeframes.
Each level is color-coded, extends across the chart, and includes labels to help you spot key areas of past support and resistance.
Use this tool to:
- Confirm intraday price reactions at HTF zones
- Identify high-probability reversal or breakout areas
- Get notified with built-in alerts when price crosses a level
You can toggle each timeframe level on/off in the settings panel.
Great for:
- Day traders and scalpers who trade off 1-minute or 5-minute charts
-Swing traders looking for confluence with HTF zones
- Anyone using a multi-timeframe analysis approach
Created by @mychaellesliemedia.
Hammer MA20/MA200 UPTREND SignalConditions:
The candle must be a Hammer (small body with long lower wick)
The low of the candle is:
Above MA200
Below MA20
The high is above MA20
If all are true, it plots a green “UPTREND” label below the candle
Volume ConvictionShows volume bars coloured differently according to their relationship to the 20 period MA, enabling you to easily see volume significantly higher than the moving average.
Supertrend with Volume Filter AlertSupertrend with Volume Filter Alert - Indicator Overview
What is the Supertrend Indicator?
The Supertrend indicator is a popular trend-following tool used by traders to identify the direction of the market and potential entry/exit points. It is based on the Average True Range (ATR), which measures volatility, and plots a line on the chart that acts as a dynamic support or resistance level. When the price is above the Supertrend line, it signals an uptrend (bullish), and when the price is below, it indicates a downtrend (bearish). The indicator is particularly effective in trending markets but can generate false signals during choppy or sideways conditions.
How This Script Works
The "Supertrend with Volume Filter Alert" enhances the classic Supertrend indicator by adding a customizable volume filter to improve signal reliability.
Here's how it functions:
Supertrend Calculation:The Supertrend is calculated using the ATR over a user-defined period (default: 55) and a multiplier (default: 1.85). These parameters control the sensitivity of the indicator:A higher ATR period smooths out volatility, making the indicator less reactive to short-term price fluctuations.The multiplier determines the distance of the Supertrend line from the price, affecting how quickly it responds to trend changes.The script plots the Supertrend line in cyan for uptrends and red for downtrends, making it easy to visualize the market direction.
Volume Filter:A key feature of this script is the volume filter, which helps filter out false signals in choppy markets. The filter compares the current volume to the average volume over a lookback period (default: 20) and only triggers signals if the volume exceeds the average by a specified multiplier (default: 2.0).This ensures that trend changes are accompanied by significant market participation, increasing the likelihood of a genuine trend shift.
Signals and Alerts:
Buy signals (cyan triangle below the bar) are generated when the price crosses above the Supertrend line (indicating an uptrend) and the volume condition is met.Sell signals (red triangle above the bar) are generated when the price crosses below the Supertrend line (indicating a downtrend) and the volume condition is met.Alerts are set up for both buy and sell signals, notifying traders only when the volume filter confirms the trend change.
Customizable Settings for Multiple Markets
The default settings in this script (ATR Period: 55, ATR Multiplier: 1.85, Volume Lookback Period: 20, Volume Multiplier: 2.0) were carefully chosen to provide a balance of sensitivity and reliability across various markets, including stocks, indices (like the S&P 500), forex, and cryptocurrencies.
Here's why these settings work well:
ATR Period (55): A longer ATR period smooths out volatility, making the indicator less prone to whipsaws in volatile markets like crypto or forex, while still being responsive enough for trending markets like indices.
ATR Multiplier (1.85): This multiplier strikes a balance between capturing early trend changes and avoiding noise. A smaller multiplier would make the indicator too sensitive, while a larger one might miss early opportunities.
Volume Lookback Period (20): A 20-bar lookback for volume averaging provides a robust baseline for identifying significant volume spikes, adaptable to both short-term (e.g., daily charts) and longer-term (e.g., weekly charts) timeframes.
Volume Multiplier (2.0): Requiring volume to be at least 2x the average ensures that only high-conviction moves trigger signals, which is crucial for markets with varying liquidity levels.
These parameters are fully customizable, allowing traders to adjust the indicator to their specific market, timeframe, or trading style. For example, you might reduce the ATR period for faster-moving markets or increase the volume multiplier for more conservative signal filtering.
How the Volume Filter Reduces Bad Trades in Choppy Markets
One of the main drawbacks of the Supertrend indicator is its tendency to generate false signals during choppy or ranging markets, where price fluctuates without a clear trend. The volume filter in this script addresses this issue by ensuring that trend changes are backed by significant market activity:
In choppy markets, price movements often lack strong volume, leading to false breakouts or reversals. By requiring volume to be a multiple (default: 2x) of the average volume over the lookback period, the script filters out these low-volume, low-conviction moves.This reduces the likelihood of taking bad trades during sideways markets, as only trend changes with strong volume confirmation will trigger signals. For example, on a daily chart of the S&P 500, a buy signal will only fire if the price crosses above the Supertrend line and the volume on that day is at least twice the 20-day average, indicating genuine buying pressure.
Usage Tips
Markets and Timeframes: This indicator is versatile and can be used on various assets (stocks, indices, forex, crypto) and timeframes (1-minute, 1-hour, daily, etc.). Adjust the settings based on the market's volatility and your trading strategy.
Combine with Other Indicators: While the volume filter improves reliability, consider using additional indicators like RSI or MACD to confirm trends, especially in ranging markets.
Backtesting: Test the indicator on historical data for your chosen market to optimize the settings and ensure they align with your trading goals.
Alerts: Set up alerts for buy and sell signals to stay informed of high-probability trend changes without constantly monitoring the chart.
ConclusionThe "Supertrend with Volume Filter Alert" is a powerful tool for trend-following traders, combining the simplicity of the Supertrend indicator with a volume-based filter to enhance signal accuracy. Its customizable settings make it adaptable to multiple markets, while the volume filter helps reduce false signals in choppy conditions, allowing traders to focus on high-probability trades. Whether you're trading stocks, indices, forex, or crypto, this indicator can help you identify trends with greater confidence.