crypto signals -Breakout Targets# 🚀 Crypto Signals (Breakout Targets)
**Crypto Signals (Breakout Targets)** is an enhanced breakout trading indicator designed to identify high-probability breakout opportunities while providing automatic trade management with multiple profit targets and a dynamic stop loss.
This version is based on the original open-source **Breakout Targets** indicator by **AlgoAlpha**, with numerous enhancements focused on customization, usability, performance tracking, and professional alert automation.
---
## ✨ Features
✅ Automatic detection of bullish and bearish breakout opportunities.
✅ Up to **3 configurable Take Profit levels (TP1, TP2, TP3).**
✅ Dynamic Stop Loss calculated using **ATR** or **Percentage (%).**
✅ **Auto Symbol Profiles** for storing different settings across multiple trading pairs.
✅ Advanced Statistics Dashboard displaying:
* Win Rate
* Total Winning Trades
* Total Losing Trades
* Net Performance
* TP1 / TP2 / TP3 Statistics
✅ Fully customizable colors and display settings.
✅ Clean and intuitive chart visualization suitable for all timeframes.
---
## 🔔 Smart Alert System
The indicator includes a professional built-in alert system fully compatible with **TradingView Alerts**, making it easy to integrate with Telegram bots, Discord, webhooks, or automated trading systems.
Available alert events:
* 🟢 Buy Signal
* 🔴 Sell Signal
* 🎯 TP1 Hit
* 🚀 TP2 Hit
* 🏆 TP3 Hit
* 🛑 Stop Loss Hit
Each alert is delivered in a clean, mobile-friendly format and includes essential trade information such as the trading pair, timeframe, entry price, target levels, and stop loss, allowing traders to monitor positions efficiently in real time.
---
## 📈 How It Works
The indicator continuously analyzes price action to identify potential breakout opportunities.
Once a breakout is confirmed, it automatically plots:
* Entry Price
* Stop Loss
* Take Profit 1 (TP1)
* Take Profit 2 (TP2)
* Take Profit 3 (TP3)
The trade is then monitored automatically while the statistics dashboard keeps track of overall performance and target achievements.
---
## 🎯 Best For
* Cryptocurrency
* Forex
* Stocks
* Indices
The indicator works on all timeframes and delivers the best results when combined with proper market structure analysis, confirmation tools, and sound risk management.
---
## 🙏 Credits
This project is based on the open-source **Breakout Targets** indicator created by **AlgoAlpha**.
The original concept has been extended with additional features, profile management, enhanced dashboards, professional alerts, customization options, and various usability improvements while respecting the original open-source license and giving full credit to the original author.
---
# ⚠️ Disclaimer
This indicator is provided for **educational and informational purposes only**.
It does **not** constitute financial or investment advice and should not be interpreted as a recommendation to buy or sell any financial instrument.
Trading financial markets involves substantial risk and may result in the partial or total loss of your capital. Always perform your own analysis, use proper risk management, and never rely solely on any indicator when making trading decisions.
Past performance does **not** guarantee future results.
Indikator

FractalMemoryLib [Jayadev Rana]FractalMemoryLib packages the pattern-memory engine used by the Fractal Memory Projection indicator and the Fractal Memory Strategy so any script can import it.
WHAT IT DOES
The library finds the historical window whose movement shape most resembles the most recent bars (mean squared distance between stdev-normalized log returns), replays what followed that window as a projected close path, and sizes stops and targets adaptively by volatility regime.
EXPORTED FUNCTIONS
logRet(src) - one-bar log return of a series.
bestMatch(src, winLen, scanDepth, gapAhead) - scans up to scanDepth bars back and returns the offset of the most similar window plus a 0-100 similarity score. gapAhead reserves bars after the match for a projection.
analogPath(src, offset, fcLen, scaleF) - array of fcLen projected closes built by replaying the returns that followed the match, rescaled by scaleF (for example current ATR over ATR at the match).
adaptiveR(atrLen, rankLen, base) - volatility-adaptive unit risk: ATR times (base plus its 0-1 percentile rank), plus the rank itself. Call on every bar.
volRegime(volRank) - "Low", "Normal" or "High" label from the rank.
targets(entry, dirSign, unitR, slMult) - stop loss and TP1/TP2/TP3 at 1R, 2R and 3R.
USAGE NOTES
Call adaptiveR on every bar for ta consistency. bestMatch and analogPath are loop-heavy; for display purposes call them on the last bar only, and make sure the chart has at least scanDepth plus gapAhead bars of history. When the library itself is added to a chart it draws a small demo projection line from the best analog.
The analog projection is a statistical reference to a similar past episode, not a prediction, and not financial advice. Perpustakaan

Fractal Memory Strategy [Jayadev Rana]Fractal Memory Strategy trades the same engine as the Fractal Memory Projection indicator: it looks for the historical episode most similar to current price action, and only takes trend flips that agree with how that episode played out. Exits scale out at three volatility-adaptive targets.
HOW IT DECIDES
An ATR trailing stop tracks the trend. When it flips, the last 30 closes are converted to normalized log returns and compared against past windows by mean squared distance. The bars that followed the best analog give a net direction; the flip is only traded when the analog direction agrees (the filter can be disabled). Orders are processed on bar close, so no lookahead is involved. For visual context the strategy also draws the 50-candle ghost projection beyond the last bar - it is display-only and never affects order logic.
ENTRIES AND EXITS
On a confirmed bullish flip with agreement the strategy closes any short and enters long; the mirror applies to shorts. One unit of risk R equals ATR times (1.2 plus the ATR percentile rank over 200 bars), so targets and stops widen in volatile regimes and tighten in quiet ones. Position exits: one third at 1R, one third at 2R, the remainder at 3R, with a stop at 1.5R (all adjustable). Direction can be restricted to long-only or short-only.
PROPERTIES USED IN THE PUBLISHED BACKTEST
10,000 initial capital, 10 percent of equity per trade, 0.01 percent commission per order, 2 ticks slippage, no pyramiding, orders on close. These are deliberately conservative; adjust them to match your own broker before drawing any conclusion.
PANEL
Match similarity, volatility regime, forecast direction, closed trade count and win rate.
NOTES
The analog projection is a statistical reference, not a prediction, and past behaviour does not guarantee anything about the future. Results vary by symbol and timeframe; test on your own market with realistic costs before considering any live use. This is an educational tool, not financial advice. Strategi

Smart Ichimoku | GainzAlgoOverview
Most Ichimoku indicators give you the same signal everyone else gets, a raw cloud cross with no filter, no context, and no target. This indicator rethinks the system from the ground up by combining a smoothed Ichimoku cloud with an inline logistic regression classifier that scores every cloud break in real time, then projects statistically-derived price targets the moment a confirmed signal fires.
The result is a cleaner, higher conviction version of one of the most respected trend frameworks in technical analysis.
The Foundation: Why Smooth the Ichimoku?
Traditional Ichimoku uses simple high-low midpoints (Donchian midlines) for its Tenkan, Kijun, and Senkou components. This makes the cloud visually choppy and prone to false crosses on noisy, volatile instruments like crypto or high-beta equities.
This indicator replaces all three components with Hull Moving Averages (HMA), which are designed to be simultaneously smooth and responsive, reducing lag without the whipsaw of standard smoothing. The cloud body itself becomes cleaner, the baseline is less noisy, and the cross events that trigger signals are more structurally meaningful.
All default periods match classic Ichimoku settings (9 / 26 / 52 / 26 displacement) so the logic stays true to the original system, it's just rendered with better math underneath.
The Signal: Logistic Regression Cloud Break Classifier
Here's where this indicator separates itself. A cloud cross alone is not a signal, it's a candidate. What actually matters is whether the market conditions at the moment of the cross are consistent with a real, sustained breakout or breakdown.
The classifier answers that question with a probability score.
How it works
At the exact bar where price exits the cloud body, four normalized features are computed and fed into a logistic regression model:
1. RSI (centered at 50, scaled by 25)
Measures momentum. On a bearish break, is RSI already extended to the downside? On a bullish break, is it pointing up? RSI near 50 adds little conviction; RSI at 30 on a bear break adds a lot.
2. Stochastic Oscillator (centered at 50, scaled by 25)
Short-term overbought/oversold confirmation. Works similarly to RSI but captures faster-cycle momentum, giving the model a second read on the same question.
3. Z-Score (price vs 20-bar mean, normalized by standard deviation)
Measures how statistically extended price is relative to recent history. A cloud break accompanied by a Z-Score of -2 is much more meaningful than one at Z = -0.2. This feature effectively asks: "Is this break happening from an already-stretched position?"
4. Cloud Break Depth (normalized by ATR)
How far did price close through the cloud boundary, relative to recent volatility? A close that barely clips the edge is very different from one that punches through by a full ATR. This is the most direct measure of breakout conviction.
The Math
Each feature is multiplied by a weight and summed into a single score (z). That score is passed through the sigmoid function:
P = 1 / (1 + e^(-z))
This compresses the output to a probability between 0 and 1. If the probability clears the threshold (default 0.60), the break is confirmed and a signal fires. Below threshold, the cross is rejected — instead of being ignored, it's labeled with a risk tier so you can see exactly how close (or far) it came to confirming.
The probability score is displayed as a small percentage label directly on the signal bar so you always know how strong the classifier rated that particular break.
Self-Calibrating Weights — No Manual Tuning
Unlike a typical multi-feature model, none of the four weights are set by hand. Each one is derived automatically from that feature's own rolling correlation with next-bar returns, recalculated continuously over a user-set lookback window (the "Self-Calibration Window," default 100 bars).
In practice this means: if RSI has been a genuinely useful predictor of direction on this instrument and timeframe recently, its weight rises on its own. If Z-Score has been mostly noise in the current regime, its weight shrinks toward zero — automatically, without anyone touching a slider.
This was a deliberate design choice. Letting people hand-tune regression weights invites a lot of well-intentioned guesswork that usually overfits to a handful of recent candles. By having the model score its own features based on demonstrated, rolling predictive power, the classifier adapts to changing market conditions instead of running on opinions baked in at setup time.
Rejected Crosses: Risk-Tiered Labels
Not every cloud cross clears the threshold, and that's the point. Rather than silently discarding rejected crosses, this indicator labels every one of them with a risk tier so you know exactly what the model saw and how close it came to confirming:
Low Risk: Probability fell just short of the threshold (within 10 points below). A near-miss — the break had real conviction behind it, it simply didn't clear the bar.
Moderate Risk: Probability landed meaningfully below threshold (10–25 points). A weaker break with mixed signals underneath it.
High Risk: Probability came in far below threshold (25+ points). A break with little to no underlying conviction — most consistent with chop or noise.
Each label shows its tier and the actual probability (e.g. "Low Risk ▼ 54%"), so nothing is a black box. A cluster of Low/Moderate Risk labels in one zone often signals a contested area that's likely to resolve into a real breakout once it's worked through — useful context even though no trade signal fired. These labels can be toggled off entirely in settings if you'd rather only see confirmed signals.
The Targets: Mean, Median, Mode
Once a confirmed break fires, three dashed horizontal target lines project from the signal bar. These are not arbitrary multiples, they are derived from the actual statistical distribution of bar-to-bar price moves over the lookback window.
Mean (Yellow): The average absolute bar move over the lookback period, scaled by the target multiplier. This is the "expected" target under normal conditions.
Median (Cyan): The 50th percentile of historical moves. Because move distributions are right-skewed (a few large moves pull the mean up), the median is typically more conservative than the mean and often a more realistic first target.
Mode (Hot Pink): The most frequently occurring move size, derived by bucketing historical moves into ATR-width bins and finding the most populated bin. This represents what the market most commonly does — not what it averages, not the middle value, but the single most likely outcome based on observed frequency.
Together, the three targets give you a realistic range rather than a single arbitrary level — grounded in what this instrument has actually done over the recent past. Bull and bear target sets are tracked independently, so a new bearish break won't erase an active bullish target set still in play, and vice versa.
The Target Multiplier (default 3×) scales all three targets proportionally. Lower it for tighter, shorter-term targets; raise it for swing trades or higher-volatility instruments.
Reading the Chart
Green triangle (▲) below bar: Confirmed bullish cloud break. Price has exited the top of the cloud with sufficient classifier probability. Three upward target lines appear.
Pink triangle (▼) above bar: Confirmed bearish cloud break. Price has exited the bottom of the cloud with sufficient classifier probability. Three downward target lines appear.
Percentage label: The LR probability score for that break (e.g. "73%"). Higher is stronger.
Risk-tiered label (amber/orange/red): A cloud cross that was rejected, with its tier and probability shown.
Yellow dashed line: Mean target
Cyan dashed line: Median target
Hot pink dashed line: Mode target (thicker, as it represents the highest-frequency outcome)
Settings Guide
Smooth Ichimoku
Tenkan / Kijun / Senkou Period: Standard Ichimoku periods. Default 9/26/52 follows the classic system. Shorter periods = more sensitive, more signals. Longer = slower, fewer but stronger signals.
Displacement: How far forward the cloud is projected. Default 26.
Break Classifier
Self-Calibration Window: How many past bars the model uses to learn each feature's weight from its recent correlation with price moves. Shorter windows adapt faster to regime changes but can be noisier; longer windows are more stable but slower to react. Default 100.
Break Probability Threshold: The minimum probability required to confirm a signal. Default 0.60. Raise toward 0.75+ for fewer, higher-conviction signals. Lower toward 0.50 to see more cloud breaks confirmed (effectively turns the filter off at 0.50).
Targets
Lookback (bars): How many bars of historical move data to use for the distribution calculation. Default 60. Longer lookback = more stable targets based on longer-term behavior. Shorter = more reactive to recent volatility.
Target Multiplier: Scales all three target lines proportionally from the signal close. Default 3×. Adjust based on your timeframe and typical holding period.
Risk Labels
Show Risk Labels on Rejected Crosses: Toggles the Low/Moderate/High Risk labels on rejected cloud crosses. Off by default for a cleaner chart; turn on to see every cross the model evaluated, not just the confirmed ones.
How to Use It
As a trend confirmation tool: Use the cloud direction (cyan dominant = bullish structure, pink dominant = bearish) as your bias filter, and only trade signals that align with the cloud color. Bull signals below a cyan cloud, bear signals above a pink cloud.
As a breakout entry trigger: Wait for price to consolidate inside or near the cloud, then take the confirmed break as an entry signal. The probability label tells you how much conviction the model has at that moment.
Using rejected crosses as context: A string of Low Risk labels in a zone suggests the cloud is being tested seriously without quite breaking — often a precursor to a real move once the level finally gives.
For target setting: Use the median as a conservative first target, the mean as a mid-range objective, and the mode as a guide to where the most "normal" move tends to land. The hot pink mode line is often the most useful for setting realistic profit expectations.
For alerts — Four alert conditions are built in: "Confirmed Bull Break," "Confirmed Bear Break," "Rejected Bull Cross," and "Rejected Bear Cross." Set them on your preferred timeframe and let the classifier notify you rather than watching the chart.
Timeframe Notes
This indicator works across all timeframes but behaves differently depending on context:
1H–4H: Good balance of signal frequency and reliability. Recommended starting point.
Daily: Fewer signals, higher structural significance. Best for swing traders.
15m and below: More signals, more noise. Consider raising the threshold to 0.65–0.70 and reducing the lookback to 30. Watch the risk-tiered labels here in particular — they're most useful for filtering chop on fast timeframes.
Example on the Daily with SPY ETF:
Example on the 4 Hour with BTCUSD;
Example on the 15 Minute with QQQ:
A Note on the Model
The logistic regression here is not trained on historical data in the machine learning sense, and it no longer relies on manually-set weights either. Each feature's weight is derived from its own rolling correlation with subsequent price action, recalculated continuously. Think of it less as a black-box ML model and more as a structured, self-adjusting way to combine four momentum and positioning indicators into a single probability score, similar to our Directional Logistic Oscillator.
The advantage over a traditional multi-condition filter (RSI < 40 AND stoch < 30 AND...) is that the sigmoid function produces a continuous probability rather than a binary pass/fail, which means the model degrades gracefully, a break with three strong features and one neutral one still scores well, rather than getting blocked by an arbitrary threshold on the weak feature. And because every rejected cross is shown with its tier and score rather than discarded silently, nothing the model does is hidden from you.
We hope you enjoy! Indikator

