Draw Trendline with Breakout by Pooja🌟 Draw Trendline with Breakout by Pooja
Draw Trendline with Breakout by Pooja
✨ A smart & clean auto–trendline tool that detects swings, plots dynamic trendlines, and highlights real-time breakouts — designed for intraday, swing & positional traders.
Indicator intelligently reads market structure using objective statistical calculations (ATR / Stdev / LinReg) and gives you clarity on trend direction, structural shifts, and breakout opportunities.
Works on Stocks • Indian Stock Market • Crypto • Forex • Commodities
Suitable for Scalping • Day Trading • Swing Trading
🔥 Key Features
🔹 Auto Trendline Detection
Auto-detects swing highs/lows
Draws adaptive upper & lower trendlines
No manual drawing required
🔹 Dynamic Slope Engine
Choose from 3 professional slope methods:
📏 ATR Mode – volatility-adaptive
📊 Stdev Mode – statistical noise filtering
📐 Linear Regression Mode – structural slope mapping
🔹 Real-Time Breakout Signals
⚡ Instant breakout markers (Up/Down)
🔔 Alert support for both breakout types
Helps catch trend continuation & reversals early
🔹 Extended Projection Lines
➡️ Projects trendlines forward
🎯 Helps identify possible future reaction zones
🔹 Backpaint Control
🧩 Optional historical offset display
Great for forward testing & clean charts
🔹 Flexible Customization
Swing length
Colors
Slope sensitivity
Extended line visibility
📈 How to Use
Apply indicator
Set swing length based on volatility
Choose slope mode (ATR/Stdev/LinReg)
Observe auto trendlines
Watch for breakout markers
Set alerts for faster entries
Best used together with:
📌 Support & Resistance
📉 Price Action
🧭 Market Structure
🔊 Volume
💡 Why Traders Like It
Clean & lag-free structure mapping
Zero manual drawing
Breakouts are visually clear
Works on all assets & timeframes
⚠️ Disclaimer
This indicator is a technical analysis tool meant for charting assistance.
It does not guarantee profits or predict markets with certainty.
Always combine with your own analysis and proper risk management.
Past performance ≠ future results.
Pivot
Seawolf Pivot Hunter [Strategy]Overview
Seawolf Pivot Hunter is a practical trading strategy that enhances the classic pivot-box breakout system with a structured risk-management framework. Using ATR-based stop loss and take-profit calculations, position sizing, multi-layer filtering, and daily loss-limit protection, it provides a stable and sustainable trading environment. It preserves the strengths of the original version while adding systems designed to manage real-market risks more effectively.
Core Philosophy
The most important element in trading is not generating profits but controlling losses. Even the best entry signals cannot compensate for a single large loss that wipes out accumulated gains. This strategy precisely calculates the risk exposure for every trade and includes multiple layers of protection to safeguard the account under worst-case scenarios.
Indicator Setup Link
kr.tradingview.com
Example of Optimal Parameter Settings
Asset (Exchange): ETH/USDT (Binance)
Timeframe: 15-minute chart
Pivot Detection Length: 5
Upper Box Width: 2
Lower Box Width: 2
Enable Risk Management: False
Use Trailing Stop: False
Use Volume Filter
-Min Buy Volume % for Long: 50
-Min Sell Volume % for Short: 50
Use Trend Filter (EMA): False
Enable Max Loss Protection
-Max Daily Loss ($): 200
-Max Trades Per Day: 10
Calculated Bars: 50,000
Risk-Management System
Every trade automatically receives a stop-loss level at the moment of entry. The stop is calculated using ATR, adjusting dynamically to market volatility. When volatility increases, the stop widens; in stable conditions, it tightens to reduce unnecessary exits. The default distance is set to twice the ATR.
The standard take-profit level is set to four times the ATR, providing a 1:2 risk-reward structure. With this ratio, even a 50 percent win rate can produce profitability—while the typical trade structure aims for small losses and larger gains to support long-term performance.
A trailing-stop option is also available. Once the trade moves into profit, the stop level automatically trails behind price action, protecting gains while allowing the position to expand when momentum continues.
Position size is calculated automatically based on the selected risk percentage. For example, with a 2 percent risk setting, each stop-loss hit would result in exactly 2 percent of the account balance being lost. This ensures a consistent risk profile regardless of account size.
The daily loss-limit function prevents excessive drawdown by halting new trades once a predefined loss threshold is reached. This helps avoid emotional decision-making after consecutive losses.
A daily trade-limit feature is included as well. The default is 10 trades per day, protecting traders from overtrading and unnecessary fees.
Filtering System
The volume filter analyzes buying and selling pressure within the pivot box. Long trades are allowed only when buy volume exceeds a specified percentage; shorts require sell-volume dominance. The default threshold is 55 percent.
The trend filter uses an EMA to determine market direction. When price is above the 200-EMA, only long signals are permitted; when below, only shorts are allowed. This ensures alignment with the broader trend and reduces counter-trend risk.
Each filter can be toggled independently. More filters generally reduce trade frequency but improve signal quality.
Real-Time Monitoring
A real-time statistics panel displays daily profit/loss, the number of trades taken, the maximum allowed trades, and whether new trades are currently permitted. When daily limits are reached, the panel provides clear visual warnings.
Entry Logic
A trade is validated only after a pivot-box breakout occurs and all active filters—volume, trend, daily loss limit, and daily trade limit—are satisfied. Position size, stop loss, and take-profit levels are then calculated automatically. Entry arrows and labels on the chart help with later review and analysis.
Setup Guide
Risk percentage is the most critical setting. Beginners should start at 1 percent. Anything above 3 percent becomes aggressive.
ATR stop-loss multipliers should reflect asset volatility.
ATR take-profit multipliers determine reward ratio; 4.0 is the standard.
Volume thresholds are typically set between 50–60 percent depending on market conditions.
Daily loss limits are typically 2–5 percent of the account.
Trading Strategy
This strategy performs best in trending environments and works especially well on the 4-hour and daily charts. New users should begin with all filters enabled and trade conservatively. A minimum of one month of paper trading is recommended before committing real capital.
Suitable Users
The strategy is ideal for beginners who lack risk-management experience as well as advanced traders seeking a customizable structure. It is particularly helpful for traders who struggle with emotional decision-making, as pre-defined limits and rules enforce discipline.
Backtesting Guide
Use at least 2–3 years of historical data that includes bullish, bearish, and sideways conditions.
Target metrics:
Sharpe ratio: 1.5 or higher
Maximum drawdown: below 25 percent
Win rate: 40 percent or higher
Total trades: at least 100 for statistical relevance
Optimization Precautions
Avoid over-fitting parameters. Always test values around the “best” setting to verify stability.
Out-of-sample testing is essential for confirming robustness.
Test across multiple assets and timeframes to ensure consistency.
Live Deployment Roadmap
After successful backtesting, follow a gradual rollout:
Paper trading for at least one month
Small-account live testing
Slow scaling as performance stabilizes
Continuous Improvement
Keep a detailed trading journal and evaluate performance each quarter using recent data.
Adapt settings as market conditions evolve.
Conclusion
Seawolf Pivot Hunter aims to provide more than simple trade signals—it is designed to create a stable and sustainable trading system built on disciplined risk management. No strategy is perfect, and long-term success depends on consistency, patience, and strict adherence to rules. Start small, verify results, and scale progressively.
Disclaimer
This strategy is for educational and research purposes only. Past performance does not guarantee future results. All trading decisions are the responsibility of the user.
개요
Seawolf Pivot Hunter는 기본 피봇 박스 브레이크아웃 전략에 전문적인 리스크 관리 시스템을 더한 실전형 트레이딩 전략입니다. ATR 기반의 손절매와 목표가 설정, 포지션 사이징, 다층 필터링 시스템, 일일 손실 제한 기능을 통해 안정적이고 지속 가능한 트레이딩 환경을 제공합니다. 기본 버전의 장점은 유지하면서 실제 시장에서 발생할 수 있는 위험을 체계적으로 관리할 수 있도록 설계되었습니다.
핵심 철학
트레이딩에서 가장 중요한 것은 수익이 아니라 손실 관리입니다. 아무리 훌륭한 진입 조건이 있어도 한 번의 큰 손실로 모든 수익이 사라질 수 있습니다. 이 전략은 각 거래마다 감수할 리스크를 명확히 계산하고, 최악의 상황에서도 계좌를 보호하기 위한 다양한 안전장치를 제공합니다.
지표 적용 링크 공유
kr.tradingview.com
최적 조건값 설정(예시)
"종목(거래소): ETH/USDT(Binance)", "15 분봉 기준"
-Pivot Detection Length: 5
-Upper Box width: 2
-Lower Box width: 2
-Enable Risk Management: False
-Use Trailing Stop: False
-Use Volume Filter
-Min Buy Volume % for Long: 50
-Min Buy Volume % for Long: 50
-Use Trend Filter(EMA): False
-Enable Max Loss Protection
-Max Daily Loss($): 200
-Max Trades Per Day: 10
-Calucated bars: 50000
리스크 관리 시스템
모든 거래는 진입과 동시에 손절매 주문이 자동 설정됩니다. 손절가는 ATR을 기준으로 계산되며, 시장의 변동성에 따라 자동으로 조정됩니다. 변동성이 큰 시장에서는 넓은 손절폭을, 안정적인 시장에서는 좁은 손절폭을 사용해 불필요한 청산을 줄입니다. 기본값은 ATR의 2배입니다.
목표가는 ATR의 4배를 기본값으로 설정하여 손익비 1:2 구조를 유지합니다. 승률이 50퍼센트만 되어도 수익성이 가능하며, 실제로는 손절은 짧고 이익은 길게 가져가는 방식으로 장기 성과를 확보합니다.
트레일링 스톱 기능도 제공됩니다. 포지션이 수익 구간에 들어서면 손절가가 자동으로 함께 움직이며 수익을 보호합니다. 이 기능은 사용자가 켜거나 끌 수 있습니다.
포지션 크기는 리스크 퍼센트 기반으로 자동 계산됩니다. 예를 들어 리스크를 2퍼센트로 설정하면 손절 시 계좌 자산의 2퍼센트만 잃도록 수량이 조절됩니다. 계좌 크기와 무관하게 항상 일정한 비율의 리스크만 감수하게 되는 방식입니다.
일일 손실 제한 기능은 하루에 허용 가능한 최대 손실을 초과하지 않도록 합니다. 지정 금액에 도달하면 당일 거래는 더 이상 실행되지 않습니다. 감정적 거래를 막고 일정한 규율을 유지하도록 돕습니다.
일일 거래 횟수 제한 기능도 제공됩니다. 기본값은 하루 10회로, 과매매와 수수료 증가를 방지합니다.
필터링 시스템
볼륨 필터는 박스 구간 내 매수·매도 압력을 분석해 진입 신호를 검증합니다. 롱은 매수 볼륨이 일정 비율 이상일 때, 숏은 매도 볼륨이 우세할 때만 진입합니다. 기본값은 55퍼센트입니다.
추세 필터는 EMA를 사용하며, 가격이 200EMA 위에 있을 때는 롱 신호만, 아래에서는 숏 신호만 허용합니다. 큰 추세 방향에만 거래하여 역추세 리스크를 줄입니다.
필터는 독립적으로 켜고 끌 수 있으며, 필터가 많을수록 거래 횟수는 줄지만 신호 품질은 향상됩니다.
실시간 모니터링
화면에 실시간 통계 테이블이 표시되며, 일일 손익, 거래 횟수, 최대 허용 횟수, 현재 거래 가능 여부가 즉시 확인됩니다. 손실 제한 또는 거래 제한 도달 시 시각적으로 표시됩니다.
진입 로직
피봇 박스 브레이크아웃 발생 후 볼륨 필터, 추세 필터, 일일 손실·거래 제한을 모두 통과하면 포지션 크기를 계산하고 손절·목표가를 설정한 뒤 진입합니다. 진입 지점에는 화살표와 레이블이 표시되어 분석에 도움을 줍니다.
설정 가이드
리스크 퍼센트는 가장 중요한 설정입니다. 초보자는 1퍼센트를 추천하며 3퍼센트 이상은 위험합니다.
손절 ATR 배수는 자산 특성에 맞게 조절합니다.
목표가 ATR 배수는 손익비를 결정하며 기본값은 4.0입니다.
볼륨 비율은 시장 상황에 따라 50~60퍼센트 내외로 조정합니다.
일일 손실 제한은 계좌의 2~5퍼센트 수준이 적절합니다.
사용 전략
추세가 명확한 시장에서 가장 효과적이며, 4시간봉 또는 일봉을 추천합니다. 초반에는 모든 필터를 켜고 보수적으로 시작하며, 최소 한 달간 페이퍼 트레이딩을 권장합니다.
적합한 사용자
리스크 관리 경험이 부족한 초보자부터, 커스터마이징을 원하는 경험자까지 폭넓게 적합합니다. 감정적 트레이딩을 억제하는 기능이 있어 규율 유지가 어렵던 트레이더에게 특히 유용합니다.
백테스트 가이드
최소 2~3년 데이터로 테스트하며, 상승·하락·횡보 모두 포함해야 합니다.
샤프비율 1.5 이상, 최대 낙폭 25퍼센트 이하를 목표로 합니다.
승률은 40퍼센트 이상이면 충분합니다.
최소 100회 이상 거래가 있어야 통계적으로 의미가 있습니다.
최적화 주의사항
과최적화를 피하고 주변 값도 테스트해야 합니다.
샘플 외 기간 검증은 필수입니다.
여러 자산·여러 시간대에서 테스트하여 일관성을 확인해야 합니다.
실전 적용 로드맵
백테스트 후 바로 실전 투입하지 말고, 한 달 이상의 페이퍼 트레이딩 → 소액 실전 → 점진적 확대 순으로 진행합니다.
지속적 개선
일지를 기록하고 분기마다 최신 데이터로 점검합니다.
시장 변화에 따라 유연하게 조정해야 합니다.
마치며
Seawolf Pivot Hunter는 단순 신호 제공을 넘어, 안전하고 지속 가능한 트레이딩 환경 구축을 목표로 합니다. 어떤 전략도 완벽할 수 없으며, 장기적 성공을 위해서는 규칙 준수와 인내가 가장 중요합니다. 충분한 검증을 거쳐 작은 금액으로 시작하고 점진적으로 확장해나가는 접근을 추천합니다.
면책 조항
이 전략은 교육 및 연구 목적이며, 과거 성과는 미래를 보장하지 않습니다. 모든 투자 결정은 본인의 판단과 책임 하에 이루어져야 합니다.
MTF Trend Analyzer with Swing Pivots & S/R Levels [SmartFoxy]Indicator “Multi-Timeframe Trend Analyzer with Swing Pivots & S/R Levels”
📌 Overview
Trend & Pivot S/R Levels is a multi-timeframe market structure analyzer that identifies trend direction, detects swing highs/lows, and plots higher-timeframe support/resistance levels directly on your chart.
Designed for traders who want fast, clean, and accurate trend context without constantly switching timeframes.
________________________________________________________________________________
✨ Core Features
1. Multi-Timeframe Trend Analyzer .
Analyze up to five higher timeframes simultaneously — for example:
5m, 1H, 4H, 1D, 1W , etc.
For each timeframe, the indicator detects:
a) Trend direction:
🡕 Uptrend;
🡖 Downtrend.
b) Breakouts of recent pivot highs/lows to determine trend shifts.
c) Automatic graying-out of timeframes lower than the current chart TF .
d) A clean visual Trend Panel that shows:
Arrow direction;
Timeframe label (1D, 1W, etc.);
Trend color (bullish, bearish, neutral).
________________________________________________________________________________
2. Swing Pivot Detection (Current TF)
The script detects local swing points using customizable lookback parameters:
a) Pivot Type:
High/Low — classic swing structure;
Close — smoother swing detection using closing prices.
b) Left/Right Bars Lookback — the number of bars required on both sides to validate the pivot.
c) Multiple marker styles :
Built-in plot shapes (circle, cross, histogram, etc.);
Custom visual labels (▲▼, ◉, ✖, 🡇🡅, ◆, ◼, etc.).
This makes it easy to visually confirm that your swing settings are correct.
________________________________________________________________________________
3. Higher-Timeframe Support/Resistance
The indicator automatically draws HTF S/R lines based on the latest pivot highs/lows from each selected timeframe.
Each timeframe has:
Separate Support / Resistance colors ;
Adjustable line width ;
Selectable line style (solid, dashed, dotted, arrows);
Optional HTF labels displayed on the lines.
This allows you to see major market structure levels from higher timeframes without switching charts.
________________________________________________________________________________
4. Smart Timeframe Safety Checks
If a selected timeframe is lower than your current chart timeframe , its data is:
Disabled for S/R plotting ;
Shown in gray inside the Trend Panel;
Prevents invalid S/R calculations and ensures stable chart performance.
________________________________________________________________________________
⚙️ Customization Options :
Show/Hide the Trend Panel;
Panel placement anywhere on the chart;
Swing pivot type: High/Low or Close ;
Pivot lookback (left/right bars);
Choose five HTFs to analyze;
Enable/Disable HTF S/R;
Configure S/R color for each timeframe;
Line style + line width;
Pivot marker type + size;
Custom label styles + text scaling.
________________________________________________________________________________
✅ Benefits :
Perfect for traders who need instant multi-timeframe structure awareness ;
Reduces the need to constantly switch charts;
Works on all markets : crypto, stocks, forex, indices, futures;
Clean, modern, and intuitive visualization;
Helps confirm trend direction and key S/R levels at a glance.
________________________________________________________________________________
⚠️ Note
The indicator only displays S/R and trend data from higher timeframes relative to the current chart timeframe.
Dynamic S/R Zones (Verified Pivots)Dynamic S/R Zones V1.2
Overview
Dynamic S/R Zones V1.2 is a Pine v6 structure visualizer that highlights nearby Support/Resistance zones from confirmed swing pivots on the current chart and an optional higher timeframe (HTF). It can also plot simple Fibonacci guide levels (33% / 50% / 66%) between the most recent swing points. All HTF requests use lookahead_off to avoid forward-looking data, and S/R anchors are derived from verified pivots to minimize repainting. Optional “touch-verified” coloring flips a level’s display once price trades through it.
This tool is an illustrative S/R map for chart review and education.
How it works
Verified Pivots (Non-Repainting):
• Minor S/R uses ta.pivothigh/ta.pivotlow with a symmetric lookback (“Pivot Strength”).
• Lines anchor only on confirmed pivots, so once drawn they remain stable.
• A de-dup buffer filters out levels that are too close together.
HTF Major Zones:
• HTF OHLC is requested via request.security(..., lookahead=barmerge.lookahead_off).
• The same pivot logic runs on the HTF series; lines appear after the HTF bar closes.
• Major lines can be shown alongside (or instead of) minor lines.
Touch-Verified Coloring (optional):
• When a level is touched (high ≥ level ≥ low), it flips from neutral to a side color:
– Support (price above) ≈ green; Resistance (price below) ≈ red.
• The verification state is persistent for that line.
Fibonacci Guides (optional):
• Draws 33% / 50% / 66% between the last opposing swing high/low.
• Verification/coloring modes:
Pivot-Based: uses the most recent swing direction.
HTF Trend-Based: uses a fast/slow EMA comparison on a user-selected HTF.
Bounce/Reject Mode: color on touch regardless of trend interpretation.
• One arrow per bar (optional) indicates a newly verified fib touch.
What it displays
• Minor S/R lines from current-TF verified pivots (non-repainting anchors).
• Major S/R lines from HTF pivots (confirmed on HTF close).
• Optional labels that state level type, price, HTF tag, and Verified/Unverified status.
• Optional Fibonacci guide lines with labels, plus single-arrow confirmations.
• Coloring that reflects touch verification and current side (support/resistance).
Why it’s original
• Focuses on confirmed structure (minor + HTF) with de-duplication for clarity.
• Offers hybrid fib verification (pivot-based, HTF-trend-based, or bounce/reject) to let users study structure from multiple perspectives without asserting signals.
• Maintains persistent verification per level and avoids lookahead on HTF for stable, review-friendly visuals.
• Provides a compact workflow for scanning: minor structure, HTF context, then fib context.
Configuration & usage notes
• Pivot Strength: Higher values = stricter confirmation (fewer lines, more stable).
• Lookback Range: Prunes older lines; increase for broader context.
• HTF for Major S/R: Daily/4H/Weekly etc.; lines confirm on that timeframe’s close.
• Min Distance Between Levels: Helps reduce clutter from nearby duplicates.
• Touch-Verified Coloring: Enable for quick support/resistance side cues.
• Fibs: Choose coloring mode (Pivot-Based, HTF Trend-Based, or Bounce/Reject).
• HTF Trend TF / EMAs: Only affect coloring when using HTF trend mode for fibs.
• Performance: Labels and line counts can be tuned down on very long histories.
Limitations & assumptions
• Pivot detection depends on chart timeframe, liquidity, and chosen pivot length.
• HTF lines update after the HTF bar closes (by design, to avoid lookahead).
• Optional Realtime pivots for fibs (if enabled) are provisional and can shift until a swing verifies.
• Coloring and arrows are descriptive—they do not imply entries, exits, or probabilities.
Legal Disclaimer
These tools visualize calculations on historical data for charting and educational use only. They are not signals, recommendations, or promises of future results. Markets involve risk, and past results do not guarantee future outcomes. Provided “as is,” without warranties. Consider consulting a qualified professional before making decisions.
Pivot Orderflow DeltaThis indicator analyzes order flow by calculating a continuous Cumulative Volume Profile Delta (CVPD). It plots this delta as a series of "delta candles" and identifies divergences and structural pivot levels.
Key Features:
Statistical Delta Engine: For each bar, the indicator builds a high-resolution volume profile on a lower 'Intra-Bar Timeframe'. It uses statistical models ('PDF' allocation) and advanced classifiers ('Dynamic' split) to determine the buy/sell pressure, which is then accumulated.
Cumulative Delta Candle Visualization: The indicator plots the continuous, accumulated delta as a series of candles, where for each bar:
Open: Is the cumulative delta value of the previous bar.
Close: Is the new total cumulative delta.
High/Low: Represent the peak/trough cumulative delta reached during that bar's formation.
Dynamic Pivot Baseline: The indicator plots a separate dynamic baseline ('Impulse Start') that adjusts when a new price pivot is confirmed.
When a price high forms, the baseline moves to the lower of its previous level or the peak delta (max of delta candle O/C) at the pivot.
When a price low forms, the baseline moves to the higher of its previous level or the trough delta (min of delta candle O/C) at the pivot.
Full Divergence Suite (Class A, B, C): A built-in divergence engine automatically detects and plots Regular (A), Hidden (B), and Exaggerated (C) divergences between price and the peak/trough of the delta candles (High/Low).
Detailed Pivot Confluence: The indicator plots distinct markers to differentiate between pivots occurring only on the price chart, only on the delta oscillator, or on both simultaneously.
Note on Confirmation (Lag): Divergence and pivot signals rely on a confirmation method. A pivot is only plotted after the Pivot Right Bars input has passed, which introduces an inherent lag.
Integrated Alerts: Includes 23 comprehensive alerts for:
The start and end of all 6 divergence types.
The detection of a new Impulse Start pivot.
Delta/volume agreement/disagreement.
Delta crossing the zero line.
The formation of price-only or delta-only pivots.
Caution: Real-Time Data Behavior (Intra-Bar Repainting) This indicator uses high-resolution intra-bar data. As a result, the values on the current, unclosed bar (the real-time bar) will update dynamically as new intra-bar data arrives. This behavior is normal and necessary for this type of analysis. Signals should only be considered final after the main chart bar has closed.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Volume Profile DeltaThis indicator calculates the Volume Profile Delta (VPD). It constructs a high-resolution volume profile for each bar using intra-bar data, offering a detailed understanding of buying and selling pressure at discrete price levels.
Key Features:
Statistical Volume Profile Engine: For each bar, the indicator builds a high-resolution volume profile on a lower 'Intra-Bar Timeframe'. Instead of simple tick counting, it uses statistical models ('PDF' allocation) to distribute volume across price levels and advanced classifiers ('Dynamic' split) to determine the buy/sell pressure within that profile, providing a more nuanced delta calculation.
"Delta Candle" Visualization: The per-bar VPD is displayed as a candle, where:
Open: Always anchored at the zero line.
High/Low: Represent the peak buying (CVD High) and selling (CVD Low) pressure accumulated within that bar's profile.
Close: The final net delta value (CVD) for the bar.
Customizable Moving Average: An optional moving average of the net delta (Close) can be added. The MA type, length, and an optional Volume weighted setting are customizable.
Intra-Bar Peak Pivot Detection: Automatically identifies and plots significant turning points (pivots) in the peak buying (High) and selling (Low) pressure.
Note on Confirmation (Lag): Pivot signals are confirmed using a lookback method. A pivot is only plotted after the Pivot Right Bars input has passed, which introduces an inherent lag.
Multi-Timeframe (MTF) Capability:
MTF Output: The entire analysis (Delta Candles, MA, Pivots) can be calculated on a higher timeframe (using the Timeframe input), with standard options to handle gaps (Fill Gaps) and prevent repainting (Wait for...).
Limitation: The Pivot detection (Calculate Pivots) is disabled if a Higher Timeframe (HTF) is selected.
Integrated Alerts: Includes 8 alerts for:
The net delta crossing its moving average.
The detection of new peak buying or selling pivots.
Conditions of agreement or disagreement between the net delta and the main bar's direction.
Caution: Real-Time Data Behavior (Intra-Bar Repainting) This indicator uses high-resolution intra-bar data. As a result, the values on the current, unclosed bar (the real-time bar) will update dynamically as new intra-bar data arrives. This behavior is normal and necessary for this type of analysis. Signals should only be considered final after the main chart bar has closed.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Volume DeltaThis indicator provides a detailed view of Volume Delta (VD) by analyzing order flow on a lower, intra-bar timeframe. For each bar on the chart, it calculates the net difference between buying and selling volume based on the direction of the intra-bar candles.
Key Features:
Intra-Bar Delta Calculation: The indicator analyzes price action on a user-defined lower timeframe ('Intra-Bar Timeframe') to construct a detailed picture of the underlying order flow for each bar on the main chart.
"Delta Candle" Visualization: The delta for each bar is shown as a candle, where:
Open: Always starts at the zero line.
High/Low: Represent the peak buying and selling pressure accumulated within the bar.
Close: The final net delta value for that bar. This visualization shows absorption, exhaustion, and conviction in a single glance.
Customizable Moving Average: An optional moving average of the net delta (Close) can be added. The MA type, length, and an optional Volume weighted setting are customizable.
Intra-Bar Peak Pivot Detection: Automatically identifies and plots significant turning points (pivots) in the peak buying (High) and selling (Low) pressure.
Note on Confirmation (Lag): Pivot signals are confirmed using a lookback method. A pivot is only plotted after the Pivot Right Bars input has passed, which introduces an inherent lag.
Multi-Timeframe (MTF) Capability:
MTF Output: The entire analysis (Delta Candles, MA, Pivots) can be calculated on a higher timeframe (using the Timeframe input), with standard options to handle gaps (Fill Gaps) and prevent repainting (Wait for...).
Limitation: The Pivot detection (Calculate Pivots) is disabled if a Higher Timeframe (HTF) is selected.
Integrated Alerts: Includes 8 alerts for:
The net delta crossing its moving average.
The detection of new peak buying or selling pivots.
Conditions of agreement or disagreement between the net delta and the main bar's direction (absolute volume).
Caution: Real-Time Data Behavior (Intra-Bar Repainting) This indicator uses high-resolution intra-bar data. As a result, the values on the current, unclosed bar (the real-time bar) will update dynamically as new intra-bar data arrives. This behavior is normal and necessary for this type of analysis. Signals should only be considered final after the main chart bar has closed.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Volume Weighted Intra Bar LR Standard DeviationThis indicator analyzes market character by providing a detailed view of volatility. It applies a Linear Regression model to intra-bar price action, dissecting the total volatility of each bar into three distinct components.
Key Features:
Three-Component Volatility Decomposition: By analyzing a lower timeframe ('Intra-Bar Timeframe'), the indicator separates each bar's volatility into:
Trend Volatility (Green/Red): Volatility explained by the intra-bar linear regression slope (Momentum).
Residual Volatility (Yellow): Volatility from price oscillating around the intra-bar trendline (Mean-Reversion).
Within-Bar Volatility (Blue): Volatility derived from the range of each intra-bar candle (Noise/Choppiness).
Layered Column Visualization: The indicator plots these components as a layered column chart. The size of each colored layer visually represents the dominance of each volatility character.
Dual Display Modes: The indicator offers two modes to visualize this decomposition:
Absolute Mode: Displays the total standard deviation as the column height, showing the absolute magnitude of volatility and the contribution of each component.
Normalized Mode: Displays the components as a 100% stacked column chart (scaled from 0 to 1), focusing purely on the percentage ratio of Trend, Residual, and Noise.
Calculation Options:
Statistical Model: The 'Estimate Bar Statistics' option (enabled by default) uses a statistical model ('Estimator') to perform the decomposition. (Assumption: In this mode, the Source input is ignored, and an estimated mean for each bar is used instead).
Normalization: An optional 'Normalize Volatility' setting calculates an Exponential Regression Curve (log-space).
Volume Weighting: An option (Volume weighted) applies volume weighting to all intra-bar calculations.
Multi-Component Pivot Detection: Includes a pivot detector that identifies significant turning points (highs and lows) in both the Total Volatility and the Trend Volatility Ratio. (Note: These pivots are only plotted when 'Plot Mode' is set to 'Absolute').
Note on Confirmation (Lag): Pivot signals are confirmed using a lookback method. A pivot is only plotted after the Pivot Right Bars input has passed, which introduces an inherent lag.
Multi-Timeframe (MTF) Capability:
MTF Analysis: The entire intra-bar analysis can be run on a higher timeframe (using the Timeframe input), with standard options to handle gaps (Fill Gaps) and prevent repainting (Wait for...).
Limitation: The Pivot detection (Calculate Pivots) is disabled if a Higher Timeframe (HTF) is selected.
Integrated Alerts: Includes 9 comprehensive alerts for:
Volatility character changes (e.g., 'Character Change from Noise to Trend').
Dominant character emerging (e.g., 'Bullish Trend Character Emerging').
Total Volatility pivot (High/Low) detection.
Trend Volatility pivot (High/Low) detection.
Caution! Real-Time Data Behavior (Intra-Bar Repainting) This indicator uses high-resolution intra-bar data. As a result, the values on the current, unclosed bar (the real-time bar) will update dynamically as new intra-bar data arrives. This behavior is normal and necessary for this type of analysis. Signals should only be considered final after the main chart bar has closed.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Volume Weighted Intra Bar Standard DeviationThis indicator provides a high-resolution analysis of market volatility by dissecting each bar on the chart into its fundamental components. It uses data from a lower, intra-bar timeframe to separate the total volatility of a single bar into its 'directional' and 'non-directional' parts.
Key Features:
Intra-Bar Volatility Decomposition: For each bar on the chart, the indicator analyzes the underlying price action on a smaller timeframe ('Intra-Bar Timeframe') and quantifies two types of volatility:
Between-Bar Volatility (Directional): Calculated from price movements between the intra-bar candles. This component represents the directional, trending price action within the main bar.
Within-Bar Volatility (Non-Directional): Calculated from price fluctuations inside each intra-bar candle. This component represents the choppy, noisy, or ranging price action.
Dual Display Modes: The indicator offers two modes to visualize this information:
Absolute Mode: Plots the total standard deviation as a stacked column chart, showing the absolute magnitude of volatility and the contribution of each component.
Normalized Mode: Plots the components as a 100% stacked column chart (scaled from 0 to 1), focusing purely on the percentage ratio of 'between-bar' (trending) and 'within-bar' (choppy) volatility.
Calculation Options:
Statistical Model: The 'Estimate Bar Statistics' option (enabled by default) uses a statistical model ('Estimator') to perform the decomposition. (Assumption: In this mode, the Source input is ignored, and an estimated mean for each bar is used instead).
Normalization: An optional 'Normalize Volatility' setting calculates volatility in percentage terms (log-space).
Volume Weighting: An option (Volume weighted) applies volume weighting to all intra-bar volatility calculations.
Volatility Pivot Detection: Includes a built-in pivot detector that identifies significant turning points (highs and lows) in the total volatility line. (Note: This is only visible in 'Absolute Mode').
Note on Confirmation (Lag): Pivot signals are confirmed using a lookback method. A pivot is only plotted after the Pivot Right Bars input has passed, which introduces an inherent lag.
Multi-Timeframe (MTF) Capability:
MTF Analysis Lines: The entire intra-bar analysis can be run on a higher timeframe (using the Timeframe input), with standard options to handle gaps (Fill Gaps) and prevent repainting (Wait for...).
Limitation: The Pivot detection (Calculate Pivots) is disabled if a Higher Timeframe (HTF) is selected.
Integrated Alerts: Includes 6 alerts for:
Volatility character changes (e.g., 'Character Change from Choppy to Trend').
Dominant character emerging (e.g., 'Trend Character Emerging').
Total Volatility pivot (High/Low) detection.
Caution: Real-Time Data Behavior (Intra-Bar Repainting) This indicator uses high-resolution intra-bar data. As a result, the values on the current, unclosed bar (the real-time bar) will update dynamically as new intra-bar data arrives. This behavior is normal and necessary for this type of analysis. Signals should only be considered final after the main chart bar has closed.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Volume Weighted LR Standard DeviationThis indicator analyzes market character by decomposing total volatility into three distinct, interpretable components based on a Linear Regression model.
Key Features:
Three-Component Volatility Decomposition: The indicator separates volatility based on the 'Estimate Bar Statistics' option.
Standard Mode (Estimate Bar Statistics = OFF): Calculates volatility based on the selected Source (dies führt hauptsächlich zu 'Trend'- und 'Residual'-Volatilität).
Decomposition Mode (Estimate Bar Statistics = ON): The indicator uses a statistical model ('Estimator') to calculate within-bar volatility. (Assumption: In this mode, the Source input is ignored, and an estimated mean for each bar is used instead). This separates volatility into:
Trend Volatility (Green/Red): Volatility explained by the regression's slope (Momentum).
Residual Volatility (Yellow): Volatility from price oscillating around the regression line (Mean-Reversion).
Within-Bar Volatility (Blue): Volatility from the high-low range of each bar (Noise/Choppiness).
Dual Display Modes: The indicator offers two modes to visualize this decomposition:
Absolute Mode: Displays the total standard deviation as a stacked area chart, partitioned by the variance ratio of the three components.
Normalized Mode: Displays the direct variance ratio (proportion) of each component relative to the total (0-1), ideal for identifying the dominant market character.
Calculation Options:
Normalization: An optional 'Normalize Volatility' setting calculates an Exponential Regression Curve (log-space), making the analysis suitable for growth assets.
Volume Weighting: An option (Volume weighted) applies volume weighting to all regression and volatility calculations.
Multi-Component Pivot Detection: Includes a pivot detector that identifies significant turning points (highs and lows) in both the Total Volatility and the Trend Volatility Ratio. (Note: These pivots are only plotted when 'Plot Mode' is set to 'Absolute').
Note on Confirmation (Lag): Pivot signals are confirmed using a lookback method. A pivot is only plotted after the Pivot Right Bars input has passed, which introduces an inherent lag.
Multi-Timeframe (MTF) Capability:
MTF Volatility Lines: The volatility lines can be calculated on a higher timeframe, with standard options to handle gaps (Fill Gaps) and prevent repainting (Wait for...).
Limitation: The Pivot detection (Calculate Pivots) is disabled if a Higher Timeframe (HTF) is selected.
Integrated Alerts: Includes 9 comprehensive alerts for:
Volatility character changes (e.g., 'Character Change from Noise to Trend').
Dominant character emerging (e.g., 'Bullish Trend Character Emerging').
Total Volatility pivot (High/Low) detection.
Trend Volatility pivot (High/Low) detection.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Volume Weighted Standard DeviationThis indicator calculates the Standard Deviation and decomposes total volatility into its core components, allowing to analyze the underlying character of the market.
Key Features:
Volatility Decomposition: The indicator separates volatility based on the 'Estimate Bar Statistics' option.
Standard Mode (Estimate Bar Statistics = OFF): Calculates a simple (Volume-Weighted) Standard Deviation of the selected Source.
Decomposition Mode (Estimate Bar Statistics = ON): The indicator uses a statistical model ('Estimator') to calculate within-bar volatility (choppiness, noise) and between-bar volatility (trending moves). (Assumption: In this mode, the Source input is ignored, and an estimated mean for each bar is used instead).
Dual Display Modes: The indicator offers two modes to visualize this information:
Absolute Mode: Plots the total standard deviation as a stacked area chart, showing the proportional contribution of the 'Between' and 'Within' components.
Normalized Mode: Plots the direct ratio of each component's variance (from 0 to 1), making it easy to identify which character is dominant.
Calculation Options: The volatility calculation can be optionally Volume weighted. An optional Normalize Volatility setting performs the calculation in logarithmic space, making volatility comparable across different price scales.
Volatility Pivot Detection: Includes a built-in pivot detector that identifies significant turning points (highs and lows) in the total volatility line. (Note: This is only visible in 'Absolute Mode').
Note on Confirmation (Lag): Pivot signals are confirmed using a lookback method. A pivot is only plotted after the Pivot Right Bars input has passed, which introduces an inherent lag.
Multi-Timeframe (MTF) Capability:
MTF Volatility Lines: The volatility lines can be calculated on a higher timeframe, with standard options to handle gaps (Fill Gaps) and prevent repainting (Wait for...).
Limitation: The Pivot detection (Calculate Pivots) is disabled if a Higher Timeframe (HTF) is selected.
Integrated Alerts: Includes 6 alerts for:
Volatility character changes (e.g., 'Trend Character Emerging', 'Character Change from Trend to Choppy').
Volatility pivot (high or low) detection.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Volume Weighted Average True RangeThis indicator calculates a customizable version of the Average True Range (ATR), a tool for measuring market volatility. It enhances the standard ATR with volume weighting, a dual-smoothing process, normalization, and volatility pivot detection.
Key Features:
Volume Weighting: An option (Volume weighted) allows for volume to be incorporated into the volatility calculation. This provides a measure of "volume-adjusted" volatility that is more responsive to significant market activity.
Dual Smoothing Process: For noise reduction, the indicator employs a two-stage smoothing process. It first calculates a smoothed True Range (TR) over a user-defined period (TR Length) before applying the final ATR moving average (ATR Length & ATR Smooth).
Normalization (Percentage Volatility): An optional 'Normalize' mode calculates the ATR as a percentage of the price. This allows for consistent volatility comparison across different assets and over long time periods.
Volatility Pivot Detection: The indicator includes a built-in pivot detector that identifies significant turning points (highs and lows) in the ATR line itself, signaling potential shifts in volatility.
Note on Confirmation (Lag): Pivot signals are confirmed using a lookback method. A pivot is only plotted after the Pivot Right Bars input has passed. This is essential for ensuring the signal is non-repainting but introduces an inherent lag.
Multi-Timeframe (MTF) Capability:
MTF ATR Line: The ATR line itself can be calculated on a different timeframe, with standard options to handle gaps (Fill Gaps) and prevent repainting (Wait for...).
Limitation: The Pivot detection (Calculate Pivots) is disabled if a Higher Timeframe (HTF) is selected.
Integrated Alerts: Includes alerts that trigger when a new volatility pivot (high or low) is detected in the ATR line.
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
Market Structure Pivots TrendThis indicator identifies and visualizes key market structure by plotting confirmed, non-repainting pivot points. It goes beyond simple markers by classifying the pivots, extending dynamic support/resistance lines, and providing a visual representation of the current trend state.
Key Features:
Non-Repainting Pivot Detection:
Uses a standard lookback method (left and right bars) to identify historical pivot points.
Note on Confirmation: Pivots are only confirmed after the Pivot Right Bars input has passed. This is essential for ensuring the signal is non-repainting, but it introduces an inherent lag.
Automatically classifies the sequence of pivots according to Dow Theory: Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL).
Pivot Classification Filter:
Price Tolerance Filter: A user-defined percentage tolerance filters out insignificant market noise. A pivot is only classified as 'Higher' or 'Lower' if its price exceeds the previous one by more than the set tolerance, leading to more robust signals.
Equal Pivot Detection: The tolerance also enables the detection of Equal Highs (EH) and Equal Lows (EL), highlighting consolidation zones.
Dynamic Support & Resistance Lines:
When enabled, the indicator extends a horizontal line from the most recent confirmed pivot high and low.
These lines update in real-time, providing clear S/R levels.
Lines automatically terminate if the price decisively breaks through them or if a new pivot of the same type is formed.
Trend State Visualization:
A built-in state machine analyzes the sequence of pivots and breaks to determine the current market trend (Uptrend, Downtrend, or Neutral).
Plots a dynamic step-line based on recent highs/lows to visually represent the current trend state.
Full Customization & Alerts:
Display Options: Choose between simple triangles or detailed text labels that show the pivot type, price, and the absolute or relative change from the previous pivot of the same type.
Visual Styling: Full control over colors for all six pivot types (HH, LH, EH, LL, HL, EL) and line styles.
Comprehensive Alerts: Set up alerts for every new pivot formation (e.g., HH, LL), for S/R line breaks, and for changes in the overall trend state (Up, Down, Neutral).
DISCLAIMER
For Informational/Educational Use Only: This indicator is provided for informational and educational purposes only. It does not constitute financial, investment, or trading advice, nor is it a recommendation to buy or sell any asset.
Use at Your Own Risk: All trading decisions you make based on the information or signals generated by this indicator are made solely at your own risk.
No Guarantee of Performance: Past performance is not an indicator of future results. The author makes no guarantee regarding the accuracy of the signals or future profitability.
No Liability: The author shall not be held liable for any financial losses or damages incurred directly or indirectly from the use of this indicator.
Signals Are Not Recommendations: The alerts and visual signals (e.g., crossovers) generated by this tool are not direct recommendations to buy or sell. They are technical observations for your own analysis and consideration.
LibPvotLibrary "LibPvot"
This is a library for advanced technical analysis, specializing
in two core areas: the detection of price-oscillator
divergences and the analysis of market structure. It provides
a back-end engine for signal detection and a toolkit for
indicator plotting.
Key Features:
1. **Complete Divergence Suite (Class A, B, C):** The engine detects
all three major types of divergences, providing a full spectrum of
analytical signals:
- **Regular (A):** For potential trend reversals.
- **Hidden (B):** For potential trend continuations.
- **Exaggerated (C):** For identifying weakness at double tops/bottoms.
2. **Advanced Signal Filtering:** The detection logic uses a
percentage-based price tolerance (`prcTol`). This feature
enables the practical detection of Exaggerated divergences
(which rarely occur at the exact same price) and creates a
"dead zone" to filter insignificant noise from triggering
Regular divergences.
3. **Pivot Synchronization:** A bar tolerance (`barTol`) is used
to reliably match price and oscillator pivots that do not
align perfectly on the same bar, preventing missed signals.
4. **Signal Invalidation Logic:** Features two built-in invalidation
rules:
- An optional `invalidate` parameter automatically terminates
active divergences if the price or the oscillator breaks
the level of the confirming pivot.
- The engine also discards 'half-pivots' (e.g., a price pivot)
if a corresponding oscillator pivot does not appear within
the `barTol` window.
5. **Stateful Plotting Helpers:** Provides helper functions
(`bullDivPos` and `bearDivPos`) that abstract away the
state management issues of visualizing persistent signals.
They generate gap-free, accurately anchored data series
ready to be used in `plotshape` functions, simplifying
indicator-side code.
6. **Rich Data Output:** The core detection functions (`bullDiv`, `bearDiv`)
return a comprehensive 9-field data tuple. This includes the
boolean flags for each divergence type and the precise
coordinates (price, oscillator value, bar index) of both the
starting and the confirming pivots.
7. **Market Structure & Trend Analysis:** Includes a
`marketStructure` function to automatically identify pivot
highs/lows, classify their relationship (HH, LH, LL, HL),
detect structure breaks, and determine the current trend
state (Up, Down, Neutral) based on pivot sequences.
---
**DISCLAIMER**
This library is provided "AS IS" and for informational and
educational purposes only. It does not constitute financial,
investment, or trading advice.
The author assumes no liability for any errors, inaccuracies,
or omissions in the code. Using this library to build
trading indicators or strategies is entirely at your own risk.
As a developer using this library, you are solely responsible
for the rigorous testing, validation, and performance of any
scripts you create based on these functions. The author shall
not be held liable for any financial losses incurred directly
or indirectly from the use of this library or any scripts
derived from it.
bullDiv(priceSrc, oscSrc, leftLen, rightLen, depth, barTol, prcTol, persist, invalidate)
Detects bullish divergences (Regular, Hidden, Exaggerated) based on pivot lows.
Parameters:
priceSrc (float) : series float Price series to check for pivots (e.g., `low`).
oscSrc (float) : series float Oscillator series to check for pivots.
leftLen (int) : series int Number of bars to the left of a pivot (default 5).
rightLen (int) : series int Number of bars to the right of a pivot (default 5).
depth (int) : series int Maximum number of stored pivot pairs to check against (default 2).
barTol (int) : series int Maximum bar distance allowed between the price pivot and the oscillator pivot (default 3).
prcTol (float) : series float The percentage tolerance for comparing pivot prices. Used to detect Exaggerated
divergences and filter out market noise (default 0.05%).
persist (bool) : series bool If `true` (default), the divergence flag stays active for the entire duration of the signal.
If `false`, it returns a single-bar pulse on detection.
invalidate (bool) : series bool If `true` (default), terminates an active divergence if price or oscillator break
below the confirming pivot low.
Returns: A tuple containing comprehensive data for a detected bullish divergence.
regBull series bool `true` if a Regular bullish divergence (Class A) is active.
hidBull series bool `true` if a Hidden bullish divergence (Class B) is active.
exgBull series bool `true` if an Exaggerated bullish divergence (Class C) is active.
initPivotPrc series float Price value of the initial (older) pivot low.
initPivotOsz series float Oscillator value of the initial pivot low.
initPivotBar series int Bar index of the initial pivot low.
lastPivotPrc series float Price value of the last (confirming) pivot low.
lastPivotOsz series float Oscillator value of the last pivot low.
lastPivotBar series int Bar index of the last pivot low.
bearDiv(priceSrc, oscSrc, leftLen, rightLen, depth, barTol, prcTol, persist, invalidate)
Detects bearish divergences (Regular, Hidden, Exaggerated) based on pivot highs.
Parameters:
priceSrc (float) : series float Price series to check for pivots (e.g., `high`).
oscSrc (float) : series float Oscillator series to check for pivots.
leftLen (int) : series int Number of bars to the left of a pivot (default 5).
rightLen (int) : series int Number of bars to the right of a pivot (default 5).
depth (int) : series int Maximum number of stored pivot pairs to check against (default 2).
barTol (int) : series int Maximum bar distance allowed between the price pivot and the oscillator pivot (default 3).
prcTol (float) : series float The percentage tolerance for comparing pivot prices. Used to detect Exaggerated
divergences and filter out market noise (default 0.05%).
persist (bool) : series bool If `true` (default), the divergence flag stays active for the entire duration of the signal.
If `false`, it returns a single-bar pulse on detection.
invalidate (bool) : series bool If `true` (default), terminates an active divergence if price or oscillator break
above the confirming pivot high.
Returns: A tuple containing comprehensive data for a detected bearish divergence.
regBear series bool `true` if a Regular bearish divergence (Class A) is active.
hidBear series bool `true` if a Hidden bearish divergence (Class B) is active.
exgBear series bool `true` if an Exaggerated bearish divergence (Class C) is active.
initPivotPrc series float Price value of the initial (older) pivot high.
initPivotOsz series float Oscillator value of the initial pivot high.
initPivotBar series int Bar index of the initial pivot high.
lastPivotPrc series float Price value of the last (confirming) pivot high.
lastPivotOsz series float Oscillator value of the last pivot high.
lastPivotBar series int Bar index of the last pivot high.
bullDivPos(regBull, hidBull, exgBull, rightLen, yPos)
Calculates the plottable data series for bullish divergences. It manages
the complex state of a persistent signal's plotting window to ensure
gap-free and accurately anchored visualization.
Parameters:
regBull (bool) : series bool The regular bullish divergence flag from `bullDiv`.
hidBull (bool) : series bool The hidden bullish divergence flag from `bullDiv`.
exgBull (bool) : series bool The exaggerated bullish divergence flag from `bullDiv`.
rightLen (int) : series int The same `rightLen` value used in `bullDiv` for correct timing.
yPos (float) : series float The series providing the base Y-coordinate for the shapes (e.g., `low`).
Returns: A tuple of three `series float` for plotting bullish divergences.
regBullPosY series float Contains the static anchor Y-value for Regular divergences where a shape should be plotted; `na` otherwise.
hidBullPosY series float Contains the static anchor Y-value for Hidden divergences where a shape should be plotted; `na` otherwise.
exgBullPosY series float Contains the static anchor Y-value for Exaggerated divergences where a shape should be plotted; `na` otherwise.
bearDivPos(regBear, hidBear, exgBear, rightLen, yPos)
Calculates the plottable data series for bearish divergences. It manages
the complex state of a persistent signal's plotting window to ensure
gap-free and accurately anchored visualization.
Parameters:
regBear (bool) : series bool The regular bearish divergence flag from `bearDiv`.
hidBear (bool) : series bool The hidden bearish divergence flag from `bearDiv`.
exgBear (bool) : series bool The exaggerated bearish divergence flag from `bearDiv`.
rightLen (int) : series int The same `rightLen` value used in `bearDiv` for correct timing.
yPos (float) : series float The series providing the base Y-coordinate for the shapes (e.g., `high`).
Returns: A tuple of three `series float` for plotting bearish divergences.
regBearPosY series float Contains the static anchor Y-value for Regular divergences where a shape should be plotted; `na` otherwise.
hidBearPosY series float Contains the static anchor Y-value for Hidden divergences where a shape should be plotted; `na` otherwise.
exgBearPosY series float Contains the static anchor Y-value for Exaggerated divergences where a shape should be plotted; `na` otherwise.
marketStructure(highSrc, lowSrc, leftLen, rightLen, srcTol)
Analyzes the market structure by identifying pivot points, classifying
their sequence (e.g., Higher Highs, Lower Lows), and determining the
prevailing trend state.
Parameters:
highSrc (float) : series float Price series for pivot high detection (e.g., `high`).
lowSrc (float) : series float Price series for pivot low detection (e.g., `low`).
leftLen (int) : series int Number of bars to the left of a pivot (default 5).
rightLen (int) : series int Number of bars to the right of a pivot (default 5).
srcTol (float) : series float Percentage tolerance to consider two pivots as 'equal' (default 0.05%).
Returns: A tuple containing detailed market structure information.
pivType series PivType The type of the most recently formed pivot (e.g., `hh`, `ll`).
lastPivHi series float The price level of the last confirmed pivot high.
lastPivLo series float The price level of the last confirmed pivot low.
lastPiv series float The price level of the last confirmed pivot (either high or low).
pivHiBroken series bool `true` if the price has broken above the last pivot high.
pivLoBroken series bool `true` if the price has broken below the last pivot low.
trendState series TrendState The current trend state (`up`, `down`, or `neutral`).
Brahmastra with SMC by PoojaSummary
This indicator provides a structured trend-and-momentum workflow that issues Partial and Confirmed trade signals using a combination of trend filters, momentum confirmation, and structure breaks.
It helps traders identify higher-probability trade locations through multi-timeframe confirmation and automatic alert payloads — while keeping the underlying signal logic private (invite-only).
Core Components (high level overview — no source code revealed)
• Trend Filters: EMA (configurable length), VWAP, and Supertrend are used to define overall trend direction and to gate signals.
• Momentum: RSI (configurable length and upper/lower thresholds) helps confirm momentum and optional divergence blocking.
• Market Structure: BOS / CHoCH (Break of Structure / Change of Character) logic with MTF pivots to detect structure-based opportunities.
• Signal Types: Partial signals appear early as potential setups; Confirmed signals meet stricter multi-factor conditions (EMA/VWAP/Supertrend + RSI + optional MTF).
• Repaint Safety: Non-repaint mode available (triggers only after candle close).
• Alerts: Built-in alert messages with optional JSON webhook format.
• Customization: Flexible inputs for sessions, pivots, labels, colors, lookbacks, and MTF parameters to adapt across multiple timeframes.
How to Interpret Signals
• Treat Partial signals as setups to monitor — not instant entries. Wait for confirmation or confluence from price behavior.
• Treat Confirmed signals as higher-probability opportunities that satisfy trend and momentum alignment.
• Enable MTF confirmation selectively on smaller timeframes (e.g., 5m using 15m/1H confirmation).
• Use Non-repaint mode (trigger only after candle close) for safe alert generation.
Limitations & Risk Notice
This indicator does not guarantee profits or accuracy. It is a technical and educational tool meant to assist analysis.
All trading decisions, entries, and exits are the sole responsibility of the user. Always perform backtesting and paper trading before live use.
This is not financial advice.
Version Note & Support
This is a closed invite-only script. The indicator includes configuration options for labels, alerts, and MTF pivots.
For approved users seeking modifications or usage details, please contact the author (see Author’s Instructions section).
Trend Pivot Retracements▶ OVERVIEW
Trend Pivot Retracements identifies market trend direction using a Donchian-style channel and dynamically highlights retracement zones during trending conditions. It calculates the percentage pullbacks from recent highs and lows, plots labeled zones with varying intensity, and visually connects key retracement pivots. The indicator also emphasizes price proximity to trend boundaries by dynamically adjusting the thickness of plotted trend bands.
▶ TREND DETECTION & BAND STRUCTURE
The indicator determines the current trend by checking for new 50-bar extremes:
Uptrend: If a new highest high is made, the trend is considered bullish.
Downtrend: If a new lowest low is made, the trend is considered bearish.
Uptrend Band: Plots the 50-bar lowest low as a trailing support level.
Downtrend Band: Plots the 50-bar highest high as a trailing resistance level.
Thickness Variation: The thickness of the band increases the further price moves from it, indicating overextension.
▶ RETRACEMENT LABELING SYSTEM
During a trend, the indicator monitors pivot points in the opposite direction to measure retracements:
Bullish Retracement:
Triggered when a pivot low forms during an uptrend.
Measures % pullback from the most recent swing high (searched up to 20 bars back).
Plots a bold horizontal line at the low and a dashed diagonal from the previous swing high.
Adds a “-%” label above the low; intensity is based on recent 50 pullbacks.
Bearish Retracement:
Triggered when a pivot high forms during a downtrend.
Measures % pullback from the previous swing low (up to 20 bars back).
Plots a bold horizontal line at the high and a dashed diagonal from the prior swing low.
Adds a “%” label below the high with gradient color based on the past 50 extremes.
▶ PIVOT CONNECTION LINES
Each retracement includes a visual connector:
A diagonal dashed line linking the swing extreme (20 bars back) to the retracement point.
This line visually traces the path of price retreat within the trend.
Helps traders understand where the retracement originated and how steep it was.
▶ TREND SWITCH SIGNALS
When trend direction changes:
A diamond marker is plotted on the new pivot confirming the trend shift.
Green diamonds signal new bullish trends at fresh lows.
Magenta diamonds signal new bearish trends at fresh highs.
▶ COLOR INTENSITY & CONTEXTUAL AWARENESS
To help interpret the magnitude of retracements:
The % labels are color-coded using a gradient scale that references the max of the last 50 pullbacks.
Stronger pullbacks result in deeper color intensity, signaling more significant corrections.
Trend bands also use standard deviation normalization to adjust line thickness based on how far price has moved from the band.
This creates a visual cue for potential exhaustion or volatility extremes.
▶ USAGE
Trend Pivot Retracements is a powerful tool for traders who want to:
Identify trend direction and contextual pullbacks within those trends.
Spot key retracement points that may serve as entry opportunities or reversal signals.
Use visual retracement angles to understand market pressure and trend maturity.
Read dynamic band thickness as an alert for price stretch, potential mean reversion, or breakout setups.
▶ CONCLUSION
Trend Pivot Retracements gives traders a clean, visually expressive way to monitor trending markets, while capturing and labeling meaningful retracements. With adaptive color intensity, diagonal connectors, and smart trend switching, it enhances situational awareness and provides immediate clarity on trend health and pullback strength.
Strong PivotsThis finds pivots based on your inputs (number of candles back and forward that are above or below the range of the potential pivot points) and then optionally changes the color to help you visually identify the pivot. You can also specify pivots as strong pivots if they reverse in 1 time segment beyond a certain percentage (wick % of full candle range).
For example, if the pivot is at a high point but has a green body candle and a wick > 35% of the candle, it will change the body color to red to help visually understand that the candle can be considered a strong part of the downtrend, regardless of it closing green. This will help your mind interpret the top pivot candle as part of the potential trend reversal for the following candles and could even be used as part of your strategy ruleset.
Tradisfy | TSFY | ORB Pro**TSFY | ORB Pro**
Introduction
TSFY | ORB Pro combines the classic Opening Range Breakout (ORB) logic with professional market structure tools such as EMAs, the Daily Open, ADR, and Pivot Points.
The goal: A clean and logically structured intraday visualization of volatility, trend, and key price zones — without visual clutter.
Timezone: Europe/Berlin
---
Core Features
Multi-Session ORB: Separate Opening Ranges for London, Gold, and New York sessions with ORH, ORL, and Mid levels, optionally extendable to the end of the trading day.
EMAs (Intraday & Daily): Adaptive trend filters from 4 to 800 periods plus Daily 13/50/200 EMAs for higher-timeframe structure context.
Classic Pivots: Automatic calculation of daily PP, R, S, and Mid levels with fully customizable colors, styles, and extensions.
Daily Open: Marks the daily opening price as a bias reference point.
ADR (Average Daily Range): Calculates the average true range of the last X days, optionally anchored to the Daily Open with an optional 50% midpoint.
---
Interpretation
Break above ORH → bullish momentum; break below ORL → bearish weakness.
Combine ORB zones with EMAs, Pivots, or ADR for higher confluence.
Daily Open provides intraday bias, ADR defines realistic target zones.
Reactions around R/S levels or OR Mid often indicate short-term turning points.
---
Usage
Use the ORB zone as the basis for breakout, retest, or mean-reversion setups.
Plan realistic take-profit zones using ADR and Pivot levels.
Daily EMAs define the overall market bias.
All components can be toggled on or off individually.
---
Notes
Optimized for intraday ORB trading.
No alerts integrated (yet).
All colors, line widths, and transparency levels are fully customizable.
Non-repainting — lines are extended forward, not redrawn.
Performance-friendly despite multiple visual components (max. 500 lines/labels).
---
TSFY | ORB Pro is a complete framework for modern intraday traders who want to combine session logic, trend filters, and market structure into one clean and efficient tool.
Pivot Regime Anchored VWAP [CHE] Pivot Regime Anchored VWAP — Detects body-based pivot regimes to classify swing highs and lows, anchoring volume-weighted average price lines directly at higher highs and lower lows for adaptive reference levels.
Summary
This indicator identifies shifts between top and bottom regimes through breakouts in candle body highs and lows, labeling swing points as higher highs, lower highs, lower lows, or higher lows. It then draws anchored volume-weighted average price lines starting from the most recent higher high and lower low, providing dynamic support and resistance that evolve with volume flow. These anchored lines differ from standard volume-weighted averages by resetting only at confirmed swing extremes, reducing noise in ranging markets while highlighting momentum shifts in trends.
Motivation: Why this design?
Traders often struggle with static reference lines that fail to adapt to changing market structures, leading to false breaks in volatile conditions or missed continuations in trends. By anchoring volume-weighted average price calculations to body pivot regimes—specifically at higher highs for resistance and lower lows for support—this design creates reference levels tied directly to price structure extremes. This approach addresses the problem of generic moving averages lagging behind swing confirmations, offering a more context-aware tool for intraday or swing trading.
What’s different vs. standard approaches?
- Baseline reference: Traditional volume-weighted average price indicators compute a running total from session start or fixed periods, often ignoring price structure.
- Architecture differences:
- Regime detection via body breakout logic switches between high and low focus dynamically.
- Anchoring limited to confirmed higher highs and lower lows, with historical recalculation for accurate line drawing.
- Polyline rendering rebuilds only on the last bar to manage performance.
- Practical effect: Charts show fewer, more meaningful lines that start at swing points, making it easier to spot confluences with structure breaks rather than cluttered overlays from continuous calculations.
How it works (technical)
The indicator first calculates the maximum and minimum of each candle's open and close to define body highs and lows. It then scans a lookback window for the highest body high and lowest body low. A top regime triggers when the body high from the lookback period exceeds the window's highest, and a bottom regime when the body low falls below the window's lowest. These regime shifts confirm pivots only when crossing from one state to the other.
For top pivots, it compares the new body high against the previous swing high: if greater, it marks a higher high and anchors a new line; otherwise, a lower high. The same logic applies inversely for bottom pivots. Anchored lines use cumulative price-volume products and volumes from the anchor bar onward, subtracting prior cumulatives to isolate the segment. On pivot confirmation, it loops backward from the current bar to the anchor, computing and storing points for the line. New points append as bars advance, ensuring the line reflects ongoing volume weighting.
Initialization uses persistent variables to track the last swing values and anchor bars, starting with neutral states. Data flows from regime detection to pivot classification, then to anchoring and point accumulation, with lines rendered globally on the final bar.
Parameter Guide
Pivot Length — Controls the lookback window for detecting body breakouts, influencing pivot frequency and sensitivity to recent action. Shorter values catch more pivots in choppy conditions; longer smooths for major swings. Default: 30 (bars). Trade-offs/Tips: Min 1; for intraday, try 10–20 to reduce lag but watch for noise; on daily, 50+ for stability.
Show Pivot Labels — Toggles display of text markers at swing points, aiding quick identification of higher highs, lower highs, lower lows, or higher lows. Default: true. Trade-offs/Tips: Disable in multi-indicator setups to declutter; useful for backtesting structure.
HH Color — Sets the line and label color for higher high anchored lines, distinguishing resistance levels. Default: Red (solid). Trade-offs/Tips: Choose contrasting hues for dark/light themes; pair with opacity for fills if added later.
LL Color — Sets the line and label color for lower low anchored lines, distinguishing support levels. Default: Lime (solid). Trade-offs/Tips: As above; green shades work well for bullish contexts without overpowering candles.
Reading & Interpretation
Higher high labels and red lines indicate potential resistance zones where volume weighting begins at a new swing top, suggesting sellers may defend prior highs. Lower low labels and lime lines mark support from a fresh swing bottom, with the line's slope reflecting buyer commitment via volume. Lower highs or higher lows appear as labels without new anchors, signaling possible range-bound action. Line proximity to price shows overextension; crosses may hint at regime shifts, but confirm with volume spikes.
Practical Workflows & Combinations
- Trend following: Enter longs above a rising lower low anchored line after higher low confirmation; filter with rising higher highs for uptrends. Use line breaks as trailing stops.
- Exits/Stops: In downtrends, exit shorts below a higher high line; set aggressive stops above it for scalps, conservative below for swings. Pair with momentum oscillators for divergence.
- Multi-asset/Multi-TF: Defaults suit forex/stocks on 1H–4H; on crypto 15M, shorten length to 15. Scale colors for dark themes; combine with higher timeframe anchors for confluence.
Behavior, Constraints & Performance
Closed-bar logic ensures pivots confirm after the lookback period, with no repainting on historical bars—live bars may adjust until regime shift. No higher timeframe calls, so minimal repaint risk beyond standard delays. Resources include a 2000-bar history limit, label/polyline caps at 200/50, and loops for historical point filling (up to current bar count from anchor, typically under 500 iterations). Known limits: In extreme gaps or low-volume periods, anchors may skew; lines absent until first pivots.
Sensible Defaults & Quick Tuning
Start with the 30-bar length for balanced pivot detection across most assets. For too-frequent pivots in ranges, increase to 50 for fewer signals. If lines lag in trends, reduce to 20 and enable labels for visual cues. In low-volatility assets, widen color contrasts; test on 100-bar history to verify stability.
What this indicator is—and isn’t
This is a structure-aware visualization layer for anchoring volume-weighted references at swing extremes, enhancing manual analysis of regimes and levels. It is not a standalone signal generator or predictive model—always integrate with broader context like order flow or news. Use alongside risk management and position sizing, not as isolated buy/sell triggers.
Many thanks to LuxAlgo for the original script "McDonald's Pattern ". The implementation for body pivots instead of wicks uses a = max(open, close), b = min(open, close) and then highest(a, length) / lowest(b, length). This filters noise from the wicks and detects breakouts over/under bodies. Unusual and targeted, super innovative.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
PRO Scalper(EN)
## What it is
**PRO Scalper** is an intraday price–action and liquidity map that helps you see where the market is likely to move **now**, not just where it has been.
It combines five building blocks that professional scalpers often watch together:
1. **Session Volume-Weighted Average Price (VWAP)** — the intraday “fair value” anchor.
2. **Opening Range** — the first minutes of the session that set the day’s balance.
3. **Trend filter** — higher-timeframe bias using **Exponential Moving Averages (EMA)** and optional **Average Directional Index (ADX)** strength.
4. **Two independent Supply/Demand zone engines** — zones are drawn from confirmed swing pivots, with midlines and **touch counters**.
5. **Order-flow style visuals**:
* **Delta bubbles** (green/red circles) show where buying or selling pressure was unusually strong, using a safe **delta proxy** (no external feeds).
* **Liquidity densities** (subtle rectangular bands) highlight clusters of large activity that often act as magnets or barriers and disappear when “eaten” by strong moves.
This mix gives you a **complete intraday picture**: the mean (VWAP), the day’s initial balance (Opening Range), the higher-timeframe push (trend filter), the nearby fuel or brakes (zones), and the live pressure points (bubbles and densities).
---
## Why these components
* **VWAP** tracks where the bulk of traded value sits. Price tends to rotate around it or accelerate away from it — a perfect compass for scalps.
* **Opening Range** frames the early auction. Many intraday breaks, fades and retests start at its boundaries.
* **EMA bias + ADX strength** separates trending conditions from chop, so you can keep only the zones that agree with the bigger push.
* **Pivot-based zones (two pairs at once)** are simple, objective and fast. Midlines help with confirmations; touch counters quantify how many times the zone was tested.
* **Bubbles and densities** add the “effort” layer: where the push appeared and where liquidity is concentrated. You see **where** a move is likely to continue or fail.
Together they reduce ambiguity: **context + level + effort** — all on one screen.
---
## How it works (plain language)
* **VWAP** resets each day and is calculated as the cumulative sum of typical price multiplied by volume divided by total volume.
* **Opening Range** is either automatic (a multiple of your chart timeframe) or a manual number of minutes. While it is forming, the highest high and lowest low are captured and plotted as the range.
* **Trend filter**
* **EMA Fast** and **EMA Slow** define directional bias.
* **ADX (optional)** adds “trend strength”: only when the Average Directional Index is above the chosen threshold do we treat the move as strong. You can source this from a higher timeframe.
* **Zones**
* There are **two independent pairs** of pivots at the same time (for example 10-left 10-right and 5-left 5-right).
* Each detected pivot creates a **Supply** (from a swing high) or **Demand** (from a swing low) box. Box depth = **zone depth × Average True Range** for adaptive sizing; the boxes **extend forward**.
* Midline (optional dashed line inside the box) is the “balance” of the zone.
* **“Only in trend”** mode can hide boxes that go against the higher-timeframe bias.
* The **touch counter** increases when price revisits the box. Labels show the pair name and the number of touches.
* **Bubbles**
* A safe **delta proxy** measures bar pressure (for example, range-weighted close vs open).
* A **quantile filter** shows only unusually large pressure: choose lookback and percentile, and the script draws a circle sized by intensity (green = bullish pressure, red = bearish).
* **Densities**
* The script marks heavy activity clusters as **subtle bands** around price (depth = fraction of Average True Range).
* If price **breaks** a density with volume above its moving average, the band **disappears** (“eaten”), which often precedes continuation.
---
## How to use — practical playbooks
> Recommended chart: crypto or index futures, one to five minutes. Use **one hour** or **fifteen minutes** for the higher-timeframe bias.
### 1) Trend pullback scalp (continuation)
1. Enable **Only in trend** zones.
2. In an uptrend: wait for a pullback into a **Demand** zone that overlaps with VWAP or sits just below the Opening Range midpoint.
3. Look for **green bubbles** near the zone’s bottom or a fresh **density** under price.
4. Enter on a candle closing **back above the zone midline**.
5. Stop-loss: below the bottom of the zone or a small multiple of Average True Range.
6. Targets: previous swing high, Opening Range high, fixed risk multiples, or VWAP.
Mirror the logic for downtrends using Supply zones, red bubbles and densities above price.
### 2) Reversion with liquidity sweep (fade)
1. Bias neutral or countertrend allowed.
2. Price **wicks through** a zone boundary (or an Opening Range line) and **closes back inside** the zone.
3. The bubble color often flips (absorption).
4. Enter toward the **inside** of the zone; stop beyond the sweep wick; first target = zone midline, second = opposite side of the zone or VWAP.
### 3) Opening Range break and retest
1. Wait for the Opening Range to complete.
2. A break with a large bubble suggests intent.
3. Look for a **retest** into a nearby zone aligned with VWAP.
4. Trade continuation toward the next zone or the session extremes.
### 4) Density “eaten” continuation
1. When a density band **disappears** on high volume, it often means the resting liquidity was consumed.
2. Trade in the direction of the break, toward the nearest opposing zone.
---
## Settings — quick guide
**Core**
* *ATR Length* — used for zone and density depths.
* *Show VWAP / Show Opening Range*.
* *Opening Range*: Auto (multiple of timeframe minutes) or Manual minutes.
**Trend Filter**
* *Mode*: Off, EMA only, or EMA with ADX strength.
* *Use higher timeframe* and its value.
* *EMA Fast / EMA Slow*, *ADX Length*, *ADX threshold*.
* *Plot EMA filter* to display the moving averages.
**Zones (two pairs)**
* *Pivot A Left / Right* and *Pivot B Left / Right*.
* *Zone depth × ATR*, *Extend bars*.
* *Show zone midline*, *Only in trend zones*.
* Labels automatically show the touch counters.
**Bubbles**
* *Show Bubbles*.
* *Quantile lookback* and *Quantile percent* (higher percent = stricter filter, fewer bubbles).
**Densities**
* *Metric*: absolute delta proxy or raw volume.
* *Quantile lookback / percent*.
* *Depth × ATR*, *Extend bars*, *Merge distance* (in ATR),
* *Break condition*: volume moving average length and multiplier,
* *Midline for densities* (optional dashed line).
---
## Tips and risk management
* This script **does not use external order-flow feeds**. Delta is a **proxy** suitable for TradingView; tune quantiles per symbol and timeframe.
* Do not trade every bubble. Combine **context (trend + VWAP + Opening Range)** with **level (zone)** and **effort (bubble/density)**.
* Set stop-losses beyond the zone or at a fraction of Average True Range. Predefine risk per trade.
* Backtest your rules with a strategy script before using real funds.
* Markets differ. Parameters that work on Bitcoin may not transfer to low-liquidity altcoins or stocks.
* Nothing here is financial advice. Scalping is high-risk; slippage and over-trading can quickly damage your account.
---
## What makes PRO Scalper unique
* Two **independent** zone engines run in parallel, so you can see both **larger structure** and **fine intraday levels** at the same time.
* Clean **“only in trend” rendering** — zones and midlines against the bias can be hidden, reducing clutter and hesitation.
* **Touch counters** convert “feel” into numbers.
* **Self-contained order-flow visuals** (bubbles and densities) that require no extra data sources.
* Careful defaults: subtle colors for densities, clearer zones, and responsive auto Opening Range.
---
(RU)
## Что это такое
**PRO Scalper** — это индикатор для внутридневной торговли, который показывает **контекст и ликвидность прямо сейчас**.
Он объединяет пять модулей, которыми профессиональные скальперы пользуются вместе:
1. **VWAP** — средневзвешенная по объему цена за сессию, «справедливая стоимость» дня.
2. **Opening Range** — первая часть сессии, задающая баланс дня.
3. **Фильтр тренда** — направление старшего таймфрейма по **экспоненциальным средним** и при желании по силе тренда **Average Directional Index**.
4. **Две независимые системы зон спроса/предложения** — зоны строятся от подтвержденных экстремумов (пивотов), имеют **среднюю линию** и **счетчик касаний**.
5. **Визуализация «ордер-флоу»**:
* **Пузыри дельты** (зеленые/красные круги) — места повышенного покупательного/продажного давления, рассчитанные через безопасный **прокси-дельты**.
* **Плотности ликвидности** (ненавязчивые прямоугольные ленты) — скопления объема, которые нередко притягивают цену или удерживают ее и исчезают, когда «разъедаются» сильным движением.
Итог — **полная картинка момента**: среднее (VWAP), баланс дня (Opening Range), старшая сила (фильтр тренда), ближайшие уровни топлива/тормозов (зоны), текущие точки усилия (пузыри и плотности).
---
## Почему именно эти элементы
* **VWAP** показывает, где сосредоточена стоимость; цена либо вращается вокруг него, либо быстро уходит — идеальный ориентир скальпера.
* **Opening Range** фиксирует ранний аукцион — от его границ часто начинаются пробои, возвраты и ретесты.
* **EMA + ADX** отделяют тренд от «пилы», позволяя оставлять на графике только зоны по направлению старшего таймфрейма.
* **Зоны от пивотов** просты, объективны и быстры; средняя линия помогает подтверждать разворот, счетчик касаний переводит субъективность в цифры.
* **Пузыри и плотности** добавляют слой «усилия»: где именно возник толчок и где сконцентрирована ликвидность.
Комбинация **контекста + уровня + усилия** уменьшает двусмысленность и ускоряет принятие решения.
---
## Как это работает (простыми словами)
* **VWAP** каждый день стартует заново: сумма «типичной цены × объем» делится на суммарный объем.
* **Opening Range** — автоматический (кратный минутам вашего таймфрейма) или вручную заданный период; пока он формируется, фиксируются максимум и минимум.
* **Фильтр тренда**
* Две экспоненциальные средние задают направление.
* **ADX** (по желанию) добавляет «силу». Источник можно взять со старшего таймфрейма.
* **Зоны**
* Одновременно работает **две пары** пивотов (например 10-лево 10-право и 5-лево 5-право).
* От пивота строится зона **предложения** (от максимума) или **спроса** (от минимума). Глубина зоны = **коэффициент × Average True Range**; зона тянется вперед.
* Внутри рисуется **средняя линия** (по желанию).
* Режим **«только по тренду»** скрывает зоны против старшего направления.
* **Счетчик касаний** увеличивается, когда цена снова входит в зону; подпись показывает пару и количество касаний.
* **Пузыри**
* Используется безопасный **прокси-дельты** — измерение «напряжения» внутри свечи.
* Через **квантильный фильтр** выводятся только необычно сильные места: настраиваются окно и процент квантиля; размер кружка — сила, цвет: зеленый покупатели, красный продавцы.
* **Плотности**
* Крупные активности отмечаются **ненавязчивыми прямоугольниками** (глубина — доля Average True Range).
* Если плотность **пробивается** объемом выше среднего, она **исчезает** — часто это предвещает продолжение.
---
## Как пользоваться — практические схемы
> Рекомендация: крипто или фьючерсы, таймфрейм 1–5 минут. Для старшего фильтра удобно взять **1 час** или **15 минут**.
### 1) Скальп на откат по тренду
1. Включите **«только по тренду»**.
2. В восходящем тренде дождитесь отката в **зону спроса**, желательно рядом с **VWAP** или серединой **Opening Range**.
3. Подтверждение — **зеленые пузыри** у нижней границы зоны или свежая **плотность** под ценой.
4. Вход после закрытия свечи **выше средней линии** зоны.
5. Стоп-лосс: за нижнюю границу зоны или небольшой множитель Average True Range.
6. Цели: предыдущий максимум, верх Opening Range, фиксированные R-множители, либо VWAP.
Для нисходящего тренда зеркально: зоны предложения, красные пузыри и плотности над ценой.
### 2) Контрдвижение с «выбиванием ликвидности»
1. Нейтральный или контртрендовый режим.
2. Цена **выносит хвостом** границу зоны (или линию Opening Range) и **закрывается обратно внутри**.
3. Цвет пузыря часто меняется (поглощение).
4. Вход внутрь зоны; стоп — за хвост выбивания; цели: средняя линия, противоположная граница зоны или VWAP.
### 3) Пробой Opening Range + ретест
1. Дождитесь завершения диапазона.
2. Сильный пробой с крупным пузырем — признак намерения.
3. Ищите **ретест** в зоне по тренду рядом с линией диапазона и VWAP.
4. Торгуйте продолжение к следующей зоне.
### 4) Продолжение после «съеденной» плотности
1. Когда прямоугольник плотности **исчезает** на повышенном объеме, это значит, что ликвидность поглощена.
2. Торгуйте в сторону пробоя к ближайшей противоположной зоне.
---
## Настройки — краткая шпаргалка
**Core**
— Длина Average True Range (для размеров зон и плотностей).
— Включение VWAP и Opening Range.
— Длина Opening Range: автоматическая (кратная минутам ТФ) или ручная.
**Trend Filter**
— Режим: выкл., только средние, либо средние + ADX.
— Источник со старшего таймфрейма и его значение.
— Длины средних, длина ADX и порог силы.
— Показать/скрыть линий средних.
**Zones (две пары одновременно)**
— Пара A: лев/прав; Пара B: лев/прав.
— Глубина зоны × Average True Range, продление по барам.
— Средняя линия, режим **«только по тренду»**.
— Подписи со счетчиком касаний.
**Bubbles**
— Вкл./выкл., окно поиска и процент квантиля (чем выше процент — тем реже пузыри).
**Densities**
— Метрика: абсолютная прокси-дельты или чистый объем.
— Окно/квантиль, глубина × Average True Range, продление,
— Порог объединения (в Average True Range),
— Условие «разъедания» по объему,
— Средняя линия плотности (по желанию).
---
## Советы и риски
* Индикатор **не использует внешние потоки ордер-флоу**. Дельта — **прокси**, подходящая для TradingView; подбирайте квантили под инструмент и таймфрейм.
* Не торгуйте каждый пузырь. Склейте **контекст (тренд + VWAP + Opening Range)** с **уровнем (зона)** и **усилием (пузырь/плотность)**.
* Стоп-лосс — за границей зоны или по Average True Range. Риск на сделку задавайте заранее.
* Перед реальными деньгами протестируйте правила в стратегии.
* Разные рынки ведут себя по-разному; настройки из Биткоина могут не подойти малоликвидным альткоинам или акциям.
* Это не инвестиционная рекомендация. Скальпинг — высокий риск; проскальзывание и переизбыток сделок быстро наносят ущерб капиталу.
---
## Чем уникален PRO Scalper
* Две **одновременные** системы зон показывают и **крупную структуру**, и **точные локальные уровни**.
* Режим **«только по тренду»** чистит экран от лишних уровней и ускоряет решение.
* **Счетчики касаний** дают количественную опору.
* **Самодостаточные визуализации усилия** (пузыри и плотности) — без сторонних источников данных.
* Аккуратная цветовая схема: плотности — мягко, зоны — ясно; Opening Range — адаптивный.
Пусть он станет вашей «картой местности» для быстрых и дисциплинированных решений внутри дня.
Cross3xCross3x – Early Rejection & Crossover Detection System
Cross3x is a powerful yet intuitive trading tool designed for traders who want early signals with structured risk management.
Built around a dual EMA crossover (18 & 33), it generates entry signals on every crossover and crossunder — no trend filter interference. The long-term SMA 99 provides context but doesn’t block valid setups.
Key Features:
Unfiltered Entries: Triangles appear on every EMA 18/33 crossover, ideal for catching reversals early.
Smart SL/TP/BE:
SL based on recent extremes (configurable lookback).
TP using adjustable Risk/Reward ratio (default 2:1).
BE level set at a % between entry and TP (e.g., 10% = just above cost).
Early Rejection Signals: Diamonds highlight potential reversals when price tests a moving average with a long wick during a countertrend candle:
🟩 Green diamond below bar → Potential Long Setup
🟥 Red diamond above bar → Potential Short Setup
Confirmation Points: Circles appear when price retraces properly after a crossover, marking optimal entry zones.
Real-Time Dashboard: Dynamic table shows current signal, SL, and TP levels.
Customizable Alerts: Enable alerts per signal type for timely execution.
Why Traders Love Cross3x:
It combines simplicity with intelligence. Whether you're scalping, swing trading, or building an algo strategy, Cross3x gives you clarity, timing, and discipline in one compact package.
Use the diamonds to anticipate moves, the triangles to confirm momentum, and the confirmation circles to refine entries — all backed by precise risk controls.
Perfect For:
Breakout traders
Pullback hunters
Price action + MA confluence strategies
Deploy Cross3x to turn basic crossovers into a complete edge.
First week of the yearA very simple indicator that marks a channel on the candlestick for the first week of the year.
The channel can serve as an entry/exit point with a medium and long term focus.
Note: This indicator should be observed exclusively on the weekly timeframe.
BOS PullbackBOS Pullback
Trend-following indicator that detects pullbacks for entries in a continuation phase.
A green diamond above a bearish candle signals a buy opportunity in an uptrend.
A red diamond below a bullish candle signals a sell opportunity in a downtrend.
Based on a configurable moving average (EMA, SMA, WMA). Ideal for Break of Structure (BOS) or pullback trading strategies.






















