Trendline Breakout Strategy [KedArc Quant] Description
A single, rule-based system that builds two trendlines from confirmed swing pivots and trades their breakouts, with optional retest, trend-regime gates (EMA / HTF EMA), and ATR-based risk. All parts serve one decision flow: structure → breakout → gated entry → managed risk.
What it does (for traders)
Draws Up line (teal) through the last two Higher Lows and Down line (red) through the last two Lower Highs, then extends them forward.
Long when price breaks above red; Short when price breaks below teal.
Optional Retest entry: after a break, wait for a pullback toward the broken line within an ATR-scaled buffer.
Uses ATR stop and R-multiple target so risk is consistent across symbols/timeframes.
Labels HL1/HL2/LH1/LH2 so non-coders can verify which pivots built each line.
Why these components are combined
Pure breakout systems on trendlines suffer from three practical issues:
False breaks in chop → solved by trend-regime gates (EMA / HTF EMA) that only allow trades aligned with the prevailing trend.
Uneven volatility across markets/timeframes → solved by ATR-based stop/target, normalizing distance so R-multiples are comparable.
First break whipsaws near wedge apices → mitigated by the optional retest rule that demands a pullback/hold before entry.
These modules are not separate indicators with their own signals. They are support roles inside one method.
The pivot engine defines structure, the breakout detector defines signal, the regime gates decide if we’re allowed to take that signal, and the ATR module sizes risk.
Together they make the trendline breakout usable, testable, and explainable.
How it works (mechanism; each component explained)
1) Pivot engine (structure, non-repainting)
Swings are confirmed with ta.pivotlow/high(L, R). A pivot only exists after R bars (no look-ahead), so once plotted, the line built from those pivots will not repaint.
2) Trendline builder (geometry)
Teal line updates when two consecutive pivot lows satisfy HL2.price > HL1.price (and HL2 occurs after HL1).
Red line updates when two consecutive pivot highs satisfy LH2.price < LH1.price.
Lines are extended right and their current value is read every bar via line.get_price().
3) Breakout detector (signal)
On every bar, compute:
crossover(close, redLine) ⇒ Long breakout
crossunder(close, tealLine) ⇒ Short breakdown
4) Regime gates (trend filters, not separate signals)
EMA gate: allow longs only if close > EMA(len), shorts only if close < EMA(len).
HTF EMA gate (optional): same rule on a higher timeframe to avoid fighting the larger trend.
These do not create entries; they simply permit or block the breakout signal.
5) Retest module (optional confirmation)
After a breakout, record the line price. A valid retest occurs if price pulls back within an ATR-scaled buffer toward that broken line and then closes back in the breakout direction.
This reduces first-tick fakeouts.
6) Risk module (position exit)
Initial stop = ATR(len) × atrMult from entry.
Target = tpR × (ATR × atrMult) (e.g., 2R).
This keeps results consistent across instruments/timeframes.
Entries & exits
Long entry
Base: close breaks above red and passes EMA/HTF gates.
Retest (if enabled): after the break, price pulls back near the broken red line (within the ATR buffer) and holds; then enter.
Short entry
Mirror logic with teal (break below & gates), optionally with a retest.
Exit
strategy.exit places ATR stop & R-multiple target automatically.
Optional “flip”: close if the opposite base signal triggers.
How to use it (step-by-step)
Timeframe: 1–15m for intraday, 1–4h for swing.
Start defaults: Pivot L/R = 5, EMA len = 200, ATR len = 14, ATR mult = 2, TP = 2R, Retest = ON.
Tune sensitivity:
Faster lines (more trades): set L/R = 3–4.
Fewer counter-trend trades: enable HTF EMA (e.g., 60-min or Daily).
Visual audit: labels HL1/HL2 & LH1/LH2 show which pivots built each line—verify by eye.
Alerts: use Long breakout, Short breakdown, and Retest alerts to automate.
Originality (why it merits publication)
Trades the visualization: many “auto-trendline” tools only draw lines; this one turns them into testable, alertable rules.
Integrated design: each component has a defined role in the same pipeline—no unrelated indicators bolted together.
Transparent & non-repainting: pivot confirmation removes look-ahead; labels let non-coders understand the setup that produced each signal.
Notes & limitations
Lines update only after pivot confirmation; that lag is intentional to avoid repainting.
Breakouts near an apex can whipsaw; prefer Retest and/or HTF gate in choppy regimes.
Backtests are idealized; forward-test and size risk appropriately.
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
Pontos Pivô
Previous OHLC D/W/M (Anchored - fixed)Open, close, high and low of previous month, week and day with right extension.
Fractal Model (TTrades)Fractal Model - Higher Timeframe Analysis with TTFM Labeling
A higher timeframe candle visualization tool enhanced with TTFM (The Fractal Model) labeling system for pivot-based price action analysis, made popular by Youtuber TTrades
What This Script Does:
This indicator displays higher timeframe candles on your current chart and identifies key pivot formations using the TTFM labeling system. It helps traders understand market structure and potential reversal points through systematic pivot analysis.
Key Features:
Higher Timeframe Visualization : Shows HTF candles without switching timeframes
TTFM Labeling System : Identifies pivot components with C2, C3, and C4 labels
T-Spot Detection : Marks areas where price is likely to form wicks based on pivot logic
Sweep Confirmation : Detects when price sweeps previous levels but closes opposite
Fair Value Gap Detection : Identifies imbalance zones between candle ranges
Alert System : Sends alerts when T-spot formations are confirmed using pivot logic
Silver T-Spot Alerts : Special alerts during specific market hours
How TTFM Labeling Works:
The TTFM system labels pivot formations based on their structure:
C2 : The candle that "sticks out" - the initial move that creates the pivot
C3 / C4 : The distribution candle that continues the reversal (standard pivots)
Alert System:
The indicator provides alerts when:
T-spot formations are created and confirmed
Price sweeps tspot levels with proper confirmation (This signal tries to alert you when a potential wick has formed in the tspot location
Silver T-spot patterns occur during specific market hours
T-spot sweep confirmations are triggered
Practical Usage:
Add the indicator to your chart
Watch for T-spot formations (highlighted zones)
Look for C2, C3, C4 labels to understand pivot structure
Use sweep confirmations for entry timing
Set up alerts for T-spot confirmations and sweeps
Technical Implementation:
Logarithmic Midpoint Calculation:
The T-spot levels are calculated using logarithmic midpoint analysis:
Log Values : log_high = ln(high), log_low = ln(low), log_open = ln(open), log_close = ln(close)
Wick Analysis : upper_wick = log_high - max(log_open, log_close), lower_wick = min(log_open, log_close) - log_low
Body Size : body_size = |log_close - log_open|
Midpoint Logic : If max(upper_wick, lower_wick) > body_size, use wick-based midpoint; otherwise use (log_high + log_low)/2
Final Level : T-spot level = exp(log_mid_level)
T-Spot Formation Conditions:
Standard Bearish : last_closed.h > prev_closed.h AND last_closed.c < prev_closed.h
Standard Bullish : last_closed.l < prev_closed.l AND last_closed.c > prev_closed.l
Expansive Bearish : prev_closed.h > prev_prev_closed.h AND last_closed.c < max(prev_closed.o, prev_closed.c)
Expansive Bullish : prev_closed.l < prev_prev_closed.l AND last_closed.c > min(prev_closed.o, prev_closed.c)
Pro-trend Bearish : last_closed.h > mid_level AND last_closed.h < prev_closed.o AND last_closed.c < prev_closed.l
Pro-trend Bullish : last_closed.l < mid_level AND last_closed.l > prev_closed.o AND last_closed.c > prev_closed.h
Sweep Confirmation Logic:
Pivot Detection : Uses ta.pivothigh(high, 1, 2) and ta.pivotlow(low, 1, 2)
Touch Detection : Price must touch T-spot level (high > level OR open > level) AND close opposite
Confirmation Requirements : Pivot must form before touch, close must break beyond pivot level
Alert Trigger : Sweep confirmed when all conditions are met
Silver T-Spot Conditions:
Special T-spots during specific market hours (4th-5th candle of day or 4th candle after 1PM ET) with additional confirmation requirements.
HTF Auto-Detection:
Automatically selects appropriate higher timeframes: 1m→15m, 3m→30m, 5m→1h, 15m→4h, 30m-1h→1D, 4h-8h→1W, 1D→1M.
Based on HTF Candles by Fadi, enhanced with T-spot detection, sweep logic, TTFM labeling system, and comprehensive alert functionality.
Note: This tool is for educational purposes and should be used in conjunction with proper risk management and market analysis.
EMA Support & ResistanceEducational Purpose only
This indicator combines VWAP, multiple Exponential Moving Averages (EMA 20,/VWAP ), Support and Resistance
VWAP (Volume Weighted Average Price) helps identify fair value and intraday bias.
EMA 20 act as dynamic support and resistance levels for short, medium, and long-term trends.
CPR (Central Pivot Range) is calculated from the previous day’s High, Low, and Close. It provides intraday reference zones S1/S2/S3 & R1/R2/R3 that traders use to gauge market direction and trend strength.
This tool is built for educational purposes only — to help visualize common support & resistance zones and learn how VWAP + EMAs + S/R interact in live markets. It is not financial advice and should not be used as a standalone trading system.
CHoCH Block Strategy 2Experimental strategy that uses fractals to find pivot points. Based on these pivot points it determines CHoCH points and opening places.
Up & Down entry poinsFibonacci-Bollinger function to calculate the upper and lower boundaries, as well as to display reversal points (blue and red) based on price changes.
Analysis of your script:
Fibonacci-Bollinger: Used to calculate the upper and lower boundaries based on the Simple Moving Average (SMA) and standard deviation (a standard approach for creating ranges).
MA50 for trend: The moving average based on normalized deviation is used to assess the current trend (bullish or bearish).
Reversal points:
Blue points (buy signals) are plotted when the price deviates below the lower Fibonacci boundary and the MA line is rising.
Red points (sell signals) are plotted when the price deviates above the upper Fibonacci boundary and the MA line is falling.
Volume usage: Including volume in the reversal conditions helps filter signals, which is a good practice for reducing false signals.
-----------------------------------
You should only enter long or short positions according to the trend, because counter-trend points will not indicate entry points for trades, but rather large profit-taking from trending positions.
------------------------------------
Ver. 0.1.1 -- First edition.
Weekly/Monthly Golden ATR LevelsWeekly/Monthly Golden ATR Levels
This indicator is designed to give traders a clear, rule-based framework for identifying support and resistance zones anchored to prior period ranges and the market’s own volatility. It uses the Average True Range (ATR) as a measure of how far price can realistically stretch, then projects fixed levels from the midpoint of the prior week and prior month.
Rather than “moving targets” that repaint, these levels are frozen at the start of each new week and month and stay fixed until the next period begins. This makes them reliable rails for both intraday and swing trading.
What It Plots
Weekly Midpoint (last week’s High + Low ÷ 2)
From this mid, the script projects:
Weekly +1 / −1 ATR
Weekly +2 / −2 ATR
Monthly Midpoint (last month’s High + Low ÷ 2)
From this mid, the script projects:
Monthly +1 / −1 ATR
Monthly +2 / −2 ATR
Customization
Set ATR length & timeframe (default: 14 ATR on Daily bars).
Adjust multipliers for Level 1 (±1 ATR) and Level 2 (±2 ATR).
Choose line color, style, and width separately for weekly and monthly bands.
Toggle labels on/off.
How to Use
Context at the Open
If price opens above last week’s midpoint, bias favors upside toward +1 / +2.
If price opens below the midpoint, bias favors downside toward −1 / −2.
Weekly Bands = Short-Term Rails
+1 / −1 ATR: Rotation pivots. Expect intraday reaction.
+2 / −2 ATR: Extreme stretch zones. Reversals or breakouts often occur here.
Monthly Bands = Big Picture Rails
Use these for swing positioning, or as “outer guardrails” on intraday charts.
When weekly and monthly bands cluster → high-confluence zone.
Trade Playbook
Trend Day: Hold above +1 → target +2. Break below −1 → target −2.
Range Day: Fade first test of ±2, scalp toward ±1 or midpoint.
Catalyst/News Day: Use with caution—levels provide context, not barriers.
Risk Management
Place stops just outside the band you’re trading against.
Scale profits at the next inner level (e.g., short from +2, cover partial at +1).
Runners can trail to the midpoint or opposite side.
Why It Works
ATR measures volatility—how far price tends to travel in a given period.
Anchoring to prior highs and lows captures where real supply/demand last clashed.
Combining the two gives levels that are statistically relevant, widely observed, and psychologically sticky.
Trading books from Mark Douglas (Trading in the Zone), Jared Tendler (The Mental Game of Trading), and Oliver Kell (Victory in Stock Trading) all stress the importance of having objective, repeatable reference points. These levels deliver that discipline—removing guesswork and reducing emotional trading
Interval Highlighter with High/Low AlertsInterval Highlighter with High/Low Alerts
Overview:
This Pine Script indicator enhances chart analysis by highlighting specific time intervals and marking the highest and lowest prices within those periods. It supports three customizable modes:
Date Range: Highlight a user-defined period with background shading and plot the highest and lowest prices.
Days of the Week: Highlight specific weekdays with background colors and plot the highest and lowest prices for each day.
Intraday Interval: Highlight a specific intraday time range (e.g., 12:30 PM to 4:30 PM) with background shading and plot the highest and lowest prices within that interval.
Alerts are triggered when the price touches any of the highlighted high or low levels, providing real-time notifications for potential trading opportunities.
High and low lines extend to the right and remain visible after the interval ends. This ensures they act as actionable reference points for alerts between intervals, allowing users to monitor critical levels until a new interval of the same category forms.
Features:
Customizable Time Intervals: Define specific date ranges, weekdays, or intraday intervals to highlight on the chart.
High/Low Tracking: Automatically plots the highest and lowest prices within the defined intervals.
Real-Time Alerts: Set up alerts to notify when the price touches any of the highlighted high or low levels.
Actionable Lines: High/low lines remain visible after interval completion to serve as reference points for alerts.
Visual Enhancements: Customize background colors and line styles for each interval type.
Usage:
Apply the indicator to your chart.
Configure the desired modes (Date Range, Days of the Week, Intraday Interval) in the settings.
Customize the appearance settings to match your preferences.
Set up alerts based on the highlighted high/low levels.
Disclaimer:
This indicator is designed to assist in identifying potential areas of interest based on historical high and low levels within specified intervals. It is not intended as a standalone trading signal. Users should employ additional technical analysis tools and conduct thorough research before making trading decisions.
ARVELOV ORB + HighlightARVELOV ORB + Highlight
This indicator is designed to identify and visualize the Opening Range Breakout (ORB) for a selected trading session. The ORB is defined as the high and low price range during the first few minutes of the market open. Traders often use this range to spot potential breakout opportunities or gauge early market sentiment.
Key Features:
Customizable ORB Session: Default is 09:30–09:45 (15 minutes), but users can adjust the start and end times.
ORB High and Low Lines: Plots the highest and lowest prices reached during the ORB session.
Highlighted ORB Zone: The area between the ORB high and low is shaded to provide a clear visual of the opening range.
Intraday Timeframe Friendly: Works best on intraday charts with a timeframe equal to or smaller than the ORB duration.
Visual Aid for Breakouts: Helps traders quickly spot when the price breaks above or below the ORB, a common trigger for intraday trading strategies.
How It Works:
When the session starts, the indicator captures the first bar’s high and low as the initial ORB.
As the session progresses, it updates the ORB high and low if new highs or lows occur within the session.
The highlighted rectangle between the ORB high and low makes it easy to see the early trading range at a glance.
Use Case:
Traders can use this indicator to monitor potential breakout levels.
The ORB zone can also act as support/resistance for early intraday trades.
Pivot Points Strategy🟢 It enters long trades near support zones (S1–S3)
🔴 It enters short trades near resistance zones (R1–R3)
🎯 All positions aim to exit at the central pivot (P).
🚫 It avoids trading when price crosses the pivot during the bar.
🔄 Strategy resets when a new pivot is calculated.
📊 Supports pyramiding up to 5 positions for scaling in.
TrenVantage LITE TrenVantage LITE - Smart Trend Detector
"Professional ZigZag trend detection with real-time alerts and market structure analysis. Clean interface shows trend direction, price changes, and swing data."
TrenVantage LITE delivers professional-grade trend detection using advanced ZigZag analysis to identify market structure and trend changes in real-time. Built with a logic that goes beyond basic pivot detection, this free version provides essential trend analysis tools with a clean, intuitive interface designed for traders of all experience levels.
Key Features:
Advanced Trend Detection
Smart ZigZag Algorithm: Proprietary trend foundation model based on market structure principles
Customizable Sensitivity: Choose between Points or Percentage-based deviation settings
Real-Time Updates: Calculate on bar close or tick-by-tick for immediate trend changes
Flexible Analysis: 15-25 bar lookback range with 20-bar default setting
Visual Analysis Tools
Clean Trend Lines: Customizable color and width for optimal chart visibility
Professional Interface: Modern status box showing current trend and price metrics
Multiple Positioning: Place status box in any corner to match your chart layout
Market Structure: Clear visualization of swing highs and lows
Smart Alerts System
Trend Change Notifications: Instant alerts when market transitions between uptrend and downtrend
Reliable Detection: Confirmed trend changes based on significant price movements
Multiple Alert Options: Compatible with TradingView's alert system
How It Works
TrenVantage LITE uses a sophisticated ZigZag algorithm that goes beyond simple pivot detection. Our proprietary "trend-start model" identifies meaningful market structure changes by:
Analyzing Price Action: Uses high/low or close prices based on your preference
Filtering Noise: Customizable deviation thresholds eliminate false signals
Confirming Trends: Only signals trend changes after significant price movement
Tracking Structure: Maintains swing history for comprehensive analysis
Status Box Information
The integrated status box provides at-a-glance market information.
Current Trend Direction: Clear uptrend/downtrend identification with visual indicators
Live Price Data: Current price with session change and percentage movement
Swing Analysis: Number of detected swings with trend-only limitation indicator
Clean Design: Professional appearance that doesn't clutter your chart
Settings & Customization
ZigZag Parameters:
Deviation Type: Points (fixed price difference) or Percent (percentage change)
Deviation Value: Minimum price movement required to create new swing
Use High Low: Toggle between high/low prices vs close prices for analysis
Calculate Mode: Choose bar close confirmation or real-time tick updates
Lookback Range: Adjust historical analysis from 15-25 bars
Visual Controls
Trend Line Color: Customize line color to match your chart theme
Line Width: Adjust thickness from 1-4 pixels for optimal visibility
Status Box: Toggle display and choose corner positioning
Best Practices:
Timeframe Selection
Scalping (1-5min): Use 0.3-0.8 Points deviation with tick calculation
Day Trading (15-60min): Use 1-3 Points or 0.2-0.5% deviation
Swing Trading (4H-Daily): Use 0.5-1.5% deviation with bar close calculation
Getting Started
Add to Chart: Apply TrenVantage LITE to your preferred timeframe
Adjust Settings: Configure deviation and visual preferences
Set Alerts: Enable trend change notifications for your trading strategy
Analyze Trends: Use the status box and visual lines to identify market direction
Upgrade When Ready: Explore RETAIL version for Support/Resistance levels
Ready to Level Up? Upgrade to TrenVantage RETAIL
While TrenVantage LITE provides solid trend analysis, TrenVantage RETAIL transforms your trading with professional-grade market structure tools:
What You're Missing in LITE:
Support and Resistance level detection - automatically identifies key price levels where markets react
Price labels on levels - see exact values instantly without hovering or zooming
Enhanced status box - shows distance to nearest support/resistance for timing entries and exits
Up to 5 key levels - comprehensive coverage of important price zones
Level strength indicators - understand which levels are most likely to hold
Professional workflow - combines trend analysis with key level identification
TrenVantage RETAIL takes the solid trend foundation you see in LITE and adds the critical support/resistance analysis that serious traders rely on daily.
Disclaimer: Trading involves risk of loss. This indicator is for educational and analysis purposes. Past performance does not guarantee future results. Always use proper risk management and never risk more than you can afford to lose.
Pivots + EMAIndicators Pivot points and 2 EMAs combined. It can be used to find support and resistance levels and shows Exponential Moving Average lines
GOLD – OB Clean + Internal/External Market Structure [Dragos]GOLD – OB Clean + Internal/External Market Structure
All-in-one tool for XAUUSD that combines:
Clean Order Blocks (Supply/Demand) derived from the last opposite candle after a BOS (break of structure)
Internal & External Market Structure (CHoCH/BOS) with lines and labels
Visual zone management: right extension, mitigation (first touch), invalidation (close beyond), and 50% midline
How it works
Structure & BOS
Finds pivots (HH/LL) via Pivot len.
Triggers BOS when price crosses the last confirmed swing.
Order Blocks
On BOS, scans the last N bars for the opposite candle (bear for BOS up / bull for BOS down) and draws the OB:
Green = Demand, Red = Supply
Optional: use wicks (high/low) or just the body (open/close).
Mitigation: on first touch the zone fades or hides (per settings).
Invalidation: if price closes beyond the zone, it turns gray or gets removed (per settings).
Midline: 50% line for refined management (partial entries, R/R, etc.).
Internal / External Structure
Two structure layers: Internal (micro, shorter swing) and External (macro, longer swing).
Displays CHoCH/BOS with labels; External lines can be dashed for clarity.
Choose to show Internal, External, or Both.
Key Settings
Structure
Pivot len (swing HH/LL) — pivot sensitivity.
Order Blocks
Lookback N bars for the opposite candle
Use wicks — if on, zone uses high/low; otherwise just the body.
Zone Management
Extend zones to the right
Hide zone after mitigation (touch)
Fade zone after mitigation
Remove zone when invalidated
Show 50% line
Max zones stored
Colors: fill/border for Demand/Supply, 50% line color, Mitigated/Invalidated colors.
General
Only on XAU/GOLD (optional) — restricts execution to symbols containing “XAU”/“GOLD”.
Market Structure (tab)
Internal Swing Length / External Swing Length
Show Internal/External Market Structure (Both / Internal / External)
Colors for bullish/bearish MS
Usage Guide
Recommended timeframes: M5/M15 for entries, H1 for context.
Workflow:
Determine External (macro) direction.
Look for BOS and OB in the same direction on Internal.
Wait for mitigation (touch) inside the OB; the 50% line can be used for conservative entries.
Good confluences: sessions (killzones), volume spikes, extreme RSI, MAs (add as separate indicators if needed).
Visual Conventions
Demand: green; Supply: red.
Mitigated: faded yellow (or hidden if chosen).
Invalidated: gray (or removed).
50% line: gray.
Notes & Limits
Pine v6. Object caps follow TradingView limits (max_* = 500). On long histories, increase “Max zones stored” carefully.
BOS is computed when price crosses the last confirmed swing; some traders prefer “close-only” confirmation (can be customized if desired).
This tool does not auto-generate BUY/SELL signals; it’s a context & zones assistant.
Risk disclaimer: Trading involves risk. This tool is for educational analysis and does not guarantee profit. Use strict risk management (fixed SL, R:R ≥ 1:2, risk < 1% per trade).
Draw Trend LinesSometimes the simplest indicators help traders make better decisions. This indicator draws simple trend lines, the same lines you would draw manually.
To trade with an edge, traders need to interpret the recent price action, whether it's noisy or choppy, or it's trending. Trend Lines will help traders with that interpretation.
The lines drawn are:
1. lower tops
2. higher bottoms
Because trends are defined as higher lows, or lower highs.
When you see "Wedges", formed by prices chopping between top and bottom trend lines, that's noisy environment not to be traded. When you learn to "stop yourself", you already have an edge.
Often when you see a trend, it's still not too late. Trend will continue until it doesn't. But the caveat is a very steep trend is unlikely to continue, because buying volume is extremely unbalanced to cause the steep trend, and that volume will run out of energy. (Same on the sell side of course)
Trends can reverse, and when price action breaks the trend line, Breakout/Breakdown traders can take this as an entry signal.
Enjoy, and good trading!
Volume Profile + Pivot Levels [ChartPrime]⯁ OVERVIEW
Volume Profile + Pivot Levels combines a rolling volume profile with price pivots to surface the most meaningful levels in your selected lookback window. It builds a left-side profile from traded volume, highlights the session’s Point of Control (PoC) , and then filters pivot highs/lows so only those aligned with significant profile volume are promoted to chart levels. Each promoted level extends forward until price retests it—so your chart stays focused on levels that actually matter.
⯁ KEY FEATURES
Rolling Volume Profile (Period & Resolution)
Calculates a profile over the last Period bars (default 200). The profile is discretized into Volume Profile Resolution bins (default 50) between the highest high and lowest low inside the window. Each bin accumulates traded volume and is drawn as a smooth left-side polyline for compact, lightweight rendering.
HL = array.new()
// collect highs/lows over 'start' bars to define profile range
for i = 0 to start - 1
HL.push(high ), HL.push(low )
H = HL.max(), L = HL.min()
bin_size = (H - L) / bins
// accumulate per-bin volume
for i = 0 to bins - 1
for j = 0 to start - 1
if close >= (L + bin_sizei) - bin_size and close < (L + bin_size*(i+1)) + bin_size
Bins += volume
Delta-Aware Coloring
The script tracks up-minus-down volume across all period to compute a net Delta . The profile, PoC line, and PoC label adopt a teal tone when net positive, and maroon when net negative—an immediate read on buyer/seller dominance inside the window.
Point of Control (PoC) + Volume Label
Automatically marks the highest-volume bin as the PoC . A horizontal PoC line extends to the last bar, and a label shows the absolute volume at the PoC. Toggle visibility via PoC input.
Pivot Detection with Volume Filter
Identifies raw pivots using Length (default 10) on both sides of the bar. Each candidate pivot is then validated against the profile: only pivots that land within their bin and meet or exceed the Filter % threshold (percentage of PoC volume) are promoted to chart levels. This removes weak, low-participation pivots.
// pivot promotion when volume% >= pivotFilter
if abs(mid - p.value) <= bin_size and volPercent >= pivotFilter
// draw labeled pivot level
line.new(p.index - pivotLength, p.value, p.index + pivotLength, p.value, width = 2)
Forward-Extending, Self-Stopping Levels
Promoted pivot levels extend forward as dotted rays. As soon as price intersects a level (high/low straddles it), that level stops extending—so your chart doesn’t clutter with stale zones.
Concise Level Labels (Volume + %)
Each promoted pivot prints a compact label at the pivot bar with its bin’s absolute volume and percentage of PoC volume (ordering flips for highs vs. lows for quick read).
Lightweight Visuals
The volume profile is rendered as a smooth polyline rather than dozens of boxes, keeping charts responsive even at higher resolutions.
⯁ SETTINGS
Volume Profile → Period : Lookback window used to compute the profile (max 500).
Volume Profile → Resolution : Number of bins; higher = finer structure.
Volume Profile → PoC : Toggle PoC line and volume label.
Pivots → Display : Show/hide volume-validated pivot levels.
Pivots → Length : Pivot detection left/right bars.
Pivots → Filter % 0–100 : Minimum bin strength (as % of PoC) required to promote a pivot level.
⯁ USAGE
Read PoC direction/color for a quick net-flow bias within your window.
Prioritize promoted pivot levels —they’re backed by meaningful participation.
Watch for first retests of promoted levels; the line will stop extending once tested.
Adjust Period / Resolution to match your timeframe (scalps → higher resolution, shorter period; swings → lower resolution, longer period).
Tighten or loosen Filter % to control how selective the level promotion is.
⯁ WHY IT’S UNIQUE
Instead of plotting every pivot or every profile bar, this tool cross-checks pivots against the profile’s internal volume weighting . You only see levels where price structure and liquidity overlap—clean, data-driven levels that self-retire after interaction, so you can focus on what the market actually defends.
Candle Opening Price & FVG/iFVGIndicator Description: Candle Opening Price & Fair Value Gaps w/(iFVGs)
This powerful, multi-purpose indicator combines two essential trading concepts into one comprehensive tool, designed to provide traders with key price levels and areas of market imbalance.
What It Does
1. Customizable Candle Open Lines: This feature allows you to mark the opening price of specific candles from key trading sessions throughout the day.
Up to 7 Custom Time Inputs: You can define up to seven different times (e.g., "08:30" for London Open, "09:30" for New York Open).
Automatic Horizontal Lines: The script automatically draws a persistent horizontal line at the opening price of the candle corresponding to your set time.
Full Customization: Each line can be independently enabled or disabled and styled with a unique color, width, and line style (solid, dashed, dotted), allowing for a clean and personalized chart setup.
Use Cases: Ideal for marking session opens, news event candles, or any other time-based level that you consider significant for support, resistance, or directional bias.
2. Dynamic Fair Value Gaps (FVG) & Inversions (iFVG): This part of the indicator automatically identifies, draws, and manages Fair Value Gaps, a core concept in modern price action trading.
Automatic FVG Detection: The script identifies both Bullish FVGs (areas of buying inefficiency) and Bearish FVGs (areas of selling inefficiency) based on the classic three-bar pattern.
Clear Visualization: Discovered FVGs are drawn as colored boxes on the chart, extending into the future until they are mitigated. Colors for Bullish and Bearish FVGs are fully customizable.
Inversion Logic: When price wicks into an FVG, the box changes color to signify an "inversion." A Bullish FVG that gets tapped becomes potential resistance (Bearish Inversion), and a Bearish FVG becomes potential support (Bullish Inversion). This dynamic shift helps you track how the market is interacting with these zones.
Zone Mitigation: Once an inverted FVG is fully reclaimed by a candle close, the zone is considered "mitigated" and the box is automatically removed from the chart, keeping your view focused on relevant, active zones.
Disclaimer
This indicator is for educational and informational purposes only and should not be construed as financial advice. Trading in financial markets involves substantial risk, and there is always the potential for loss. Past performance is not indicative of future results.
The signals, levels, and zones generated by this tool are based on historical price data and mathematical formulas; they do not predict the future with certainty. You should always conduct your own research, practice sound risk management, and consult with a qualified financial advisor before making any trading decisions. The author and TradingView are not responsible for any financial losses you may incur by using this script. Use at your own risk.
Auto Pivot Entry SL TPDescription:
The Auto Pivot Entry SL TP indicator automatically detects Pivot Highs and Pivot Lows to generate precise BUY and SELL trade setups.
When a Pivot Low forms, a BUY setup is displayed with Entry, Stop Loss, and multiple Take Profit (TP1–TP3) levels.
When a Pivot High forms, a SELL setup is displayed with Entry, Stop Loss, and multiple Take Profit (TP1–TP3) levels.
Key Features:
Automatic detection of pivots for trade entries.
Clear visualization of Entry, SL, and TP levels directly on the chart.
Flexible Risk-Reward ratio settings for customizable targets.
Works on all symbols and timeframes.
This tool is designed for traders who want a simple yet effective method to plan trades using price action pivot points combined with predefined risk management (SL & TP levels).
Market Reversal Time HighlightsThis indicator marks the times when the market has an inflection or reversal.
This script is customizable and free to use
MTF Last Closed Highs & LowsThis indicator plots the most recent closed high and low levels from multiple timeframes (4H, Daily, Weekly, Monthly, etc.) directly on your chart. It helps traders quickly spot key support and resistance zones, track market structure across different timeframes, and identify breakout or reversal opportunities.
The Perfect Timing IndicatorFlashes a green arrow on your screen when bullish momentum is starting to build.
Better Pivot Points [LuminoAlgo]Overview
The Better Pivot Points indicator is an advanced trend analysis tool that combines Supertrend methodology with automated pivot point identification and zigzag visualization. This indicator helps traders identify significant price turning points and visualize market structure through dynamic pivot labeling and connecting lines.
How It Works
This indicator utilizes a Supertrend-based algorithm to detect meaningful pivot points in price action. Unlike traditional pivot point indicators that rely on fixed time periods, this tool dynamically identifies pivots based on trend changes, providing more relevant and timely signals.
The algorithm tracks trend changes using ATR-based Supertrend crossovers to determine when significant highs and lows have formed. When a trend reversal is detected, the indicator marks the pivot point and draws connecting lines to visualize price flow and market structure progression.
Key Features
• Dynamic Pivot Detection: Automatically identifies high and low pivot points using Supertrend crossovers
• Market Structure Labeling: Labels pivots as HH (Higher High), LH (Lower High), HL (Higher Low), or LL (Lower Low)
• Zigzag Visualization: Connects pivot points with customizable lines to clearly show price flow and market structure
• Color-Coded Analysis: Uses distinct colors to indicate bullish trends (green), bearish trends (red), and neutral conditions (yellow)
• Customizable Parameters: Adjustable ATR period, factor, line width, and line style
Input Settings
• ATR Length: Controls the sensitivity of the Supertrend calculation (default: 21)
• Factor: Multiplier for the ATR-based Supertrend bands (default: 2.0)
• Zigzag Line Width: Customize the thickness of connecting lines (1-4)
• Zigzag Line Style: Choose between Solid, Dashed, or Dotted line styles
What Makes This Original
This indicator combines several analytical concepts into a cohesive tool that differentiates it from standard pivot point indicators:
1. Uses Supertrend crossovers as the trigger for pivot detection rather than traditional high/low lookback periods
2. Automatically categorizes market structure using HH/LH/HL/LL labeling system based on pivot relationships
3. Provides real-time zigzag visualization with intelligent color coding that reflects trend direction
4. Integrates trend direction analysis with structural pivot identification in a single comprehensive tool
The underlying calculations use custom logic for tracking trend states, validating pivot points, and determining appropriate color coding based on market structure analysis.
How to Use
1. Trend Identification: Green lines indicate bullish market structure, red lines show bearish structure, yellow indicates transitional periods
2. Support/Resistance: Pivot points often act as future support and resistance levels for price action
3. Market Structure Analysis: HH and HL patterns suggest uptrends, while LH and LL patterns indicate downtrends
4. Entry/Exit Planning: Use pivot points and trend changes to plan potential trade entries and exits
Important Limitations and Warnings
• This indicator is a technical analysis tool and should not be used as the sole basis for trading decisions
• Pivot points are identified after price moves occur, meaning this indicator has inherent lag and cannot predict future pivots
• False signals can occur during ranging or choppy market conditions where trends are unclear
• Past performance of any indicator does not guarantee future results or trading success
• The indicator works best in clearly trending markets and may produce less reliable signals in sideways price action
• This tool requires interpretation and should be combined with other forms of analysis
• Always use proper risk management and position sizing strategies when trading
Why This Script Is Protected
This indicator uses proprietary algorithms for pivot detection timing, trend state management, and market structure analysis that represent original research and development. The specific logic for pivot validation, color-coding methodology, and structural relationship calculations contains unique approaches that differentiate it from standard pivot point indicators available in the public library.
Disclaimer
This indicator is for educational and analysis purposes only and does not constitute investment advice. Trading involves substantial risk and is not suitable for all investors. Past results are not indicative of future performance. The future is fundamentally unknowable and past results in no way guarantee future performance. Always conduct your own research and consider your risk tolerance before making any trading decisions.
ICT ULT
This indicator is for lazy people like me who want to automate the process of marking certain ICT key levels using the indicator's features, such as:
Custom Killzone/Session Liquidity Levels in form of Highs and Lows
Killzone Drawings (Boxes)
Previous Day High/Low (PDH/PDL)
Previous Day Equlibrium (PDEQ)
Previous Week High/Low
New Day/Week Opening Gaps (NDOG/NWOG)
Custom Opening Prices (horizontal) (e.g. Midnight Open)
Custom Timestamps (vertical)
*Note: All features are completely customizable
inspired by: @tradeforopp