Smart Trap StructureSmart Trap Structure (STS)
The Smart Trap Structure (STS) is an advanced institutional and structural trading indicator designed to filter out market noise, identify deep liquidity hunts (traps), and track the true directional intent of the market.
Unlike standard market structure scripts that clutter the chart with endless BOS (Break of Structure) and CHoCH (Change of Character) labels, STS utilizes an exclusive "Active Setup Cycle" logic. This ensures that you only see the most relevant price ranges and confirmation points for the current market phase.
Key Features:
The Decision Line (Orange Retest Line):
Whenever a valid CHoCH occurs, an active orange "Decision Line" is projected forward. This line acts as the ultimate truth for the setup. If price violently pierces this line, it is often hunting for stop-losses (Smart Money Trap) before continuing in the intended direction.
Reaction Zones (HH & LL Boxes):
Instead of just drawing wicks, STS dynamically maps the extreme Highest Highs (HH) and Lowest Lows (LL) of a confirmed structural phase using shaded Reaction Zone boxes (from the absolute wick to the body). These zones act as highly reactive supply and demand areas for future retests.
Dynamic Fibonacci Engine:
STS features a built-in Fibonacci drawing tool that automatically anchors to the confirmed extremes (HH to LL or LL to HH) of the active setup phase. It perfectly projects structural retracement and extension levels (0, 0.236, 0.382, 0.618, 0.764, 1.0, 1.382, 1.618). When Fibo mode is active, it automatically hides unnecessary historical dotted lines for maximum chart clarity.
Clean Chart Mechanics:
You will never suffer from "indicator fatigue". When the structure shifts, the indicator forcefully deletes old, irrelevant lines, reaction boxes, and labels from past cycles. Only the active CHoCH label remains standard-sized, while internal BOS events are scaled down to keep your chart visually clean.
Integrated MA & VWAP:
Toggle the built-in VWAP and select from a variety of Moving Averages (SMA, EMA, WMA, HMA, VWMA) straight from the settings without needing an extra indicator slot on your chart.
Disclaimer:
This script is provided for educational and analytical purposes only. Past performance does not guarantee future results. The script does not constitute financial advice. Always use proper risk management and execute trades based on your own comprehensive market analysis. Indikator

