Herd Flow Oscillator — Volume Distribution Herd Flow Oscillator — Scientific Volume Distribution (herd-accurate rev)
A composite order-flow oscillator designed to surface true herding behavior — not just random bursts of buying or selling.
It’s built to detect when market participants start acting together, showing persistent, one-sided activity that statistically breaks away from normal market randomness.
Unlike traditional volume or momentum indicators, this tool doesn’t just look for “who’s buying” or “who’s selling.”
It tries to quantify crowd behavior by blending multiple statistical tests that describe how collective sentiment and coordination unfold in price and volume dynamics.
What it shows
The Herd Flow Oscillator works as a multi-layer detector of crowd-driven flow in the market. It examines how signed volume (buy vs. sell pressure) evolves, how persistent it is, and whether those actions are unusually coordinated compared to random expectations.
HerdFlow Composite (z) — the main signal line, showing how statistically extreme the current herding pressure is.
When this crosses above or below your set thresholds, it suggests a high probability of collective buying or selling.
You can optionally reveal component panels for deeper insight into why herding is detected:
DVI (Directional Volume Imbalance): Measures the ratio of bullish vs. bearish volume.
If it’s strongly positive, more volume is hitting the ask (buying); if negative, more is hitting the bid (selling).
LSV-style Herd Index : Inspired by academic finance measures of “herding.”
It compares how often volume is buying vs. selling versus what would happen by random chance.
If the result is significantly above chance, it means traders are collectively biased in one direction.
O rder-Flow Persistence (ρ 1..K): Averages autocorrelation of signed volume over several lags.
In simpler terms: checks if buying/selling pressure tends to continue in the same direction across bars.
Positive persistence = ongoing coordination, not just isolated trades.
Runs-Test Herding (−Z) : Statistical test that checks how often trade direction flips.
When there are fewer direction changes than expected, it means trades are clustering — a hallmark of herd behavior.
Skew (signed volume): Measures whether signed volume is heavily tilted to one side.
A positive skew means more aggressive buying bursts; a negative skew means more intense selling bursts.
CVD Slope (z): Looks at the slope of the Cumulative Volume Delta — essentially how quickly buy/sell pressure is accelerating.
It’s a short-term flow acceleration measure.
Shapes & background
▲ “BH” at the bottom = Bull Herding; ▼ “BH-” at the top = Bear Herding.
These markers appear when all conditions align to confirm a herding regime.
Persistence and clustering both confirm coordinated downside flow.
Core Windows
Primary Window (N) — the main sample length for herding calculations.
It’s like the "memory span" for detecting coordinated behavior. A longer N means smoother, more reliable signals.
Short Window (Nshort) — used for short-term measurements like imbalance and slope.
Smaller values react faster but can be noisy; larger values are steadier but slower.
Long Window (Nlong) — used for z-score normalization (statistical scaling).
This helps the indicator understand what’s “normal” behavior over a longer horizon, so it can spot when things deviate too far.
Autocorr lags (acLags) — how many steps to check when measuring persistence.
Higher values (e.g., 3–5) look further back to see if trends are truly continuing.
Calculation Options
Price Proxy for Tick Rule — defines how to decide if a trade is “buy” or “sell.”
hlc3 (average of high, low, and close) works as a neutral, smooth price proxy.
Use ATR for scaling — keeps signals comparable across assets and timeframes by dividing by volatility (ATR).
Prevents high-volatility periods from dominating the signal.
Median Filter (bars) — smooths out erratic data spikes without heavily lagging the response.
Odd values like 3 or 5 work best.
Signal Thresholds
Composite z-threshold — determines how extreme behavior must be before it counts as “herding.”
Higher values = fewer, more confident signals.
Imbalance threshold — the minimum directional volume imbalance to trigger interest.
Plotting
Show component panels — useful for analysts and developers who want to inspect the math behind signals.
Fill strong herding zones — purely visual aid to highlight key periods of coordinated trading.
How to use it (practical tips)
Understand the purpose: This is not just a “buy/sell” tool.
It’s a behavioral detector that identifies when traders or algorithms start acting in the same direction.
Timeframe flexibility:
15m–1h: reveals short-term crowd shifts.
4h–1D: better for swing-trade context and institutional positioning.
Combine with structure or trend:
When HerdFlow confirms a bullish regime during a breakout or retest, it adds confidence.
Conversely, a bearish cluster at resistance may hint at a crowd-driven rejection.
Threshold tuning:
To make it more selective, increase zThr and imbThr.
To make it more sensitive, lower those thresholds but expand your primary window N for smoother results.
Cross-market consistency:
Keep “Use ATR for scaling” enabled to maintain consistency across different instruments or timeframes.
Denoising:
A small median filter (3–5 bars) removes flicker from volume spikes but still preserves the essential crowd patterns.
Reading the components (why signals fire)
Each sub-metric describes a unique “dimension” of crowd behavior:
DVI: how imbalanced buying vs selling is.
Herd Index: how biased that imbalance is compared to random expectation.
Persistence (ρ): how continuous those flows are.
Runs-Test: how clumped together trades are — clustering means the crowd’s acting in sync.
Skew: how lopsided the volume distribution is — sudden surges of one-sided aggression.
CVD Slope: how strongly accelerating the current directional flow is.
When all of these line up, you’re seeing evidence that market participants are collectively moving in the same direction — i.e., true herding.
Ciclos
Quarterly Theory True Opens by Mr. ConsistentQuarterly Theory True Opens (MTF)
This indicator plots key institutional price levels known as "True Opens" based on the principles of Quarterly Theory, as taught by Trader Daye. It is designed to identify the start of Q2 manipulation cycles across yearly, monthly, weekly, daily, and intra-day session timeframes.
The levels are drawn as clean horizontal rays and are anchored to the 1-minute timeframe, ensuring they are perfectly accurate and consistent on ANY chart timeframe you view.
🎯 Core Concepts
Each line represents the "True Open" at the start of a new Q2 cycle:
📅 Yearly True Open: The open of the first trading day of April.
🗓️ Monthly True Open: The open of the second Monday of each month.
Weekly True Open: The open of the Monday 6:00 PM EST session.
🏙️ Daily True Open: The open at Midnight EST.
⏰ Session True Opens: The open at the start of the second 90-minute quarter of each session (1:30 AM, 7:30 AM, 1:30 PM, 7:30 PM EST).
✨ Key Features
Multi-Timeframe (MTF) Accuracy: Lines are anchored to the 1-minute open price, ensuring they remain perfectly consistent on any chart timeframe (e.g., the 7:30 AM open is the same on the 5min, 1-hour, and Daily charts).
Clean Horizontal Rays: Plots clean horizontal rays that extend forward, avoiding chart clutter. Old lines are automatically removed as new ones form.
Right-Aligned Labels: Text labels are positioned on the right edge of your screen, so they are always visible and never covered by price action.
Fully Customizable: Toggle the visibility of each True Open line (Yearly, Monthly, etc.) and their labels individually in the settings. You can also customize colors and line width.
New York (EST) Timezone: All calculations are hard-coded to the America/New_York timezone for consistency.
⚙️ How to Use
Use these levels as key points of interest for potential support, resistance, or areas where price may show a significant reaction.
Observe how price interacts with these levels after they are established.
Customize the indicator in the settings (⚙️ icon) to show only the levels relevant to your trading style.
⚠️ Troubleshooting: Lines Not Showing Correctly?
If the indicator lines don't seem to plot at the correct price levels when you first add it to your chart, it's almost always a scaling issue.
Hover over the indicator's name on your chart and click the three dots (...) for "More".
Scroll down to "Pin to Scale".
Select "Pin to Right Scale" (or whichever scale your price is on). The indicator levels must be pinned to the same scale as the price to display accurately.
If it is set to "No Scale," the levels will not reflect their true price values.
This tool was developed based on the public teachings of Trader Daye. All credit for the underlying concepts of Quarterly Theory belongs to him. This indicator is for educational and analytical purposes only.
Mark the New York trading session hours(纽约交易时间段标注)Apply background shading for New York time.
(纽约时间背景着色)
04:00 ~ 09:00
09:00 ~ 09:30
09:30 ~ 12:00
No shading needed after 12 AM as I'll be asleep.
(12点我睡觉了就不着色了。)
Universal Regime Alpha Thermocline StrategyCurrents settings adapted for BTCUSD Daily timeframe
This description is written to comply with TradingView House Rules and Script Publishing Rules. It is self contained, in English first, free of advertising, and explains originality, method, use, defaults, and limitations. No external links are included. Nothing here is investment advice.
0. Publication mode and rationale
This script is published as Protected . Anyone can add and test it from the Public Library, yet the source code is not visible.
Why Protected
The engine combines three independent lenses into one regime score and then uses an adaptive centering layer and a thermo risk unit that share a common AAR measure. The exact mapping and interactions are the result of original research and extensive validation. Keeping the implementation protected preserves that work and avoids low effort clones that would fragment feedback and confuse users.
Protection supports a single maintained build for users. It reduces accidental misuse of internal functions outside their intended context which might lead to misleading results.
1. What the strategy does in one paragraph
Universal Regime Alpha Thermocline builds a single number between zero and one that answers a practical question for any market and timeframe. How aligned is current price action with a persistent directional regime right now. To answer this the script fuses three views of the tape. Directional entropy of up versus down closes to measure unanimity.
Convexity drift that rewards true geometric compounding and penalizes drag that comes from chop where arithmetic pace is high but growth is poor.
Tail imbalance that counts decisive bursts in one direction relative to typical bar amplitude. The three channels are blended, optionally confirmed by a higher timeframe, and then adaptively centered to remove local bias. Entries fire when the score clears an entry gate. Exits occur when the score mean reverts below an exit gate or when thermo stops remove risk. Position size can scale with the certainty of the signal.
2. Why it is original and useful
It mixes orthogonal evidence instead of leaning on a single family of tools. Many regime filters depend on moving averages or volatility compression. Here we add an information view from entropy, a growth view from geometric drift, and a structural view from tail imbalance.
The drift channel separates growth from speed. Arithmetic pace can look strong in whipsaw, yet geometric growth stays weak. The engine measures both and subtracts drag so that only sequences with compounding quality rise.
Tail counting is anchored to AAR which is the average absolute return of bars in the window. This makes the threshold self scaling and portable across symbols and timeframes without hand tuned constants.
Adaptive centering prevents the score from living above or below neutral for long stretches on assets with strong skew. It recovers neutrality while still allowing persistent regimes to dominate once evidence accumulates.
The same AAR unit used in the signal also sets stop distance and trail distance. Signal and risk speak the same language which makes the method portable and easier to reason about.
3. Plain language overview of the math
Log returns . The base series is r equal to the natural log of close divided by the previous close. Log return allows clean aggregation and makes growth comparisons natural.
Directional entropy . Inside the lookback we compute the proportion p of bars where r is positive. Binary entropy of p is high when the mix of up and down closes is balanced and low when one direction dominates. Intensity is one minus entropy. Directional sign is two times p minus one. The trend channel is zero point five plus one half times sign times intensity. It lives between zero and one and grows stronger as unanimity increases.
Convexity drift with drag . Arithmetic mean of r measures pace. Geometric mean of the price ratio over the window measures compounding. Drag is the positive part of arithmetic minus geometric. Drift raw equals geometric minus drag multiplier times drag. We then map drift through an arctangent normalizer scaled by AAR and a nonlinearity parameter so the result is stable and remains between zero and one.
Tail imbalance . AAR equals the average of the absolute value of r in the window. We count up tails where r is greater than aar_mult times AAR and down tails where r is less than minus aar_mult times AAR. The imbalance is their difference over their total, mapped to zero to one. This detects directional impulse flow.
Fusion and centering . A weighted average of the three channels yields the raw score. If a higher timeframe is requested, the same function is executed on that timeframe with lookahead off and blended with a weight. Finally we subtract a fraction of the rolling mean of the score to recover neutrality. The result is clipped to the zero to one band.
4. Entries, exits, and position sizing
Enter long when score is strictly greater than the entry gate. Enter short when score is strictly less than one minus the entry gate unless direction is restricted in inputs.
Exit a long when score falls below the exit gate. Exit a short when score rises above one minus the exit gate.
Thermo stops are expressed in AAR units. A long uses the maximum of an initial stop sized by the entry price and AAR and a trail stop that references the running high since entry with a separate multiple. Shorts mirror this with the running low. If the trail is disabled the initial stop is active.
Cooldown is a simple bar counter that begins when the position returns to flat. It prevents immediate re entry in churn.
Dynamic position size is optional. When enabled the order percent of equity scales between a floor and a cap as the score rises above the gate for longs or below the symmetric gate for shorts.
5. Inputs quick guide with recommended ranges
Every input has a tooltip in the script. The same guidance appears here for fast reading.
Core window . Shared lookback for entropy, drift, and tails. Start near 80 on daily charts. Try 60 to 120 on intraday and 80 to 200 for swing.
Entry threshold . Typical range 0.55 to 0.65 for trend following. Faster entries 0.50 to 0.55.
Exit threshold . Typical range 0.35 to 0.50. Lower holds longer yet gives back more.
Weight directional entropy . Starting value 0.40. Raise on markets with clean persistence.
Weight convexity drift . Starting value 0.40. Raise when compounding quality is critical.
Weight tail imbalance . Starting value 0.20. Raise on breakout prone markets.
Tail threshold vs AAR . Typical range 1.0 to 1.5 to count decisive bursts.
Drag penalty . Typical range 0.25 to 0.75. Higher punishes chop more.
Nonlinearity scale . Typical range 0.8 to 2.0. Larger compresses extremes.
AAR floor in percent . Typical range 0.0005 to 0.002 for liquid instruments. This stabilizes the math during quiet regimes.
Adaptive centering . Keep on for most symbols. Center strength 0.40 to 0.70.
Confirm timeframe optional . Leave empty to disable. If used, try a multiple between three and five of the chart timeframe with a blend weight near 0.20.
Dynamic position size . Enable if you want size to reflect certainty. Floor and cap define the percent of equity band. A practical band for many accounts is 0.5 to 2.
Cooldown bars after exit . Start at 3 on daily or slightly higher on shorter charts.
Thermo stop multiple . Start between 1.5 and 3.0 on daily. Adjust to your tolerance and symbol behavior.
Thermo trailing stop and Trail multiple . Trail on locks gains earlier. A trail multiple near 1.0 to 2.0 is common. You can keep trail off and let the exit gate handle exits.
Background heat opacity . Cosmetic. Set to taste. Zero disables it.
6. Properties used on the published chart
The example publication uses BTCUSD on the daily timeframe. The following Properties and inputs are used so everyone can reproduce the same results.
Initial capital 100000
Base currency USD
Order size 2 percent of equity coming from our risk management inputs.
Pyramiding 0
Commission 0.05 percent
Slippage 10 ticks in the publication for clarity. Users should introduce slippage in their own research.
Recalculate after order is filled off. On every tick off.
Using bar magnifier on. On bar close on.
Risk inputs on the published chart. Dynamic position size on. Size floor percent 2. Size cap percent 2. Cooldown bars after exit 3. Thermo stop multiple 2.5. Thermo trailing stop off. Trail multiple 1.
7. Visual elements and alerts
The score is painted as a subtle dot rail near the bottom. A background heat map runs from red to green to convey regime strength at a glance. A compact HUD at the top right shows current score, the three component channels, the active AAR, and the remaining cooldown. Four alerts are included. Long Setup and Short Setup on entry gates. Exit Long by Score and Exit Short by Score on exit gates. You can disable trading and use alerts only if you want the score as a risk switch inside a discretionary plan.
8. How to reproduce the example
Open a BTCUSD daily chart with regular candles.
Add the strategy and load the defaults that match the values above.
Set Properties as listed in section 6.(they are set by default) Confirm that bar magnifier is on and process on bar close is on.
Run the Strategy Tester. Confirm that the trade count is reasonable for the sample. If the count is too low, slightly lower the entry threshold or extend history. If the count is excessively high, raise the threshold or add a small cooldown.
9. Practical tuning recipes
Trend following focus . Raise the entry threshold toward 0.60. Raise the trend weight to 0.50 and reduce tail weight to 0.15. Keep drift near 0.35 to retain the growth filter. Consider leaving the trail off and let the exit threshold manage positions.
Breakout focus . Keep entry near 0.55. Raise tail weight to 0.35. Keep aar_mult near 1.3 so only decisive bursts count. A modest cooldown near 5 can reduce immediate false flips after the first burst bar.
Chop defense . Raise drag multiplier to 0.70. Raise exit threshold toward 0.48 to recycle capital earlier. Consider a higher cooldown, for example 8 to 12 on intraday.
Higher timeframe blend . On a daily chart try a weekly confirm with a blend near 0.20. On a five minute chart try a fifteen minute confirm. This moderates transitions.
Sizing discipline . If you want constant position size, set floor equal to cap. If you want certainty scaling, set a band like 0.5 to 2 and monitor drawdown behavior before widening it.
10. Strengths and limitations
Strengths
Self scaling unit through AAR makes the tool portable across markets and timeframes.
Blends evidence that target different failure modes. Unanimity, growth quality, and impulse flow rarely agree by chance which raises confidence when they align.
Adaptive centering reduces structural bias at the score level which helps during regime flips.
Limitations
In very quiet regimes AAR becomes small even with a floor. If your symbol is thin or gap prone, raise the floor a little to keep stops and drift mapping stable.
Adaptive centering can delay early breakout acceptance. If you miss starts, lower center strength or temporarily disable centering while you evaluate.
Tail counting uses a fixed multiple of AAR. If a market alternates between very calm and very violent weeks, a single aar_mult may not capture both extremes. Sweep this parameter in research.
The engine reacts to realized structure. It does not anticipate scheduled news or liquidity shocks. Use event awareness if you trade around releases.
11. Realism and responsible publication
No promises or projections of performance are made. Past results never guarantee future outcomes.
Commission is set to 0.05 percent per round which is realistic for many crypto venues. Adjust to your own broker or exchange.
Slippage is set at 10 in the publication . Introduce slippage in your own tests or use a percent model.
Position size should respect sustainable risk envelopes. Risking more than five to ten percent per trade is rarely viable. The example uses a fixed two percent position size.
Security calls use lookahead off. Standard candles only. Non standard chart types like Heikin Ashi or Renko are not supported for strategies that submit orders.
12. Suggested research workflow
Begin with the balanced defaults. Confirm that the trade count is sensible for your timeframe and symbol. As a rough guide, aim for at least one hundred trades across a wide sample for statistical comfort. If your timeframe cannot produce that count, complement with multiple symbols or run longer history.
Sweep entry and exit thresholds on a small grid and observe stability. Stability across windows matters more than the single best value.
Try one higher timeframe blend with a modest weight. Large weights can drown the signal.
Vary aar_mult and drag_mult together. This tunes the aggression of breakouts versus defense in chop.
Evaluate whether dynamic size improves risk adjusted results for your style. If not, set floor equal to cap for constancy.
Walk forward through disjoint segments and inspect results by regime. Bootstrapping or segmented evaluation can reveal sensitivity to specific periods.
13. How to read the HUD and heat map
The HUD presents a compact view. Score is the current fused value. Trend is the directional entropy channel. Drift is the compounding quality channel. Tail is the burst flow channel. AAR is the current unit that scales stops and the drift map. CD is the cooldown counter. The background heat is a visual aid only. It can be disabled in inputs. Green zones near the upper band show alignment among the channels. Muted colors near the mid band show uncertainty.
14. Frequently asked questions
Can I use this as a pure indicator . Yes. Disable entries by restricting direction to one side you will not trade and use the alerts as a regime switch.
Will it work on intraday charts . Yes. The AAR unit scales with bar size. You will likely reduce the core window and increase cooldown slightly.
Should I enable the adaptive trail . If you wish to lock gains sooner and accept more exits, enable it. If you prefer to let the exit gate do the heavy lifting, keep it off.
Why do I sometimes see a green background without a position . Heat expresses the score. A position also depends on threshold comparisons, direction mode, and cooldown.
Why is Order size set to one hundred percent if dynamic size is on . The script passes an explicit quantity percent on each entry. That explicit quantity overrides the property. The property is kept at one hundred percent to avoid confusion when users later disable dynamic sizing.
Can I combine this with other tools on my chart . You can, yet for publication the chart is kept clean so users and moderators can see the output clearly. In your private workspace feel free to add other context.
15. Concepts glossary
AAR . Average absolute return across the lookback. Serves as a unit for tails, drift scaling, and stops.
Directional entropy . A measure of uncertainty of up versus down closes. Low entropy paired with a directional sign signals unanimity.
Geometric mean growth . Rate that preserves the effect of compounding over many bars.
Drag . The positive difference between arithmetic pace and geometric growth. Larger drag often signals churn that looks active but fails to compound.
Thermo stops . Stops expressed in the same AAR unit as the signal. They adapt with volatility and keep risk and signal on a common scale.
Adaptive centering . A bias correction that recenters the fused score around neutral so the meter does not drift due to persistent skew.
16. Educational notice and risk statement
Markets involve risk. This publication is for education and research. It does not provide financial advice and it is not a recommendation to buy or sell any instrument. Use realistic costs. Validate ideas with out of sample testing and with conservative position sizing. Past performance never guarantees future results.
17. Final notes for readers and moderators
The goal of this strategy is clarity and portability. Clarity comes from a single score that reflects three independent features of the tape. Portability comes from self scaling units that respect structure across assets and timeframes. The publication keeps the chart clean, explains the math plainly, lists defaults and Properties used, and includes warnings where care is required. The code is protected so the implementation remains consistent for the community while the description remains complete enough for users to understand its purpose and for moderators to evaluate originality and usefulness. If you explore variants, keep them self contained, explain exactly what they contribute, publish in English first, and treat others with respect in the comments.
Load the strategy on BTCUSD daily with the defaults listed above and study how the score transitions across regimes. Then adjust one lever at a time. Observe how the trend channel, the drift channel, and the tail channel interact during starts, pauses, and reversals. Use the alerts as a risk switch inside your own process or let the built in entries and exits run if you prefer an automated study. The intent is not to promise outcomes. The intent is to give you a robust meter for regime strength that travels well across markets and helps you structure decisions with more confidence.
Thank you for your time to read all of this
TFPV — FULL Radial Kernel MA (Short/Long, Time Folding, Colored)TFPV is a pair of adaptive moving averages built with a radial kernel (Gaussian/Laplacian/Cauchy) on a joint metric of time, price, and volume. It can “fold” time along the market’s dominant cycle so that bars separated by entire cycles still contribute as if they were near each other—helpful for cyclical or range-bound markets. The short/long lines auto-color by regime and include cross alerts.
What it does
Radial-kernel averaging: Weights past bars by their distance from the current bar in a 3-axis space:
Time (αₜ): linear distance or cycle-aware phase distance
Price (αₚ): normalized by robust price scale
Volume (αᵥ): normalized by (log) volume scale
Time folding: Choose Linear (standard) or Circular using:
Homodyne (Hilbert) dominant period, or
ACF (autocorrelation) dominant period
This compresses distances for bars that are one or more full cycles apart, improving smoothing without lagging trends.
Adaptive scales: Price/volume bandwidths use Robust MAD, Stdev, or ATR. Optional Super Smoother center reduces noise before measuring distances.
Visual regime coloring: Short above Long → teal (bullish). Short below Long → orange (bearish). Optional fill highlights the spread.
How to read it
Trend filter: Trade in the direction of the color (teal bullish, orange bearish).
Crossovers: Short crossing above Long often marks early trend continuation after pullbacks; crossing below can warn of weakening momentum.
Spread width: A widening gap suggests strengthening trend; a shrinking gap hints at consolidation or a possible regime change.
Key settings
Lengths
Short/Long window: Lookback for each radial MA. Short reacts faster; Long stabilizes the regime.
Kernel & Metric
Kernel: Gaussian, Laplacian, or Cauchy (default). Cauchy is heavier-tailed (keeps more outliers), Gaussian is tighter.
Axis weights (αₜ, αₚ, αᵥ): Importance of time/price/volume distances. Increase a weight to make that axis matter more.
Ignore weights below: Hard cutoff for tiny kernel weights to speed up/clean contributions.
Time Folding
Topology: Linear (standard MA behavior) or Circular (Homodyne/ACF) (cycle-aware).
Cycle floor/ceil: Bounds for the dominant period search.
σₜ mode: Auto sets time bandwidth from the detected period (or length in Linear mode) × multiplier; Manual fixes σₜ in bars.
Price/Volume Scaling
Price scale: Robust MAD (outlier-resistant), Stdev, or ATR (trend-aware).
σₚ/σᵥ multipliers: Bandwidths for price/volume axes. Larger values = looser matching (smoother, more lag).
Use log(volume): Stabilizes volume’s scale across regimes; recommended.
Kernel Center
Price center: Raw (close) or Super Smoother to reduce noise before measuring price distance.
Plotting
Plot source: Show/hide the input source.
Fill between lines: Visual emphasis of the short/long spread.
Tips
Start with defaults: Cauchy, Circular (Homodyne), Robust MAD, log-volume on.
For choppy/cyclical symbols, Circular time folding often reduces false flips.
If signals feel too twitchy, either increase Short/Long lengths or raise σₚ/σᵥ multipliers (looser kernel).
For strong trends with regime shifts, try ATR price scaling.
Seasonality Heatmap [QuantAlgo]🟢 Overview
The Seasonality Heatmap analyzes years of historical data to reveal which months and weekdays have consistently produced gains or losses, displaying results through color-coded tables with statistical metrics like consistency scores (1-10 rating) and positive occurrence rates. By calculating average returns for each calendar month and day-of-week combination, it identifies recognizable seasonal patterns (such as which months or weekdays tend to rally versus decline) and synthesizes this into actionable buy low/sell high timing possibilities for strategic entries and exits. This helps traders and investors spot high-probability seasonal windows where assets have historically shown strength or weakness, enabling them to align positions with recurring bull and bear market patterns.
🟢 How It Works
1. Monthly Heatmap
How % Return is Calculated:
The indicator fetches monthly closing prices (or Open/High/Low based on user selection) and calculates the percentage change from the previous month:
(Current Month Price - Previous Month Price) / Previous Month Price × 100
Each cell in the heatmap represents one month's return in a specific year, creating a multi-year historical view
Colors indicate performance intensity: greener/brighter shades for higher positive returns, redder/brighter shades for larger negative returns
What Averages Mean:
The "Avg %" row displays the arithmetic mean of all historical returns for each calendar month (e.g., averaging all Januaries together, all Februaries together, etc.)
This metric identifies historically recurring patterns by showing which months have tended to rise or fall on average
Positive averages indicate months that have typically trended upward; negative averages indicate historically weaker months
Example: If April shows +18.56% average, it means April has averaged a 18.56% gain across all years analyzed
What Months Up % Mean:
Shows the percentage of historical occurrences where that month had a positive return (closed higher than the previous month)
Calculated as:
(Number of Months with Positive Returns / Total Months) × 100
Values above 50% indicate the month has been positive more often than negative; below 50% indicates more frequent negative months
Example: If October shows "64%", then 64% of all historical Octobers had positive returns
What Consistency Score Means:
A 1-10 rating that measures how predictable and stable a month's returns have been
Calculated using the coefficient of variation (standard deviation / mean) - lower variation = higher consistency
High scores (8-10, green): The month has shown relatively stable behavior with similar outcomes year-to-year
Medium scores (5-7, gray): Moderate consistency with some variability
Low scores (1-4, red): High variability with unpredictable behavior across different years
Example: A consistency score of 8/10 indicates the month has exhibited recognizable patterns with relatively low deviation
What Best Means:
Shows the highest percentage return achieved for that specific month, along with the year it occurred
Reveals the maximum observed upside and identifies outlier years with exceptional performance
Useful for understanding the range of possible outcomes beyond the average
Example: "Best: 2016: +131.90%" means the strongest January in the dataset was in 2016 with an 131.90% gain
What Worst Means:
Shows the most negative percentage return for that specific month, along with the year it occurred
Reveals maximum observed downside and helps understand the range of historical outcomes
Important for risk assessment even in months with positive averages
Example: "Worst: 2022: -26.86%" means the weakest January in the dataset was in 2022 with a 26.86% loss
2. Day-of-Week Heatmap
How % Return is Calculated:
Calculates the percentage change from the previous day's close to the current day's price (based on user's price source selection)
Returns are aggregated by day of the week within each calendar month (e.g., all Mondays in January, all Tuesdays in January, etc.)
Each cell shows the average performance for that specific day-month combination across all historical data
Formula:
(Current Day Price - Previous Day Close) / Previous Day Close × 100
What Averages Mean:
The "Avg %" row at the bottom aggregates all months together to show the overall average return for each weekday
Identifies broad weekly patterns across the entire dataset
Calculated by summing all daily returns for that weekday across all months and dividing by total observations
Example: If Monday shows +0.04%, Mondays have averaged a 0.04% change across all months in the dataset
What Days Up % Mean:
Shows the percentage of historical occurrences where that weekday had a positive return
Calculated as:
(Number of Positive Days / Total Days Observed) × 100
Values above 50% indicate the day has been positive more often than negative; below 50% indicates more frequent negative days
Example: If Fridays show "54%", then 54% of all Fridays in the dataset had positive returns
What Consistency Score Means:
A 1-10 rating measuring how stable that weekday's performance has been across different months
Based on the coefficient of variation of daily returns for that weekday across all 12 months
High scores (8-10, green): The weekday has shown relatively consistent behavior month-to-month
Medium scores (5-7, gray): Moderate consistency with some month-to-month variation
Low scores (1-4, red): High variability across months, with behavior differing significantly by calendar month
Example: A consistency score of 7/10 for Wednesdays means they have performed with moderate consistency throughout the year
What Best Means:
Shows which calendar month had the strongest average performance for that specific weekday
Identifies favorable day-month combinations based on historical data
Format shows the month abbreviation and the average return achieved
Example: "Best: Oct: +0.20%" means Mondays averaged +0.20% during October months in the dataset
What Worst Means:
Shows which calendar month had the weakest average performance for that specific weekday
Identifies historically challenging day-month combinations
Useful for understanding which month-weekday pairings have shown weaker performance
Example: "Worst: Sep: -0.35%" means Tuesdays averaged -0.35% during September months in the dataset
3. Optimal Timing Table/Summary Table
→ Best Month to BUY: Identifies the month with the lowest average return (most negative or least positive historically), representing periods where prices have historically been relatively lower
Based on the observation that buying during historically weaker months may position for subsequent recovery
Shows the month name, its average return, and color-coded performance
Example: If May shows -0.86% as "Best Month to BUY", it means May has historically averaged -0.86% in the analyzed period
→ Best Month to SELL: Identifies the month with the highest average return (most positive historically), representing periods where prices have historically been relatively higher
Based on historical strength patterns in that month
Example: If July shows +1.42% as "Best Month to SELL", it means July has historically averaged +1.42% gains
→ 2nd Best Month to BUY: The second-lowest performing month based on average returns
Provides an alternative timing option based on historical patterns
Offers flexibility for staged entries or when the primary month doesn't align with strategy
Example: Identifies the next-most favorable historical buying period
→ 2nd Best Month to SELL: The second-highest performing month based on average returns
Provides an alternative exit timing based on historical data
Useful for staged profit-taking or multiple exit opportunities
Identifies the secondary historical strength period
Note: The same logic applies to "Best Day to BUY/SELL" and "2nd Best Day to BUY/SELL" rows, which identify weekdays based on average daily performance across all months. Days with lowest averages are marked as buying opportunities (historically weaker days), while days with highest averages are marked for selling (historically stronger days).
🟢 Examples
Example 1: NVIDIA NASDAQ:NVDA - Strong May Pattern with High Consistency
Analyzing NVIDIA from 2015 onwards, the Monthly Heatmap reveals May averaging +15.84% with 82% of months being positive and a consistency score of 8/10 (green). December shows -1.69% average with only 40% of months positive and a low 1/10 consistency score (red). The Optimal Timing table identifies December as "Best Month to BUY" and May as "Best Month to SELL." A trader recognizes this high-probability May strength pattern and considers entering positions in late December when prices have historically been weaker, then taking profits in May when the seasonal tailwind typically peaks. The high consistency score in May (8/10) provides additional confidence that this pattern has been relatively stable year-over-year.
Example 2: Crypto Market Cap CRYPTOCAP:TOTALES - October Rally Pattern
An investor examining total crypto market capitalization notices September averaging -2.42% with 45% of months positive and 5/10 consistency, while October shows a dramatic shift with +16.69% average, 90% of months positive, and an exceptional 9/10 consistency score (blue). The Day-of-Week heatmap reveals Mondays averaging +0.40% with 54% positive days and 9/10 consistency (blue), while Thursdays show only +0.08% with 1/10 consistency (yellow). The investor uses this multi-layered analysis to develop a strategy: enter crypto positions on Thursdays during late September (combining the historically weak month with the less consistent weekday), then hold through October's historically strong period, considering exits on Mondays when intraweek strength has been most consistent.
Example 3: Solana BINANCE:SOLUSDT - Extreme January Seasonality
A cryptocurrency trader analyzing Solana observes an extraordinary January pattern: +59.57% average return with 60% of months positive and 8/10 consistency (teal), while May shows -9.75% average with only 33% of months positive and 6/10 consistency. August also displays strength at +59.50% average with 7/10 consistency. The Optimal Timing table confirms May as "Best Month to BUY" and January as "Best Month to SELL." The Day-of-Week data shows Sundays averaging +0.77% with 8/10 consistency (teal). The trader develops a seasonal rotation strategy: accumulate SOL positions during May weakness, hold through the historically strong January period (which has shown this extreme pattern with reasonable consistency), and specifically target Sunday exits when the weekday data shows the most recognizable strength pattern.
Volume Rate of Change (VROC)# Volume Rate of Change (VROC)
**What it is:** VROC measures the rate of change in trading volume over a specified period, typically expressed as a percentage. Formula: `((Current Volume - Volume n periods ago) / Volume n periods ago) × 100`
## **Obvious Uses**
**1. Confirming Price Trends**
- Rising VROC with rising prices = strong bullish trend
- Rising VROC with falling prices = strong bearish trend
- Validates that price movements have conviction behind them
**2. Spotting Divergences**
- Price makes new highs but VROC doesn't = weakening momentum
- Price makes new lows but VROC doesn't = potential reversal
**3. Identifying Breakouts**
- Sudden VROC spikes often accompany legitimate breakouts from consolidation patterns
- Helps distinguish real breakouts from false ones
**4. Overbought/Oversold Conditions**
- Extreme VROC readings (very high or very low) suggest exhaustion
- Mean reversion opportunities when volume extremes occur
---
## **Non-Obvious Uses**
**1. Smart Money vs. Dumb Money Detection**
- Declining VROC during price rallies may indicate retail FOMO while institutions distribute
- Rising VROC during selloffs with price stability suggests institutional accumulation
**2. News Impact Measurement**
- Compare VROC before/after earnings or announcements
- Low VROC on "significant" news = market doesn't care (fade the move)
- High VROC = genuine market reaction (respect the move)
**3. Market Regime Changes**
- Persistent shifts in average VROC levels can signal transitions between bull/bear markets
- Declining baseline VROC over months = waning market participation/topping process
**4. Intraday Liquidity Profiling**
- VROC patterns across trading sessions identify best execution times
- Avoid trading when VROC is abnormally low (wider spreads, poor fills)
**5. Sector Rotation Analysis**
- Compare VROC across sector ETFs to identify where capital is flowing
- Rising VROC in defensive sectors + falling VROC in cyclicals = risk-off rotation
**6. Options Expiration Effects**
- VROC typically drops significantly post-options expiration
- Helps avoid false signals from mechanically-driven volume changes
**7. Algorithmic Activity Detection**
- Unusual VROC patterns (regular spikes at specific times) may indicate algo programs
- Can front-run or avoid periods of heavy algorithmic interference
**8. Liquidity Crisis Early Warning**
- Sharp, sustained VROC decline across multiple assets = liquidity withdrawal
- Can precede market stress events before price volatility emerges
**9. Cryptocurrency Wash Trading Detection**
- Comparing VROC across exchanges for same asset
- Discrepancies suggest artificial volume on certain platforms
**10. Pair Trading Optimization**
- Use relative VROC between correlated pairs
- Enter when VROC divergence is extreme, exit when it normalizes
The key to advanced VROC usage is context: combining it with price action, market structure, and other indicators rather than using it in isolation.
Seasonality Forecast 4H A seasonality indicator shows recurring patterns in data that occur at the same time each year, such as retail sales peaking during the holidays or demand for ice cream rising in the summer. These indicators are used in fields like business, economics, and finance to identify predictable, time-based fluctuations, allowing for better forecasting and strategic planning, like adjusting inventory or staffing levels. In trading, a seasonality indicator can show historical patterns, like an asset's tendency to rise or fall in a specific month, to provide additional context for decision-making.
Seasonality reasoning basically seasonality works most stably on the daily frame with the input parameter being trading day 254 or calendar day 365, ..
Use seasonal effects such as sell in May, buy Christmas season, or exploit factors such as sell on Friday, ... to track the price movement.
The lower the time frame, the more parameters need to be calculated and the more complicated. I have tried to code the version with 1 hour, 15 minutes and 4 hours time frames
On the statistical language R and Python, Pine script
Tradingview uses the exclusive and unique Pine language. There is a parameter limit, just need to change the number of forecast days or calculate shorter or only calculate the basic end time value, we seasonality still works
but the overall results are easily noisy and related to controlling the number of orders per week/month and risk management.
The 4-hour frame version works well because we exploit the seasonal factor according to the 4-hour trading session as a trading session
Every 4 hours we have an input value that corresponds to the Asian, European, and American trading sessions
4 hours - half a morning Asian session.4 hours - half an afternoon Asian session, 4 hours - half a morning European session, 4 hours - half an afternoon European session, similar to the US and repeat the cycle.
Input Parameter Declaration
Tradingview does not exist declaration form day_of_year = dayofyear(time) Pine Script v5:
Instead of using dayofyear, we manually calculate the number of days in a year from the time components.
// Extract year, month, day, hour
year_now = year(time)
month_now = month(time)
day_now = dayofmonth(time)
hour_now = hour(time)
// Precomputed cumulative days per month (non-leap year)
days_before_month = array.from(0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334)
// Calculate day-of-year
day_of_year = array.get(days_before_month, month_now - 1) + day_now
Input parameter customization window
Lookback period years default is 10, max - the number of historical bars we have, should only be 5 years, 10 years, 15 years, 20 years, 30 years.
Future project bar default is 180 bars - 1 month. We can adjust arbitrarily 6*24*254 - day/month/year
smoothingLength Smooth the data (1 = no smoothing)
offsetBars Move the forecast line left/right to check the past
How to use
Combine seasonality with Supply Demand, Footprint volume profile to find long-term trends or potential reversal points
day_of_year := day_of_year + ((is_leap and month_now > 2) ? 1 : 0)
// Compute bin index
binIndex = (day_of_year * sessionsPerDay) + math.floor(hour_now / 4)
binIndex := binIndex % binsPerYear // Keep within array bounds
The above is the manual code to replace day of year
LEGEND IsoPulse Fusion Universal Volume Trend Buy Sell RadarLEGEND IsoPulse Fusion • Universal Volume Trend Buy Sell Radar
One line summary
LEGEND IsoPulse Fusion reads intent from price and volume together, learns which features matter most on your symbol, blends them into a single signed Fusion line in a stable unit range, and emits clear Buy Sell Close events with a structure gate and a liquidity safety gate so you act only when the tape is favorable.
What this script is and why it exists
Many traders keep separate windows for trend, volume, volatility, and regime filters. The result can feel fragmented. This script merges two complementary engines into one consistent view that is easy to read and simple to act on.
LEGEND Tensor estimates directional quality from five causally computed features that are normalized for stationarity. The features are Flow, Tail Pressure with Volume Mix, Path Curvature, Streak Persistence, and Entropy Order.
IsoPulse transforms raw volume into two decaying reservoirs for buy effort and sell effort using body location and wick geometry, then measures price travel per unit volume for efficiency, and detects volume bursts with a recency memory.
Both engines are mapped into the same unit range and fused by a regime aware mixer. When the tape is orderly the mixer leans toward trend features. When the tape is messy but a true push appears in volume efficiency with bursts the mixer allows IsoPulse to speak louder. The outcome is a single Fusion line that lives in a familiar range with calm behavior in quiet periods and expressive pushes when energy concentrates.
What makes it original and useful
Two reservoir volume split . The script assigns a portion of the bar volume to up effort and down effort using body location and wick geometry together. Effort decays through time using a forgetting factor so memory is present without becoming sticky.
Efficiency of move . Price travel per unit volume is often more informative than raw volume or raw range. The script normalizes both sides and centers the efficiency so it becomes signed fuel when multiplied by flow skew.
Burst detection with recency memory . Percent rank of volume highlights bursts. An exponential memory of how recently bursts clustered converts isolated blips into useful context.
Causal adaptive weighting . The LEGEND features do not receive static weights. The script learns, causally, which features have correlated with future returns on your symbol over a rolling window. Only positive contributions are allowed and weights are normalized for interpretability.
Regime aware fusion . Entropy based order and persistence create a mixer that blends IsoPulse with LEGEND. You see a single line rather than two competing panels, which reduces decision conflict.
How to read the screen in seconds
Fusion area . The pane fills above and below zero with a soft gradient. Deeper fill means stronger conviction. The white Fusion line sits on top for precise crossings.
Entry guides and exit guides . Two entry guides draw symmetrically at the active fused entry level. Two exit guides sit inside at a fraction of the entry. Think of them as an adaptive envelope.
Letters . B prints once when the script flips from flat to long. S prints once when the script flips from flat to short. C prints when a held position ends on the appropriate side. T prints when the structure gate first opens. A prints when the liquidity safety flag first appears.
Price bar paint . Bars tint green while long and red while short on the chart to mirror your virtual position.
HUD . A compact dashboard in the corner shows Fusion, IsoPulse, LEGEND, active entry and exit levels, regime status, current virtual position, and the vacuum z value with its avoid threshold.
What signals actually mean
Buy . A Buy prints when the Fusion line crosses above the active entry level while gates are open and the previous state was flat.
Sell . A Sell prints when the Fusion line crosses below the negative entry level while gates are open and the previous state was flat.
Close . A Close prints when Fusion cools back inside the exit envelope or when an opposite cross would occur or when a gate forces a stop, and the previous state was a hold.
Gates . The Trend gate requires sufficient entropy order or significant persistence. The Avoid gate uses a liquidity vacuum z score. Gates exist to protect you from weak tape and poor liquidity.
Inputs and practical tuning
Every input has a tooltip in the script. This section provides a concise reference that you can keep in mind while you work.
Setup
Core window . Controls statistics across features. Scalping often prefers the thirties or low fifties. Intraday often prefers the fifties to eighties. Swing often prefers the eighties to low hundreds. Smaller responds faster with more noise. Larger is calmer.
Smoothing . Short EMA on noisy features. A small value catches micro shifts. A larger value reduces whipsaw.
Fusion and thresholds
Weight lookback . Sample size for weight learning. Use at least five times the horizon. Larger is slower and more confident. Smaller is nimble and more reactive.
Weight horizon . How far ahead return is measured to assess feature value. Smaller favors quick reversion impulses. Larger favors continuation.
Adaptive thresholds . Entry and exit levels from rolling percentiles of the absolute LEGEND score. This self scales across assets and timeframes.
Entry percentile . Eighty selects the top quintile of pushes. Lower to seventy five for more signals. Raise for cleanliness.
Exit percentile . Mid fifties keeps trades honest without overstaying. Sixty holds longer with wider give back.
Order threshold . Minimum structure to trade. Zero point fifteen is a reasonable start. Lower to trade more. Raise to filter chop.
Avoid if Vac z . Liquidity safety level. One point two five is a good default on liquid markets. Thin markets may prefer a slightly higher setting to avoid permanent avoid mode.
IsoPulse
Iso forgetting per bar . Memory for the two reservoirs. Values near zero point nine eight to zero point nine nine five work across many symbols.
Wick weight in effort split . Balance between body location and wick geometry. Values near zero point three to zero point six capture useful behavior.
Efficiency window . Travel per volume window. Lower for snappy symbols. Higher for stability.
Burst percent rank window . Window for percent rank of volume. Around one hundred to three hundred covers most use cases.
Burst recency half life . How long burst clusters matter. Lower for quick fades. Higher for cluster memory.
IsoPulse gain . Pre compression gain before the atan mapping. Tune until the Fusion line lives inside a calm band most of the time with expressive spikes on true pushes.
Continuation and Reversal guides . Visual rails for IsoPulse that help you sense continuation or exhaustion zones. They do not force events.
Entry sensitivity and exit fraction
Entry sensitivity . Loose multiplies the fused entry level by a smaller factor which prints more trades. Strict multiplies by a larger factor which selects fewer and cleaner trades. Balanced is neutral.
Exit fraction . Exit level relative to the entry level in fused unit space. Values around one half to two thirds fit most symbols.
Visuals and UX
Columns and line . Use both to see context and precise crossings. If you present a very clean chart you can turn columns off and keep the line.
HUD . Keep it on while you learn the script. It teaches you how the gates and thresholds respond to your market.
Letters . B S C T A are informative and compact. For screenshots you can toggle them off.
Debug triggers . Show raw crosses even when gates block entries. This is useful when you tune the gates. Turn them off for normal use.
Quick start recipes
Scalping one to five minutes
Core window in the thirties to low fifties.
Horizon around five to eight.
Entry percentile around seventy five.
Exit fraction around zero point five five.
Order threshold around zero point one zero.
Avoid level around one point three zero.
Tune IsoPulse gain until normal Fusion sits inside a calm band and true squeezes push outside.
Intraday five to thirty minutes
Core window around fifty to eighty.
Horizon around ten to twelve.
Entry percentile around eighty.
Exit fraction around zero point five five to zero point six zero.
Order threshold around zero point one five.
Avoid level around one point two five.
Swing one hour to daily
Core window around eighty to one hundred twenty.
Horizon around twelve to twenty.
Entry percentile around eighty to eighty five.
Exit fraction around zero point six zero to zero point seven zero.
Order threshold around zero point two zero.
Avoid level around one point two zero.
How to connect signals to your risk plan
This is an indicator. You remain in control of orders and risk.
Stops . A simple choice is an ATR multiple measured on your chart timeframe. Intraday often prefers one point two five to one point five ATR. Swing often prefers one point five to two ATR. Adjust to symbol behavior and personal risk tolerance.
Exits . The script already prints a Close when Fusion cools inside the exit envelope. If you prefer targets you can mirror the entry envelope distance and convert that to points or percent in your own plan.
Position size . Fixed fractional or fixed risk per trade remains a sound baseline. One percent or less per trade is a common starting point for testing.
Sessions and news . Even with self scaling, some traders prefer to skip the first minutes after an open or scheduled news. Gate with your own session logic if needed.
Limitations and honest notes
No look ahead . The script is causal. The adaptive learner uses a shifted correlation, crosses are evaluated without peeking into the future, and no lookahead security calls are used. If you enable intrabar calculations a letter may appear then disappear before the close if the condition fails. This is normal for any cross based logic in real time.
No performance promises . Markets change. This is a decision aid, not a prediction machine. It will not win every sequence and it cannot guarantee statistical outcomes.
No dependence on other indicators . The chart should remain clean. You can add personal tools in private use but publications should keep the example chart readable.
Standard candles only for public signals . Non standard chart types can change event timing and produce unrealistic sequences. Use regular candles for demonstrations and publications.
Internal logic walkthrough
LEGEND feature block
Flow . Current return normalized by ATR then smoothed by a short EMA. This gives directional intent scaled to recent volatility.
Tail pressure with volume mix . The relative sizes of upper and lower wicks inside the high to low range produce a tail asymmetry. A volume based mix can emphasize wick information when volume is meaningful.
Path curvature . Second difference of close normalized by ATR and smoothed. This captures changes in impulse shape that can precede pushes or fades.
Streak persistence . Up and down close streaks are counted and netted. The result is normalized for the window length to keep behavior stable across symbols.
Entropy order . Shannon entropy of the probability of an up close. Lower entropy means more order. The value is oriented by Flow to preserve sign.
Causal weights . Each feature becomes a z score. A shifted correlation against future returns over the horizon produces a positive weight per feature. Weights are normalized so they sum to one for clarity. The result is angle mapped into a compact unit.
IsoPulse block
Effort split . The script estimates up effort and down effort per bar using both body location and wick geometry. Effort is integrated through time into two reservoirs using a forgetting factor.
Skew . The reservoir difference over the sum yields a stable skew in a known range. A short EMA smooths it.
Efficiency . Move size divided by average volume produces travel per unit volume. Normalization and centering around zero produce a symmetric measure.
Bursts and recency . Percent rank of volume highlights bursts. An exponential function of bars since last burst adds the notion of cluster memory.
IsoPulse unit . Skew multiplied by centered efficiency then scaled by the burst factor produces the raw IsoPulse that is angle mapped into the unit range.
Fusion and events
Regime factor . Entropy order and streak persistence form a mixer. Low structure favors IsoPulse. Higher structure favors LEGEND. The blend is convex so it remains interpretable.
Blended guides . Entry and exit guides are blended in the same way as the line so they stay consistent when regimes change. The envelope does not jump unexpectedly.
Virtual position . The script maintains state. Buy and Sell require a cross while flat and gates open. Close requires an exit or force condition while holding. Letters print once at the state change.
Disclosures
This script and description are educational. They do not constitute investment advice. Markets involve risk. You are responsible for your own decisions and for compliance with local rules. The logic is causal and does not look ahead. Signals on non standard chart types can be misleading and are not recommended for publication. When you test a strategy wrapper, use realistic commission and slippage, moderate risk per trade, and enough trades to form a meaningful sample, then document those assumptions if you share results.
Closing thoughts
Clarity builds confidence. The Fusion line gives a single view of intent. The letters communicate action without clutter. The HUD confirms context at a glance. The gates protect you from weak tape and poor liquidity. Tune it to your instrument, observe it across regimes, and use it as a consistent lens rather than a prediction oracle. The goal is not to trade every wiggle. The goal is to pick your spots with a calm process and to stand aside when the tape is not inviting.
FVG Buy/Sell [Multi-TF] by akshaykiriti1443The FVG Buy/Sell indicator is a precision trading tool designed for traders who operate with a clear directional bias. It excels at identifying high-probability entry points by detecting when price interacts with Fair Value Gaps (FVGs).
This indicator is built on a core principle: instead of predicting the market's direction, it provides the timing for an entry after you, the trader, have established your market bias. By automatically pinpointing bullish and bearish imbalances on both the current and a higher timeframe, it allows you to wait for the market to pull back to a key level and then provides a clear signal for execution.
The Core Strategy: Bias First, Entry Second
This indicator is most powerful when used as part of a two-step trading process. It is not a standalone signal generator; it is an entry confirmation tool.
Step 1: Determine Your Directional Bias
Before looking for any signals from this indicator, you must first have an opinion on the market's most likely direction. This bias should be derived from your primary analysis method, such as:
The Golden Rule:
If your bias is BULLISH, you will ONLY look for BUY signals generated by bullish (green/blue) FVGs. You will ignore all SELL signals.
If your bias is BEARISH, you will ONLY look for SELL signals generated by bearish (pink/orange) FVGs. You will ignore all BUY signals.
Step 2: Execute with the FVG Tap-In Signal
Once your bias is set, the indicator does the rest of the work. You simply wait for the price to pull back into an FVG zone that aligns with your bias and then wait for the confirmation arrow to appear.
A green up arrow confirms that price has tapped a bullish FVG and closed above it, signaling that support has held and it's a valid moment to enter a long position.
A red down arrow confirms that price has tapped a bearish FVG and closed below it, signaling that resistance has held and it's a valid moment to enter a short position.
How to Take a Trade (Step-by-Step Examples)
Example of a Bullish (Long) Trade Setup:
Establish Bias: Your primary analysis shows the market is in a clear uptrend. Your bias is Bullish. You are now only looking for buying opportunities.
Identify Zone: The indicator draws a bullish FVG (a green or blue box) during an impulsive up-move.
Wait for Pullback: Be patient and let the price retrace down into this FVG zone. Do not chase the price.
Confirmation Signal: A green UP arrow appears below a candle. This is your signal. It confirms that buyers have stepped in at the FVG level and defended it.
Entry: Enter a long (buy) position at the open of the candle immediately following the signal candle.
Stop Loss: Place your stop loss below the low of the signal candle or, for a safer stop, below the bottom of the FVG zone itself.
Take Profit: Target a previous high, a higher-timeframe resistance level, or use a risk-to-reward ratio like 1:2 or 1:3.
Example of a Bearish (Short) Trade Setup:
Establish Bias: Your primary analysis shows the market is breaking down into a downtrend. Your bias is Bearish. You are now only looking for selling opportunities.
Identify Zone: The indicator draws a bearish FVG (a pink or orange box) during an impulsive down-move.
Wait for Pullback: Patiently wait for the price to rally back up into this FVG zone.
Confirmation Signal: A red DOWN arrow appears above a candle. This is your confirmation that sellers have rejected the price at this level.
Entry: Enter a short (sell) position at the open of the next candle.
Stop Loss: Place your stop loss above the high of the signal candle or above the top of the FVG zone.
Take Profit: Target a previous low, a key support level, or the next major FVG below.
Features Explained in Detail
Multi-Timeframe (MTF) Analysis: HTF zones (dotted lines) carry more weight. A signal from a 4-hour FVG while you are on a 15-minute chart is significantly more powerful than a signal from a 15-minute FVG alone. Use HTF zones as major points of interest.
Confirmed Tap-In Logic: The arrow only appears after price has touched the zone and then closed outside of it in the expected direction. This built-in confirmation filters out wicks that simply pass through a zone without a real market reaction.
Dual Alert System:
Entry Alert ("Price has entered..."): This is a heads-up alert. It tells you to pay attention because price is now in your pre-defined zone of interest.
Tap-In Alert ("Confirmed tap-in..."): This is the execution alert. It signals that the conditions for a trade have been met according to the indicator's logic.
Fade on Tapped: When enabled, a zone will become transparent after a confirmed signal. This visually cleans up your chart, showing you which zones have already been tested and "mitigated."
Minimum FVG Size (Ticks): In volatile or ranging markets, many tiny, insignificant FVGs can form. Use this setting to filter out the noise. Increase the value to only display larger, more significant imbalances.
Disclaimer: Trading involves substantial risk. This indicator is a tool for analysis and should not be used as a sole reason to enter a trade. Always practice robust risk management and use this tool in conjunction with your own trading plan. Past performance is not indicative of future results.
Swing Line Gabriel__ionescuEMA for swing trading, to be used for trend continuations. If you message me on IG, I'll tell you how to make entries using the moving average.
GATRAfter years of studying, analyzing markets, and thousands of hours of trial and error – I'm proud to present my new indicator for smarter and more precise trading!
🔍 What's inside?
✔️ Real-time daily status (percentage and monetary change)
✔️ ATR indicator to measure volatility
✔️ 150-period Moving Average for trend analysis
✔️ Smart signal system based on ATR + MA:
▪️ Strong / Weak Buy
▪️ Strong / Weak Sell
▪️ “No-Touch” zone detection
✔️ Earnings insights: Days until next report + last net profit (with flags for low profits or close dates)
✔️ Clean and clear visual display directly on the chart, including company name, ticker, market cap, and timeframe (1D, 1W, etc.)
✔️ Built-in alerts to notify you when a strong buy signal is triggered – so you never miss an opportunity
🧠 Designed to provide quick and intelligent decisions at a glance, filtering out noise and focusing only on what matters. Now enhanced with earnings filters for safer buys.
💡 Suitable for both beginners and advanced traders – whether you're tracking stocks, crypto, or indices.
📈 Result: A chart that speaks your language – simple, focused, and powerful.
Market Tension Map v2📊 Market Tension Map v2 — Detailed Description
core concept
market tension map v2 measures market "tension" through a combination of three independent metrics: volatility, volume, and open interest changes. the indicator operates on the compressed spring principle—when the market enters a state of low volatility with high volume and growing OI, it creates "tension" that predicts a potential sharp price movement.
calculation methodology
component 1: volatility score (0-100)
relative volatility is measured through price standard deviation over a specified period. key distinction—inversion: low volatility produces a high score because range compression creates energy for future movement.
component 2: volume score (0-100)
normalization of current volume relative to the period range. high volume during low volatility signals accumulation of positions by large players before a move.
component 3: open interest score (0-100)
evaluation of open interest changes (available only for futures). rising OI confirms new positions entering the market rather than just redistribution of existing ones.
final tension index
arithmetic mean of three components (or two if OI unavailable). values above threshold (default 70) signal spring "compression".
signal types
compression signal (🔴 red diamond)
appears when tension index exceeds threshold with normal candle size. this is a predictive signal—market is compressed but explosion hasn't occurred yet. optimal for entry before movement with tight stop.
climax signal (⚠️ orange diamond)
occurs when threshold crossed + large candle (size > ATR × multiplier). this is a reactive signal of culmination—energy already released. often indicates short-term reversal or move exhaustion.
uniqueness of approach
unlike classic compression indicators (bollinger bands squeeze, keltner channels), mtm v2 doesn't rely solely on volatility. adding volume and OI scores creates a multidimensional picture of market microstructure. volatility score inversion is original logic where calm is interpreted as tension.
the algorithm distinguishes two breakout types:
compression without movement (compression)—anticipation trading
compression with large candle (climax)—reversal trading
this separation is absent in standard indicators.
parameter settings
calculation period (20)—normalization window length. lower = more sensitive to short-term changes.
tension threshold (70)—signal activation level. higher = fewer signals but better quality.
atr length (14) + atr multiplier (2.0)—large candle detection parameters for climax signals. increasing multiplier makes filter stricter.
colors and style—full customization of visual elements to adapt to your chart theme.
how to use
main chart: histogram shows current tension level. yellow = rising, gray = falling.
signals on price chart:
red diamond above candle = prepare for entry (compression)
orange diamond = move occurred, watch for reversal (climax)
background highlight: tinted background shows high tension zones.
data table: real-time monitoring of all components + bar status (live/closed).
alerts: configure notifications for compression or climax signals for automatic monitoring.
limitations
open interest available only for futures. for spot markets indicator works with two components.
requires sufficient bar history (>= calculation period) for correct calculations.
on live bar (not closed) values may repaint—use confirmed signals for trading.
recommended timeframes
1h-4h: optimal for swing trading, signals more reliable.
15m-30m: suitable for intraday but requires false breakout filtering.
d: strategic positions, high risk/reward ratio.
license: mozilla public license 2.0
version: pinescript v6
Pump-Smart Shorting StrategyThis strategy is built to keep your portfolio hedged as much as possible while maximizing profitability. Shorts are opened after pumps cool off and on new highs (when safe), and closed quickly during strong upward moves or if stop loss/profit targets are hit. It uses visual overlays to clearly show when hedging is on, off, or blocked due to momentum, ensuring you’re protected in most market conditions but never short against the pump. Fast re-entry keeps the hedge active with minimal downtime.
Pump Detection:
RSI (Relative Strength Index): Calculated over a custom period (default 14 bars). If RSI rises above a threshold (default 70), the strategy considers the market to be in a pump (strong upward momentum).
Volume Spike: The current volume is compared to a 20-bar simple moving average of volume. If it exceeds the average by 1.5× and price increases at least 5% in one bar, pump conditions are triggered.
Price Jump: Measured by (close - close ) / close . A single-bar change > 5% helps confirm rapid momentum.
Pump Zone (No Short): If any of these conditions is true, an orange or red background is shown and shorts are blocked.
Cooldown and Re-Entry:
Cooldown Detection: After the pump ends, RSI must fall below a set value (default ≤ 60), and either volume returns towards average or price momentum is less than half the original spike (oneBarUp <= pctUp/2).
barsWait Parameter: You can specify a waiting period after cooldown before a short is allowed.
Short Entry After Pump/Cooldown: When these cooldown conditions are met, and no short is active, a blue background is shown and a short position is opened at the next signal.
New High Entry:
Lookback New High: If the current high is greater than the highest high in the last N bars (default 20), and pump is NOT active, a short can be opened.
Take Profit (TP) & Stop Loss (SL):
Take Profit: Short is closed if price falls to a threshold below the entry (minProfitPerc, default 2%).
Stop Loss: Short is closed if price rises to a threshold above the entry (stopLossPerc, default 6%).
Preemptive Exit:
Any time a pump is detected while a short position is open, the strategy closes the short immediately to avoid losses.
Visual Feedback:
Orange Background: Market is pumping, do not short.
Red Background: Other conditions block shorts (cooldown or waiting).
Blue Background: Shorts allowed.
Triangles/Circles: Mark entries, pump start/end, for clear trading signals.
Pump-Smart Shorting StrategyThis strategy is designed for actively hedging long token positions by opening and closing short positions in response to market momentum, specifically after strong upward moves ("pumps"). It incorporates momentum detection, cooldown logic, and avoids shorting during periods of high volatility or when a pump is active. The script includes risk management, visual feedback zones for operational states, and a control panel for real-time diagnostics.
How The Strategy Works
1. Pump Detection
The strategy monitors for strong upward moves using:
- RSI (Relative Strength Index): A value ≥ 70 signals strong buying momentum.
- Volume: If current volume exceeds 1.5× the average, combined with a single-bar price jump > 5%.
- When these pump conditions are met, the strategy blocks shorts and colors the background orange.
2. Pump End and Cooldown
Once pump conditions cease, the strategy enters a cooldown phase:
RSI must drop to ≤ 60.
Either the price momentum slows or volume returns to near average.
Users can set a waiting period (barsWait) after the pump ends before entering shorts.
3. Short Trade Entry
Shorts are opened only if:
- The pump has ended and cooldown conditions are met (shortAfterPump).
- Or a new high is established and no pump is underway (shortOnPeak).
Visual indicators:
Blue arrow for "short after pump".
Red arrow for "short on a new high".
4. No-Short Zones
A red background flag indicates zones where shorting is blocked:
If pump conditions are active.
If market is still cooling down post-pump.
If the cooldown period (barsWait) hasn't elapsed.
5. Position Management & Risk Controls
The script only opens a short if no short is currently active.
Take Profit (green line): Short closes if price falls ~2% below the short entry.
Stop Loss (red line): Short closes if price rises ~6% above the entry.
If a pump is detected while in a short, the position is closed immediately to mitigate risk.
6. Real-Time Visual Feedback
Shapes Above Bars:
Orange circle: pump start
Teal circle: pump end
Blue triangle: short after pump
Red triangle: short on new high
Overlay Lines:
Blue line: active short entry price
Green line: take profit threshold
Red line: stop loss threshold
Background Colors:
Orange: pump zone (no shorts)
Blue: post-pump entry zone
Red: no-short zone (visual block for restricted shorts)
Info Panel (top right): Shows pump status, cooldown, entry opportunities, and whether shorting is blocked.
Customization Parameters
lookbackPeriod: Bars to look back for new highs
minProfitPerc: Take profit percent on shorts
stopLossPerc: Maximum allowed loss percent before stop out
rsiPeriod, rsiHigh, rsiCool: Momentum detection/cooldown tuning
volMult, pctUp: Volume and price jump sensitivity for pump detection
barsWait: Number of bars to wait post-pump before allowing shorts
hedgeTokens: Short position size per entry
Use Cases
Active Hedging: For users managing large, illiquid spot positions who want to systematically hedge risk after large upward moves.
Momentum-Aware Shorting: Ensures shorts are only entered after euphoria cools, tactics for avoiding squeeze/liquidation risk.
Visual Diagnostics: Clear overlays and color codes for trading zones, signal clarity, and operational feedback.
Strategy Logic Summary
Condition Action Visual Feedback
Pump detected Block shorts, close shorts Orange/red background
Pump ended, cooled Enable shorts Blue background, arrow
New high (no pump) Allow short entry Red arrow
Take profit reached Close short Green line
Stop loss reached Close short Red line
Blocked zone No shorts allowed Red background
This script is robust for market environments with frequent volatility spikes, giving traders a clear, rule-based template for short-side risk management.Documentation: Short After Pump Ends Strategy
Purpose: This Pine Script strategy allows you to hedge long token positions by opening shorts after strong price pumps finish and during market consolidations. It is designed to minimize risk from short squeezes and avoid shorting during active pumps.
Key Features:
Pump Detection:
Uses RSI, volume, and single-bar price jump to detect if the market is in an upward pump.
No short positions are opened during these zones. Red background visually highlights these periods.
Orange background highlights active pump zones.
Cooldown Logic:
Shorts are only opened after the pump has ended and the market has cooled down (RSI ≤ 60, volume and momentum returned to normal).
You can set how many bars to wait after the pump ends (barsWait) before shorts can be placed again.
Short Entry Triggers:
Short After Pump: When cooldown completes and no short position is active.
Short on New High: If a new high is formed and no pump is active (optional; keep for more frequent entries).
Risk Management:
Take Profit (TP): Short closes if market falls the specified percentage from entry.
Stop Loss (SL): Short closes if market rises the specified percentage.
If a pump is detected while in a short, the short is closed immediately.
Visuals and Feedback:
Shape markers for pump start/end, short entries (arrows) — without labels for clean visuals.
Colored overlays:
Orange = pump zone (no shorting)
Blue = post-pump short entry zones
Red = no-short zones (blocked periods)
Panel widget displays pump status, cooldown, opportunities, and zone state.
Parameters:
lookbackPeriod: Number of bars for new high detection.
minProfitPerc: Take profit percentage for shorts.
stopLossPerc: Max loss percentage before the short is stopped.
rsiPeriod, rsiHigh, rsiCool: Controls for pump/cooldown detection.
volMult, pctUp: Volume and price jump detection for identifying pumps.
barsWait: Wait time after pump ends before shorts are allowed.
hedgeTokens: Number of tokens to use for each short position.
Logic Summary Table:
Market Condition Action Visual Feedback
Pump detected No shorts/open, close shorts Orange/red overlay
Pump ended and cooled Shorts enabled (entry) Blue overlay, no short zone removed
New high while not pumping Shorts enabled (entry) Red arrow
TP or SL hit Short closed Green/red line overlay
Blocked periods No short allowed Red overlay
Usage:
- Deploy this strategy to minimize drawdown from post-pump reversals.
- Identify and avoid risky periods with clear overlays and marker signals.
- Actively hedge positions only when market is not in a strong upward momentum.
Customizable for:
- More conservative/aggressive pump detection (change RSI/volume/price thresholds).
- Adaptable to different token sizes and market environments (modify hedgeTokens, waiting periods, percent thresholds).
Gann-ADeLLaunch the indicator and select an important and influential high and low on the daily time frame. In the information window on the right side of the chart, move the numbers shown in the levels section forward from the second point you selected and draw a vertical line and wait for a reversal on these time frames and enjoy trading.
Don't forget about price action.
ADeL - Fn
ICT Killzones & MacrosICT Killzones & Macros (v1.1.5) — configurable ICT session windows + refined “macro” windows with live High/Low levels, optional extensions, next-window previews, and lightweight opening-price lines. Built to be clock-robust, timezone-aware, and performant on intraday charts.
Tip: All times are interpreted in your chosen IANA timezone (default: America/New_York) and auto-handle DST. You can rename, recolor, enable/disable, and retime every window.
What it plots
- Killzones (5) : Asia (19:00–02:00), London (02:00–05:00), NY AM (07:00–09:30), London Close (10:00–12:00), NY PM (13:30–16:00) — full-height boxes with optional header.
- Macros (8) (defaults tailored for common ICT “refined” windows): Asia-1 (18:00–21:00), Asia-2 (21:00–00:00), London-1 (01:00–04:00), AM-1 (09:45–10:15), AM-2 (10:45–11:15), Lunch (12:00–13:00), PM-1 (13:30–14:30), Power Hour (15:10–16:00).
- Live High/Low lines for the current Macro/Killzone window.
- Optional HL extension to the right until price crosses or the trading day rolls (style selectable).
- “Next” previews : earliest upcoming Macro and Killzone header; optional next-window background band.
- Opening Prices (3 lightweight time lines) : defaults 00:00, 08:30, 09:30 with right-edge labels, scoped to a session you choose (auto-cleans at session end).
- Key inputs & styling
- General : Timezone (IANA), “Sessions to show” (per window) to keep only the last N completed windows.
- Header : height (ticks), gap (ticks), fill opacity, border width/style, text size/color, toggle “Next Macro/Killzone” headers.
- Boxes : global fill opacity, global border width/style (used by both Macros & Killzones).
- High/Low : show HL, HL line style, extend on/off + extension style, optional extension labels.
- Opening Prices : enable Time 1/2/3, set HH:MM for each, session window, per-line colors, style (dotted/dashed/solid), width.
- Per-window controls : each Macro/Killzone has Enable, Session (HHMM-HHMM), Label, Fill color.
How to use (quick start)
- Set Timezone to your preference (default America/New_York).
- Toggle on the Macros and Killzones you trade. Adjust session times if needed.
- (Optional) Turn on Extend High/Low to project levels until crossed/day-roll.
- (Optional) Enable Next… headers to see the next upcoming window at a glance.
- (Optional) Configure Opening Prices (00:00 / 08:30 / 09:30 by default) and the session over which they appear.
Behavior & notes
- Time windows are computed by clock, not by guessing bar timestamps, making them robust across brokers and timeframes.
- With HL extension on, the current window’s levels extend until crossed or the end of the trading day (in your timezone). With it off, completed windows keep static HL markers (limited by “Sessions to show”).
- “Sessions to show” applies per Macro/Killzone to automatically prune older windows and keep charts snappy.
- Opening-price lines exist only within the chosen “Opening Prices Session” and are removed when it ends (keeps charts clean).
Defaults (color cues)
Killzones: Asia (blue), London (purple), NY AM (green), London Close (yellow), NY PM (orange).
Macros: neutral greys with Lunch and PM accents out of the box (all customizable).
Performance tips
- Reduce “Sessions to show” if you scroll far back in history.
- Disable “Next…” previews and/or extension labels on very slow machines.
- Narrow the “Opening Prices Session” window to exactly when you need those lines.
Changelog highlights
- v1.1.5 : Internal refinements and stability.
- v1.1.3 : Live High/Low lines for current windows + optional extension.
- v1.1.2 : Added “next Killzone” preview (to match “next Macro”).
- v1.1.0 : Defaults updated (5 KZ, 8 Macros). Removed “snap-to-killzone” behavior.
- v1.0.0 : Independent Macro vs. Killzone rendering; cleaner header logic.
- Known limitations
If your chart warns about drawings, trim “Sessions to show”.
If your broker session times differ from NY hours, adjust the sessions or change the indicator timezone.
Credits & intent
Inspired by ICT timing concepts; provided for education/mark-up, not financial advice.
Built to be flexible so you can mirror your personal playbook and journaling workflow.
ICT Sessions With BOS [TradeWithRon]
WITH BOS
This version includes BOS with filter for each session.
NONE,FVG,CISD Filter preset
you can choose how many BOS per session, style etc.
ICT Sessions and killzones maps three intraday sessions on your chart (Asia, London, NY), tracks each session’s live high/low, draws optional session range boxes, and projects ICT OTE zones in real time—with granular styling, touch/mitigation logic, and alerting.
What it does
*Live Session high/low tracking.
Historical session lines:
When a session ends, its final High/Low are preserved as tracked lines (with optional labels) for a configurable number of recent sessions.
Session boxes (ranges):
Draws a shaded box from session start to end that expands with new highs/lows. Limit how many recent boxes remain on chart.
ICT OTE zones (live):
For the currently active session, projects user-defined Fibonacci OTE levels (e.g., 61.8%, 70.5%, 78.6) between the session’s running high and low. Zones update tick-by-tick and can show labels. You can retain a history of recent sessions’ OTE levels.
snapshot
Break visualization (mitigation):
Optionally color the bar when price breaks a stored session High/Low. You can:
Require a body close through the level (vs. any touch)
Auto-remove the line and/or label on touch/close
Use custom break colors per session and side (high/low)
Timestamps:
Add up to two recurring vertical timestamp markers (e.g., 08:00, 09:30), plus an opening horizontal marker (e.g., 09:30) with label that extends until the next occurrence.
Alerts:
Built-in alerts for:
Touch of Session 1/2/3 High/Low (Asia/London/NY)
Touch of OTE levels (per session)
Key inputs:
Time & Limits
Timezone (e.g., GMT-4)
Timeframe limit: hide all drawings on and above a specified TF
Sessions
Session windows (default):
Session 1 (Asia): 18:00–00:00
Session 2 (London): 00:00–06:00
Session 3 (NY): 08:00–12:00
How many to keep (lines/boxes)
Line width, colors, and label suffixes (“High”/“Low”)
Labels: toggle, text (“Asia”, “London”, “NY”), size, and colors
Boxes: toggle per session and background colors
ICT OTE Zones
Toggle per session (Asia/London/NY)
Levels (comma-separated %s, e.g., 61.8,70.5,78.6)
History: number of past sessions to retain
Opacity, line width/style, and label size
Custom label text per session (e.g., “Asia OTE”)
Break/Mitigation Behavior:
Enable Mitigated Candles (bar color on break)
Remove line on touch and/or remove label on touch
Require body close (vs. wick touch)
Custom break colors by session and side
Timestamps
Opening horizontal line (time, style, width, color, label text/size, drawing limit)
Two vertical timestamps (times, style, width, color, drawing limit)
Alerts
Master Enable Alerts
Per-session toggles for High/Low touches
OTE touch alerts
How it works (under the hood)
Detects session state via input.session() windows in the chosen timezone.
Live session High/Low lines and labels update in real time; on session end, final levels are stored with optional labels and tracked length.
OTE zones are live-computed from current session High↔Low and refreshed every bar; a compact rolling history is enforced.
Bar coloring reacts to break events (touch or body-close, per your setting) and uses session-specific colors when enabled.
Timestamp lines/labels are created on each occurrence and trimmed to a drawing limit for performance.
Tips:
To hide session lines but keep boxes, set line color opacity to 0.
Use Timeframe Limit to keep higher-TF charts clean.
Fine-tune OTE Levels and History to balance clarity and performance.
For stricter break logic, enable Require Body Close.
Note: The script reserves high limits for lines/labels/boxes to keep recent context visible while managing cleanup automatically. Adjust “Session Number” and “Number Of Boxes” to suit your workflow.
— © TradeWithRon
PulseGrid Universal Scalper - Adaptive Pulse and Symmetric SpansInstrument agnostic. Works on any symbol and timeframe supported by TradingView.
Message or hit me up in chat for full access .
Purpose and scope
PulseGrid is a short timeframe strategy designed to read intrabar structure and recent path so that entries align with actionable momentum and context. The strategy is private. The description below provides all the information needed to understand how it behaves, how it sizes risk, how to tune it responsibly, and how to evaluate results without making unrealistic claims. The design is instrument agnostic. It runs on any asset class that prints open high low close bars on TradingView. That includes commodities such as Gold and WTI, currencies, crypto, equity indices, and single stocks. Performance will always depend on the symbol’s liquidity, spread, slippage, and session structure, which is why the description focuses on principles and safe parameter ranges instead of hard promises.
What the strategy does at a glance
It builds a composite entry signal named Pulse from five normalized bar features that reflect short term pressure and follow through.
It applies regime guards that keep the strategy inactive when the tape is either too quiet, too bursty, or too directionally random.
It optionally uses a directional filter where a fast and a slow exponential average must agree and their gap must be material relative to recent true range.
When a signal is allowed, risk is sized using symmetric spans that come from nearby untraded price distances above and below the market. The strategy sets a single stop and a single take profit from those spans.
Lines for entry, stop, and take profit are drawn on the chart. A compact on chart table shows trade counts, win rate, average R per trade, and profit factor for all trades, longs only, and shorts only.
This combination yields entries that are reactive but not chaotic, and risk lines that respect the market’s recent path instead of generic pip or point targets.
Why the design is original and useful
The core originality is the union of a composite entry that adapts to volatility and a geometry based risk model. The entry uses five different viewpoints on the same bar space instead of relying on a single technical indicator. The risk model uses spans that come from actual untraded distance rather than fixed multipliers of a generic volatility measure. The result is a framework that is simple to read on a chart and simple to evaluate, yet it avoids the traps of curve fitting to one symbol or one month of data. Because everything is normalized locally, the same logic translates across asset classes with only modest tuning.
The Pulse composite in detail
Pulse is a weighted blend of the following normalized features.
Impulse imbalance. The script sums upward and downward impulses over a short window. An upward impulse is the extension of highs relative to the prior bar. A downward impulse is the extension of lows relative to the prior bar. The net imbalance, scaled by the local range, captures whether extension pressure is building or fading.
Wick and close location. Inside each bar, the distance between the close and the extremes carries information about rejection or acceptance. A bar that closes near the high with relatively heavier lower wick suggests upward acceptance. A bar that closes near the low with heavier upper wick suggests downward acceptance. A weight controls the contribution of wick skew versus close location so that users can favor reversal or momentum behaviour.
Shock touches. Within the recent range window, touches that occur very near the top decile or bottom decile are marked. A short sliding window counts recent shocks. Frequent top shocks in a rising context suggest supply tests. Frequent bottom shocks in a declining context suggest demand tests. The count is normalized by window length.
Breakout ledger. The script compares current extremes to lagged extremes and keeps a simple count of recent upside and downside breakouts. The difference behaves as a short term polarity meter.
Curvature. A simple second difference in closing price acts as a curvature term. It is normalized by the recent maximum of absolute one bar returns so that the value remains bounded and comparable to other terms.
Pulse is smoothed over a fraction of the main signal length. Smoothing removes impulse spikes without destroying the quick reaction that scalpers need. The absolute value of smoothed Pulse can be used with an adaptive gate so that only the top percentile of energy for the recent environment is eligible for entries. A small floor prevents accidental entries during very quiet periods.
Regime guards that keep the strategy selective
Three guards must all pass before any entry can occur.
Auction Balance Factor. This is the proportion of closes that land inside a mid band of the prior bar’s high to low range. High values indicate balanced chop where breakouts tend to fail. Low values indicate directional conditions. The strategy requires ABF to sit below a user chosen maximum.
Dispersion via a Gini style measure on absolute returns. Very low dispersion means bars are small and uniform. Very high dispersion means a few outsized bars dominate and slippage risk can be elevated. The strategy allows the user to require the dispersion measure to remain inside a band that reflects healthy activity.
Binary entropy of direction. Over the core window, the proportion of up closes is used to compute a simple entropy. Values near one indicate coin flip behaviour. Values near zero indicate one sided sequences. The guard requires entropy below a ceiling so that random directionality does not produce noise entries.
An optional directional filter asks that a fast and a slow exponential average agree on direction and that their gap, when divided by an average true range, exceed a threshold. This filter can be enabled on symbols that trend cleanly and disabled when the composite entry is already selective enough.
Risk sizing with symmetric spans
Instead of fixed points or a pure ATR multiplier, the strategy sizes stops and targets from a pair of spans. The upward span reflects recent untraded distance above the market. The downward span reflects recent untraded distance below the market. Each span is floored by a fallback that comes from the maximum of a short simple range average and a standard average true range. A tick based floor prevents microscopic stops on instruments with high tick precision. An asymmetry cap prevents one span from becoming many times larger than the other. For long entries the stop is a multiple of the downward span and the target is a multiple of the upward span. For short entries the stop is a multiple of the upward span and the target is a multiple of the downward span. This creates a risk box that is symmetric by construction yet adaptive to recent voids and gaps.
Execution, ties, and housekeeping
Entries evaluate at bar close. Exits are tested from the next bar forward. If both stop and target are hit within the same bar, the outcome can be resolved in a consistent way that favors the stop or the target according to a single user setting. A short cooldown in bars prevents flip flops. Users can restrict entries to specific sessions such as London and New York. The chart renders entry, stop, and target lines for each trade so that every action is visible. The table in the top right shows trade counts, take profit and stop counts, win rate, average R per trade, and profit factor for the whole set and by direction.
Defaults and responsible backtesting
The default properties in the script use a realistic initial capital and commission value. Users should also set slippage in the strategy properties to reflect their broker and symbol. Small timeframe trading is sensitive to friction and the strategy description does not claim immunity to that reality. The strategy is intended to be tested on a dataset that produces a meaningful sample of trades. A sample in the range of a hundred trades or more is preferred because variance in short samples can be large. On thin symbols or periods with little regular trading, users should either change timeframe, change sessions, or use more selective thresholds so that the sample contains only liquid scenarios.
Universal usage across markets
The strategy is universal by design. It will run and produce lines on any open high low close series on TradingView. The composite entry is made of normalized parts. The regime guards use proportions and bounded measures. The spans use untraded distance and range floors measured in the local price scale. This allows the same logic to function on a currency pair, a commodity, an index future, a stock, or a crypto pair. What changes is calibration.
A safe approach for universal use is as follows.
Start with the default signal length and wick weight.
If the chart prints many weak signals, enable the directional filter and raise the normalized gap threshold slightly.
If the chart is too quiet, lower the adaptive percentile or, with adaptive off, lower the fixed pulse threshold by a small amount.
If stops are too tight in quiet regimes, raise the fallback span multiplier or raise the minimum tick floor in ticks.
If you observe long one sided days, lower the maximum entropy slightly so that entries only occur when directionality is genuine rather than alternating.
Because the logic is bounded and local, these simple steps carry over across symbols. That is why the strategy can be used literally on any asset that you can load on a TradingView chart. The code does not depend on a specific tick size or a specific exchange calendar. It will still remain true that symbols with higher spread or fewer regular trading hours demand stricter thresholds and larger floors.
Suggested parameter ranges for common cases
These ranges are guidelines for one to five minute bars. They are not promises of performance. They reflect the balance between having enough signals to learn from and keeping noise controlled.
Signal length between 18 and 34 for liquid commodities and large capitalization equities.
Wick weight between 0.30 and 0.50 depending on whether you want reversal recognition or close momentum.
Adaptive gate percentile between 85 and 93 when adaptive is enabled. Fixed threshold between 0.10 and 0.18 when adaptive is disabled. Use a non zero floor so very quiet periods still require some energy.
Auction Balance Factor maximum near 0.70 for symbols with clear session bursts. Slightly higher if you prefer to include more balanced prints.
Dispersion band with a lower bound near 0.18 and an upper bound near 0.68 for most session instruments. Tighten the band if you want to skip very bursty days or very flat days.
Entropy maximum near 0.90 so coin flip phases are filtered. Lower the ceiling slightly if the symbol whipsaws frequently.
Stop multiplier near one and take profit multiplier between two and three for a single target approach. Larger target multipliers reduce hit rate and lengthen holding time.
These are safe starting points across commodities, currencies, indices, equities, and crypto. From there, small increments are preferred over dramatic changes.
How to evaluate responsibly
A clean chart and a direct test process help avoid confusion. Use standard candles for signals and exits. If you use a non standard chart type such as Heikin Ashi or Renko, do so only for visualization and not for the strategy’s signal computation, as those chart types can produce unrealistic fills. Turn off other indicators on the published chart unless they are needed to demonstrate a specific property of this strategy. When you post results or discuss outcomes, include the symbol, timeframe, commission and slippage settings, and the session settings used. This makes the context clear and avoids misleading readers.
When you look at results, consider the following.
The distribution of R per trade. A positive average R with a moderate profit factor suggests that exits are sized appropriately for the symbol.
The balance between long and short sides. The HUD table separates the two so you can see if one side carries the edge for that symbol.
The sensitivity to the tie preference. If many bars hit both stop and take profit, the market is chopping inside the risk box and you may need larger floors or stricter regime guards.
The session effect. Session hours matter for many instruments. Align your session filter with where liquidity and volatility concentrate.
Known limitations and honest warnings
PulseGrid is not a guarantee of future profit. It is a systematic way to read short term structure and to size risk in a way that reflects recent path. It assumes that the data feed reflects the exchange reality. It assumes that slippage and spread are non zero and uses explicit commission and user provided slippage to approximate that. It does not place multiple targets. It does not trail stops. It is not a high frequency system and does not attempt to model queue priority or microsecond fills. On illiquid symbols or very short timeframes outside regular hours, signals will be less reliable. Users are responsible for choosing realistic settings and for evaluating whether the symbol’s conditions are suitable.
First use checklist
Load the symbol and timeframe you care about.
If the instrument has clear sessions, turn on the session filter and select realistic London and New York hours or other sessions relevant to the instrument.
Set commission and slippage in the strategy properties to values that match your broker or exchange.
Run the strategy with defaults. Look at the HUD summary and the lines.
Decide whether to enable the directional filter. If you see frequent reversals around the entry line, enable it and raise the normalized gap threshold slightly.
Adjust the adaptive gate. If the chart floods, raise the percentile. If the chart starves, lower it or use a slightly lower fixed threshold.
Adjust the fallback span multiplier and tick floor so that stops are never microscopic.
Review per session performance. If one session underperforms, restrict entries to the better one.
This simple process takes minutes and transfers to any other symbol.
Why this script is private
The source remains private so that the underlying method and its implementation details are not copied or republished. The description here is complete and self contained so that users can understand the purpose, originality, usage, and limitations without needing to inspect the source. Privacy does not change the strategy’s on chart behavior. It only protects the specific coding details.
Guarantee and compliance statements
This description does not contain advertising, solicitations, links, or contact information. It does not make performance promises. It explains how the script is original and how it works. It also warns about limitations and the need for realistic assumptions. The strategy is not investment advice and is not created only for qualified investors. It can be tested and used for educational and research purposes. Users should read TradingView’s documentation on script properties and backtesting. Users should avoid non standard chart types for signal computation because those produce unrealistic results. Users should select realistic account sizes and friction settings. Users should not post claims without showing the settings used.
Closing summary
PulseGrid is a compact framework for short timeframe trading that combines a composite entry built from multiple normalized bar features with a symmetric span model for risk. The entry adapts to volatility. The regime guards keep the strategy inactive when the tape is either too quiet or too erratic. The risk geometry respects recent untraded spans instead of arbitrary distances. The entire design is instrument agnostic. It will run on any symbol that TradingView supports and it will behave consistently across asset classes with modest tuning. Use it with a clean chart, realistic friction, and enough trades to make your evaluation meaningful. Use sessions if the instrument concentrates activity in specific hours. Adjust one control at a time and prefer small increments. The goal is not to find a magic parameter. The goal is to maintain a stable rule set that reads market structure in a way you can trust and audit.
HTF Cross Breakout [CHE] HTF Cross Breakout — Detects higher timeframe close crossovers for breakout signals, anchors VWAP for trend validation, and flags continuations or traps with visual extensions for delta percent and stop levels.
Summary
This indicator spots moments when the current chart's close price crosses a higher timeframe close, marking potential breakouts only when the current bar shows directional strength. It anchors a volume-weighted average price line from the breakout point to track trend health, updating labels to show if the move continues or reverses into a trap. Extensions add a dotted line linking the breakout level to the current close with percent change display, plus a stop-loss marker at the VWAP end. Signals gain robustness from higher timeframe confirmation and anti-repainting options, reducing noise in live bars compared to simple crossover tools.
Motivation: Why this design?
Traders often face false breakouts from intrabar wiggles on lower timeframes, especially without higher timeframe alignment, leading to whipsaws in volatile sessions. This design uses higher timeframe close as a stable reference for crossover detection, combined with anchored volume weighting to gauge sustained momentum. It addresses these by enforcing bar confirmation and directional filters, providing clearer entry validation and risk points without overcomplicating the chart.
What’s different vs. standard approaches?
Reference baseline
Standard crossover indicators like moving average crosses operate solely on the chart timeframe, ignoring higher timeframe context and lacking volume anchoring.
Architecture differences
- Higher timeframe data pulls via security calls with optional repainting control for stability.
- Anchored VWAP resets at each signal, accumulating from the breakout bar only.
- Label dynamics update in real-time for continuation checks, with extensions for visual delta and stop computation.
- Event-driven line finalization prunes old elements after a set bar extension.
Practical effect
Charts show persistent lines and labels that extend live but finalize cleanly on new events, avoiding clutter. This matters for spotting trap reversals early via label color shifts, and extensions provide quick risk visuals without manual calculations, improving decision speed in trend trades.
How it works (technical)
The indicator first determines a higher timeframe based on user selection, pulling its close price securely. It checks for crossovers or crossunders of the current close against this higher close, but only triggers on confirmed bars with matching directional opens and closes. On a valid event, a horizontal line and label mark the higher close level, while a dashed VWAP line starts accumulating typical price times volume from that bar onward. During the active phase, the breakout line extends to the current bar, the label repositions and updates text based on whether the current close holds above or below the level for bulls or bears. A background tint warns if the close deviates adversely from the current VWAP. Extensions draw a vertical dotted line at the last bar between the breakout level and close, placing a midpoint label with percent difference; separately, a label at the VWAP end shows a computed stop price. Persistent variables track the active state and accumulators, resetting on new events after briefly extending old elements. Repaint risk from security calls is mitigated by confirmed bar gating or user opt-in.
Parameter Guide
Plateau Length (reserved for future, currently unused): Sets a length for potential plateau detection in extensions; default 3, minimum 1. Higher values would increase stability but are not active yet—leave at default to avoid tuning.
Line Width: Controls thickness of breakout, VWAP, and extension lines; default 2, range 1 to 5. Thicker lines improve visibility on busy charts but may obscure price action—use 1 for clean views, 3 or more for emphasis.
+Bars after next HTF event (finalize old, then delete): Extends old lines and labels by this many bars before deletion on new signals; default 20, minimum 0. Shorter extensions keep charts tidy but risk cutting visuals prematurely; longer aids review but builds clutter over time.
Evaluate label only on HTF close (prevents gray traps intrabar): When true, label updates wait for higher timeframe confirmation; default true. Enabling reduces intrabar flips for stabler signals, though it may delay feedback—disable for faster live trading at repaint cost.
Allow Repainting: Permits real-time security data without confirmation offset; default false. False ensures historical accuracy but lags live bars; true speeds updates but can repaint on HTF closes.
Timeframe Type: Chooses HTF method—Auto Timeframe (dynamic steps up), Multiplier (chart multiple), or Manual (fixed string); default Auto Timeframe. Auto adapts to chart scale for convenience; Multiplier suits custom scaling like 5 times current; Manual for precise like 1D on any chart.
Multiplier for Alternate Resolution: Scales chart timeframe when Multiplier type selected; default 5, minimum 1. Values near 1 mimic current resolution for subtle shifts; higher like 10 jumps to broader context, increasing signal rarity.
Manual Resolution: Direct timeframe string like 60 for 1H when Manual type; default 60. Match to trading horizon—shorter for swing, longer for positional—to balance frequency and reliability.
Show Extension 1: Toggles dotted line and delta percent label between breakout level and current close; default true. Disable to simplify for basic use, enable for precise momentum tracking.
Dotted Line Width: Thickness for Extension 1 line; default 2, range 1 to 5. Align with main Line Width for consistency.
Text Size: Size for delta percent label; options tiny, small, normal, large; default normal. Smaller reduces overlap on dense charts; larger aids glance reads.
Decimals for Δ%: Precision in percent change display; default 2, range 0 to 6. Fewer decimals speed reading; more suit low-volatility assets.
Positive Δ Color: Hue for upward percent changes; default lime. Choose contrasting for visibility.
Negative Δ Color: Hue for downward percent changes; default red. Pair with positive for quick polarity scan.
Dotted Line Color: Color for Extension 1 line; default gray. Neutral tones blend well; brighter for emphasis.
Background Transparency (0..100): Opacity for delta label background; default 90. Higher values fade for subtlety; lower solidifies for readability.
Show Extension 2: Toggles stop-loss label at VWAP end; default true. Turn off for entry focus only.
Stop Method: Percent from VWAP end or fixed ticks; options Percent, Ticks; default Percent. Percent scales with price levels; Ticks suits tick-based instruments.
Stop %: Distance as fraction of VWAP for Percent method; default 1.0, step 0.05, minimum 0.0. Tighter like 0.5 reduces risk but increases stops; wider like 2.0 allows breathing room.
Stop Ticks: Tick count offset for Ticks method; default 20, minimum 0. Adjust per asset volatility—fewer for tight control.
Price Decimals: Rounding for stop price text; default 4, range 0 to 10. Match syminfo.precision for clean display.
Text Size: Size for stop label; options tiny, small, normal, large; default normal. Scale to chart zoom.
Text Color: Foreground for stop text; default white. Ensure contrast with background.
Inherit VWAP Color (BG tint): Bases stop label background on VWAP hue; default true. True maintains theme; false allows custom black base.
BG Transparency (0..100): Opacity for stop label background; default 0. Zero for no tint; up to 100 for full fade.
Reading & Interpretation
Breakout lines appear green for bullish crosses or red for bearish, extending live until a new event finalizes them briefly then deletes. Labels start blank, updating to Bull Cont. or Bear Cont. in matching colors if holding the level, or gray Bull Trap/Bear Trap on reversal. VWAP dashes yellow for bulls, orange for bears, sloping with accumulated volume weight—deviations trigger faint red background warnings. Extension 1's dotted vertical shows at the last bar, with midpoint label green/red for positive/negative percent from breakout to close. Extension 2 places a left-aligned label at VWAP end with stop price and method note, tinted to VWAP for context.
Practical Workflows & Combinations
For trend following, enter long on green Bull Cont. labels above VWAP with higher highs confirmation, filtering via rising structure; short on red Bear Cont. below. Pair with volume surges or RSI above 50 for bulls to avoid traps. For exits, trail stops using the Extension 2 level, tightening on warnings or gray labels—aggressive on continuations, conservative post-trap. In multi-timeframe setups, use default Auto on 15m charts for 1H signals, scaling multiplier to 4 for daily context on hourly; test on forex/stocks where volume is reliable, avoiding low-liquidity assets.
Behavior, Constraints & Performance
Signals confirm on bar close with HTF gating when strict mode active, but live bars may update if repainting enabled—opt false for backtest fidelity, true for intraday speed. Security calls risk minor repaints on HTF closes, mitigated by confirmation offsets. Resources cap at 1000 bars back, 50 lines/labels total, with event prunes to stay under budgets—no loops, minimal arrays. Limits include VWAP lag in low-volume periods and dependency on accurate HTF data; gaps or holidays may skew anchors.
Sensible Defaults & Quick Tuning
Defaults suit 5m-1H charts on liquid assets: Auto HTF, no repaint, 1% stops. For choppy markets with excess signals, enable strict eval and bump multiplier to 10 for rarer triggers. If sluggish in trends, shorten extend bars to 10 and allow repainting for quicker visuals. On high-vol like crypto, widen stop % to 2.0 and use Ticks method; for stables like indices, tighten to 0.5% and keep Percent.
What this indicator is—and isn’t
This is a signal visualization layer for breakout confirmation and basic risk marking, best as a filter in discretionary setups. It isn’t a standalone system or predictive oracle—combine with price structure, news awareness, and sizing rules for real edges.
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
Mayer Mutiple | QRMayer Multiple | QR — Publication Description
What it does
Mayer Multiple | QR is a cycle/valuation style oscillator that measures how far price sits above or below its longer-term average and normalizes that distance by current volatility. It helps you spot overheated extensions and deep discounts relative to trend, with adaptive bands that expand/contract as conditions change.
How it works (principle)
The script compares price to a long lookback moving average (default uses a 200-period average of ohlc4) and turns that gap into an oscillator.
It then computes a rolling standard deviation of that oscillator to build dynamic upper/lower bands (±1σ, ±2σ, ±3σ).
When the oscillator rises above the upper bands, the move is statistically stretched (potential distribution/risk). When it falls below the lower bands, it’s statistically depressed (potential accumulation/opportunity).
A small baseline band around zero (scaled from volatility) provides a quick trend-bias read without crowding the view.
Why this matters: Classic “Mayer Multiple” tools use a fixed threshold over a single moving average. This version is volatility-aware: its bands adapt to the market’s current dispersion, reducing false signals in quiet regimes and avoiding constant “overheat” flags in high-vol regimes.
What you see on the chart
White oscillator line: volatility-normalized deviation from the long-term average.
Adaptive bands:
Upper 1/2/3σ (shaded blue tones) = progressively more extended.
Lower 1/2/3σ (shaded green tones) = progressively more discounted.
Baseline ribbon: subtle band around zero for quick bias.
Background highlights: optional flashes when the oscillator exceeds the ±3σ extremes.
All visuals are generated by this script alone; no other indicator is required to understand usage.
How to use it
Context: Use on higher timeframes to gauge where price sits versus its long-term “fair value corridor.”
Signal reading:
Above +1σ/+2σ/+3σ: extension → consider de-risking, trailing stops, or waiting for mean reversion.
Below −1σ/−2σ/−3σ: discount → consider scaling in, watching for trend resumption cues.
Confluence: Treat it as a condition, not a trigger. Pair with structure (higher highs/lows), breadth, or momentum for entries/exits.
Regime awareness: As volatility rises, bands widen; prioritize trend context over single print extremes.
Inputs you can tune
Color mode: preset palettes for lines/fills/backgrounds.
Dynamic Threshold Length: lookback for the volatility (σ) calculation driving the adaptive bands.
Source: price input used for the long-term reference.
Band toggles: show/hide ±1σ / ±2σ / ±3σ envelopes to reduce clutter.
Originality & value
Adaptive, volatility-aware implementation of a Mayer-style concept: rather than one fixed threshold, it scales to current regime, keeping readings comparable across cycles.
Clear, clean presentation (oscillator + bands + optional background) designed for publication with a clean chart so the script’s output is immediately identifiable.
Offers actionable context (stretch/discount zones) while leaving trade execution to the user’s process.
Limitations & good practices
Best used for context and risk framing, not stand-alone entries.
Adaptive bands depend on the lookback you choose; very short windows can overfit, very long windows can lag.
Extremes can persist in strong trends—don’t fade momentum blindly.
Disclaimer
This tool is for research and education only and not investment advice. Markets involve risk. Past performance does not predict or guarantee future results. Use prudent risk management and test settings on your instruments/timeframes.
VAH Entry / VAL Exit (Xauusd) by TheMarketVengeanceThis strategy replicates a simplified intraday Market Profile/TPO approach for assets such as XAUUSD on key auction levels and volume dynamics to identify high-probability breakouts and exits.
Value Area Calculation: Each new day, the script accumulates all price and volume data to approximate the previous day’s Volume Weighted Average Price (VWAP, used here as Point of Control or POC). The Value Area High (VAH) and Value Area Low (VAL) are estimated as one standard deviation above and below this daily VWAP, representing the core 70% trading range where the majority of volume transacted.
Entry and Exit Logic: A long trade is triggered when price breaks out above yesterday’s VAH (plus a user-defined buffer) on above-average volume—this confirms momentum outside the fair value range. Exits occur if price falls below VAL, suggesting rejection of higher prices and a shift in auction direction.
Volume Confirmation: Entry signals require volume to be above the moving average, ensuring participation and validation of breakouts.
Intraday Plotting: The strategy plots the previous VAH, VAL, POC, and trigger/entry levels throughout the day for clear, visual reference.
Risk Management: The “pips” buffer input allows traders to fine-tune sensitivity for different markets ( 10pips for gold). Multiple entries are prevented until a new breakout opportunity emerges on the next session.
Only for XAUUSD.
Disclaimer:
This strategy is provided for educational purposes only. It is important to thoroughly review and backtest the strategy under your specific trading conditions before using it with real capital. The author and publisher are not responsible for any trading losses incurred.
Custom TPO Approximation by TheMartketVengeanceThis strategy replicates a simplified intraday Market Profile/TPO approach for assets such as XAUUSD, FX, or stocks, focusing on key auction levels and volume dynamics to identify high-probability breakouts and exits.
Value Area Calculation: Each new day, the script accumulates all price and volume data to approximate the previous day’s Volume Weighted Average Price (VWAP, used here as Point of Control or POC). The Value Area High (VAH) and Value Area Low (VAL) are estimated as one standard deviation above and below this daily VWAP, representing the core 70% trading range where the majority of volume transacted.
Entry and Exit Logic: A long trade is triggered when price breaks out above yesterday’s VAH (plus a user-defined buffer) on above-average volume—this confirms momentum outside the fair value range. Exits occur if price falls below VAL, suggesting rejection of higher prices and a shift in auction direction.
Volume Confirmation: Entry signals require volume to be above the moving average, ensuring participation and validation of breakouts.
Intraday Plotting: The strategy plots the previous VAH, VAL, POC, and trigger/entry levels throughout the day for clear, visual reference.
Risk Management: The “pips” buffer input allows traders to fine-tune sensitivity for different markets (such as 0.0001 for FX or 1 for gold). Multiple entries are prevented until a new breakout opportunity emerges on the next session.
This method enables traders to systemize breakout trades with solid context from auction market theory, volume confirmation, and precise intraday tracking.