15m Breakout w/ % SL + Min HoldThis 15-minute breakout strategy identifies the prior period’s swing high and swing low over a user-defined lookback, plotting them as entry thresholds. Trades execute only within a specified session and align with the EMA trend: longs above the EMA, shorts below. Upon entry, a fixed percentage stop-loss immediately caps risk. After holding for a minimum number of bars, the strategy replaces the hard stop with an ATR-based trailing stop—triggered once the specified hold-time elapses—to lock in profits as momentum continues. By combining breakout triggers, trend filtering, hard stops, and delayed trailing exits, it provides disciplined risk management and profit capture.
Análise de Ondas
Simple Pips GridOverview
This is a clean, simple, and highly practical indicator that draws horizontal grid lines at user-defined pip intervals.
Unlike other complex grid indicators, this script is designed to be lightweight and error-free. It eliminates automatic symbol detection and instead gives you full manual control, ensuring it works perfectly with any symbol you trade—FX, CFDs, Crypto, Stocks, Indices, and more.
Key Features
Universal Compatibility: Works with any trading pair by letting you manually define the pip value.
Fully Customizable: Easily set the pip interval for your grid (e.g., 10 pips, 50 pips, 100 pips).
Lightweight & Fast: Simple code ensures smooth performance without lagging your chart.
Visual Customization: Change the color, width, and style (solid, dashed, dotted) of the grid lines.
How to Use
It's incredibly simple to set up. You only need to configure two main settings:
Step 1: Set the "Pip Value"
This is the most important setting. You need to tell the indicator what "1 pip" means for the symbol you are currently viewing.
Go to the indicator settings and find the "Pip Value" input. Here are some common examples:
Symbol Pip Value (Input this number)
USD/JPY 0.01
EUR/USD 0.0001
GBP/USD 0.0001
XAU/USD (Gold) 0.1
JP225 (Nikkei 225) 10
US500 (S&P 500) 1
BTC/USD 0.1 or 1.0 (depending on your preference)
Google スプレッドシートにエクスポート
Step 2: Set the "Pip Interval"
Next, in the "Pip Interval" input, simply type how many pips you want between each line.
For a 10-pip grid, enter 10.
For a 50-pip grid, enter 50.
That's it! The grid will now be perfectly aligned to your specifications.
Additional Settings
Line Color, Width, Style: Customize the appearance of the lines to match your chart theme.
Number of Lines: Adjust how many lines are drawn above and below the current price to optimize performance and visibility.
This script was created with the assistance of Gemini (Google's AI) to be a simple and reliable tool for all traders. Feel free to use and modify it. Happy trading!
Moving Average ExponentialThis indicator plots 8 Exponential Moving Averages (EMAs) with customizable lengths: 20, 25, 30, 35, 40, 45, 50, and 55. It also includes optional smoothing using various moving average types (SMA, EMA, WMA, etc.) and an optional Bollinger Bands overlay based on the EMA. It helps identify trend direction, momentum, and potential reversal zones.
Price equilibrium between buyers and sellers [Soroush Rezaei]This indicator visualizes the dynamic balance between buyers and sellers using two simple moving averages (SMAs) based on the high and low prices.
The green line (SMA of highs) reflects the upper pressure zone, while the red line (SMA of lows) represents the lower support zone.
When price hovers between these two levels, it often signals a state of temporary equilibrium — a consolidation zone where buyers and sellers are relatively balanced.
Use this tool to:
Identify ranging or balanced market phases
Spot potential breakout or reversal zones
Enhance your multi-timeframe or price action strategy
Recommended for intraday and swing traders seeking visual clarity on market structure and momentum zones.
Custom Grid LinesThe Custom Grid Lines Indicator is a versatile tool designed for traders who want to manually define key price zones and visualize them with precision. This indicator allows users to select their own starting and ending price levels and automatically divides the range into user-defined grids using horizontal lines.
🔧 Key Features:
📍 User-Controlled Price Range:
Manually set the starting (bottom) and ending (top) price levels based on your trading plan, key zones, or market structure.
📊 Flexible Grid Setup:
Easily choose the number of grid lines to divide your selected range into equal price intervals.
📏 Automatic Grid Calculation:
The indicator calculates grid spacing and plots horizontal lines at each level, providing a clean and structured visual guide.
✅ Simple and Effective Visualization:
Ideal for grid trading, manual support/resistance plotting, or price zone tracking.
⚙️ How to Use:
Input the desired starting price (bottom of your range).
Input the ending price (top of your range).
Select the number of grids you want between these two levels.
The indicator will automatically draw all grid lines across your chart.
💡 Best For:
Grid Trading Strategies
Visualizing Custom Price Zones
Manual Support and Resistance Mapping
Session-Based Trading Ranges
Simple Pips GridOverview
This is a clean, simple, and highly practical indicator that draws horizontal grid lines at user-defined pip intervals.
Unlike other complex grid indicators, this script is designed to be lightweight and error-free. It eliminates automatic symbol detection and instead gives you full manual control, ensuring it works perfectly with any symbol you trade—FX, CFDs, Crypto, Stocks, Indices, and more.
Key Features
Universal Compatibility: Works with any trading pair by letting you manually define the pip value.
Fully Customizable: Easily set the pip interval for your grid (e.g., 10 pips, 50 pips, 100 pips).
Lightweight & Fast: Simple code ensures smooth performance without lagging your chart.
Visual Customization: Change the color, width, and style (solid, dashed, dotted) of the grid lines.
How to Use
It's incredibly simple to set up. You only need to configure two main settings:
Step 1: Set the "Pip Value"
This is the most important setting. You need to tell the indicator what "1 pip" means for the symbol you are currently viewing.
Go to the indicator settings and find the "Pip Value" input. Here are some common examples:
Symbol Pip Value (Input this number)
USD/JPY 0.01
EUR/USD 0.0001
GBP/USD 0.0001
XAU/USD (Gold) 0.1
JP225 (Nikkei 225) 10
US500 (S&P 500) 1
BTC/USD 0.1 or 1.0 (depending on your preference)
Step 2: Set the "Pip Interval"
Next, in the "Pip Interval" input, simply type how many pips you want between each line.
For a 10-pip grid, enter 10.
For a 50-pip grid, enter 50.
That's it! The grid will now be perfectly aligned to your specifications.
Additional Settings
Line Color, Width, Style: Customize the appearance of the lines to match your chart theme.
Number of Lines: Adjust how many lines are drawn above and below the current price to optimize performance and visibility.
This script was created with the assistance of Gemini (Google's AI) to be a simple and reliable tool for all traders. Feel free to use and modify it. Happy trading!
TS Multi-Indicator Trend DetectorDeveloped by KP
This indicator provides a visually clean and reliable trend overlay by combining multiple high-confidence technical indicators into a single floating line above price action. It’s designed for traders who want trend clarity without chart clutter.
⸻
🔍 What It Does:
• Uses EMA (21), RSI, MACD, ADX, and Directional Movement (DI) indicators to evaluate the market trend
• Assigns a “Bullish” or “Bearish” score based on how many indicators confirm the trend
• Plots a floating colored trend line above the price candles to avoid visual interference
• 🟡 Yellow Line = Bullish Trend
• 🔵 Blue Line = Bearish Trend
• Built with multi-timeframe compatibility (works on 5m to weekly charts)
• Minimalist, no noise — no arrows, no labels, just clarity
⸻
⚙️ How It Works:
• Trend shifts when 3 or more out of 5 conditions are met:
• Price above/below 21 EMA
• RSI > 50 or < 50
• MACD crossover
• ADX strength confirmation
• Directional movement dominance (+DI vs -DI)
⸻
🧠 Why Use This?
Unlike traditional moving averages or lagging signals, this tool filters market noise using a multi-indicator consensus approach, then visualizes it as a non-intrusive floating trend line — helping you focus only on meaningful price action.
⸻
✅ Best For:
• Swing traders, intraday trend followers, and algo developers
• Clean-chart enthusiasts who value signal quality over quantity
TS Multi-Indicator Trend DetectorDeveloped by KP
This indicator provides a visually clean and reliable trend overlay by combining multiple high-confidence technical indicators into a single floating line above price action. It’s designed for traders who want trend clarity without chart clutter.
⸻
🔍 What It Does:
• Uses EMA (21), RSI, MACD, ADX, and Directional Movement (DI) indicators to evaluate the market trend
• Assigns a “Bullish” or “Bearish” score based on how many indicators confirm the trend
• Plots a floating colored trend line above the price candles to avoid visual interference
• 🟡 Yellow Line = Bullish Trend
• 🔵 Blue Line = Bearish Trend
• Built with multi-timeframe compatibility (works on 5m to weekly charts)
• Minimalist, no noise — no arrows, no labels, just clarity
⸻
⚙️ How It Works:
• Trend shifts when 3 or more out of 5 conditions are met:
• Price above/below 21 EMA
• RSI > 50 or < 50
• MACD crossover
• ADX strength confirmation
• Directional movement dominance (+DI vs -DI)
⸻
🧠 Why Use This?
Unlike traditional moving averages or lagging signals, this tool filters market noise using a multi-indicator consensus approach, then visualizes it as a non-intrusive floating trend line — helping you focus only on meaningful price action.
⸻
✅ Best For:
• Swing traders, intraday trend followers, and algo developers
• Clean-chart enthusiasts who value signal quality over quantity
TS Multi-Indicator Trend DetectorDeveloped by KP
This indicator provides a visually clean and reliable trend overlay by combining multiple high-confidence technical indicators into a single floating line above price action. It’s designed for traders who want trend clarity without chart clutter.
⸻
🔍 What It Does:
• Uses EMA (21), RSI, MACD, ADX, and Directional Movement (DI) indicators to evaluate the market trend
• Assigns a “Bullish” or “Bearish” score based on how many indicators confirm the trend
• Plots a floating colored trend line above the price candles to avoid visual interference
• 🟡 Yellow Line = Bullish Trend
• 🔵 Blue Line = Bearish Trend
• Built with multi-timeframe compatibility (works on 5m to weekly charts)
• Minimalist, no noise — no arrows, no labels, just clarity
⸻
⚙️ How It Works:
• Trend shifts when 3 or more out of 5 conditions are met:
• Price above/below 21 EMA
• RSI > 50 or < 50
• MACD crossover
• ADX strength confirmation
• Directional movement dominance (+DI vs -DI)
⸻
🧠 Why Use This?
Unlike traditional moving averages or lagging signals, this tool filters market noise using a multi-indicator consensus approach, then visualizes it as a non-intrusive floating trend line — helping you focus only on meaningful price action.
⸻
✅ Best For:
• Swing traders, intraday trend followers, and algo developers
• Clean-chart enthusiasts who value signal quality over quantity
⸻
Dual TF Stochastic StrategyCore Strategy Components:
Uses two Stochastic oscillators (Primary and Reference)
Both use 15-second timeframe (15S)
Primary Stochastic settings:
K Length: 12
K Smoothing: 12
D Length: 12
Reference Stochastic settings:
K Length: 12
K Smoothing: 15
D Length: 30
Entry Logic:
Long Entries occur when:
Primary %K crosses over %D
AND either:
Reference %D is ≥ 50 or < 20
OR Primary %K is close to Reference %D (within 0.15)
AND price is above Moving Average (if MA filter enabled)
AND during regular market hours (9:30 AM - 4:00 PM ET)
Short Entries occur when:
Primary %K crosses under %D
AND either:
Within tolerance of Reference %D
OR specific crossunder conditions met
AND price is below Moving Average
AND during regular market hours
Exit Logic:
Time-based exits:
At 3:30 PM ET
End of regular market hours
Technical exits:
Long positions: When Primary %K crosses under Reference %D
Short positions: When Primary %K crosses over Reference %D and Reference %D > 20
Pattern Detection:
Higher Low Pattern:
Current crossover %K > Previous crossover %K
Bullish continuation pattern
Lower High Pattern:
Current crossunder %K < Previous crossunder %K
Bearish continuation pattern
Risk Management:
Price difference filters:
Maximum price difference: 0.1%
Minimum price difference for shorts: 0.1%
Reference %D tolerance: 0.1%
Close %K tolerance: 0.7%
Strengths:
Multiple confirmation layers (dual timeframes, MA filter)
Clear entry/exit rules
Pattern recognition for trend continuation
Time-based filters to avoid volatile periods
Comprehensive alert system
Potential Limitations:
Short timeframe (15S) may generate more false signals
Tight price difference filters might miss some opportunities
Relies heavily on Reference %D levels
No stop-loss implementation visible in the code
Suggested Improvements:
Add stop-loss mechanisms
Implement position sizing rules
Add volume confirmation
Consider adding RSI or other momentum filters
Add backtesting statistics tracking
Best Use Cases:
Day trading in liquid markets
Markets with clear trends
Time periods with normal volatility
When price action aligns with Stochastic signals
Risk Considerations:
High-frequency trading due to 15S timeframe
Multiple entries possible in short timeframes
No explicit risk management beyond entry/exit rules
Market hours limitation might miss opportunities
Swing Counter – Alleen eerste label per reeksCounts upward en downward swings. Number 7 or 8 is a warning.
Ichimoku AdvancedGreetings. I present to you an improved version of the indicator from LuxAlgo - Ichimoku Theories.
I am grateful to them for the work they have done, since I myself have no experience in programming on Pine Script.
I have supplemented their indicator with such functions as:
Multi-timeframe Tenkan and Kijun lines - you will always know where on the lower timeframe there is a stronger resistance/support.
Ichimoku line formation areas - they can be used as a visualization of the number of bars that appear in the near lines, and for forecasting when the growth of the lines is caused by the fading of candles. They can also be used as measures for setting stop orders.
3-line pattern detector - Marker showing when the price is above/below the lines Tenkan ----> Kijun ----> Senkou A.
Please note that the calculation takes into account the CLOSING price of the candle.
3 Chikou Span lines - for those who use the 3 Chikou Span strategy -9, -26, -52 from the current bar ----> forward.
Points of the expected next direction of the Tenkan, Kijun, Senkou A and B lines and Senkou A and B with 0 offset.
Senkou A and B lines with 0 offset - for visualization of possible resistance/support
Calculation of the angle of inclination of the Ichimoku lines - for better perception of the trend strength. A 90° scale is used for measurement, where 0 is the horizontal position of the line
Measuring the distance from the current price to the Tenkan and Kijun lines - for better interpretation of the next possible price movements
Table - all key points for opening a position are displayed in the table. But please CONSIDER THE CONTENT and THE THEORY OF CYCLES AND WAVES by Goichi Hosoda.
May the take profit be with you!
Perfect Overextension ReversalHow It Works
Bollinger Band Overextension- We calculate a standard 20‑period Bollinger Band (SMA +/– 2 SD). When price tears past the upper or lower band, we mark it as overbought or oversold—a classic sign that momentum may have gone too far.
Volume Confirmation- We track a 20‑period volume average. A reversal candle only counts if it’s sizable (body ≥ ATR), and its volume is at least 1.5× the average. Big move, big volume—more reliable reversal setup.
Reversal Candle Entry• Long after an oversold condition and a bullish candle that meets the size + volume tests.• Short after overbought and a bearish candle with the same criteria.
How to Trade the Signal
My advice is don’t rush in immediately. Take the signals to mean more that price is slowing down from the crazy action, when it is volatile at the beginning price can whipsaw. Wait for initial volatility to calm down and then look for a confirmation entry. For example, wait for a fast MA to cross a slower MA before entering. Manage risk well and place your stop just beyond the recent swing high/low. Target a 1.5×–2× reward: risk or trail your profit once the market gives you a second confirmation or cover your stop loss once price is clear of your entry and let the trade run.
Timeframes & Markets- This works on any chart however as the signals are a rare occurrence so you will get more entries on the lower timeframes.
happy trading :)
MACD-VWAP-BB Oscillator with DivergenceHow to Use the Indicator for Trading
Here’s how to interpret and use the indicator’s signals as a beginner:
Look for Buy Signals:
Green Triangle Up (“BUY”):
Appears when MACD, VWAP, and Bollinger Bands all signal a strong bullish trend.
The ribbon turns green, and the background fill is green.
Action: Consider buying the asset, as this is a strong signal the price may rise.
Example: If you see a green triangle on a 1-hour chart for BTC/USD, it suggests a potential upward move.
Green Circle (“Div Buy”):
Indicates a bullish divergence, where the price is dropping, but the indicator suggests the downtrend may weaken or reverse.
This is a weaker signal than the triangle but can be an early warning of a trend change.
Action: Watch closely or consider a smaller buy position, especially if followed by a triangle signal.
Look for Sell Signals:
Red Triangle Down (“SELL”):
Appears when all three indicators signal a strong bearish trend.
The ribbon turns red, and the background fill is red.
Action: Consider selling or shorting the asset, as the price may fall.
Example: A red triangle on a stock chart suggests it’s time to exit a long position or go short.
Red Circle (“Div Sell”):
Indicates a bearish divergence, where the price is rising, but the indicator suggests the uptrend may weaken or reverse.
Action: Be cautious with long positions or consider preparing to sell, especially if a triangle signal follows.
Check the Ribbon and Background:
Green Ribbon and Fill: Confirms a bullish trend. Feel more confident in buy signals.
Red Ribbon and Fill: Confirms a bearish trend. Feel more confident in sell signals.
The ribbon’s spread (how far apart the lines are) shows trend strength: wider = stronger trend, tighter = weaker trend.
Use Divergence Signals for Early Warnings:
Divergence signals (circles) often appear before triangle signals, hinting at potential reversals.
Example: A green circle (“Div Buy”) on a downtrending chart suggests the price might stop falling soon. Wait for a green triangle to confirm before acting.
Choose a Timeframe:
Short-term traders (day trading): Use shorter timeframes like 5-minute, 15-minute, or 1-hour charts.
Swing traders: Use 4-hour or daily charts for signals that last days or weeks.
Long-term investors: Use daily or weekly charts for bigger trends.
Example: On a 4-hour chart, a green triangle might signal a trend lasting hours to days.
Combine with Price Action:
Don’t rely on the indicator alone. Look at the candlesticks:
Are there support/resistance levels nearby?
Is the price near a key level (e.g., a moving average or trendline)?
Use the indicator to confirm what you see in the price chart.
Risk Management:
Set Stop-Losses: Place a stop-loss below recent lows for buys or above recent highs for sells to limit losses.
Position Sizing: Only risk a small portion of your account (e.g., 1-2%) per trade.
Wait for Confirmation: Triangle signals are stronger than divergence signals. Consider waiting for a triangle before entering a trade, especially as a beginner.
Example Trading Scenario
Let’s say you’re trading EUR/USD on a 1-hour chart:
You see a green circle (“Div Buy”) at the bottom of the indicator panel, and the price is near a support level (a price where it stopped falling before).
This suggests a potential reversal, but it’s not confirmed yet.
Action: Watch closely but don’t enter a trade yet.
A few candles later, a green triangle (“BUY”) appears, the ribbon turns green, and the background fill is green.
This confirms a strong bullish signal (MACD, VWAP, and Bollinger Bands all agree).
Action: Enter a buy trade, set a stop-loss below the recent low, and aim for a target near a resistance level or a 1:2 risk-reward ratio.
Later, you see a red circle (“Div Sell”) while the price is still rising.
This warns that the uptrend might weaken.
Action: Tighten your stop-loss or prepare to exit if a red triangle appears.
A red triangle (“SELL”) appears, with the ribbon and fill turning red.
Action: Exit the buy trade or consider a short position.
Tips for Beginners
Start with a Demo Account: Practice using the indicator on a TradingView paper trading account or a broker’s demo account to avoid risking real money.
Test on Different Assets: Try the indicator on stocks, forex, or crypto to see where it performs best.
Avoid Overtrading: Wait for clear triangle signals for stronger trades. Divergence signals (circles) are less reliable, so use them as warnings.
Learn Basic Chart Patterns: Combine the indicator with simple patterns like support/resistance or candlestick patterns (e.g., pin bars) for better results.
Adjust Settings Carefully: The default settings (e.g., MACD 12,26,9; ribbon 8,13,21,34) are balanced, but you can tweak them in the indicator settings to match your trading style.
Common Questions
What timeframe should I use?
It depends on your trading style. Day traders might use 5-minute or 1-hour charts; swing traders might use 4-hour or daily charts. Test different timeframes to find what suits you.
Are divergence signals reliable?
Divergence signals (green/red circles) are early warnings and less reliable than triangle signals. Use them to prepare for a trade but wait for triangles for confirmation.
Can I use this on any asset?
Yes! It works on stocks, forex, crypto, or commodities. Adjust settings like pivotLookback or smoothWavy for volatile assets like crypto.
What if I see conflicting signals?
If a green circle appears but no green triangle, the trend isn’t confirmed yet. Wait for alignment of all indicators (triangle signal) for stronger trades.
How to Customize (Optional)
If you want to tweak the indicator:
Open the indicator settings (double-click its name on the chart).
Adjust Pivot Lookback for Divergence (default 5) to make divergence signals more frequent (smaller number) or less frequent (larger number).
Change Signal Line Smoothing Period (default 9) for a smoother or wavier signal line.
Modify EMA Ribbon Periods (default 8,13,21,34) for a tighter or wider ribbon.
RSI-MAI spent a lot of time chasing trading methods.
Until I realized that the best method I need to follow is the reality of my own mind.
With faith in the truth, follow the truth in your heart.
OTE Premium v2 [SYNC & TRADE]🇬🇧 Description (for TradingView)
OTE Premium v2 is a powerful tool designed to accurately identify Optimal Trade Entry (OTE) zones based on user-defined impulses within custom date ranges. It’s ideal for traders who rely on Fibonacci-based analysis, market structure, and impulse wave mapping.
🔹 Supports up to 5 independent impulses, each with fully customizable settings (date ranges, levels, extensions).
🔹 Displays OTE 70%, OTE 30%, 88% retracement level, and Fibonacci extensions (1.62, 2.00, 2.62, 3.62).
🔹 Visualizes fractals based on user-defined candle count.
🔹 Comes with alerts for OTE zone entries and 88% level crossings.
🔹 OTE zones can auto-disable after specific interactions (customizable behavior).
🔹 Zones can be anchored using either candle bodies or wicks.
This indicator is suitable for both intraday and swing traders, offering high flexibility and precision visualization of key entry and target levels.
🇷🇺 Описание (для TradingView)
OTE Premium v2 — это мощный инструмент, предназначенный для точной идентификации зон оптимального входа (OTE — Optimal Trade Entry) на основе пользовательских импульсов, заданных по диапазонам дат. Индикатор особенно полезен трейдерам, использующим анализ Фибоначчи, структуру рынка и модели импульсов.
🔹 Поддерживает до 5 независимых импульсов, каждый с индивидуальными настройками (даты, уровни, расширения).
🔹 Показывает зоны OTE 70%, OTE 30%, 88% уровень и расширения Фибоначчи (1.62, 2.00, 2.62, 3.62).
🔹 Визуализирует фракталы на основе заданного количества свечей.
🔹 Предусмотрены алерты на вход в зоны OTE и пробой уровня 88%.
🔹 Зоны OTE могут деактивироваться автоматически при касании, в зависимости от настроек.
🔹 Все зоны могут быть построены либо по телам свечей, либо по экстремумам.
Этот индикатор подходит как для интрадей трейдинга, так и для свинг-трейдеров, предоставляя высокую гибкость и точную визуализацию ключевых уровней входа и целей.
BB 확장 CCI MA 매매신호 Rev.7.1 (마커 크기 축소)Buy and sell signals generated using Bollinger Bands, CCI, and 5-day moving average
Fibonacci Optimal Entry Zone [OTE] (Zeiierman)█ Overview
Fibonacci Optimal Entry Zone (Zeiierman) is a high-precision market structure tool designed to help traders identify ideal entry zones during trending markets. Built on the principles of Smart Money Concepts (SMC) and Fibonacci retracements, this indicator highlights key areas where price is most likely to react — specifically within the "Golden Zone" (between the 50% and 61.8% retracement).
It tracks structural pivot shifts (CHoCH) and dynamically adjusts Fibonacci levels based on real-time swing tracking. Whether you're trading breakouts, pullbacks, or optimal entries, this tool brings unparalleled clarity to structure-based strategies.
Ideal for traders who rely on confluence, this indicator visually synchronizes swing highs/lows, market structure shifts, Fibonacci retracement levels, and trend alignment — all without clutter or lag.
⚪ The Structural Assumption
Price moves in waves, but key retracements often lead to continuation or reversal — especially when aligned with structure breaks and trend shifts.
The Optimal Entry Zone captures this behavior by anchoring Fibonacci levels between recent swing extremes. The most powerful area — the Golden Zone — marks where institutional re-entry is likely, providing traders with a sniper-like roadmap to structure-based entries.
█ How It Works
⚪ Structure Tracking Engine
At its core, the indicator detects pivots and classifies trend direction:
Structure Period – Determines the depth of pivots used to detect swing highs/lows.
CHoCH – Break of structure logic identifies where the trend shifts or continues, marked visually on the chart.
Bullish & Bearish Modes – Independently toggle uptrend and downtrend detection and styling.
⚪ Fibonacci Engine
Upon each confirmed structural shift, Fibonacci retracement levels are projected between swing extremes:
Custom Levels – Choose which retracements (0.50, 0.618, etc.) are shown.
Real-Time Adjustments – When "Swing Tracker" is enabled, levels and labels update dynamically as price forms new swings.
Example:
If you disable the Swing Tracker, the Golden Level is calculated using the most recent confirmed swing high and low.
If you enable the Swing Tracker, the Golden Level is calculated from the latest swing high or low, making it more adaptive as the trend evolves in real time.
█ How to Use
⚪ Structure-Based Entry
Wait for CHoCH events and use the resulting Fibonacci projection to identify entry points. Enter trades as price taps into the Golden Zone, especially when confluence forms with swing structure or order blocks.
⚪ Real-Time Reaction Tracking
Enable Swing Tracker to keep the tool live — constantly updating zones as price shifts. This is especially useful for scalpers or intraday traders who rely on fresh swing zones.
█ Settings
Structure Period – Number of bars used to define swing pivots. Larger values = stronger structure.
Swing Tracker – Auto-updates fib levels as new highs/lows form.
Show Previous Levels – Keep older fib zones on chart or reset with each structure shift.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Zigzag Simple [SCL]🟩 OVERVIEW
Draws zigzag lines from pivot Highs to pivot Lows. You can choose between three different ways of calculating pivots:
• True Highs and Lows
• Williams pivots
• Oscillator pivots
🟩 HOW TO USE
This indicator can be used to understand market structure, which is arguably the primary thing you need to be aware of when trading. The zigzag by itself does not display a market structure bias, nor any information about prices of pivots, HH and HL labels, or anything like that. Nevertheless, a simple zigzag is perhaps the easiest and most intuitive way to understand what price is doing.
Choose a pivot style that you like, customise the colours and line style, and enjoy!
🟩 PIVOT TYPES EXPLAINED
True Highs and Lows
This is not an invention of mine (all credit to my humble mentor), but I haven't seen anyone else code them up. A true High is a close below the low of the candle with the highest high. A true Low is a close above the high of a candle with the lowest low. These are solid, price action-based pivots that can sometimes confirm quickly.
Williams pivots
This is how most people calculate pivots. They're simply the highest high for x bars back and x bars forwards. They're the vanilla of pivots IMO: serviceable but not very interesting. They're very convenient to code because there are built-in Pine functions for them: ta.pivothigh and ta.pivotlow . They confirm a predictable number of bars after they happen, which is great for coding but also makes the trader wait for confirmation.
Oscillator pivots
This is a completely different concept, which uses momentum in order to define pivots. For example, when you get a rise in momentum and momentum then drops a configurable amount, it confirms a pivot high, and vice versa for a pivot low. I don't know if anyone else does it –- although some indicators do mark pivots in momentum itself, and plenty do divergences, I wasn't able to find one that specifically marked *pivots in price* because of pivots in momentum 🤷♂️
Anyway, while this approach needs a whole investigation on its own, here we simply plot some pivots in a smoothed RSI. This indicator doesn't plot the actual momentum values -- for a more visual understanding of how this works, refer to the examples in the OscillatorPivots library.
🟩 UNIQUE ADVANTAGES
In contrast to other zigzag indicators available, this one lets you choose between the standard and some more unique methods of generating the zigzags. Additionally, because it's based on libraries, it is relatively easy for programmers to use as a basis for experimentation.
🟩 GEEK STUFF
Although there is considerable practical use for pivot-based zigzags in trading, this script is primarily a demonstration in coding -- specifically the power of libraries!
Most of the script consists of setup, especially defining inputs. The final section sacrifices some readability for conciseness, simply to emphasise how little code you need when the heavy lifting is done by libraries .
The actual calculations and drawing are achieved in just 8 lines.
The equivalent code in the libraries is ~250 lines long.
All libraries used are my own, public and open-source:
• MarketStructure
• DrawZigZag
• OscillatorPivots
Real-Time Spring DetectorThis is a Pine Script for Trading View that creates a "Real-Time Spring Detector" indicator. This Pine Script is essentially a sophisticated pattern recognition tool that helps identify "spring" setups - a popular trading pattern where price briefly breaks below support but then bounces back strongly, often indicating that sellers are exhausted and buyers are ready to step in.What is a "Spring" in Trading?
A spring is a technical analysis pattern that occurs when:
Price breaks below a support level (like breaking below a floor)
But then quickly bounces back up (like a spring rebounds)
This often signals that sellers are weak and buyers are stepping in
Think of it like testing the strength of a trampoline - you push down, but it springs back up stronger.
What This Script Does
This Pine Script automatically detects spring patterns on your chart and alerts you when they happen. Here's how it works:
Main Components
1. Input Parameters (Settings You Can Adjust)
Lookback Period (10): How many bars back to look for patterns
Min Support Touches (2): How many times price must touch the support level
Min Penetration % (0.1%): How far below support price must break
Min Rejection % (30%): How much price must bounce back up
Alert Settings: Choose when to get notifications
2. Support Level Detection
The script finds "support levels" - price levels where buyers have stepped in before:
It looks at recent low points
Identifies areas where price has bounced multiple times
Uses a small tolerance (0.5%) to account for minor price differences
3. Spring Detection Logic
The script identifies three types of springs:
Real-Time Spring (happening right now):
Price breaks below support by the minimum amount
Price bounces back strongly (rejection %)
Current candle closes higher than it opened (bullish)
Volume is reasonable
Confirmed Spring (already completed):
Same as real-time, but the candle has finished forming
Potential Spring (early warning):
Price is near support but hasn't fully formed the pattern yet
4. Visual Elements
Markers on Chart:
🟢 Green Triangle: Confirmed spring (reliable signal)
🟡 Yellow Triangle: Spring forming right now (live signal)
🟠 Orange Circle: Potential spring (early warning)
Labels:
Show "SPRING" with the rejection percentage
"FORMING" for developing patterns
"?" for potential springs
Support Line:
Red dotted line showing the support level
Background Colors:
Light red when price penetrates support
Light yellow for potential springs
5. Information Box
A table in the top-left corner shows:
Current support level price
Whether penetration is happening
Rejection percentage
Current pattern status
Live price
6. Alert System
Two types of alerts:
Real-time alerts: Notify when spring is forming (current bar)
Confirmed alerts: Notify when spring is complete (bar closed)
Alert cooldown: Prevents spam by waiting 5 bars between alerts
How to Use This Script
1. Installation
Copy the script code
Open TradingView
Go to Pine Editor
Paste the code
Click "Add to Chart"
2. Settings
Adjust the input parameters based on your trading style:
Lower lookback = more sensitive, faster signals
Higher support touches = more reliable but fewer signals
Lower penetration % = catches smaller springs
Higher rejection % = only strong bounces
3. Interpretation
Green triangles: High-confidence buy signals
Yellow triangles: Watch closely, pattern developing
Orange circles: Early warning, not tradeable yet
4. Best Practices
Use on higher timeframes (15min+) for more reliable signals
Combine with other indicators for confirmation
Pay attention to volume - higher volume springs are more reliable
Wait for confirmed signals if you're a conservative trader
Key Features for Small Timeframes
The script includes special detection for shorter timeframes:
Quick bounce detection: Identifies rapid reversals
Hammer pattern recognition: Spots candlestick patterns
Relaxed volume requirements: Works when volume data is limited
Advanced Features
Volume Analysis
Compares current volume to 10-bar average
Requires at least 80% of average volume (flexible for small timeframes)
Pattern Enhancement
Looks for hammer-like candles (long lower wick, small upper wick)
Identifies quick bounces where the upper wick is small
Multiple Confirmation
Combines multiple criteria to reduce false signals
Stronger springs get priority for alerts
Common Use Cases
Entry Signals: Buy when confirmed springs appear
Support Level Identification: Visual support lines help identify key levels
Risk Management: Failed springs (continued breakdown) can be stop-loss triggers
Market Structure: Understanding where buyers are defending price levels
Limitations
Works best in trending or ranging markets May produce false signals in very choppy conditions
small timeframe signals can be noisy should be combined with other analysis methods.The key advantage is that it can catch these patterns as they happen, rather than you having to constantly watch charts. This is especially valuable for active traders who want to capitalize on quick reversals at support levels.
ALEX - ATR Extensions + ADR + TableALEX - ATR Extensions + ADR + Table
Overview
The ALEX ATR Extensions indicator is a comprehensive volatility and momentum analysis tool that combines Average True Range (ATR), Average Daily Range (ADR), and moving average distance calculations in a single, customizable display. This indicator helps traders assess current price action relative to historical volatility and key moving averages, providing crucial context for risk management and trade planning.
Key Features
Multi-Metric Analysis
- ATR Percentage: Current ATR as a percentage of price for volatility assessment
- ADR Percentage: Average Daily Range as a percentage for typical daily movement
- Low of Day Distance: Distance from current price to daily low
- Moving Average Distance: ATR-normalized distance from 21 and 50 period moving averages
Flexible Moving Average Options
- Configurable MA Types: Choose between EMA or SMA for both 21 and 50 period averages
- Customizable Periods: Adjust moving average lengths to suit your trading style
- Daily Timeframe Data: Uses daily moving averages regardless of chart timeframe
ATR Extension Levels
- Dynamic Price Targets: Calculate extension levels based on ATR multiples from moving averages
- Visual Reference Lines: Optional overlay lines showing ATR extension targets
- Customizable Multipliers: Adjust ATR multipliers for different risk/reward scenarios
Smart Visual Alerts
- Color-Coded Distance Metrics: Automatic color changes based on distance thresholds
- Symbol Plotting: Customizable chart symbols when distance thresholds are exceeded
- Threshold-Based Alerts: Visual cues when price reaches significant ATR distances
Comprehensive Data Table
- Real-Time Metrics: Live updating table with all key measurements
- Customizable Display: Toggle individual metrics on/off based on preference
- Professional Styling: Adjustable colors, fonts, and transparency
How to Use
Volatility Assessment
- High ATR%: Indicates elevated volatility, larger position sizing considerations
- Low ATR%: Suggests compressed volatility, potential for expansion
- ADR% Comparison: Compare current day's range to historical average
Moving Average Analysis
- ATR Distance 21/50: Normalized distance showing how extended price is from key levels
- Positive Values: Price above moving average (bullish positioning)
- Negative Values: Price below moving average (bearish positioning)
- Color Changes: Automatic alerts when reaching threshold levels
Extension Target Planning
- ATR Extension Lines: Visual price targets based on volatility-adjusted projections
- Risk/Reward Planning: Use extension levels for profit target placement
- Breakout Confirmation: Extension levels can confirm breakout validity
Symbol Alert System
- Chart Symbols: Automatic plotting when distance thresholds are breached
- Customizable Triggers: Set your own threshold levels for alerts
- Visual Scanning: Quick identification of extended conditions across multiple charts
Settings
Display Controls
- Show ADR%: Toggle average daily range percentage display
- Show ATR%: Toggle average true range percentage display
- Show LoD Distance: Toggle low of day distance calculation
- Show LoD Price: Toggle actual low of day price display
- Show ATR Distance from 21/50 DMA: Toggle moving average distance metrics
- Show 21/50 DMA Price: Toggle actual moving average price display
- Show ATR Extension Levels: Toggle extension target display in table
Moving Average Configuration
- 21/50 DMA Type: Choose between EMA or SMA calculation methods
- 21/50 DMA Period: Customize moving average lengths
- ADR/ATR Length: Adjust calculation periods for range measurements
Color Thresholds
- Threshold Levels: Set distance levels for color changes (default 2.0 and 5.0)
- Custom Colors: Choose colors for different threshold breaches
- Separate 21/50 Settings: Independent color schemes for each moving average
Symbol Settings
- Show Char Symbol: Toggle symbol plotting for each moving average
- Custom Symbols: Choose any character for chart plotting
- Symbol Colors: Customize colors for visual distinction
- Threshold Levels: Set trigger points for symbol appearance
ATR Extension Lines
- Show Extension Lines: Toggle visual extension level lines
- ATR Multipliers: Customize extension distance (default 2.0x)
- Line Colors: Choose colors for extension level visualization
Table Customization
- Background Color: Adjust table transparency and color
- Text Color: Customize default text appearance
- Font Size: Choose from tiny to huge font options
Advanced Applications
Trend Strength Analysis
- Large ATR distances suggest strong trending moves
- Small ATR distances indicate potential consolidation or reversal zones
- Compare current readings to recent historical ranges
Risk Management
- Use ATR% for position sizing calculations
- Extension levels provide natural profit target zones
- Distance metrics help identify overextended conditions
Multi-Timeframe Context
- Apply to different timeframes for comprehensive analysis
- Daily data provides consistency across all chart intervals
- Combine with weekly/monthly analysis for broader context
Market Regime Identification
- High volatility periods: Increased ATR% readings
- Low volatility periods: Compressed ATR% readings
- Trending markets: Sustained high distance readings
- Consolidating markets: Low distance readings with frequent color changes
Best Practices
Volatility-Adjusted Trading
- Increase position sizes during low volatility periods
- Reduce position sizes during high volatility periods
- Use ATR% for stop-loss placement relative to normal market movement
Extension Level Usage
- Primary targets: 1.5-2.0x ATR extensions
- Secondary targets: 2.5-3.0x ATR extensions
- Avoid chasing prices beyond 3x ATR extensions
Threshold Optimization
- Backtest different threshold levels for your trading style
- Consider market conditions when setting alert levels
- Adjust thresholds based on instrument volatility characteristics
Integration Strategies
- Combine with momentum indicators for confirmation
- Use alongside support/resistance levels
- Incorporate into systematic trading approaches
Technical Specifications
- Compatible with Pine Script v6
- Uses daily timeframe data for consistency
- Optimized for real-time performance
- Works on all chart types and timeframes
- Supports all tradeable instruments
Ideal For
- Swing traders using daily charts
- Position traders seeking volatility context
- Day traders needing intraday reference levels
- Risk managers requiring volatility metrics
- Systematic traders building rule-based strategies
Disclaimer
This indicator is for educational and informational purposes only. It should not be used as the sole basis for trading decisions. Always combine with other forms of analysis, proper risk management techniques, and consider your individual trading plan and risk tolerance. Past performance does not guarantee future results.
Compatible with Pine Script v6 | Optimized for daily timeframe analysis | Works across all markets and instruments
Wavelet Filter with Adaptive Upsampling [BackQuant]Wavelet Filter with Adaptive Upsampling
The Wavelet Filter with Adaptive Upsampling is an advanced filtering and signal reconstruction tool designed to enhance the analysis of financial time series data. It combines wavelet transforms with adaptive upsampling techniques to filter and reconstruct price data, making it ideal for capturing subtle market movements and enhancing trend detection. This system uses high-pass and low-pass filters to decompose the price series into different frequency components, applying adaptive thresholding to eliminate noise and preserve relevant signal information.
Shout out to Loxx for the Least Squares fitting of trigonometric series and Quinn and Fernandes algorithm for finding frequency
www.tradingview.com
Key Features
1. Frequency Decomposition with High-Pass and Low-Pass Filters:
The indicator decomposes the input time series using high-pass and low-pass filters to separate the high-frequency (detail) and low-frequency (trend) components of the data. This decomposition allows for a more accurate analysis of underlying trends, while mitigating the impact of noise.
2. Soft Thresholding for Noise Reduction:
A soft thresholding function is applied to the high-frequency component, allowing for the reduction of noise while retaining significant market signals. This function adjusts the coefficients of the high-frequency data, removing small fluctuations and leaving only the essential price movements.
3. Adaptive Upsampling Process:
The upsampling process in this script can be customized using different methods: sinusoidal upsampling, advanced upsampling, and simple upsampling. Each method serves a unique purpose:
Sinusoidal Upsample uses a sine wave to interpolate between data points, providing a smooth transition.
Advanced Upsample utilizes a Quinn-Fernandes algorithm to estimate frequency and apply more sophisticated interpolation techniques, adapting to the market’s cyclical behavior.
Simple Upsample linearly interpolates between data points, providing a basic upsampling technique for less complex analysis.
4. Reconstruction of Filtered Signal:
The indicator reconstructs the filtered signal by summing the high and low-frequency components after upsampling. This allows for a detailed yet smooth representation of the original time series, which can be used for analyzing underlying trends in the market.
5. Visualization of Reconstructed Data:
The reconstructed series is plotted, showing how the upsampling and filtering process enhances the clarity of the price movements. Additionally, the script provides the option to visualize the log returns of the reconstructed series as a histogram, with positive returns shown in green and negative returns in red.
6. Cumulative Series and Trend Detection:
A cumulative series is plotted to visualize the compounded effect of the filtered and reconstructed data. This feature helps traders track the overall performance of the asset over time, identifying whether the asset is following a sustained upward or downward trend.
7. Adaptive Thresholding and Noise Estimation:
The system estimates the noise level in the high-frequency component and applies an adaptive thresholding process based on the standard deviation of the downsampled data. This ensures that only significant price movements are retained, further refining the trend analysis.
8. Customizable Parameters for Flexibility:
Users can customize the following parameters to adjust the behavior of the indicator:
Frequency and Phase Shift: Control the periodicity of the wavelet transformation and the phase of the upsampling function.
Upsample Factor: Adjust the level of interpolation applied during the upsampling process.
Smoothing Period: Determine the length of time used to smooth the signal, helping to filter out short-term fluctuations.
References
Enhancing Cross-Sectional Currency Strategies with Context-Aware Learning to Rank
arxiv.org
Daubechies Wavelet - Wikipedia
en.wikipedia.org
Quinn Fernandes Fourier Transform of Filtered Price by Loxx
Note on Usage for Mean-Reversion Strategy
This indicator is primarily designed for trend-following strategies. However, by taking the inverse of the signals, it can be adapted for mean-reversion strategies. This involves buying underperforming assets and selling outperforming ones. Caution: This method may not work effectively with highly correlated assets, as the price movements between correlated assets tend to mirror each other, limiting the effectiveness of mean-reversion strategies.
Final Thoughts
The Wavelet Filter with Adaptive Upsampling is a powerful tool for traders seeking to improve their understanding of market trends and noise. By using advanced wavelet decomposition and adaptive upsampling, this system offers a clearer, more refined picture of price movements, enhancing trend-following strategies. It’s particularly useful for detecting subtle shifts in market momentum and reconstructing price data in a way that removes noise, providing more accurate insights into market conditions.
NY ORB + Fakeout Detector🗽 NY ORB + Fakeout Detector
This indicator automatically plots the New York Opening Range (ORB) based on the first 15 minutes of the NY session (15:30–15:45 CEST / 13:30–13:45 UTC) and detects potential fakeouts (false breakouts).
🔍 Key Features:
✅ Plots ORB high and low based on the 15-minute NY open range
✅ Automatically detects fake breakouts (price wicks beyond the box but closes back inside)
✅ Visual markers:
🔺 "Fake ↑" if a fake breakout occurs above the range
🔻 "Fake ↓" if a fake breakout occurs below the range
✅ Gray background highlights the ORB session window
✅ Designed for scalping and short-term breakout strategies
🧠 Best For:
Intraday traders looking for NY volatility setups
Scalpers using ORB-based entries
Traders seeking early-session fakeout traps to avoid false signals
Those combining with EMA 12/21, volume, or other confluence tools