Liquidity & Structure Toolkit [erdensedat] The Liquidity & Structure Toolkit is a comprehensive, all-in-one indicator designed for Smart Money Concepts (SMC), Volume Profile analysis, and overall market structure tracking. It aims to provide traders with a clear visual representation of liquidity zones, structural breaks, session balances, and high-volume nodes without cluttering the chart.
Below is a detailed breakdown of all the features, the math and logic behind the setups, the signal engine, and the alert systems included in this script.
1. Major Targets (Liquidity Pools - BSL/SSL)
The script identifies major structural high and low points that act as liquidity magnets (Buy Side Liquidity - BSL and Sell Side Liquidity - SSL).
Formula & Logic: It uses the ta.pivothigh() and ta.pivotlow() functions. A "Major Target" is confirmed only when the price forms a peak/valley with a user-defined Pivot Sensitivity (default is 10 bars on the left and right).
Visualization: When a major pivot is formed, a horizontal line and a label ("MAJOR BSL" or "MAJOR SSL") are drawn.
Sweep Mechanics: If the price crosses this level later, the level is considered "swept." The solid line turns into a dashed line with lower opacity, indicating that the liquidity has been taken. Swept levels are automatically removed after 24 hours to keep the chart clean.
2. Market Structure Breaks (BOS / CHoCH)
This module tracks internal and external structural shifts based on fractal highs and lows.
Logic: It calculates short-term pivots using a fractal length (default 5). When the price breaks above a recent pivot high, it's considered an upward break. When it breaks below a pivot low, it's a downward break.
BOS vs. CHoCH: The script intelligently labels the breaks based on the previous trend state. If the trend continues (e.g., up break followed by another up break), it labels it as BOS (Break of Structure). If the direction shifts (e.g., down break followed by an up break), it labels it as CHoCH (Change of Character).
Settings: You can choose whether a break requires a candle close beyond the level (Break = Close Beyond Level) or just a wick.
3. Initial Balance (IB) Box
The Initial Balance represents the price range established during the first specified minutes of a new trading session.
Setup: You define the Session Timeframe (e.g., Daily) and the IB Duration (e.g., the first 60 minutes).
Logic: The script tracks the highest high (IBH) and lowest low (IBL) during that initial window. Once the time window closes, the box extends to the right, serving as a dynamic support/resistance zone for the rest of the session.
Visualization: Highlights the IB High, IB Low, and IB Equilibrium (Midpoint) with clean labels and a customizable background box.
4. Volume Profile & POC Box (Point of Control)
A custom Volume Profile engine that calculates the highest volume node (POC) dynamically using lower timeframe data.
Lower Timeframe (LTF) Data: The script automatically fetches lower timeframe volume data (1m, 5m, 15m, or 60m depending on your chart's timeframe) to build an accurate profile inside a custom array matrix.
Rows/Bins: The session range is divided into horizontal bins (default 60). Volume is distributed among these bins based on where the LTF candles traded.
POC Engine Models:
Model 1 (Active POC): Displays the active, evolving POC of the current session as well as historical POCs from previous sessions. Uses a Hysteresis percentage (default 15%) to prevent the POC line from flickering rapidly; the new volume node must exceed the old POC by X% to shift the level.
Model 2 (Previous POC Focus): Instead of showing the actively changing current POC, it projects the finalized POC from the previous session starting from its original birth point, extending it across the current session as a heavy structural magnet.
Delta Lines: Inside the POC box, it plots the highest volume node and its immediate neighboring nodes (top, mid, bot) to show the thickness of the volume cluster.
5. Price Action & MSB Signal Engine
The script includes an automated signal engine that identifies highly probable reversal setups around the liquidity zones.
Price Action (PA) Signals: Triggered when the price "touches" or sweeps a Major BSL or SSL level, and subsequently prints a valid directional candle (e.g., sweeping SSL and printing a solid green candle that is not a Doji).
MSB (Market Structure Break) Signals: Triggered when the price sweeps a major liquidity level (BSL/SSL) and then creates a confirmed structural break (BOS/CHoCH) in the opposite direction.
Visualization: Triangle shapes are plotted above/below the signal candles (Green for Buy, Red for Sell).
6. Moving Averages & VWAP
For trend filtering and dynamic support/resistance, the toolkit includes optional traditional indicators:
VWAP: Session-based Volume Weighted Average Price.
Customizable MAs: Up to 5 moving averages can be toggled on/off. Supported types include SMA, EMA, WMA, HMA, and VWMA. Each can have its own length and color settings.
7. Alerts System
The indicator features a built-in alert system for the signal engine.
PA Signal Alert: Fires whenever a valid Price Action bounce occurs at a BSL/SSL level.
MSB Signal Alert: Fires whenever a structural reversal is confirmed after a liquidity sweep.
How to use: Create an alert in TradingView, select this indicator, and choose "Any alert() function call".
Disclaimer
This indicator is for educational and analytical purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. Past performance is not indicative of future results. Trading cryptocurrencies, forex, and stocks carries a high level of risk. Always perform your own backtesting, use proper risk management, and consult with a certified financial advisor before making any trading decisions. Indikator

VWAP TrendVWAP Trend & Daily Map Execution by erdensedat
Description:
VWAP Trend is an advanced day-trading engine and market mapping tool designed for intra-day execution using purely objective price action metrics. Instead of relying on lagging oscillators, this indicator fuses VWAP (Volume Weighted Average Price) deviations, Daily Open levels, and an automated Previous Day High/Low (PDH/PDL) targeting system.
Key Features:
Dynamic Bias Engine: The indicator measures real-time alignment between the Daily VWAP and the Daily Open price. A "BULLISH PRESSURE" signal fires when price reclaims both key metrics, while a "BEARISH PRESSURE" signal fires when price breaks below them.
Smart Time Filter: Automatically ignores high-volatility chop during the initial hours of a session (default is set to hide major text signals before 07:00 exchange time).
Automated PDH/PDL Liquidity Targets: Previous Day Highs and Lows are tracked with a "Cut-on-Touch" system. When a signal is active, these levels act as objective take-profit zones. Once touched, the level is cut, and a "TARGET REACHED" label is placed automatically.
Multi-Timeframe Macro Dashboard: An unobtrusive, dark-mode compatible panel displays the macro environment (EMA 200 Main Trend, Weekly Bias, Weekly VWAP, Daily Bias) alongside live target levels.
Clean UI & 'Only Today' Mode: Avoid chart clutter. The indicator features an "Only Today" toggle that completely erases previous days' lines, bands, and signals every day at midnight, leaving you with a perfectly clean chart for the current session.
How to Use:
Observe the Main Dashboard for Macro Alignment (Weekly Bias & EMA 200).
Wait for the designated trading hour to begin (e.g., 07:00).
Look for a Bullish / Bearish Pressure alert (indicated by clean, background-free text and arrow markers).
Target the active PDH or PDL lines shown on the chart.
Alerts:
Includes a single, unified alert condition ("VWAP Trend Signal") that dynamically pushes "Bullish Pressure" or "Bearish Pressure" notification text upon bar close.
Disclaimer:
Disclaimer: The "VWAP Trend" indicator by erdensedat is provided for educational and informational purposes only. It is not financial advice, and you should not construct it as such. Trading in financial markets (including cryptocurrencies, forex, and equities) involves a significant risk of loss and is not suitable for all investors. Past performance of any trading system or methodology is not necessarily indicative of future results. Always conduct your own research and manage your risk. Indikator

[CT] Adaptive ATR Volatility Targets Adaptive ATR Volatility Targets is a volatility-based target tool designed to help traders identify projected expansion levels above and below a chosen anchor price. The indicator uses either ADR, Average Daily Range based on high minus low, or ATR, Average True Range, to calculate dynamic price targets from the selected volatility timeframe. This allows traders to see where price may reasonably expand during the current session, day, week, or chosen higher-timeframe period.
The center anchor can be based on the current open, the previous close, or HLC3, giving traders flexibility in how they want to frame the active volatility range. From that anchor, the indicator plots target levels in quarter-volatility increments, including 0.25, 0.50, 0.75, 1.00, and beyond. These levels can help traders identify early expansion zones, major target zones, possible profit-taking areas, and locations where price may begin to slow, reject, or become extended.
A key feature of this indicator is the Golden Target level at 0.618. This level is included because markets often react around proportional expansion areas before reaching full volatility targets. The 0.618 level can be useful for partial profits, trend continuation confirmation, or watching for rejection when price has not yet reached the full 1.0 volatility target.
The indicator also includes visual zone fills between the major levels. These zones help traders quickly read whether price is still near the anchor, beginning to expand, approaching a major volatility target, or trading in an extended area. The upper zones represent bullish expansion targets, while the lower zones represent bearish expansion targets. The center line acts as the reference point for the active volatility range.
The added history feature allows traders to keep previous volatility target sets on the chart. This is useful for studying how price reacted to prior ATR or ADR levels, identifying repeated respect or rejection zones, and reviewing whether previous targets acted as support, resistance, liquidity areas, or exhaustion points. Historical target sets can be faded so the current target levels remain the primary focus while still giving context from prior periods.
This tool is best used as a target and context indicator, not as a standalone buy or sell signal. A trader may use it to plan profit targets after a confirmed trend entry, measure how far price has already expanded from the session anchor, identify when price is becoming stretched, or determine whether there is still room for continuation. In a strong bullish move, upper volatility targets can act as upside objectives. In a strong bearish move, lower volatility targets can act as downside objectives. In a range-bound market, rejection around the 0.50, 0.618, or 1.0 levels may warn that price is losing momentum.
For best results, this indicator should be combined with trend direction, volume, market structure, VWAP, opening range levels, or momentum confirmation. When price is expanding toward a volatility target with strong trend confirmation, the level can be used as a logical profit objective. When price reaches a target with weakening momentum, divergence, rejection candles, or heavy opposing volume, the level may become a warning area for profit-taking or reversal risk.
Adaptive ATR Volatility Targets is designed to give traders a clean volatility roadmap. It helps answer three important questions: where is price starting from, how far has price expanded, and where are the next reasonable upside or downside targets based on current volatility. Indikator

Indikator

Adaptive Ichimoku Nexus [WillyAlgoTrader]☁️ Adaptive Ichimoku Nexus — a modern approach to the legendary all-time indicator Ichimoku Kinko Hyo. This overlay indicator replaces the fixed periods of the classic Ichimoku system with a volatility-adaptive engine that dynamically scales Tenkan-Sen, Kijun-Sen, and Senkou Span B lookback periods based on current market conditions. Every TK cross signal is scored by an 8-factor confluence engine (0–100) that combines all five Ichimoku dimensions with volume, momentum pulse, and momentum acceleration. The indicator also includes a dedicated Kumo breakout engine with retest detection, three Ichimoku-anchored SL modes with R:R-based TP levels, and a multi-timeframe Ichimoku alignment panel — creating a complete trading system built entirely on Ichimoku principles enhanced with adaptive intelligence.
Ichimoku Kinko Hyo was designed in the 1930s with fixed periods (9/26/52) calibrated for the Japanese trading week. These periods remain the default worldwide, but modern markets are faster, more volatile, and trade 24/7. A fixed 26-period Kijun-Sen responds identically whether the market is in a tight range or a momentum breakout — producing late signals in trends and whipsaws in consolidation.
This indicator preserves the complete Ichimoku structure — all five lines, the cloud, and the displacement — while making the periods responsive to current volatility. In high-volatility environments, all three Donchian-based periods shorten → the Tenkan reacts faster, the Kijun adapts sooner, the cloud thins and pivots quicker. In low-volatility consolidation, the periods lengthen → noise is filtered, fewer false TK crosses, thicker cloud provides stronger S/R. The entire Ichimoku system breathes with the market.
🧩 WHY THESE COMPONENTS WORK TOGETHER
Classic Ichimoku already integrates five components into one system: Tenkan-Sen (momentum), Kijun-Sen (trend), Senkou Span A/B (future S/R), and Chikou Span (lagging confirmation). The genius of Ichimoku is that these five dimensions are designed to confirm each other — a "5/5 alignment" is one of the strongest signals in technical analysis.
This indicator enhances the system at three levels:
Level 1 — Adaptive periods: The volatility engine scales all three Donchian-based components (Tenkan, Kijun, Span B) proportionally, preserving the Ichimoku ratios while adapting the speed. This means the relationship between Tenkan and Kijun (the core signal mechanism) stays consistent — they just both become faster or slower together.
Level 2 — Confluence scoring: Instead of manually checking "Is Tenkan above Kijun? Is price above cloud? Is Chikou confirming?" — the 8-factor engine quantifies every Ichimoku dimension plus volume and momentum into a single 0–100 score. A score of 85 means virtually every Ichimoku component plus momentum and volume agrees. A score of 35 means the signal is conflicted — skip it.
Level 3 — Structural TP/SL: The Kumo edge and Kijun-Sen are natural Ichimoku support/resistance levels. Using them as stop-loss anchors (instead of arbitrary ATR multiples) produces structurally meaningful stops that respect the same framework generating the signals.
Level 4 — Momentum Pulse: Classic Ichimoku has no built-in momentum acceleration measure. The Momentum Pulse engine quantifies how fast the TK spread is changing and which direction the future cloud is rotating — capturing the urgency behind each signal.
Without adaptive periods, the system is rigid. Without scoring, you must manually assess 5+ factors. Without structural SL, your risk management ignores Ichimoku's own S/R levels. Without the Momentum Pulse, you can't distinguish between a strong and a fading TK cross. Each layer adds a dimension that classic Ichimoku lacks.
🔍 WHAT MAKES IT ORIGINAL
1️⃣ Volatility-adaptive Ichimoku periods.
When Adaptive mode is on, each Donchian midline (Tenkan, Kijun, Span B) uses a volatility-scaled period:
adaptedPeriod = basePeriod × (1 + strength × (1 − 2 × volRatio))
Where volRatio = (currentATR − lowestATR) / (highestATR − lowestATR) over the volatility lookback (default 50 bars), normalized to 0–1.
When volRatio → 1 (high volatility): adaptedPeriod = basePeriod × (1 − strength) — periods shorten
When volRatio → 0 (low volatility): adaptedPeriod = basePeriod × (1 + strength) — periods lengthen
The Adapt Strength parameter (default 0.4 = ±40%) controls the range of scaling. With basePeriod=26 and strength=0.4: periods range from 16 (high vol) to 36 (low vol). Each adapted period is clamped to a valid range and fed into the standard Donchian midline formula: (highest(high, period) + lowest(low, period)) / 2.
This means all five Ichimoku lines (Tenkan, Kijun, Senkou A, Senkou B, Chikou) adapt proportionally — the system remains internally consistent. In Classic mode, the standard fixed periods are used unchanged.
2️⃣ 8-factor confluence scoring engine (0–100).
Every bar computes both a bullish and bearish score from 8 factors:
— 📐 Price vs Cloud (20 pts) : above cloud = 20, inside = 8, below = 0 (bull). Symmetric for bear. The cloud is the strongest S/R in Ichimoku.
— ⚡ TK alignment (15 pts) : Tenkan > Kijun = 15 (bull). The core Ichimoku momentum signal.
— 👁️ Chikou confirmation (15 pts) : Chikou Span above price at displaced position = 15 (bull). The lagging confirmation.
— ☁️ Cloud direction (10 pts) : Span A slope > Span B slope = 10 (bull). Future cloud turning bullish indicates trend momentum.
— 📏 Kumo thickness (8 pts) : thick cloud = 8, thin cloud = 2. Thick cloud provides stronger S/R backing.
— 📈 Volume (10 pts) : volume > SMA(20) × 1.2 = 10. Confirms institutional participation.
— 💪 Momentum alignment (12 pts) : Momentum Pulse > 20 = 12, > 0 = 6. Strong momentum behind the signal.
— 🚀 Momentum acceleration (10 pts) : Momentum Pulse rising = 10. Trend is accelerating, not fading.
Max score = 100. Signals require score ≥ Min Confluence Score (default 50). Grades: Strong (≥ 80), Standard (≥ 50), Weak (< 50).
3️⃣ Momentum Pulse engine (−100 to +100).
A composite momentum measure built from three Ichimoku-derived components:
— TK spread normalized by ATR (weight 40): tkSpreadNorm = (Tenkan − Kijun) / ATR. Measures how far apart the momentum and trend lines are relative to volatility.
— TK spread acceleration (weight 100): tkSpreadNorm − tkSpreadNorm . Measures how fast the spread is changing — captures momentum buildup.
— Cloud slope differential (weight 30): (ΔSpanA − ΔSpanB) / ATR over 5 bars. Measures whether the future cloud is rotating bullish or bearish.
Combined: momentumPulse = tkSpread×40 + tkAcceleration×100 + cloudSlope×30, clamped to , smoothed with EMA(5). States: Accelerating (rising + positive), Bull Fading (falling + positive), Bear Accelerating (falling + negative), Bear Fading (rising + negative).
4️⃣ Three Ichimoku-anchored SL modes.
Stop-loss placement uses Ichimoku structure:
— Kumo Edge (default): SL at the nearest cloud boundary (kumoBot for longs, kumoTop for shorts) + ATR buffer. The cloud is Ichimoku's primary S/R — placing the stop here means your stop is at the strongest structural level in the framework.
— Kijun : SL at the Kijun-Sen ± ATR buffer. The Kijun is Ichimoku's equilibrium line — price tends to return to it.
— ATR : SL at entry ± 2× ATR. Pure volatility-based fallback.
TP1/TP2/TP3 are R:R multiples of the risk distance (default 1.5/2.5/4.0). A minimum risk distance of 0.5× ATR is enforced.
5️⃣ Kumo breakout engine with retest detection.
Detects when price closes above the cloud (was below or inside on the previous bar) with volume confirmation:
— kumoBreakUp: close > kumoTop AND previous close ≤ kumoTop AND volume > SMA(20) × breakoutMultiplier
— kumoBreakDown: close < kumoBot AND previous close ≥ kumoBot AND same volume condition
After a breakout, a retest signal fires if within 10 bars, price touches the cloud edge and closes back on the breakout side — confirming the cloud has flipped from resistance to support (or vice versa). Retest signals appear as small circles distinct from the larger diamond breakout markers.
6️⃣ Kijun-Sen S/R zone detection.
When the Kijun-Sen has been flat for 4+ consecutive bars and then starts moving, the flat level is marked as a support/resistance zone (shaded box ± 0.15× ATR). Flat Kijun is a well-known Ichimoku S/R concept — price tends to be attracted to flat Kijun levels. The indicator automates this detection and visualization.
7️⃣ Multi-timeframe Ichimoku alignment panel.
Three configurable timeframes (default 15M/1H/4H) each compute a full Ichimoku state using the classic periods:
— Bull ● : close > cloud AND Tenkan > Kijun
— Bear ● : close < cloud AND Tenkan < Kijun
— Neutral ○ : anything else
The panel shows per-TF alignment plus a summary: ALL BULL ✓ (all 3 TFs bullish), ALL BEAR ✓ (all 3 bearish), or Mixed. All MTF data uses + lookahead_on for non-repainting.
⚙️ HOW IT WORKS — CALCULATION FLOW
Step 1 — Volatility measurement: ATR(14) is normalized to 0–1 by its position within the recent high-low range over the volatility lookback.
Step 2 — Period adaptation: Each base period (9/26/52) is scaled by the adapt strength and vol ratio. High vol → shorter periods, low vol → longer. Classic mode bypasses this.
Step 3 — Ichimoku calculation: Tenkan = Donchian midline (adapted period). Kijun = Donchian midline (adapted period). Senkou A = avg(Tenkan, Kijun). Senkou B = Donchian midline (adapted period). Chikou = source price. Cloud displaced forward by displacement bars.
Step 4 — Kumo at current bar: Span A and Span B are read at displacement offset to get the current cloud boundaries. Thickness, price position (above/below/inside), and thin-cloud status are computed.
Step 5 — Momentum Pulse: TK spread, spread acceleration (vs 3 bars ago), and cloud slope differential — combined and EMA-smoothed.
Step 6 — Confluence scoring: 8 factors evaluated. Bull and bear scores computed independently.
Step 7 — Signals: TK cross + score threshold + enabled filters (Kumo thickness, volume, Chikou) → confirmed buy/sell. Kumo breakout: cloud boundary cross + volume surge → breakout signal. Retest: cloud edge touch within 10 bars of breakout.
Step 8 — TP/SL: SL from Kumo edge / Kijun / ATR mode. TPs as R:R multiples. TP/SL hits tracked per trade.
📖 HOW TO USE
🎯 Quick start:
1. Add the indicator — the Ichimoku cloud and lines appear (adaptive by default)
2. "Long 78%" / "Short 65%" labels = TK cross signals with confluence score
3. ☁▲ / ☁▼ diamonds = Kumo breakout signals
4. Entry, SL, TP1–TP3 lines appear on each signal
5. Check the MTF panel for multi-timeframe alignment
👁️ Reading the chart:
— 🔵 Blue line = Tenkan-Sen (conversion, fast)
— 🔴 Pink line = Kijun-Sen (base, slow)
— 🟠 Orange line (displaced back) = Chikou Span
— 🟩🟥 Cloud fill = Kumo (green bullish, red bearish)
— 🟢 "Long XX%" label = confirmed bullish TK cross with score
— 🔴 "Short XX%" label = confirmed bearish TK cross with score
— 💎 Cyan diamond = Kumo breakout (☁▲ up / ☁▼ down)
— ⚫ Small circle = Kumo edge retest
— 🟪 Shaded zone = flat Kijun S/R area
— 🔵 Blue line = entry, 🔴 red = SL, 🟢 green = TP1/TP2/TP3
📊 Dashboard fields:
— Mode: Adaptive / Classic
— Trend: Bullish / Bearish / Neutral (price vs cloud + TK alignment)
— Signal: last signal with bars elapsed
— Score: confluence percentage with color grade
— Momentum: Pulse state + value (Accelerating / Bull Fading / Bear Accel / etc.)
— Cloud: price position (Above / Below / Inside / Thin)
— Trade: TP/SL progress (→ TP1, TP1 ✓ → TP2, TP3 ✓ Closed, SL ✗ Closed)
— MTF: 3-timeframe Ichimoku alignment + summary (ALL BULL / ALL BEAR / Mixed)
— Version
🔧 Tuning guide:
— Too many weak signals: increase Min Score (60–80), enable all filters
— Missing signals: decrease Min Score (30–40), disable Chikou filter
— Adaptive too aggressive: decrease Adapt Strength (0.2–0.3) or increase Volatility Lookback (100+)
— Want classic Ichimoku: switch to Classic mode — pure 9/26/52 with scoring and TP/SL
— Stops too tight: increase SL ATR Buffer (0.7–1.0) or switch to ATR SL mode
— Scalping: Conversion 5, Base 13, Span B 26, Displacement 13, Min Score 40
— Swing: Conversion 12, Base 34, Span B 68, Displacement 34, Min Score 65
⚙️ KEY SETTINGS REFERENCE
⚙️ Main:
— Calculation Mode (default Adaptive): Adaptive / Classic
— Conversion/Base/Span B/Displacement (default 9/26/52/26)
🔄 Adaptive Engine:
— Volatility Lookback (default 50): ATR normalization window
— Adapt Strength (default 0.4): period scaling range (±40%)
🔍 Filters:
— Min Confluence Score (default 50): 0–100 threshold
— Kumo Thickness Filter (default On): suppress in thin cloud
— Volume Filter (default On): auto-disabled on forex
— Chikou Confirmation (default On): require lagging span alignment
🎯 Smart TP/SL:
— SL Mode (default Kumo Edge): Kumo Edge / Kijun / ATR
— SL ATR Buffer (default 0.5): padding beyond SL level
— TP1/TP2/TP3 R:R (default 1.5/2.5/4.0)
💥 Kumo Breakout:
— Breakout Vol Mult (default 1.3): volume surge requirement
— Show Retest Signals (default On): cloud edge retest detection
🔄 Multi-Timeframe:
— TF 1/2/3 (default 15/60/240): configurable timeframes
🔔 Alerts
— 🟢 BUY / 🔴 SELL — TK cross with score, SL, TP1–TP3
— ☁️▲ KUMO BREAK UP / ☁️▼ KUMO BREAK DOWN
— 🎯 TP1 HIT / 🛑 SL HIT
All support plain text and JSON webhook format. Bar-close confirmed.
⚠️ IMPORTANT NOTES
— 🚫 No repainting. All TK cross signals and Kumo breakouts require barstate.isconfirmed. MTF data uses + lookahead_on. A warmup period (Span B + displacement, minimum 80 bars) prevents signals during insufficient data.
— ☁️ This preserves the complete Ichimoku structure. All five lines, the cloud, displacement, and Chikou are computed exactly as Ichimoku specifies — the only change is that in Adaptive mode, the three Donchian periods scale with volatility. Switching to Classic mode produces a standard Ichimoku with no modifications.
— 📐 The adaptive engine scales all three periods proportionally using the same vol ratio and strength. The relationship between Tenkan (fast) and Kijun (slow) is preserved — they don't drift independently.
— ⚖️ The confluence score is Ichimoku-native . Six of eight factors (price vs cloud, TK alignment, Chikou, cloud direction, Kumo thickness, momentum) are derived directly from Ichimoku components. Only volume and momentum acceleration are external additions.
— 📊 The Momentum Pulse is not a standalone oscillator — it's derived from TK spread dynamics and cloud rotation, both Ichimoku-native measurements. It quantifies what experienced Ichimoku traders assess visually: "Is this TK cross strong and accelerating, or weak and fading?"
— 🔄 Kumo breakout retest detection uses a 10-bar window after the initial breakout. Retests beyond 10 bars are not tracked.
— 🛠️ This is a signal and analysis tool , not an automated trading bot. It enhances Ichimoku with adaptive periods, scoring, and risk management — trade decisions remain yours.
— 🌐 Works on all markets and timeframes. Volume filter auto-disables on instruments without volume data. Indikator

Hosoda Wave Targets [UAlgo]Hosoda Wave Targets is a wave projection tool inspired by the classical Hosoda target framework. The script identifies a three point swing structure using confirmed pivots, classifies that structure as either bullish or bearish, and then projects forward target levels from the completed A B C wave. Instead of drawing generic extension levels, it uses Hosoda style wave arithmetic to produce V, N, and E targets, while also calculating NT internally.
The logic begins with swing detection. Once the script has three valid pivots in sequence, it checks whether they form a proper bullish wave or bearish wave. A bullish wave requires a low, then a high, then a higher low. A bearish wave requires a high, then a low, then a lower high. If the structure is valid and does not overlap with the previous completed pattern, the script creates a new wave object and calculates its targets.
The visual output is built around the A B C D sequence. A, B, and C label the measured swing points, while D is placed at the projected N target time and price. The script also draws a dotted path for the original A to B and B to C legs, then projects the C to D path toward the N objective. In addition, horizontal V, N, and E target lines are plotted forward so the user can see the three main Hosoda price objectives at a glance.
This makes the indicator useful for traders who want a structured wave target model rather than a standard Fibonacci extension tool. Because the wave must pass a specific pivot sequence test before targets are shown, the script stays focused on clean swing structures instead of projecting from every random oscillation in price.
In practical use, Hosoda Wave Targets can help with wave mapping, objective placement, and scenario planning after a three point structure is completed. It works especially well as a framework for comparing potential continuation targets once a valid A B C sequence is already in place.
🔹 Features
🔸 Automatic A B C Wave Detection
The script continuously tracks confirmed pivot highs and pivot lows, then checks whether the latest three pivots form a valid bullish or bearish Hosoda wave structure.
🔸 Bullish and Bearish Pattern Recognition
A bullish structure requires a low, then a high, then a higher low.
A bearish structure requires a high, then a low, then a lower high.
This keeps the wave logic clear and directional.
🔸 Hosoda Style Price Targets
Once a valid wave is found, the script calculates classic Hosoda V, N, and E targets. It also computes the NT target internally as part of the target model.
🔸 Time Projection for D Point
The projected D point is placed using the Hosoda N time relationship. This means the script is not only projecting price, but also projecting where that objective sits in bar time.
🔸 Clear Wave Path Visualization
The A to B and B to C legs are drawn as dotted structural guides, while the C to D path toward the N target is drawn as the forward projection leg.
🔸 Color Coded Target Lines
V, N, and E targets are drawn with separate colors so the user can distinguish between the major Hosoda objectives quickly.
🔸 Last Wave Only Option
The script can either show only the most recent valid wave or keep multiple wave drawings on the chart, depending on the selected setting.
🔸 Overlap Protection
A new wave is only accepted when its first pivot does not overlap the prior completed pattern. This reduces repeated stacking of wave projections over the same structure.
🔹 Calculations
1) Defining the Core Data Objects
type Point
int bar_index
float price
bool isHigh
type HosodaTargets
float v
float n
float e
float nt
float p
int time_n
type Wave
Point a
Point b
Point c
int direction
This is the structural foundation of the indicator.
A Point stores one pivot with its bar index, price, and whether it is a high or low.
A HosodaTargets object stores the projected target values:
V,
N,
E,
NT,
an unused placeholder P,
and the projected time for the N target.
A Wave object stores the three actual swing points A, B, and C, along with the direction of the structure.
So before any drawing is done, the script already has a clear data model for pivots, waves, and targets.
2) Detecting Pivot Highs and Pivot Lows
float ph = ta.pivothigh(high, pivotLength, pivotLength)
float pl = ta.pivotlow(low, pivotLength, pivotLength)
This is the pivot discovery step.
The script uses the selected pivot length on both the left and right side, which means a pivot is only confirmed after enough bars have passed. This avoids premature wave labeling on unconfirmed turning points.
When a pivot high is confirmed, it becomes a candidate high point. When a pivot low is confirmed, it becomes a candidate low point.
So the whole wave engine is built from confirmed swing structure rather than from temporary price fluctuations.
3) Storing Recent Pivot Points
if not na(ph)
pivots.push(Point.new(bar_index - pivotLength, ph, true))
if not na(pl)
pivots.push(Point.new(bar_index - pivotLength, pl, false))
if pivots.size() > 10
pivots.shift()
Once a pivot is confirmed, the script converts it into a Point object and stores it in the pivot array.
The true pivot bar is pivotLength bars in the past, so the script uses bar_index - pivotLength as the pivot location.
The pivot history is capped at ten points. This keeps the structure engine focused on recent swings and avoids unnecessary buildup of old pivots.
4) Building the Candidate A B C Structure
if pivots.size() >= 3 and (not na(ph) or not na(pl))
Point pA = pivots.get(pivots.size() - 3)
Point pB = pivots.get(pivots.size() - 2)
Point pC = pivots.get(pivots.size() - 1)
This block selects the latest three stored pivots and treats them as a potential A B C sequence.
The script does not skip around the array looking for arbitrary combinations. It always evaluates the latest three pivots in sequence. That keeps the pattern logic straightforward and tied to the most recent confirmed structure.
So every wave begins as a direct test of the newest three pivot points.
5) Bullish Wave Validation
bool isValidUptrend = not pA.isHigh and pB.isHigh and not pC.isHigh and pB.price > pA.price and pB.price > pC.price and pC.price > pA.price
This line defines the bullish Hosoda wave condition.
For a bullish structure:
A must be a low,
B must be a high,
C must be a low,
B must sit above both A and C,
and C must remain above A.
That last condition is important because it ensures the pullback at C is a higher low rather than a full structural failure.
So the script only accepts bullish waves that look like an advancing move followed by a constructive retracement.
6) Bearish Wave Validation
bool isValidDowntrend = pA.isHigh and not pB.isHigh and pC.isHigh and pB.price < pA.price and pB.price < pC.price and pC.price < pA.price
This is the mirror condition for bearish waves.
For a bearish structure:
A must be a high,
B must be a low,
C must be a high,
B must sit below both A and C,
and C must remain below A.
This ensures the move represents a decline followed by a lower high retracement, which is the bearish counterpart of the bullish wave structure.
So the script only projects bearish targets when the A B C pattern shows proper downside sequence.
7) Preventing Pattern Overlap
bool isNotOverlapping = pA.bar_index >= lastPatternEnd
This is the overlap protection rule.
The script tracks the end of the previous completed pattern and requires the new A point to begin at or after that location. If the new structure starts inside the previous wave’s territory, it is ignored.
This reduces repetitive wave printing over the same swing area and keeps the output cleaner.
So the chart shows more distinct wave structures instead of heavily overlapping ones.
8) Assigning Wave Direction
int dir = isValidUptrend ? 1 : -1
Wave newWave = Wave.new(pA, pB, pC, dir)
Once the script confirms that the latest three pivots form a valid structure, it assigns a direction:
1 for bullish,
-1 for bearish.
That direction then controls how the target formulas are calculated. So all later math depends on whether the wave is an advancing or declining structure.
9) Calculating the Hosoda Time Projection
int _time_n = this.c.bar_index + (this.b.bar_index - this.a.bar_index)
This is the time projection used for the D point and the N target.
The script measures the bar distance from A to B, then adds that same distance forward from C. That projected index becomes time_n .
So the wave does not only project price objectives. It also projects when the N objective would align in bar space according to the A to B rhythm.
10) Bullish V, N, E, and NT Target Formulas
if this.direction == 1
_v := this.b.price + (this.b.price - this.c.price)
_n := this.c.price + (this.b.price - this.a.price)
_e := this.b.price + (this.b.price - this.a.price)
_nt := this.c.price + (this.c.price - this.a.price)
These are the bullish target formulas.
For bullish waves:
V projects the B to C distance upward from B.
N projects the A to B distance upward from C.
E projects the A to B distance upward from B.
NT projects the A to C distance upward from C.
Each target represents a different Hosoda style price relationship. The script calculates all four, although only V, N, and E are drawn visually in the current implementation.
So the script provides a full bullish target set, with one of the values kept internally for future expansion or interpretation.
11) Bearish V, N, E, and NT Target Formulas
else if this.direction == -1
_v := this.b.price - (this.c.price - this.b.price)
_n := this.c.price - (this.a.price - this.b.price)
_e := this.b.price - (this.a.price - this.b.price)
_nt := this.c.price - (this.a.price - this.c.price)
These are the bearish equivalents.
For bearish waves:
V projects the C to B distance downward from B.
N projects the A to B distance downward from C.
E projects the A to B distance downward from B.
NT projects the A to C distance downward from C.
So the same target families are preserved, but the math is reversed to match bearish structure.
12) Returning the Target Object
HosodaTargets.new(_v, _n, _e, _nt, 0.0, _time_n)
After the formulas are calculated, the script packages them into a HosodaTargets object.
This makes it easy to pass all target information into the drawing method in one structured object.
Note that the p field is currently filled with 0.0 and is not used elsewhere in the script. So the active practical targets in this version are V, N, E, and the projected time index for N.
13) Drawing the A B C Labels
label lA = label.new(this.a.bar_index, this.a.price, "A", color=lblBgColor, textcolor=lblTextColor, style=this.direction == 1 ? label.style_label_up : label.style_label_down, size=size.small)
label lB = label.new(this.b.bar_index, this.b.price, "B", color=lblBgColor, textcolor=lblTextColor, style=this.direction == 1 ? label.style_label_down : label.style_label_up, size=size.small)
label lC = label.new(this.c.bar_index, this.c.price, "C", color=lblBgColor, textcolor=lblTextColor, style=this.direction == 1 ? label.style_label_up : label.style_label_down, size=size.small)
These labels mark the confirmed swing points of the pattern.
Their placement style changes according to wave direction so the labels sit in a visually readable position relative to price.
So the user can immediately see the measured A B C structure before looking at any target levels.
14) Placing the Projected D Label
label lD = label.new(targets.time_n, targets.n, "D", color=lblBgColor, textcolor=lblTextColor, style=this.direction == 1 ? label.style_label_down : label.style_label_up, size=size.small)
The D label is placed at the projected N time and N price.
This does not mean D is a confirmed pivot. It is the projected completion point of the main wave objective according to the N relationship.
So D acts as a forward reference point, not a confirmed market event.
15) Drawing the Structural A to B and B to C Legs
line ab = line.new(this.a.bar_index, this.a.price, this.b.bar_index, this.b.price, color=color.gray, width=1, style=line.style_dotted)
line bc = line.new(this.b.bar_index, this.b.price, this.c.bar_index, this.c.price, color=color.gray, width=1, style=line.style_dotted)
These two dotted lines draw the original measured wave.
They are not target lines. They simply show the actual A to B impulse and B to C correction that were used to build the projection.
So the user can visually separate measured structure from projected structure.
16) Drawing the C to D Projection Path
line cd = line.new(this.c.bar_index, this.c.price, targets.time_n, targets.n, color=cN, width=1)
This line connects the confirmed C pivot to the projected D point at the N target.
It visually represents the expected continuation path of the wave according to the N target model.
So the script does not leave the targets floating independently. It ties the projected move directly back to the completed C point.
17) Drawing the V, N, and E Target Lines
line vLine = line.new(this.c.bar_index, targets.v, targets.time_n + 10, targets.v, color=color.new(cV, 0), style=line.style_dashed, width=1)
line nLine = line.new(this.c.bar_index, targets.n, targets.time_n + 10, targets.n, color=color.new(cN, 0), style=line.style_dashed, width=1)
line eLine = line.new(this.c.bar_index, targets.e, targets.time_n + 10, targets.e, color=color.new(cE, 0), style=line.style_solid, width=1)
These horizontal lines display the three visible price objectives.
V and N are drawn as dashed lines.
E is drawn as a solid line.
Each starts from the C area and extends forward beyond the projected D time. This makes it easier to compare the three target levels side by side.
It is worth noting that NT is calculated but not drawn in this version of the script. So the visible target framework here focuses on V, N, and E.
18) Drawing the Target Labels
label vLbl = label.new(targets.time_n + 10, targets.v, "V " + str.tostring(targets.v, format.mintick), textcolor=cV, style=noBgStyle, size=size.small, textalign=text.align_left)
label nLbl = label.new(targets.time_n + 10, targets.n, "N " + str.tostring(targets.n, format.mintick), textcolor=cN, style=noBgStyle, size=size.small, textalign=text.align_left)
label eLbl = label.new(targets.time_n + 10, targets.e, "E " + str.tostring(targets.e, format.mintick), textcolor=cE, style=noBgStyle, size=size.small, textalign=text.align_left)
Each visible target line gets its own text label showing both the target family and the exact projected price.
This is useful because Hosoda targets often overlap or sit close to one another. The labels remove ambiguity and make it easy to read exact values directly from the chart.
19) Show Only Last Wave Mode
if showOnlyLast
while drawings.size() > 0
WaveDrawing d = drawings.shift()
d.clear()
This setting controls how much history remains visible.
If enabled, every time a new valid wave appears, all prior wave drawings are deleted first. That leaves only the most recent wave and its targets on the chart.
If disabled, multiple valid waves can remain visible.
So the user can choose between a clean single setup view or a historical wave map.
20) Clearing Old Drawings
method clear(WaveDrawing this) =>
if not na(this)
this.lineAB.delete()
this.lineBC.delete()
this.lineCD.delete()
this.lblA.delete()
this.lblB.delete()
this.lblC.delete()
this.lblD.delete()
this.lineV.delete()
this.lineN.delete()
this.lineE.delete()
this.lblV.delete()
this.lblN.delete()
this.lblE.delete()
This cleanup method deletes every visual object associated with one stored wave drawing.
That includes:
the structural lines,
the projected line,
the point labels,
the target lines,
and the target labels.
So the indicator can safely remove prior patterns without leaving stale objects on the chart. Indikator

