📊 Trend Table (EMA20/50) PROThis script displays a color-coded trend dashboard based on the relationship between the EMA 20 and EMA 50 moving averages across multiple timeframes:
🕐 1m, 5m, 15m, 1h, 4h.
📌 Features:
✅ Green = Bullish Trend (EMA20 > EMA50)
✅ Red = Bearish Trend (EMA20 < EMA50)
🎨 Fully customizable text and background color
📍 Selectable table position (left / center / right, top / bottom)
🔁 Auto-refreshes every few bars for real-time accuracy
📈 Use Case:
Perfect as a multi-timeframe trend dashboard for scalpers and swing traders – ideal for XAUUSD, US30, NAS100 and more. Helps you instantly assess trend alignment across key timeframes.
趨勢分析
ICT Killzones & Pivots [TFO] [FJK]Originally by tradeforopp I added the concept of Open Ranges.
ToDo:
- configure alerts
- add more box style options
Relative Strength Triple MA ConfluenceThis tool highlights moments of strong outperformance based on three customizable moving averages of an asset's relative strength vs a benchmark (SPY, BTC, etc).
✅ Green candles + triangle-up icon appear when relative strength is above all 3 MAs (short, medium, long)
❌ Red triangle-down appears when full confluence is lost
🔧 Fully customizable MA types (EMA or SMA), lengths, and benchmark
Ideal for traders seeking high-conviction confirmation based on stacked RS strength.
Daily 10, 50, 150, 200 DMAIrrespective of the Chart, i.e be it weekly or monthly DMA will be displayed on Daily Values.
Do note that On a weekly chart, this gives you the DMA value from only one daily candle per week, usually Friday’s close. So if a DMA crossover (say, 10-DMA crossing 50-DMA) actually happens on Wednesday, you won’t see that reflected until Friday's value is displayed on the weekly chart. That causes crossover dates to appear wrong or delayed.
📊 VWAP + 시가선 + 필터 전략 (UTC 정밀 시가선)This is an indicator that generates trading signals by applying the market price + VWAP. ver1.1
Parabolic Run Detector (With Weighted Caution)This indicator, Parabolic Run Detector (With Weighted Caution), is designed to help traders identify moments of strong directional movement (I call it a run) in asset prices, especially those that exhibit a parabolic character. It uses a combination of log-scale price slopes, RSI momentum, and Ichimoku cloud structure (via the very useful Tenkan-Kijun "clamp") to evaluate whether a price move has both strength and sustainability. When certain thresholds are met, it marks the beginning of a potential run with a green circle below the price chart, helping traders spot entries early in high-momentum conditions.
In addition to identifying the start of a run, the indicator also looks for end-of-run caution signals. These are marked with orange circles, indicating potential exhaustion or overextension. The caution logic doesn’t require all conditions to trigger at once — instead, it uses a weighted scoring system based on RSI extension, slowing price momentum (second derivative), and the widening of the Ichimoku clamp. If these conditions cross a confidence threshold within a set number of bars after a run begins, the caution signal fires. This allows traders to stay alert to reversal or consolidation risks without being prematurely spooked by noise. So, choose to ignore them, but they are there for you to assess.
You can fine-tune sensitivity with a set of adjustable parameters, including minimum slope values, RSI reversion awareness (bias weight), clamp thresholds, and spacing between signals. So play around to see what works best for you! For advanced users, the option to toggle between static or dynamically calculated RSI baselines and adapt Ichimoku settings for crypto vs. legacy markets adds another layer of contextual accuracy. Whether you're trading Bitcoin on a 4-hour chart or scanning equities on a daily timeframe, this tool helps bring clarity to trend acceleration and potential fatigue, all while minimizing visual clutter and giving you intuitive visual cues.
Let me know what you think.
Momentum Breakout Option Buyer🎯 What it does:
# Detects momentum breakout zones
# Confirms breakout with volume and volatility
# Gives Buy signal only when the move is strong and fast — perfect for option buyers
🔧 Core Components:
# Supertrend – to define the trend
# RSI + EMA crossover – confirms strength
# Breakout candle + Volume spike
# ATR filter – confirms volatility is high enough to justify option buying
✅ Entry Criteria (Call Option):
# Price above Super trend
# RSI > 60 and RSI > RSI EMA
# Volume > 1.5 × average volume
# ATR (last 5 candles) > minimum threshold (e.g., 1%)
❌ Exit / Stop Loss:
# RSI drops below 50 or
# Supertrend flips or
# Target hit (e.g., 1.5x risk)
Trend Persistence Counter (TPC) by riskcipher🧭 Trend Persistence Counter (TPC) – A Simple Price Action Trend Duration Tool
Trend Persistence Counter (TPC) is a lightweight indicator that counts how long a trend persists after a breakout.
It is entirely based on price action, without using any moving averages or smoothing. The goal is to give a simple, rule-based view of trend continuity.
🧠 How It Works (Logic Overview)
This indicator switches between two modes: bullish and bearish.
If close > previous high, the counter enters bullish mode, and starts at +1
While in bullish mode:
If close >= previous low → continue the uptrend → +1 each bar
If close < previous low → trend ends → reset to 0, switch to bearish mode
If close < previous low, the counter enters bearish mode, and starts at -1
While in bearish mode:
If close <= previous high → continue the downtrend → -1 each bar
If close > previous high → trend ends → reset to 0, switch to bullish mode
This provides a bar-by-bar count of trend persistence based on whether price holds structure.
🎯 Use Cases
Track how long a trend continues after a breakout
Quickly detect when trend structure breaks
Help visually filter “strong” vs “weak” moves
Build logic-based alerts (e.g., trend continues for N bars)
🔍 Why Use This Instead of Traditional Indicators?
This is not meant to replace moving averages or trend filters.
But it offers some advantages for those who prefer structure-based logic:
Feature TPC
Based on Price Action ✅ Yes
Uses Lagging Filters ❌ No moving average or smoothing
Trend Duration Measurement ✅ Counts valid consecutive moves
Complexity ⚪ Very simple and transparent
It’s a simple concept and easy to understand, but still useful when combined with other tools or visualized on its own.
⚙️ Technical Notes
Works on any timeframe or instrument
The value is positive during bullish persistence, negative during bearish
Value resets to 0 when trend structure breaks
All logic is calculated bar-by-bar, in real time
✅ Example Usage Ideas
Highlight candles when TPC value crosses a certain threshold (e.g., strong breakout continuation)
Use the zero-cross as a potential reversal warning
Filter trend signals in your existing strategies
Relative Strength MA ConfluenceThis indicator highlights price candles when two custom moving averages of relative strength vs a benchmark (e.g., SPY or BTC) are both trending positively.
Full confluence: Occurs when the asset's relative strength is above both a short- and long-term MA (default: 21 & 50).
Green candles and a triangle-up icon mark when full confluence begins.
Red triangle-down marks when confluence is lost.
🔧 All settings — including MA type (SMA or EMA), lengths, benchmark symbol, and visual toggles — are fully customizable.
Ideal for swing traders seeking strong trend confirmation based on outperformance relative to a benchmark.
HTF 3rd Weekly High/LowThis indicator plots horizontal lines for the high and low of a selected past weekly candle, allowing traders to visualize higher time frame (HTF) structure on lower time frame charts (e.g., 1H, 4H, etc.).
Features:
Custom Weekly Range Selection: Use the dropdown to choose which weekly candle to reference — from the current week (0) to up to five weeks back.
Clean Horizontal Lines: High and low levels of the selected week are drawn as persistent horizontal lines.
Automatic Text Labels: Labels like Week-3H and Week-3L are shown on the right side of the chart, matching the week selected.
Customization:
Line colors
Line width and style (solid, dotted, dashed)
Text label offset
Automatic Refresh: Levels and labels are redrawn at the start of each new week to stay current with your selection.
Benchmark Above MA SignalBenchmark Above MA Signal (Configurable Visual)
This tool provides a simple ON/OFF signal showing whether a selected benchmark asset (e.g., SPY, BTC, QQQ, etc.) is currently trading above a specified moving average.
🔧 Customizable Settings:
Choose the benchmark symbol
Set the timeframe (e.g., daily, 4H, weekly)
Select SMA or EMA type
Define the MA length (e.g., 21, 50, 200)
Pick between two display modes:
Stepline (default): plots a clean binary signal in the lower pane
Background Only: visually highlights confluence periods without a line plot
✅ Ideal for macro filters, trend confirmation, or dashboard-style layouts
📊 Common use case: staying aware of the daily trend of SPY while trading lower intraday timeframes
Up/Down Days Ratio - 6 Month RollingUp/Down Ratio for last 6 months
It helps to analyze the trend of the stock
Cluster Proximity Table: Price, EMA20 & SMA200Spot significant confluence points at a glance! This script generates a dynamic table indicating if Price, its 20-period Exponential Moving Average (EMA20), and 200-period Simple Moving Average (SMA200) are tightly clustered across four different timeframes (5m, 15m, 1H, Daily). A green "✅ Yes" means all three are within a customizable percentage of each other, highlighting areas of potential support/resistance or market equilibrium.
Daily Open Line (9:30-16:00)This indicator automatically plots a horizontal line at each day's opening price during regular trading hours (9:30 AM to 4:00 PM, US Eastern Time).
The line starts exactly at the opening bar of the day and ends at the close (16:00).
Each day, a new line is drawn, making it easy to visualize and reference the daily open price throughout the session.
Useful for intraday traders to identify key support/resistance and monitor price action relative to the open.
You can customize the color, line width, and whether to display the open price label.
DCI### 📌 **DCI – Direction Correlation Index**
#### 🔹 **What It Is**
The **Direction Correlation Index (DCI)** is a tool for measuring how closely a group of up to 10 symbols move together in both *trend correlation* and *short-term direction*. It helps identify whether a group of assets is acting in unison or moving independently.
---
#### ⚙️ **How It Works**
DCI outputs three key metrics:
1. **Average Correlation**
* Measures the average of all pairwise correlations between the selected symbols.
* Prices are first standardized using a z-score (based on simple moving average and standard deviation over a user-defined lookback period).
* Correlation is calculated using Pearson’s method for all 45 symbol pairs.
* Result ranges from:
* `+1.00` = strong positive correlation
* `0.00` = no correlation
* `-1.00` = strong inverse correlation
2. **Direction Agreement %**
* Checks whether each symbol is moving up or down compared to its previous bar.
* Calculates the percentage of symbols moving in the same direction.
* For example: if 7 of 10 symbols are moving up and 3 are moving down, the direction agreement is 70%.
3. **Strong Correlation Count**
* Counts how many of the 45 symbol pairs have an absolute correlation above `0.7`.
* Helps highlight how many pairs are currently highly correlated.
---
#### 📈 **How to Use It**
1. **Select Symbols**
* In the **Settings**, you can input up to 10 custom symbols. These can be stocks, indices, forex pairs, crypto, or any tradable asset.
2. **Adjust the Lookback Period**
* Defines how many bars back are used to calculate z-scores and correlations.
* Default is `12`. Use shorter periods for faster response; longer periods for smoother, slower data.
3. **Interpret the Table (Plotted on Chart)**
* **Avg Corr**: Tells you how much the group is co-moving. High correlation often reflects unified market behavior.
* **Dir Agr %**: Shows directional sync. High values mean most instruments are trending the same way in the current bar.
* **> 0.7**: The number of pairs currently strongly correlated (|corr| > 0.7).
---
#### 🧠 **Practical Usage Tips**
* Use DCI to monitor **sector alignment**, **portfolio behavior**, or **market group momentum**.
* Confirm trend strength by checking if high correlation aligns with a strong direction agreement.
* Low correlation + mixed direction can signal **choppy or indecisive markets**.
* High correlation + strong direction = **trend confirmation** across your selected instruments.
- Made with DeepSeek
Trending Indicator: Price % of Pivots# Price % of Pivots Indicator
## Overview
A trend-following indicator that measures current price position relative to recent pivot highs and lows as percentages, providing normalized trend analysis across all timeframes and instruments.
## Key Features
- **Real-time trend table** with live signal updates (Strong Bullish/Bearish, Leaning Bullish/Bearish, Neutral)
- **Dual percentage tracking**: Price % of high pivot and low pivot % of current price
- **Universal compatibility** - works on any timeframe and asset class
- **Faster than some other trend indicators** - catches trend changes earlier with less lag
## Trading Signals
- **Bullish bias**: When price % of high pivot > low pivot % of price
- **Bearish bias**: When low pivot % of price > price % of high pivot
- **Customizable thresholds** (default 99%) with alert system
- **Color-coded backgrounds** for immediate visual confirmation
## Configuration
- Adjustable pivot lookback period (5-100 bars)
- Customizable left/right bars for pivot confirmation
- Threshold settings from 50-110% with 0.5% increments
- Full color customization for all elements
## Advantages
- **Speed**: More responsive than traditional ATR-based indicators
- **Clarity**: Clean percentage-based display with professional info table
- **Alerts**: Multiple conditions for automated and manual trading
- **Versatility**: Effective for day trading, swing trading, and multi-timeframe analysis
Perfect for traders seeking a fast, reliable trend indicator that works consistently across all markets and timeframes.
Predictive Trendlines with Breaks [AI-Signals]Predictive Trendlines with Breaks
Overview
Unlock the power of trend analysis with Predictive Trendlines with Breaks , a Pine Script v6 indicator designed to help traders identify bullish and bearish trends, anticipate price movements, and detect trendline breaks with real-time alerts. Whether you're trading stocks, forex, or crypto, this tool provides dynamic trendlines, predictive modeling, and customizable visuals to enhance your trading strategy.
Key Features
Dynamic Trendlines: Plots bullish (upward) and bearish (downward) trendlines based on pivot highs and lows, calculated using ATR or Standard Deviation.
Predictive Trendlines: Forecasts potential price levels with predictive lines drawn from recent pivots, helping you anticipate support and resistance.
Trendline Break Detection: Marks breaks with a "B" label when price crosses above (bearish) or below (bullish) trendlines, with customizable alerts.
Trend Angle Display: Shows the angle of trendlines (in degrees) to assess trend strength, with user-defined thresholds for strong/weak trends.
Highly Customizable: Adjust colors, thickness, slope sensitivity, and opacity to match your chart preferences.
Debug Mode: Visualize pivot points for fine-tuning or educational purposes.
How It Works
Pivot Detection: Identifies pivot highs and lows over a user-defined lookback period (default: 14 bars).
Trendline Calculation: Computes slopes using ATR or Standard Deviation, adjustable via a multiplier for sensitivity.
Predictive Modeling: Blends historical and forecasted slopes to draw predictive trendlines (optional).
Break Alerts: Detects trendline breaks and triggers alerts, with visual "B" labels for bullish or bearish reversals.
Visuals: Displays color-coded trendlines (bullish: light gray, bearish: blue), angle labels, and shaded trend bands.
INPUTS
Lookback Length (14): Number of bars for pivot detection and slope calculations (min: 5, max: 100).
Calculation Methodology (ATR): Choose ATR or Standard Deviation for slope calculations.
Show Predictive Trendlines (true): Enable/disable predictive trendlines.
Trendline Multiplier (1.0): Adjusts slope sensitivity for trendlines.
Trendline Thickness (0.4): Sets the width of trendline bands, scaled by ATR.
Bear Trendline Color (RGB(36, 126, 230)): Color for bearish trendlines.
Bull Trendline Color (RGB(226, 226, 226)): Color for bullish trendlines.
Display Trendline Angle (true): Show/hide angle labels.
Angle Text Color (White): Color for angle text.
Min/Max Angle (20°/75°): Defines strong trend thresholds; weaker trends have reduced opacity.
Opacity of Weak Trendline (70): Transparency for non-strong trendlines.
Debug Mode (false): Enable to visualize pivot points with index labels.
USAGE
Setup: Add the indicator to any chart (e.g., stocks, forex, crypto) and tweak inputs to suit your trading style.
Trading: Use trendlines and predictive lines to identify support/resistance. Monitor "B" labels and alerts for trend breaks.
Combine: Pair with indicators like RSI or MACD for a robust strategy.
Alerts: Set up TradingView alerts for "Bearish trend broken" or "Bullish trend broken" to stay informed.
Alerts
Bearish Trend Break: Triggered when price crosses above a bearish trendline.
Bullish Trend Break: Triggered when price crosses below a bullish trendline.
Configure alerts in TradingView’s alert menu for real-time notifications.
Repainting : Predictive trendlines may repaint due to their reliance on recent pivots. Use them as a guide, not a definitive signal.
Performance : Optimized for up to 250 bars back and 500 lines to ensure smooth operation.
Testing : Debug mode helps visualize pivot detection for setup or learning.
PriceLevels GBHOW-TO: Goldbach Price Levels – Identify Algorithmic Key Zones
This open-source indicator highlights specific price levels ending with numbers like 03, 11, 29, 35, 65, and 71.
These values are often observed at key reversal or hesitation points and may align with algorithmic behavior patterns in the market.
What it does:
– Automatically scans and marks horizontal price levels containing these number endings
– You can toggle visibility for each number type
– Each level can have a custom color and line thickness
– Labels show price values at the end of each line
– Label color and transparency are fully customizable to match dark or light chart styles
This tool is designed to help traders visually spot recurring patterns that might otherwise go unnoticed.
It’s ideal for discretionary traders who want to study market structure through static price references.
This script is open-source and published for educational use.
For feedback or improvements, feel free to reach out via private message on TradingView.
OBHOW-TO: Advanced Order Block & Liquidity Mapping Tool
This script combines order block detection using 3- and 5-bar fractal structures with dynamic and static liquidity zones, plus optional time-based label calculations.
Key features:
– Fractal-based detection of bullish and bearish order blocks
– Automatic removal of broken OBs to keep charts clean
– Optional FVG validation for higher-quality OBs
– Custom time label logic for bar/session analysis
– Configurable visuals: line styles, widths, label placement, and time offsets
The logic for liquidity detection is adapted from the open-source LiquidityFinderLibrary by TFlab. This version adds custom cleanup behavior and visual enhancements to improve usability.
This script is published as open-source and intended for educational and analytical use only. No performance guarantees are implied.
If you have questions or suggestions, feel free to message me privately on TradingView.
Bilateral Filter For Loop [BackQuant]Bilateral Filter For Loop
The Bilateral Filter For Loop is an advanced technical indicator designed to filter out market noise and smooth out price data, thus improving the identification of underlying market trends. It employs a bilateral filter, which is a sophisticated non-linear filter commonly used in image processing and price time series analysis. By considering both spatial and range differences between price points, this filter is highly effective at preserving significant trends while reducing random fluctuations, ultimately making it suitable for dynamic trend-following strategies.
Please take the time to read the following:
Key Features
1. Bilateral Filter Calculation:
The bilateral filter is the core of this indicator and works by applying a weight to each data point based on two factors: spatial distance and price range difference. This dual weighting process allows the filter to preserve important price movements while reducing the impact of less relevant fluctuations. The filter uses two primary parameters:
Spatial Sigma (σ_d): This parameter adjusts the weight applied based on the distance of each price point from the current price. A larger spatial sigma means more smoothing, as further away values will contribute more heavily to the result.
Range Sigma (σ_r): This parameter controls how much weight is applied based on the difference in price values. Larger price differences result in smaller weights, while similar price values result in larger weights, thereby preserving the trend while filtering out noise.
The output of this filter is a smoothed version of the original price series, which eliminates short-term fluctuations, helping traders focus on longer-term trends. The bilateral filter is applied over a rolling window, adjusting the level of smoothing dynamically based on both the distance between values and their relative price movements.
2. For Loop Calculation for Trend Scoring:
A for-loop is used to calculate the trend score based on the filtered price data. The loop compares the current value to previous values within the specified window, scoring the trend as follows:
+1 for upward movement (when the filtered value is greater than the previous value).
-1 for downward movement (when the filtered value is less than the previous value).
The cumulative result of this loop gives a continuous trend score, which serves as a directional indicator for the market's momentum. By summing the scores over the window period, the loop provides an aggregate value that reflects the overall trend strength. This score helps determine whether the market is experiencing a strong uptrend, downtrend, or sideways movement.
3. Long and Short Conditions:
Once the trend score has been calculated, it is compared against predefined threshold levels:
A long signal is generated when the trend score exceeds the upper threshold, indicating that the market is in a strong uptrend.
A short signal is generated when the trend score crosses below the lower threshold, signaling a potential downtrend or trend reversal.
These conditions provide clear signals for potential entry points, and the color-coding helps traders quickly identify market direction:
Long signals are displayed in green.
Short signals are displayed in red.
These signals are designed to provide high-confidence entries for trend-following strategies, helping traders capture profitable movements in the market.
4. Trend Background and Bar Coloring:
The script offers customizable visual settings to enhance the clarity of the trend signals. Traders can choose to:
Color the bars based on the trend direction: Bars are colored green for long signals and red for short signals.
Change the background color to provide additional context: The background will be shaded green for a bullish trend and red for a bearish trend. This visual feedback helps traders to stay aligned with the prevailing market sentiment.
These features offer a quick visual reference for understanding the market's direction, making it easier for traders to identify when to enter or exit positions.
5. Threshold Lines for Visual Feedback:
Threshold lines are plotted on the chart to represent the predefined long and short levels. These lines act as clear markers for when the market reaches a critical threshold, triggering a potential buy (long) or sell (short) signal. By showing these threshold lines on the chart, traders can quickly gauge the strength of the market and assess whether the trend is strong enough to warrant action.
These thresholds can be adjusted based on the trader's preferences, allowing them to fine-tune the indicator for different market conditions or asset behaviors.
6. Customizable Parameters for Flexibility:
The indicator offers several parameters that can be adjusted to suit individual trading preferences:
Window Period (Bilateral Filter): The window size determines how many past price values are used to calculate the bilateral filter. A larger window increases smoothing, while a smaller window results in more responsive, but noisier, data.
Spatial Sigma (σ_d) and Range Sigma (σ_r): These values control how sensitive the filter is to price changes and the distance between data points. Fine-tuning these parameters allows traders to adjust the degree of noise reduction applied to the price series.
Threshold Levels: The upper and lower thresholds determine when the trend score crosses into long or short territory. These levels can be customized to better match the trader's risk tolerance or asset characteristics.
Visual Settings: Traders can customize the appearance of the chart, including the line width of trend signals, bar colors, and background shading, to make the indicator more readable and aligned with their charting style.
7. Alerts for Trend Reversals:
The indicator includes alert conditions for real-time notifications when the market crosses the defined thresholds. Traders can set alerts to be notified when:
The trend score crosses the long threshold, signaling an uptrend.
The trend score crosses the short threshold, signaling a downtrend.
These alerts provide timely information, allowing traders to take immediate action when the market shows a significant change in direction.
Final Thoughts
The Bilateral Filter For Loop indicator is a robust tool for trend-following traders who wish to reduce market noise and focus on the underlying trend. By applying the bilateral filter and calculating trend scores, this indicator helps traders identify strong uptrends and downtrends, providing reliable entry signals with minimal market noise. The customizable parameters, visual feedback, and alerting system make it a versatile tool for traders seeking to improve their timing and capture profitable market movements.
Thus following all of the key points here are some sample backtests on the 1D Chart
Disclaimer: Backtests are based off past results, and are not indicative of the future.
INDEX:BTCUSD
INDEX:ETHUSD
CRYPTO:SOLUSD
Forex Session Levels + Dashboard (AEST)Forex Session Indicators for Breakout and Retest Strategy (AEST)
VWAP&5EMA📘 VWAP + 5 EMA Combo
This indicator provides a clean and modular framework for tracking key moving averages and VWAP levels. Ideal for intraday and swing traders, it allows full control over which components to display.
✅ Features:
Rolling VWAP – volume-weighted moving average over a custom period
Session VWAP – standard intraday VWAP
Daily EMA (D1) – from higher timeframe
Intraday EMA – based on current chart
5 Custom EMAs – fully adjustable and individually toggleable (default: 9, 21, 50, 100, 200)
🎯 Use Case:
Quickly assess dynamic support/resistance, confluence zones, and trend alignment across timeframes – without clutter. All lines are optional and independently configurable.
New York Midnight Day SeparatorThis Pine Script indicator draws vertical separator lines on the chart at midnight in the New York timezone (Eastern Time). The lines mark the start of each new trading day from Monday to Friday, helping traders visually distinguish daily sessions based on New York market time. The separator lines are rendered as slightly transparent gray lines spanning the full price range of each midnight candle, providing a clean and unobtrusive visual aid for session tracking.