Indikator

Squeeze Breakout Pro [WillyAlgoTrader]Squeeze Breakout Pro (SBP) is an overlay indicator that detects volatility compression zones where Bollinger Bands contract inside a Keltner Channel, waits for a confirmed directional breakout with volume and momentum validation, and then maps a complete trade framework: structural stop loss at the opposite side of the range, and three take-profit targets calculated as R-multiples of the range width using Fibonacci-based extensions. A built-in dashboard tracks TP hit rates across the chart's history so you can evaluate the setup's statistical behavior on any instrument and timeframe.
The concept of a "squeeze" — Bollinger Bands narrowing inside Keltner Channels — has been around for decades. What SBP adds is a structured decision pipeline: it doesn't just flag the squeeze, it qualifies it with ADX to confirm a genuine range-bound condition, requires volume confirmation on the breakout bar, defines exact entry/SL/TP levels, and tracks how often each target is reached — turning a raw volatility observation into a repeatable trade setup with measurable outcomes.
🔍 WHAT MAKES IT ORIGINAL
1. Squeeze qualification via ADX filter. A standard BB-inside-KC squeeze fires frequently and includes many false compressions during trending pullbacks. SBP adds an ADX filter that requires the Average Directional Index to be below a user-defined threshold (default 21) during the squeeze phase. This ensures the consolidation is a genuine range-bound condition — not a brief pause in a strong trend that would produce a low-quality breakout. The combination of BB/KC compression + low ADX produces significantly fewer but higher-quality squeeze zones.
2. Minimum squeeze duration requirement. Not every momentary BB/KC overlap deserves attention. SBP requires a configurable minimum number of consecutive squeeze bars (default 5) before the range is considered valid. Short, fleeting compressions are ignored. This filters out the noise that plagues most squeeze indicators on lower timeframes.
3. Structural stop loss with ATR padding. Instead of a fixed-pip or fixed-percentage stop, SBP places the stop loss at the opposite boundary of the detected consolidation range — the natural structural level — plus a configurable ATR-based padding (default 20% of ATR). For a bullish breakout, SL sits below the range low; for bearish, above the range high. This gives the stop a structural reason to exist, tied to the actual price action that formed the squeeze.
4. R-multiple targets using Fibonacci extensions. Take-profit levels are calculated as multiples of the range width projected from the entry price:
— TP1 at 0.618× range width (conservative, first scale-out)
— TP2 at 1.0× range width (full range projection)
— TP3 at 1.618× range width (golden ratio extension)
All three multipliers are fully configurable. The range width serves as the natural "R" unit because it represents the energy stored during compression — wider ranges store more energy and project further.
5. Built-in TP/SL hit-rate tracking. The dashboard counts every breakout signal on the visible chart and tracks how many times each TP level was reached versus how many times the SL was hit. This gives you an instant statistical profile of the setup's behavior on the current instrument and timeframe — no external backtesting tool required. The hit rates update in real time as new signals form.
6. Overlap prevention. An optional toggle (on by default) prevents a new squeeze zone from forming if it would overlap with the previous one, avoiding redundant signals in choppy markets where squeezes cluster.
⚙️ HOW IT WORKS
Step 1 — Squeeze detection:
On each bar, the script calculates Bollinger Bands (SMA ± StdDev × multiplier) and a Keltner Channel (SMA ± ATR × multiplier) using the same base length. When both BB boundaries sit inside both KC boundaries (upper BB < upper KC AND lower BB > lower KC), the market is in a squeeze. If the ADX filter is enabled, the squeeze is only valid when ADX is also below the threshold — confirming low directional momentum.
Step 2 — Range construction:
While the squeeze is active, the script tracks the highest high and lowest low across all squeeze bars, building a dynamic range box. When the squeeze condition ends (BB expands beyond KC or ADX rises), the range is locked — but only if the squeeze lasted at least the minimum required bars. The locked range defines the consolidation zone for breakout detection.
Step 3 — Breakout confirmation:
After the range is locked, the script watches for a confirmed bar close above the range high (bullish breakout) or below the range low (bearish breakout). If volume confirmation is enabled, the breakout bar must also have volume exceeding the SMA(volume) × the configured multiplier. All breakout signals require barstate.isconfirmed — they trigger only on bar close and do not repaint.
Step 4 — Trade framework:
On breakout, the script calculates and plots:
— Entry: the breakout bar's close price
— SL: opposite range boundary ± ATR padding
— TP1 / TP2 / TP3: entry ± (range width × configured multipliers)
These levels extend forward as horizontal lines with a risk/reward fill zone until a target or stop is hit. When TP3 or SL is reached (bar close), the trade is closed and levels stop extending.
Step 5 — Hit tracking:
Each TP level and the SL are monitored on every confirmed bar after entry. When price touches (via high/low) a TP level, it is marked as hit. If SL is hit before TP3, the trade closes at a loss. The dashboard aggregates these outcomes across all signals on the chart.
Volume on forex:
On instruments without volume data (common on forex), the volume filter is automatically bypassed — so the indicator works seamlessly across asset classes without manual adjustment.
📖 HOW TO USE
Reading the chart:
— Yellow-tinted boxes = detected squeeze zones (consolidation ranges)
— "Long" label below bar = confirmed bullish breakout
— "Short" label above bar = confirmed bearish breakout
— Green line = entry level
— Red dashed line = stop loss
— Dotted/solid green lines = TP1 / TP2 / TP3
— Green-tinted fill between entry and TP3 = reward zone
— Red-tinted fill between entry and SL = risk zone
Suggested workflow:
— Wait for a squeeze zone to form and lock (box appears, disappears when squeeze ends)
— Dashboard shows "Pending" when a valid range is ready for breakout
— On breakout, evaluate the signal: check TP/SL levels, assess the range width, and decide position size based on the distance to SL
— Use TP1 for conservative partial exit, TP2 for second scale-out, TP3 for runner
— Review the TP1/TP3 hit rates in the dashboard to calibrate your expectations for the current instrument
Timeframe guidance:
— Scalping (1–5min): Squeeze Length 10–15, Min Squeeze Bars 3–5, ADX threshold 25
— Intraday (15min–1H): Squeeze Length 15–20, Min Squeeze Bars 5–8, default settings
— Swing (4H–Daily): Squeeze Length 20–30, Min Squeeze Bars 8–15, ADX threshold 18–20
— The longer the squeeze and higher the timeframe, the more energy stored → larger projected targets
⚙️ KEY SETTINGS REFERENCE
— Squeeze Length (default 13): shared period for BB and KC — higher = detects longer consolidations
— BB Multiplier (default 2.0): Bollinger Bands standard deviation multiplier
— KC Multiplier (default 1.2): Keltner Channel ATR multiplier — the gap between BB and KC multipliers controls how easily a squeeze triggers
— ADX Filter (default On): require low directional movement during squeeze
— ADX Threshold (default 21): maximum ADX value for valid squeeze — lower = stricter
— Volume Confirmation (default On): require volume spike on breakout bar (auto-disabled on forex)
— Volume Spike Mult (default 1.3): breakout volume must exceed SMA × this multiplier
— Min Squeeze Bars (default 5): minimum consecutive squeeze bars for valid range
— Prevent Overlap (default On): no new squeeze zone if it overlaps the previous one
— TP1 / TP2 / TP3 (default 0.618 / 1.0 / 1.618): take-profit as R-multiples of range width
— SL Padding (default 0.2): extra padding beyond range boundary, as fraction of ATR
📊 Dashboard
The info panel (adjustable to any chart corner) displays:
— Current squeeze status (Active with bar count, or None)
— Trade direction (Long / Short / —)
— Signal state (Active / Pending / Wait)
— ADX value with color coding (green if below threshold, red if above)
— Total breakout count (Long / Short split)
— TP1 and TP3 hit rates as percentages across all signals on chart
— Current timeframe and indicator version
⚠️ IMPORTANT NOTES
— This indicator does not repaint. All breakout signals require bar-close confirmation (barstate.isconfirmed).
— The TP hit rates shown in the dashboard are historical statistics on the current chart , not predictions. They depend entirely on the instrument, timeframe, and date range visible. A 70% TP1 hit rate on past data does not guarantee 70% going forward.
— SBP provides a structured trade framework (entry/SL/TP), but it is not a complete trading system . Position sizing, risk management, and trade selection remain the trader's responsibility.
— Not every squeeze produces a clean breakout. Some ranges resolve with choppy, directionless price action. The ADX filter and volume confirmation reduce this, but cannot eliminate it entirely.
— The indicator works across all asset classes — stocks, crypto, forex, futures, commodities. Volume features auto-adapt to instruments without volume data. Indikator

CBC Flip with Targets and Filters [LuxAlgo]The CBC Flip with Targets and Filters indicator provides an institutional framework for identifying high-probability trend reversals based on the Candle By Candle (CBC) method.
By combining structural price action with dynamic ATR targets, stop losses, and intraday value filtering, this tool offers a straightforward strategy for managing risk and executing trades based on shifts in market bias.
🔶 USAGE
The Usage section describes how the script can be used to navigate market trends using price action confirmation and volatility-based levels.
🔹 Signal Identification
Bullish and bearish triangles indicate confirmed trend flips. A bullish flip is detected when price closes above a previous high, while a bearish flip occurs when price closes below a previous low. These signals only appear after the bar closes to ensure non-repainting execution.
🔹 Strategic Filtering
Align signals with intraday value by using the VWAP filter settings:
Confirmation mode: Ensures you only take long signals above the VWAP and short signals below it.
Contrarian mode: Used to identify potential mean-reversion opportunities when price flips against the current value area.
🔹 Risk Management
Every flip generates dynamic target and stop loss lines based on a customizable Average True Range (ATR). The 'Require candle close to stop' feature allows users to choose between a hard touch of the stop level or waiting for a candle close to invalidate the bias.
The script also includes retroactive outcome markers (circles and crosses) that appear on the signal candle to show whether the target or stop was reached first. A lack of symbol by the bullish or bearish triangles means neither the target nor stop loss criteria have been met.
🔹 Performance Verification
Refer to the real-time dashboard to monitor current trade progress and historical hit rates. The Current Target Progress metric in the dashboard tracks how far price moved in the trade direction, helping you optimize your ATR multipliers and assess trend strength.
🔶 DETAILS
🔹 Institutional CBC Logic
The Candle By Candle (CBC) methodology, popularized by maplestax, is a price action-centric approach that ignores minor fluctuations. By requiring a full candle close beyond the previous candle range, the script filters out wick rejections that often lead to false signals in volatile markets.
🔹 Non-Repainting Design
The indicator is designed to be fully non-repainting. Signals and levels are calculated based on closed bars, ensuring that what you see on the chart is consistent with historical performance and real-time execution.
🔶 SETTINGS
🔹 Indicator Settings
Bulls/Bears Color: Customizes the theme for bullish and bearish trend components.
ATR Length: Sets the lookback period for volatility calculations.
Target ATR Multiplier: Defines the distance of the profit target from the entry.
Stop ATR Multiplier: Defines the distance of the stop loss from the entry.
Require candle close to stop: When enabled, the stop loss is only triggered if a candle closes beyond the stop level.
Show Daily Anchored VWAP: Toggles the visibility of the session-anchored VWAP.
Filter Bias by VWAP: Choose between No Filter, Confirmation (Trend-following), or Contrarian (Mean-reversion).
🔹 Visuals
Show Flip Labels: Toggles the entry triangle icons.
Show Outcome Markers: Toggles the retroactive "X" and "Circle" markers on signal candles.
Label Size: Adjusts the size of the on-chart icons.
🔹 Dashboard
Dashboard: Toggles the performance metric table.
Position/Size: Adjusts the UI location and scale.
Historical Trade Count: Sets the sample size for the historical success rate calculation. Indikator

[CT] ORB SuiteThis indicator is an Opening Range first tool that also includes an Initial Balance framework, breakout detection, and a full target and alerting package. It is designed to define a clean Opening Range at the start of the regular trading session and then turn that range into an actionable breakout structure by plotting the key levels, projecting measured targets, and visually confirming the exact breakout candle on your chart. The Opening Range component can be configured as either the first bar of the session or a true time-based duration, such as 1, 2, 5, 10, 15, 30 minutes, or 1 hour, which lets you standardize the opening structure across different chart timeframes without needing to “count bars.” As price prints during the Opening Range window, the script continuously updates the OR high and OR low, then locks those levels once the window closes so you have a stable reference for the rest of the session. The OR area can be shaded for quick visual recognition, and an optional OR midpoint line and label can be displayed to help you judge whether price is accepting above the middle of the range or failing back through it.
Once the Opening Range is formed, the script upgrades the workflow by adding breakout qualification rules that you can control. You can choose confirmation based on a body cross, a close cross, or a close above or below the range boundary, which is a meaningful improvement over simple “touch” logic because it helps reduce false signals and makes the breakout trigger more consistent with how you actually trade. When a breakout is confirmed, the indicator can highlight the breakout candle itself so there is no ambiguity about which bar triggered the signal. You can highlight the candle body, the chart background, or both, and you can select separate colors for long and short breakouts. This makes chart review and live decision-making cleaner because you can immediately see where the breakout truly occurred instead of guessing between several candles that probed the level.
The next major upgrade is the breakout target system. After a long breakout, targets are calculated as true multiples of the Opening Range size, starting from the OR high and projecting upward by the selected multiples. After a short breakout, targets are calculated from the OR low and projected downward by the same multiple logic. By default, the script supports four take-profit targets, TP1 through TP4, with sensible preset multiples that step outward in a structured way, but you can customize each multiple to match your instrument and style. This target system is a practical enhancement because it provides objective, range-based profit-taking levels that align with common intraday expansion behavior rather than arbitrary fixed tick offsets. You also get full control over whether the target lines and labels appear only after a breakout triggers, which keeps the chart clean and prevents “pre-biasing,” or whether you want to see projected targets in both directions before the breakout occurs for planning and scenario mapping. In addition, the target hit detection is configurable so you can decide whether a target is considered “hit” by a simple high or low touch or only after a close crosses the target, which is important for traders who want stricter confirmation and cleaner backtesting logic.
Beyond the OR and targets, the indicator includes a complete Initial Balance module as an additional layer of structure. The IB duration is selectable and independent, and the script can plot IB high, IB low, and an optional IB midpoint, with optional fill shading to make the balance area obvious. A key upgrade here is the ability to base the breakout targets on either the Opening Range or the Initial Balance. This means you can run a pure OR breakout playbook, a pure IB breakout playbook, or compare both structures on the same session without changing indicators. This flexibility matters because OR breakouts tend to be more sensitive and earlier, while IB-based levels often better reflect the session’s early balance and can produce more stable expansion targets.
Another major improvement is the history and session management. The script can freeze all drawings at the end of the session so lines and fills do not incorrectly extend into the next day, and it can optionally keep a configurable amount of history, such as the last 20 sessions, so you can study how price reacts to prior OR and IB structures. You also have control over whether IB should be included in that stored history, which helps if you want a cleaner chart while still retaining the OR context. To support different chart themes and personal preferences, label styling is expanded with controls for label background colors, text colors, transparency, and horizontal offsets, so the levels remain readable without covering price action.
Finally, the alerting system is upgraded into a full set of actionable events. The indicator can generate alerts for session open and session close, for the moment the Initial Balance forms, for the moment the Opening Range forms, for long and short breakouts, and for each target hit from TP1 through TP4. Alerts can be used in standard alertcondition form or as dynamic alert() calls that include price-filled messages, which is a practical enhancement for traders who want their phone or desktop notifications to contain the exact level values rather than generic labels.
This script is a derivative work built on the original Initial Balance foundation authored by © czoa under the Mozilla Public License 2.0, with extensive additions and improvements by © ChaosTrader63 to expand it into a complete Opening Range and Initial Balance breakout suite. The core upgrades are the configurable time-based Opening Range, breakout candle highlighting, multi-target measured range projections through TP4 with optional pre-projection behavior, stricter breakout confirmation modes, target hit rules, richer history controls, stronger label customization, and a comprehensive alert system that turns the session structure into a usable trade planning and execution framework directly on TradingView. Indikator

IDLP - Intraday Daily Levels Pro [FXSMARTLAB]🔥 IDLP – Intraday Daily Levels Pro
IDLP – Intraday Daily Levels Pro is a precision toolkit for intraday traders who rely on objective daily structure instead of repainting indicators and noisy signals.
Every level plotted by IDLP is derived from one simple rule:
Today’s trading decisions must be based on completed market data only.
That means:
✅ No use of the current day’s unfinished data for levels
✅ No lookahead
✅ No hidden repaint behavior
IDLP reconstructs the previous trading day from the intraday chart and then projects that structure forward onto the current session, giving you a stable, institutional-style intraday map.
🧱 1. Previous Daily Levels (Core Structure)
IDLP extracts and displays the full previous daily structure, which you can toggle on/off individually via the inputs:
Previous Daily High (PDH)
Previous Daily Low (PDL)
Previous Daily Open
Previous Daily Close,
Previous Daily Mid (50% of the range)
Previous Daily Q1 (25% of the range)
Previous Daily Q3 (75% of the range)
All of these come from the day that just closed and are then locked for the entire current session.
What these levels tell you:
PDH / PDL – true extremes of yesterday’s price action (liquidity zones, breakout/reversal points).
Previous Daily Open / Close – how the market positioned itself between session start and end
Mid (50%) – equilibrium level of the previous day’s auction.
Q1 / Q3 (25% / 75%) internal structure of the previous day’s range, dividing it into four equal zones and helping you see if price is trading in the lower, middle, or upper quarter of yesterday’s range.
All these levels are non-repaint: once the day is completed, they are fixed and never change when you scroll, replay, or backtest.
🎯 2. Previous Day Pivot System (P, S1, S2, R1, R2)
IDLP includes a classic floor-trader pivot grid, but critically:
It is calculated only from the previous day’s high, low, and close.
So for the current session, the following are fixed:
Pivot P – central reference level of the previous day.
Support 1 (S1) and Support 2 (S2)
Resistance 1 (R1) and Resistance 2 (R2)
These levels are widely used by institutional desks and algos to structure:
mean-reversion plays, breakout zones, intraday targets, and risk placement.
Everything in this section is non-repaint because it only uses the previous day’s fully closed OHLC.
📏 3. 1-Day ADR Bands Around Previous Daily Open
Instead of a multi-day ADR, IDLP uses a pure 1-Day ADR logic:
ADR = Range of the previous day
ADR = PDH − PDL
From that, IDLP builds two clean bands centered around the previous daily Open:
ADR Upper Band = Previous Day Open + (ADR × Multiplier)
ADR Lower Band = Previous Day Open − (ADR × Multiplier)
The multiplier is user-controlled in the inputs:
ADR Multiplier (default: 0.8)
This lets you choose how “tight” or “wide” you want the ADR envelope to be around the previous day’s open.
Typical use cases:
Identify realistic intraday extension targets, Spot exhaustion moves beyond ADR bands, Frame reversals after reaching volatility extremes, Align trades with or against volatility expansion
Again, since ADR is calculated only from the completed previous day, these bands are totally non-repaint during the current session.
🔒 4. True Non-Repaint Architecture
The internal logic of IDLP is built to guarantee non-repaint behavior:
It reconstructs each day using time("D") and tracks:
dayOpen, dayHigh, dayLow, dayClose for the current day
prevDayOpen, prevDayHigh, prevDayLow, prevDayClose for the previous day
At the moment a new day starts:
The “current day” gets “frozen” into prevDay*
These prevDay* values then drive: Previous Daily Levels, Pivots, ADR.
During the current day:
All these “previous day” values stay fixed, no matter what happens.
They do not move in real time, they do not shift in replay.
This means:
What you see in the past is exactly what you would have seen live.
No fake backtests.
No illusion of perfection from repainting behavior.
🎯 5. Designed For Intraday Traders
IDLP – Intraday Daily Levels Pro is made for:
- Day traders and scalpers
- Index and FX traders
- Prop firm challenge trading
- Traders using ICT/SMC-style levels, liquidity, and range logic
- Anyone who wants a clean, institutional-style daily framework without noise
You get:
Previous Day OHLC
Mid / Q1 / Q3 of the previous range
Previous-Day Pivots (P, S1, S2, R1, R2)
1-Day ADR Bands around Previous Day Open
All calculated only from closed data, updated once per day, and then locked. Indikator

Indikator

ADR Plots + OverlayADR Plots + Overlay
This tool calculates and displays Average Daily Range (ADR) levels on your chart, giving traders a quick visual reference for expected daily price movement. It plots guide levels above and below the daily open and shows how much of the day's typical range has already been covered—all in one interactive table and on-chart overlay.
What It Does
ADR Calculation:
Uses daily high-low differences over a user-defined period (default 14 days), smoothed via RMA, SMA, EMA, or WMA to calculate the average daily range.
Projected Levels:
Plots four reference levels relative to the current day's open price:
+100% ADR: Open + ADR
+50% ADR: Open + 50% of ADR
−50% ADR: Open − 50% of ADR
−100% ADR: Open − ADR
Coverage %:
Tracks intraday high and low prices to calculate what percentage of the ADR has already been covered for the current session:
Coverage % = (High − Low) ÷ ADR × 100
Interactive Table:
Shows the ADR value and today's ADR coverage percentage in a customizable table overlay. The table position, colors, border, transparency, and an optional empty top row can all be adjusted via settings.
Customization Options
Table Settings:
Position the table (top/bottom × left/right).
Change background color, text color, border color and thickness.
Toggle an empty top row for spacing.
Line Settings:
Choose color, line style (solid/dotted/dashed), and width.
Lines automatically reposition each day based on that day's open price and ADR calculation.
General Inputs:
ADR length (number of days).
Smoothing method (RMA, SMA, EMA, WMA).
How to Use It for Trading
Measure Daily Movement: Instantly know the expected daily price range based on historical volatility.
Identify Overextension: Use the coverage % to see if the market has already moved close to or beyond its typical daily range.
Plan Entries & Exits: Align trade targets and stops with ADR levels for more objective intraday planning.
Visual Reference: Horizontal guide lines and table update automatically as new data comes in, helping traders stay informed without manual calculations.
Ideal For
Intraday traders tracking daily volatility limits.
Swing traders wanting a quick reference for expected price movement per day.
Anyone seeking a volatility-based framework for planning targets, stops, or identifying extended market conditions.
Indikator

ATR Trailing Stop with ATR Targets [v6]What the Indicator Does
This custom TradingView indicator is designed for active traders who want to automate and visualize their trailing stop management and target setting, using true market volatility. It combines the Average True Range (ATR) with dynamic market structure logic to:
Trail a stop-loss behind major swings in real time, using 2×ATR (adjustable) from the highest high in uptrends or the lowest low in downtrends.
Flip trading bias between bullish and bearish when the stop is breached.
Identify and plot three profit targets (at 1, 2, and 3 ATR from the breakout/flip point) after every stop-flip, helping traders scale out or set take-profits objectively.
Maintain a visible presence on your chart every bar to avoid indicator errors, with color and labeling for clear distinction between long/short phases.
How the Indicator Works
1. ATR Calculation
ATR Period and Multiplier: You select your preferred ATR length (default is 14 bars) and a multiplier (default is 2.0).
Volatility Adjustment: ATR measures the average "true" bar range, so the trailing stop and targets adapt to current volatility.
2. Trailing Stop Logic
Uptrend (bullish bias): The indicator tracks the highest high made since the last bearish-to-bullish flip and sets the stop at - .
The stop only raises (never lowers) during an uptrend, protecting gains in strong moves.
Downtrend (bearish bias): Tracks the lowest low made since the last bullish-to-bearish flip, with stop at + .
The stop only lowers (never raises) in a downtrend.
Flip Point: If price closes through the trailing stop, the current bias “flips,” and the logic reverses (bullish to bearish or vice versa). At the new close, flip price and bar index are stored for target calculation.
3. ATR Targets after Flip
After each stop flip:
Three targets—based on the new close price—are calculated and plotted:
Long flip (new bull bias): Target1 = close + 1×ATR, Target2 = close + 2×ATR, Target3 = close + 3×ATR.
Short flip (new bear bias): Target1 = close - 1×ATR, Target2 = close - 2×ATR, Target3 = close - 3×ATR.
These targets help with scaling out, partial profit-taking, or setting automated orders.
4. Visual Feedback
Trailing stop line: Green for long bias, red for short bias.
Targets: Distinct color-coded circles at 1, 2, 3 ATR levels from the most recent flip.
Flip Labels: Mark the bar and price where bias flipped (“Long Flip” or “Short Flip”) for quick pattern recognition.
Subtle background shading: Ensures TradingView's requirement for “indicator output every bar.”
How to Use This Indicator
Parameter Setup
ATR Period and Multiplier: Adjust to match the timeframe and volatility of your instrument.
Lower periods/multipliers for short-term/volatile trading.
Higher values for smoother signals or higher timeframes.
Starting Trend: Set to match the expected initial bias if the instrument has strong trend characteristics.
Trading Application
1. Daily Bias Approach
Establish your bias in line with your trading plan (e.g., only trade long if price is above the previous day's high, short below the previous day's low).
Only look for trades in the indicator's current bias direction, as expressed by the stop and background color.
2. Entry
Use the indicator as a real-time confirmation or trailing stop for your entries.
Breakout: Enter when price establishes the current bias, using the trailing stop as your risk level.
Reversal: Wait for a bias flip after an extended move; enter in the direction of the new bias.
VWAP Rebound: Combine with a VWAP bounce—enter only if the indicator bias supports your direction.
3. Exits/Targets
Trailing stop management: Move your stop according to the plotted line; exit if your stop is hit.
Profit-taking: Scale out or take profits as price approaches each ATR-based target.
Use the dynamic labeling to identify reversal flips and reset your plan if stopped or the bias changes.
4. Market Context
Filter and frame setups by watching correlated indicators (DXY, VIX, AUDJPY, put/call ratio) and upcoming news; trade only in the daily bias direction for best consistency.
5. Practical Tips
Combine this indicator with your custom watchlist and alert settings to get notified on flips or targets.
Review the last label ("Long Flip"/"Short Flip") and targets to plan partial exits.
Remember: ATR adapts to volatility, so the stop and targets stay proportionate even when price action shifts. Indikator

Momentum Shift [Bigbeluga]
This indicator identifies momentum shifts using a smoothed momentum calculation. It plots dynamic shift zones consisting of five levels that expand or contract based on price action. When momentum rises, the indicator creates an upward shift zone, and when momentum falls, it generates a downward shift zone. The shift zones dynamically react to price, stopping extension when a level is crossed.
🔵Key Features:
Smoothed Momentum Calculation:
➣ Utilizes a Hull Moving Average (HMA) to smooth momentum and reduce noise.
➣ Identifies momentum shifts with crossovers between the current momentum value and its previous state.
➣ Uses a gradient color scheme to highlight momentum strength.
Dynamic Shift Zones:
➣ When momentum rises, the indicator plots an upper shift zone with five incremental levels.
➣ When momentum falls, a lower shift zone is formed with five descending levels.
➣ Each level within the shift zone represents a progressively stronger momentum shift.
Level Extension Control:
➣ Shift zones stop extending once a level is crossed by price.
➣ Levels closer to price act as key momentum resistance or support zones.
➣ If price retraces after a shift, the remaining levels stay intact for further reference.
Momentum Direction Indications:
➣ Labels (▲ and ▼) appear at momentum shift points to indicate rising or falling momentum.
🔵Usage:
Momentum-Based Entries: Identify momentum shifts early by using shift zones as confirmation for trade entries.
Trend Continuation & Exhaustion: Observe which shift levels price respects—if momentum shift zones hold, the trend may continue; if they break, momentum may reverse.
Dynamic Support & Resistance: Use the five-level shift zones as temporary support and resistance areas that adapt to momentum shifts.
Momentum Strength Analysis: If price moves through multiple shift levels in one direction, it signals strong momentum in that direction.
Momentum Shift is a powerful tool for traders looking to analyze momentum shifts with structured visual zones. By combining smoothed momentum calculations with dynamic shift zones, this indicator provides a clear view of market momentum and helps traders navigate price action effectively. Indikator

The Curved Market Structure [BigBeluga]Curved Market Structure
The Curved Market Structure indicator offers an innovative twist on traditional market structure tools by using curved lines instead of horizontal ones, enabling faster breakout detection for traders.
🔵Key Features:
Curved Market Structure Levels: The indicator identifies high and low pivots and plots curved lines connecting these points, adapting to market dynamics and providing a more intuitive view of potential breakout zones.
Breakout Detection: Breakouts above or below the curved levels are marked with triangle symbols (▲ or ▼), making it easy to spot critical price movements.
Dynamic Target Levels: After a breakout, the indicator plots three target levels, which serve as potential price objectives. Each target is marked with a number and a star (e.g., 1★) upon being reached.
Customizable Line Length and Angle: Users can adjust the length and angle of the curved lines to fit their trading style and timeframe, making the tool versatile and adaptable.
Market Structure Trend Filtering: To maintain a clean chart, the indicator plots curved levels only from high pivots during uptrends and low pivots during downtrends.
🔵How It Works:
The indicator identifies high and low pivots using user-defined parameters (left and right bars).
Curved lines are drawn from these pivot points, showing the structure of the market and potential breakout zones.
When a breakout occurs, the indicator highlights the direction with triangle symbols and dynamically plots three price targets.
Upon reaching these targets, the level is marked with its respective number and a star, helping traders track price progression effectively.
The lines and targets are adjusted based on market conditions, ensuring real-time relevance and accuracy.
🔵Use Cases:
Spotting key breakout zones to identify entry and exit points more effectively.
Setting dynamic target levels for take-profit or stop-loss planning.
Filtering market noise and maintaining a cleaner chart while analyzing trends.
Enhancing traditional market structure analysis with an intuitive curved visualization.
This indicator is ideal for traders who want a modern, dynamic, and visually appealing way to track market structure and breakouts while maintaining chart clarity. Indikator

Target Trend [BigBeluga]The Target Trend indicator is a trend-following tool designed to assist traders in capturing directional moves while managing entry, stop loss, and profit targets visually on the chart. Using adaptive SMA bands as the core trend detection method, this indicator dynamically identifies shifts in trend direction and provides structured exit points through customizable target levels.
SP500:
🔵 IDEA
The Target Trend indicator’s concept is to simplify trade management by providing automated visual cues for entries, stops, and targets directly on the chart. When a trend change is detected, the indicator prints an up or down triangle to signal entry direction, plots three customizable target levels for potential exits, and calculates a stop-loss level below or above the entry point. The indicator continuously adapts as price moves, making it easier for traders to follow and manage trades in real time.
When price crosses a target level, the label changes to a check mark, confirming that the target has been achieved. Similarly, if the stop-loss level is hit, the label changes to an "X," and the line becomes dashed, indicating that the stop loss has been activated. This feature provides traders with a clear visual trail of whether their targets or stop loss have been hit, allowing for easier trade tracking and exit strategy management.
🔵 KEY FEATURES & USAGE
SMA Bands for Trend Detection: The indicator uses adaptive SMA bands to identify the trend direction. When price crosses above or below these bands, a new trend is detected, triggering entry signals. The entry point is marked on the chart with a triangle symbol, which updates with each new trend change.
Automated Targets and Stop Loss Management: Upon a new trend signal, the indicator automatically plots three price targets and a stop loss level. These levels provide traders with structured exit points for potential gains and a clear risk limit. The stop loss is placed below or above the entry point, depending on the trend direction, to manage downside risk effectively.
Visual Target and Stop Loss Validation: As price hits each target, the label beside the level updates to a check mark, indicating that the target has been reached. Similarly, if the stop loss is activated, the stop loss label changes to an "X," and the line becomes dashed. This feature visually confirms whether targets or stop losses are hit, simplifying trade management.
The indicator also marks the entry price at each trend change with a label on the chart, allowing traders to quickly see their initial entry point relative to current price and target levels.
🔵 CUSTOMIZATION
Trend Length: Set the lookback period for the trend-detection SMA bands to adjust the sensitivity to trend changes.
Targets Setting: Customize the number and spacing of the targets to fit your trading style and market conditions.
Visual Styles: Adjust the appearance of labels, lines, and symbols on the chart for a clearer view and personalized layout.
🔵 CONCLUSION
The Target Trend indicator offers a streamlined approach to trend trading by integrating entry, target, and stop loss management into a single visual tool. With automatic tracking of target levels and stop loss hits, it helps traders stay focused on the current trend while keeping track of risk and reward with minimal effort. Indikator

Opening Range with Breakouts & Targets [LuxAlgo]Opening Range with Breakouts & Targets is based on the long-standing Opening Range Breakout strategy popularized by traders such as Toby Crabel and Mark Fisher.
This indicator measures and displays the price range created from the first period within a new trading session, along with price breakouts from that range and targets associated with the range width.
🔶 USAGE
The Opening Range (OR) can be a powerful tool for making a clear distinction between ranging and trending trading days. Using a rigid structure for drawing a range, provides a consistent basis to make judgments and comparisons that will better assist the user in determining a hypothesis for the day's price action.
NOTE: During a suspected "Range Day", the Opening Range can be used for reversion strategies, typically targeting the opposite extreme of the range or the mean of the range. However, more commonly the Opening Range is used for breakouts on suspected "Trend Days", targeting further upward or downward market movement.
The common Opening Range Breakout Strategy (ORB) outlines a structure to enter and exit positions based on rigid points determined by the Opening Range. This methodology can be adjusted based on markets or trading styles.
Determine Opening Range High & Low: These are the high and low price within a chosen period of time after the market opens. This can be customized to the user's trading style and preference. Common Ranges are from 5-60 mins.
Watch for a Breakout with Volume: A Breakout occurs when price crosses the OR High (ORH) or OR Low (ORL), an increase in volume is typically desired when witnessing these breakouts to confirm a stronger movement.
Manage Risk: Based on user preference and the appropriately determined amount of risk, multiple ways can be determined to manage risk by using Opening Range.
For Example: A stop-loss could be set at OR Mean (ORM) or the opposite side of the range, while a profit target could optionally be set at the first price target generated by the script.
Alternatively, a user might want to use a Moving Average (MA) as an adaptive stop-loss and use price targets to scale out. These are just 2 examples of the possible options, both capable with this tool.
🔹 Signals
Signals will fire based on the break of the opening range, this is indicated by arrows above and below the range boundaries.
Optionally, a bias can be added to these signals to aid in mitigating false signals by using a directional filter based on the current day's OR relative to the previous day's OR.
Regardless of the signal bias being enabled, the Opening Range Zone will always be colored directionally according to this.
If the current day's OR is above the previous day's OR, the Zone will be Green.
If the current day's OR is below the previous day's OR, the Zone will be Red.
By enabling the signal bias, signals in the opposite direction of the daily bias will fire on the cross of the first target in that direction.
🔹 Targets
In this indicator, targets are not limited and will generate infinitely based on a % width of the Opening Range.
Additionally, there are 2 display methods for these targets.
Extended: Extends the targets to the current bar and displays all targets that have been crossed so far within the session.
Adaptive: Extends only the 2 closest targets surrounding price, allowing for a display consisting of fewer lines at one time.
🔶 DETAILS
🔹 Historical Display
This indicator can be utilized in multiple ways, for use in real-time, and for historical analysis to form methods. Because of this, the indicator has an option to display only the current day's data or the entire historical data. This can also help clean up the chart when it is in use.
🔹 Time Period
The specific time period to create the opening range is entirely up to each user's preference, by default it is set to 30 mins; however, this time period can be edited with full control if desired.
Simply toggle on the "Custom Range" and input a range of time to create the range.
🔹 Session Moving Average
The Session Moving Average is a common Moving Average, which resets at the beginning of a new session. This allows for an unbiased MA that was created entirely from the current session's price action.
Note: The start of the session is determined by the start of the Opening Range if using a custom range of time.
🔶 SETTINGS
Show Historical Data: Choose to display only the current session's data or the full history of data.
Opening Range Time Period: Select the time period to form the opening range from. This operates on Session Start, so it will change with the chart.
Custom Range: Opt for a custom Range by enabling this and inputting your range times as well as your needed timezone.
Breakout Signal Bias: Select if the Breakout Signals will use a Daily Directional Bias for firing.
Target % of Range: Sets the % of the Range width that will be used as an increment for the Targets to display in.
Target Cross Source: Choose to use the Close price or High/Low price as the crossing level for Target displays. When this source crosses a target it will generate more targets.
Target Display: Choose which style of display to use for targets.
Session Moving Average: Optionally enable a Moving average of your choice that resets at the beginning of each session (start of opening range).
Indikator
