Volume Sampled Supertrend [BackQuant]Volume Sampled Supertrend
A Supertrend that runs on a volume sampled price series instead of fixed time. New synthetic bars are only created after sufficient traded activity, which filters out low participation noise and makes the trend much easier to read and model.
Original Script Link
This indicator is built on top of my volume sampling engine. See the base implementation here:
Why Volume Sampling
Traditional charts print a bar every N minutes regardless of how active the tape is. During quiet periods you accumulate many small, low information bars that add noise and whipsaws to downstream signals.
Volume sampling replaces the clock with participation. A new synthetic bar is created only when a pre-set amount of volume accumulates (or, in Dollar Bars mode, when pricevolume reaches a dollar threshold). The result is a non-uniform time series that stretches in busy regimes and compresses in quiet regimes. This naturally:
filters dead time by skipping low volume chop;
standardizes the information content per bar, improving comparability across regimes;
stabilizes volatility estimates used inside banded indicators;
gives trend and breakout logic cleaner state transitions with fewer micro flips.
What this tool does
It builds a synthetic OHLCV stream from volume based buckets and then applies a Supertrend to that synthetic price. You are effectively running Supertrend on a participation clock rather than a wall clock.
Core Features
Sampling Engine - Choose Volume buckets or Dollar Bars . Thresholds can be dynamic from a rolling mean or median, or fixed by the user.
Synthetic Candles - Plots the volume sampled OHLC candles so you can visually compare against regular time candles.
Supertrend on Synthetic Price - ATR bands and direction are computed on the sampled series, not on time bars.
Adaptive Coloring - Candle colors can reflect side, intensity by volume, or a neutral scheme.
Research Panels - Table shows total samples, current bucket fill, threshold, bars-per-sample, and synthetic return stats.
Alerts - Long and Short triggers on Supertrend direction flips for the synthetic series.
How it works
Sampling
Pick Sampling Method = Volume or Dollar Bars.
Set the dynamic threshold via Rolling Lookback and Filter (Mean or Median), or enable Use Fixed and type a constant.
The script accumulates volume (or pricevolume) each time bar. When the bucket reaches the threshold, it finalizes one or more synthetic candles and resets accumulation.
Each synthetic candle stores its own OHLCV and is appended to the synthetic series used for all downstream logic.
Supertrend on the sampled stream
Choose Supertrend Source (Open, High, Low, Close, HLC3, HL2, OHLC4, HLCC4) derived from the synthetic candle.
Compute ATR over the synthetic series with ATR Period , then form upperBand = src + factorATR and lowerBand = src - factorATR .
Apply classic trailing band and direction rules to produce Supertrend and trend state.
Because bars only come when there is sufficient participation, band touches and flips tend to align with meaningful pushes, not idle prints.
Reading the display
Synthetic Volume Bars - The non-uniform candles that represent equal information buckets. Expect more candles during active sessions and fewer during lulls.
Volume Sampled Supertrend - The main line. Green when Trend is 1, red when Trend is -1.
Markers - Small dots appear when a new synthetic sample is created, useful for aligning activity cycles.
Time Bars Overlay (optional) - Plot regular time candles to compare how the synthetic stream compresses quiet chop.
Settings you will use most
Data Settings
Sampling Method - Volume or Dollar Bars.
Rolling Lookback and Filter - Controls the dynamic threshold. Median is robust to outliers, Mean is smoother.
Use Fixed and Fixed Threshold - Force a constant bucket size for consistent sampling across regimes.
Max Stored Samples - Ring buffer limit for performance.
Indicator Settings
SMA over last N samples - A moving average computed on the synthetic close series. Can be hidden for a cleaner layout.
Supertrend Source - Price field from the synthetic candle.
ATR Period and Factor - Standard Supertrend controls applied on the synthetic series.
Visuals and UI
Show Synthetic Bars - Turn synthetic candles on or off.
Candle Color Mode - Green/Red, Volume Intensity, Neutral, or Adaptive.
Mark new samples - Puts a dot when a bucket closes.
Show Time Bars - Overlay regular candles for comparison.
Paint candles according to Trend - Colors chart candles using current synthetic Supertrend direction.
Line Width , Colors , and Stats Table toggles.
Some workflow notes:
Trend Following
Set Sampling Method = Volume, Filter = Median, and a reasonable Rolling Lookback so busy regimes produce more samples.
Trade in the direction of the Volume Sampled Supertrend. Because flips require real participation, you tend to avoid micro whipsaws seen on time bars.
Use the synthetic SMA as a bias rail and trailing reference for partials or re-entries.
Breakout and Continuation
Watch for rapid clustering of new sample markers and a clean flip of the synthetic Supertrend.
The compression of quiet time and expansion in busy bursts often makes breakouts more legible than on uniform time charts.
Mean Reversion
In instruments that oscillate, faded moves against the synthetic Supertrend are easier to time when the bucket cadence slows and Supertrend flattens.
Combine with the synthetic SMA and return statistics in the table for sizing and expectation setting.
Stats table (top right)
Method and Total Samples - Sampling regime and current synthetic history length.
Current Vol or Dollar and Threshold - Live bucket fill versus the trigger.
Bars in Bucket and Avg Bars per Sample - How much time data each synthetic bar tends to compress.
Avg Return and Return StdDev - Simple research metrics over synthetic close-to-close changes.
Why this reduces noise
Time based bars treat a 5 minute print with 1 percent of average participation the same as one with 300 percent. Volume sampling equalizes bar information content. By advancing the bar only when sufficient activity occurs, you skip low quality intervals that add variance but little signal. For banded systems like Supertrend, this often means fewer false flips and cleaner runs.
Notes and tips
Use Dollar Bars on assets where nominal price varies widely over time or across symbols.
Median filter can resist single burst outliers when setting dynamic thresholds.
If you need a stable research baseline, set Use Fixed and keep the threshold constant across tests.
Enable Show Time Bars occasionally to sanity check what the synthetic stream is compressing or stretching.
Link again for reference
Original Volume Based Sampling engine:
Bottom line
When you let participation set the clock, your Supertrend reacts to meaningful flow instead of idle prints. The result is a cleaner state machine, fewer micro whipsaws, and a trend read that respects when the market is actually trading.
Analisi trend
SPY200SMA (+4%/-3%) TQQQ/QQQ STRATEGYSummary of the Improved Strategy: When the price of AMEX:SPY is +4% above the 200SMA BUY NASDAQ:TQQQ and when the price of SPY drops to -3% under the SPY 200SMA SELL everything and slowly DCA into NASDAQ:QQQ over the next 6-12 months or until price returns to +4% above the SPY 200SMA at which point you will go back into 100% TQQQ.
Note: (if the price of QQQ goes 30% above the 200SMA of QQQ deleverage to QQQ or Sell to protect yourself from dot com level event)
More info and stats -https://www.reddit.com/r/LETFs/comments/1nhye66/spy_200sma_43_tqqqqqq_long_term_investment/
Santhosh ATR Buy/Sell with Consolidation OverlayUse this indicator to filter false signals, if you get signals within consolidation area , then wait for the market to break the consolidation zone to take the entry. Avoid entry within consolidation zones . For better performance use "lookback period:45", "Consolidation Length:2" for consolidation inputs. Feel free to use your inputs to match your strategy again any asset.
Premarket Power Bar StrategyStep 1: Mark Your Levels Before the Open
When: Between 9:00–9:25 AM ET
Premarket High – the highest price before 9:30 AM
Premarket Low – the lowest price before 9:30 AM
Use extended hours view on your chart platform.
These levels act as magnets and turning points once the market opens. They form the foundation for your first trade of the day.
Step 2: Let Price Come to the Level
Do not chase early price action.
Wait for price to approach either the premarket high or low during regular market hours.
Look for a pause, hesitation, or test near the level.
This keeps you from overtrading and forces you to wait for structure to form.
Step 3: Watch for the Power Bar
A power bar is a large-bodied candle with strong momentum and little to no wick on the opposite side.
It should form directly at the premarket level—not near it, not after a breakout.
At the premarket low, a bullish power bar is your buy trigger.
At the premarket high, a bearish power bar signals a short opportunity.
No power bar? No trade. The level and the candle must come together to create the edge.
(BONUS: As you identify specific patterns, eg, double bottoms, double tops, etc. look for those patterns near the premarket high or low)
Step 4: Entry, Stop, and Target
Entry:
For longs: place your order just above the high of the bullish power bar
For shorts: enter just below the low of the bearish power bar
Stop:
Long trade: just under the low of the power bar
Short trade: just above the high of the power bar
Profit Target Options:
VWAP
Prior day’s close
Key support/resistance levels
Keep your trade logic mechanical and consistent.
Execution Guidelines
Only trade when price reacts at your marked level
Wait for the power bar to fully form before entering
Do not jump in early or chase candles that form away from your levels
AI Bot Regime Feed (v6) — stableThis indicator generates real-time, structured JSON alerts for external trading bots or automation systems.
It combines multiple technical layers to identify market regimes and high-probability buy/sell events, and sends them to any webhook endpoint (e.g., a FastAPI or Zapier listener).
DragonEye Strategy — Advanced Multi-Signal Trading SystemDragonEye Strategy combines Squeeze Momentum, Chandelier Exit, and Volume Confirmation into one smart trading system.
Detects market squeezes, confirms breakout direction, and manages trades with multi-level take-profit & stop logic.
Built for precision entries and adaptive exits. Perfect for trend followers and breakout traders.
Relative Strength Ratio • Leader Shift Signals## Overview
This indicator computes a **Relative Strength (RS) ratio** between your chart’s symbol and a reference symbol (e.g. BTC or index), then overlays an EMA-based trend filter and detects **RS divergences** via RSI on that ratio. It highlights when your symbol is leading vs lagging, and spots potential turning points via bullish/negative divergences. No alerts are forced, you get visual cues (lines & labels) only.
---
## How It Works
1. **RS Ratio** = (base symbol price) ÷ (reference symbol price).
2. Two EMAs (fast & slow) filter trend context and help identify “leader shifts” (when ratio crosses the fast EMA under trend constraints).
3. **RSI on the ratio** is used to detect divergences. We find swing highs/lows in the *ratio* and compare their RSI values:
* **Bearish RS divergence**: ratio makes a higher high, but RSI makes a lower high
* **Bullish RS divergence**: ratio makes a lower low, but RSI makes a higher low
4. When divergence is confirmed, the script draws connecting lines (and optional markers) on the RS ratio pane to visually flag them.
5. You can customize pivot sensitivity, minimum separation, colors, and toggles for which graphics to show.
---
## Best Usage Suggestions
* Use a **reference symbol** that is meaningfully related (e.g. BTC for altcoins, SPX for equities, or a sector index for a stock). The interpretive power comes from seeing relative strength vs a meaningful peer.
* On **higher timeframes** (4H, daily), divergences tend to carry more weight. On lower intraday charts, tighten pivot settings to avoid noise.
* Prefer divergence signals when the RS ratio is also in a favorable trend (e.g. above its EMA for bullish divergences, below for bearish). Using the trend filter EMAs helps reduce false signals.
* Always confirm divergence signals with **price structure, volume, or other momentum indicators**. Divergence is a warning or a hint—not a standalone trigger.
* Because RSI on ratio is subject to noise, avoid over-tuning pivots too tight; broader pivot widths give more robust divergence lines.
---
## Inputs & Customization
* **Reference Symbol & Timeframe** for ratio comparison
* **Fast EMA / Slow EMA lengths** and slope threshold (trend filter)
* **RSI length** applied to the RS ratio
* **Pivot left / right bars** and **min separation** to define sturdy swings
* **Toggle lines / markers** visibility, and pick colors for divergence, ratio, EMAs
* Optional “shade” or fill modes (if you have them)
---
## Limitations & Disclaimers
* Divergence does **not guarantee** reversals—it often signals **weakening momentum or potential turning zones**, which may not always play out.
* In extremely volatile or fast-moving markets, divergence lines may lag or fail.
* The script relies on historical data (no future lookahead). Because pivots are confirmed after a few bars, some signals show with delay.
* As always: combine with price action, structure, risk management. This is a tool—not a magic eight ball.
---
Mean Reverting Suite [OmegaTools]Overview
The Mean Reverting Suits (MR Suite) by OmegaTools is an advanced analytical and visualization framework designed to identify directional exhaustion, statistical overextensions, and conditions consistent with mean-reversion dynamics. It integrates three pillars into a single display: a composite momentum-normalized oscillator, a percentile-based extension model with volume contextualization, and a dynamic structural mapping engine built on confirmed pivots. The indicator does not generate signals or prescribe trade actions; it provides objective context so users can evaluate market balance and the likelihood that price is departing from its recent statistical baseline.
Core logic
The composite oscillator blends MFI on two horizons and RSI on HL2, then averages them to produce a stabilized mean-reversion gauge. Candle and bar colors are mapped by a dual gradient centered at 50. Readings above 50 progressively shift from neutral gray toward the bearish accent color to reflect increasing momentum saturation; readings below 50 shift from the bullish accent color toward gray to reflect potential accumulation or temporary undervaluation. This continuous mapping avoids rigid thresholds and conveys the strength and decay of momentum as a smooth spectrum.
The percentile-based extension model measures the persistence of directional bias by tracking how many bars have elapsed since the last opposing condition. These rolling counts are compared to the 80th percentile of their own historical distributions stored in arrays. When a current streak exceeds its respective percentile, the environment is labeled as statistically extended in that direction. Background shading communicates this information and is modulated by relative volume, computed as live volume divided by a blended average of SMA(30) and EMA(11). Higher opacity implies greater liquidity participation during the extension.
The structural mapping module uses confirmed pivot highs and lows at the chosen length to create persistent horizontal levels that extend forward and automatically maintain themselves until price invalidates or refreshes them. These levels represent market memory zones and assist in reading where reactions previously formed. The engine updates in real time, ensuring the framework continuously reflects the prevailing structure.
Standard deviation and z-score overlay
The updated version introduces a mean and dispersion layer. A simple moving average of HL2 over twice the length provides the reference mean. Dispersion is estimated as the moving average of the absolute deviation between close and the mean over five times the length. The z-score is computed as the distance of price from the mean divided by this dispersion proxy. Visual arrows highlight observations where the absolute z-score exceeds two standard deviations, offering a concise view of statistically unusual departures from the local mean. This layer complements the percentile extension model by adding an orthogonal measure of extremity based on distributional distance rather than run length.
Visualization
Candle bodies and borders inherit the oscillator’s gradient color, creating an immediate sense of directional pressure and potential momentum fatigue. The chart background activates when the extension model detects a statistically rare streak, using blue tones for bearish extension and red tones for bullish extension, with intensity scaling by relative volume. Horizontal lines denote active pivot-based levels, automatically extending, truncating, and refreshing as structure evolves. The z-score arrows appear only when deviations exceed the ±2 threshold, keeping the display focused on noteworthy statistical events.
Inputs and configuration
Length controls the sensitivity of all modules. Lower values make the oscillator and pivot detection more reactive; higher values smooth readings and widen structural context. Bullish and Bearish colors are user-selectable to match platform themes or accessibility requirements.
Interpretation guidance
A strong red background indicates an unusually extended bullish run in the presence of meaningful volume; a strong blue background indicates an unusually extended bearish run in the presence of meaningful volume. Candle gradients near deep bearish tones suggest oscillator readings well above 50; gradients near deep bullish tones suggest oscillator readings well below 50. Pivot lines mark the most recently confirmed structural levels that the market has reacted to. Z-score arrows denote points where price has moved beyond approximately two standard deviations of its local mean, signaling statistically uncommon distance rather than directional persistence. None of these elements are directives; they are objective descriptors designed to improve situational awareness.
Advantages
The framework is adaptive by design and self-normalizes to each instrument’s volatility and rhythm through percentile logic and dispersion-based distance. It is volume-aware, visually encoding liquidity pressure so that users can distinguish thin extensions from structurally significant ones. It reduces chart clutter by unifying momentum state, statistical extension, standard deviation distance, and structural levels into a single coherent view. It is asset- and timeframe-agnostic, suitable for intraday through swing horizons across futures, equities, FX, and digital assets.
Usage notes
MR Suite is intended for analytical and educational purposes. It does not provide trading signals, risk parameters, or strategy instructions. Users may employ its context alongside their own methodologies, risk frameworks, and execution rules. The indicator’s value derives from quantifying how unusual a move is, showing how much liquidity supports it, and anchoring that information to evolving structural references, thereby improving the clarity and consistency of discretionary assessment without prescribing actions.
ICT Levels Breach Scanner (12M Timeframe)Detects and scans for breaches of key Inner Circle Trader (ICT) concepts on the yearly (12M) chart: Swing Lows (3-bar wick pivots), Rejection Blocks (3-bar body pivots), Fair Value Gaps (3-bar inefficiencies), and Volume Imbalances (bullish body gaps ≥0.15%, unmitigated).
Features:
Tracks active levels with arrays for real-time breach detection (price low below any level triggers alert).
Visuals: Blue solid lines (Swing Lows), orange dashed (Rejection Blocks), purple dotted (FVGs), green boxes (VIs)—all extending right.
Red triangle + bgcolor alert on breach bar; built-in alertcondition for notifications.
Optimized for Pine Screener: Filter stocks (e.g., US exchanges) showing symbols where price has traded below these levels on the latest 12M bar.
Usage: Apply to a 12M chart for viz, or add to Screener > Pine tab for multi-symbol scans. Customize gap % or add bearish variants via inputs. Ideal for spotting potential support in long-term trends.
ICT-inspired; test on liquid stocks like AAPL/TSLA. Not financial advice.
Key Session Levels | Highs, Lows, OpensOverview
Designed for scalping and intraday trading on ES, NQ, and other futures markets that trade around the clock, this indicator automatically plots key support/resistance levels:
Session opens
Session highs
Session lows
Overnight highs
Overnight lows
Session Definitions (America/New_York Time)
Session (18:00 - 16:59 ET)
Tracks complete trading cycle
Plots: High, Low
Represents true daily extremes of each session
Overnight Session (18:00 - 9:30 ET)
Captures Asian and European session price action
Plots: Open, High, Low
These levels can act as support/resistance during the NY session
NY Session (9:30 - 16:59 ET)
Optional background highlight for regular trading hours
Helps visually distinguish active NY session from overnight action
Key Features
Flexible Extension Modes
Same Day: Lines end at session close
Next Day: Lines extend through the following session
Full Chart: Lines extend indefinitely to the right
Smart Line Management
Optional extension of overnight levels through NY session
Control how many historical sessions to display (1-250)
Automatic cleanup of old lines
Full Customization
Individual color control for each level
Line style options (solid, dotted, dashed)
Line width adjustment (1px-4px)
Show/hide any level independently
Common Use Cases
Support/Resistance
Breakout/Break & Retest
Strategy
Wait for price to reach a key level
Use Level 2 data to determine who's in control at the level (e.g. aggressive buyers vs. passive sellers) *this requires third-party software and a live data feed
Enter long/short WITH institutional players, identified via Level 2 data
Target areas/levels where the market may reverse
Best Timeframes
Works on any intraday timeframe, optimized for: 1m, 5m, 15m, 30m, 1H
Notes
All times are in America/New_York (Eastern Time)
Requires intraday timeframe to detect specific session times
Lines are semi-transparent by default for better chart visibility
Optimum EMAs x3Function Review
Optimum EMAs x3 scores EMA-price reactions via bullish/bearish percentages. Plots test (purple), bull/bear fast/medium/slow EMAs with toggles/individual colors, three adjustable gradient fills, and reaction table for multi-band analysis.
Usage Write-Up
Set fast (5-15), medium (10-20), slow (15-30) ranges per strategy. Test values via Test EMA for peak scores. Input optima to bull/bear fast/medium/slow for reactive three-band envelope (bullish supports, bearish resistances), refining signals in varied trends.
Market Structure Signals (HH/HL/LH/LL) - PreciseShows higher highs, higher lows, lower highs and lower lows for an easier visual understanding of price structure
Parabolic SAR MTF LinesThe indicator shows the Parabolic SAR sign (price above or below the indicator) for several timeframes at once. You can see at a glance how the price is trending across higher and lower timeframes.
Note that, for lower timeframes, the line becomes yellow to the left because history is limited and there are not enough bars to calculate.
Other features (can be enabled in settings):
* each line can be enabled or disabled individually, so that unused ones can be hidden.
* simple trend detection based on the number of bullish and bearish timeframes; threshold can be changed in Settings.
* "Score" output: counting the net number of bullish and bearish timeframes
* "Trend" output: changes to bullish or bearish as the score goes over or under the threshold
* background color (green or red according to trend).
* alert for trend change.
* another alert with a separate threshold score for flexibility.
* score weights for further customization of trend detection and alerts. Input parameters are set in terms of score values instead of number of lines.
* input options to choose alert modes for trend and extra alerts. The options are "once per bar close" (default), "once per bar", "every time".
This indicator was based on MACD MTF Lines where all the logic and features came from.
Optimum EMAs x2Function Review
Optimum EMAs assesses EMA-price interactions by scoring reaction percentages for bullish/bearish touches. Creates EMA bands (top: most reactive bearish EMA as resistance; bottom: most reactive bullish EMA as support) with customizable test/bull/bear fast/slow EMAs, toggles, adjustable colors/gradients, and reaction table.
Usage Write-Up
Define fast (e.g., 5-15) and slow (e.g., 15-30) EMA ranges based on strategy. Scan with Test EMA for high reaction scores. Set optima in Bull/Bear Fast/Slow inputs to form reactive EMA bands (bullish top support, bearish bottom resistance), enhancing trend signals in bull/bear markets.
Michal D. Lagless Moving Average | MisinkoMasterThe 𝕸𝖎𝖈𝖍𝖆𝖑 𝕯. 𝕷𝖆𝖌𝖑𝖊𝖘𝖘 𝕸𝖔𝖛𝖎𝖓𝖌 𝕬𝖛𝖊𝖗𝖆𝖌𝖊 is my latest creation of a trend following tool, which is a bit different from the rest. By trying to de-lag the classical moving average, it gives you fast signals on changes in trend as fast as possible, keeping traders & investors always in check for potential risks they might want to avoid.
How does it work?
First we need to calculate lengths. The lengths are calcuted using a user defined input called the "Length Multiplier" and we of course need as well the length input too.
The indicator uses 10 lengths, 5 for an average price, 5 for median price.
The length for the average is the following:
length_2_avg = length_1_avg * length_multiplier
length_3_avg = length_2_avg * length_multiplier
...
and for the median lengths:
length_1_median = length_2_avg
length_2_median = length_3_avg
Here applies this rule
length_x_median < length_x_avg
This is intentional, and it is because the average is a little more reactive, while the median is a bit slower. To make up for the "slowness" of the median, we simple reduce the length of it a bit more than the average.
Now that we have our length we are ready to calculate averages and medians over their respective period. This is the a normal average from elementary school, nothing too fancy.
Now that we have all of them we match the pairs using another user defined input called "Median Weight" like so:
(Average_x * (2-median_weight) + Median_x * median_weight)/2
This gives more weight to the average (also due to the max value limit set to avoid breaking the fundational logic behind it).
After doing it to all the pairs we now average those pairs using another input called "Exponential Weight Multiplier".
The Exponential Weight Multiplier is used for weights which I will cover soon:
weight1 = weight
weight2 = weight * weight
weight3 = weight * weight * weight....
This is done until we have all the weights calculated
This gives exponentially more weight to the less lagging indicators, which is how we delag the indicator.
Then we sum all the pairs like so:
sum = pair1 * weight1 + pair2 * weight2 + pair3 * weight3 + pair4 * weight4 + pair5 * weight5
Then the sum is divided by the sum of weights, this results in us getting the final value.
Methodology & What is the actual point & how was it made?
I want to cover this one a bit deeper:
The methodology behind this was creating an indicator that would not be lagging, and would be able to avoid lag while not producing signals too often.
In many attempts in the first part, I tried using EMA, RMA, DEMA, TEMA, HMA, SMA and so on, but they were too noisy (except for SMA & RMA, but those had their flaws), so I tried the classical average taught in elementary school. This one worked better, but the noise was too high still after all this time. This made me include the median, which helped the noise, but made it far too lagging.
Here came the idea of making the median length lower and adding weights to counter the lag of the median, but it was still too lagging. This made me make the weights for lengths more exponential, while previously they were calculated using a little bit amplified sums that were alright, but nowhere near my desired result.
Using the new weights I got further, and after a bit of testing I was sattisfied with the results.
The logic for the trend was a big part in my development part, there were many I could think of, but not enough time to try them, so I stuck to the usual one, and I leave it up to YOU to beat my trend logic and get even better results.
Use Cases:
- Price/MA Crossovers
Simple, effective, useful
- Source for other indicators
This I tried myself, and it worked in a cool way, making the signals of for example RSI much smoother, so definitely try it out if you know how to code, or just simply put it in the source of the RSI.
- ROC
This trend logic stuck with me, I think you could find a way to make it good, but mainly for the people that can code in pine, trying out to combine the trend logic with ROC could work very well, do not sleep on it!
- Education
This concept is not really that complex, so for people looking for new ideas, inspiration, or just watching how trend following tools behave in general this is something that could benefit anyone, as the concept can be applied to ANYTHING, even the classical RSI, MACD, you could try even the Parabolic SAR, maybe STC or VZO, there is no limit to imagination.
- Strategy creation
Filtering this indicator with "and" conditions, or maybe even "or" or anything really could be very useful in a strategy that desires fast signals.
- Price Distance from bands
I noticed this while looking at past performance:
The stronger the trend the higher the distance from the Moving Average.
Final Notes
Watch out for mean reverting markets, as this is trend following you could get easily screwed in them.
Play around with this if it fits your desired outcome, you might find something I did not.
Hope you find it useful,
See you next time!
Adaptive Trend Breaks Adaptive Trend Breaks
## WHAT IT DOES
This script is a modified and enhanced version of "Trendline Breakouts With Targets" concept by ChartPrime.
Adaptive Trend Breaks (ATB) is a trendline breakout system optimized for scalping liquid futures contracts. The indicator automatically draws dynamic support and resistance trendlines based on pivot points, then generates trade signals when price breaks through these levels with confirmation filters. It includes automated target and stop-loss placement with real-time P&L tracking in dollars.
## HOW IT WORKS
**Trendline Detection Method:**
The indicator uses pivot high/low detection to identify significant price turning points. When a new pivot forms, it calculates the slope between consecutive pivots to draw dynamic trendlines. These lines extend forward based on the established trend angle, creating actionable support and resistance zones.
**Band System:**
Around each trendline, the script creates a "band" using a volatility-adjusted calculation: `ATR(14) * 0.2 * bandwidth multiplier / 2`. This adaptive band accounts for current market conditions - wider during volatile periods, tighter during quiet markets.
**Breakout Logic:**
A breakout signal triggers when:
1. Price closes beyond the trendline + band zone
2. Volume exceeds the 20-period moving average by your set multiplier (default 1.2x)
3. Price is within Regular Trading Hours (9:30-16:00 EST) if session filter enabled
4. Current ATR meets minimum volatility threshold (prevents trading dead markets)
**Target & Stop Calculation:**
Upon breakout confirmation:
- **Entry**: Trendline breach point
- **Target**: Entry ± (bandwidth × target multiplier) - default 8x for quick scalps
- **Stop**: Entry ± (bandwidth × stop multiplier) - default 8x for 1:1 risk/reward
- Multipliers adjust automatically to market volatility through the ATR-based band
**P&L Conversion:**
The script converts point movements to dollars using:
```
Dollar P&L = (Price Points × Contract Point Value × Quantity)
```
For example, a 10-point NQ move with 2 contracts = 10 × $20 × 2 = $400
## HOW TO USE IT
**Setup:**
1. Select your instrument (NQ/ES/YM/RTY) - point values auto-configure
2. Set contract quantity for accurate dollar P&L
3. Choose pivot period (lower = more signals but more noise, default 5 for scalping)
4. Adjust bandwidth multiplier if trendlines are too tight/loose (1-5 range)
**Filters Configuration:**
- **Volume Filter**: Requires breakout volume > moving average × multiplier. Increase multiplier (1.5-2.0) for higher conviction trades
- **Session Filter**: Enable to trade only RTH. Disable for 24-hour trading
- **ATR Filter**: Prevents signals during low volatility. Increase minimum % for more active markets only
**Risk Management:**
- Set target/stop multipliers based on your risk tolerance
- 8x bandwidth = approximately 1:1 risk/reward for most liquid futures
- Enable trailing stops for trend-following approach (moves stop to protect profits)
- Adjust line length to see targets further into the future
**Statistics Table:**
- Choose timeframe to analyze: all-time, today, this week, custom days
- Monitor win rate, profit factor, and net P&L in dollars
- Track long vs short performance separately
- See real-time unrealized P&L on active trades
**Reading Signals:**
- **Green triangle below bar** = Long breakout (resistance broken)
- **Red triangle above bar** = Short breakout (support broken)
- **White dashed line** = Entry price
- **Orange line** = Take profit target with dollar value
- **Red line** = Stop loss with dollar value
- **Green checkmark (✓)** = Target hit, winning trade
- **Red X (✗)** = Stop hit, losing trade
## WHAT IT DOES NOT DO
**Limitations to Understand:**
- Does not predict future trendline formations - it reacts to breakouts after they occur
- Historical trendlines disappear after breakout (not kept on chart for clarity)
- Requires sufficient volatility - may not signal in extremely quiet markets
- Volume filter requires exchange volume data (not available on all symbols)
- Statistics are indicator-based simulations, not actual trading results
- Does not account for slippage, commissions, or order fills
## BEST PRACTICES
**Recommended Settings by Market:**
- **NQ (Nasdaq)**: Default settings work well, consider volume multiplier 1.3-1.5
- **ES (S&P 500)**: Slightly slower, try period 7-8, volume 1.2
- **YM (Dow)**: Lower volatility, reduce bandwidth to 1.5-2
- **RTY (Russell)**: Higher volatility, increase bandwidth to 3-4
**Risk Management:**
- Never risk more than 2-3% of account per trade
- Use contract quantity calculator: Max Risk $ ÷ (Stop Distance × Point Value)
- Start with 1 contract while learning the system
- Backtest your specific timeframe and instrument before live trading
**Optimization Tips:**
- Increase pivot period (7-10) for fewer but higher-quality signals
- Raise volume multiplier (1.5-2.0) in choppy markets
- Lower target/stop multipliers (5-6x) for tighter profit taking
- Use trailing stops in strong trending conditions
- Disable session filter for overnight gaps and Asia session moves
## TECHNICAL DETAILS
**Key Calculations:**
- Pivot Detection: `ta.pivothigh(high, period, period/2)` and `ta.pivotlow(low, period, period/2)`
- Slope Calculation: `(newPivot - oldPivot) / (newTime - oldTime)`
- Adaptive Band: `min(ATR(14) * 0.2, close * 0.002) * multiplier / 2`
- Breakout Confirmation: Price crosses trendline + 10% of band threshold
**Data Requirements:**
- Minimum bars in view: 500 for proper pivot calculation
- Volume data required for volume filter accuracy
- Intraday timeframes recommended (1min - 15min) for scalping
- Works on any timeframe but optimized for fast execution
**Performance Metrics:**
All statistics calculate based on indicator signals:
- Tracks every signal as a trade from entry to TP/SL
- P&L in actual contract dollar values
- Win rate = (Winning trades / Total trades) × 100
- Profit factor = Gross profit / Gross loss
- Separates long/short performance for bias analysis
## IDEAL FOR
- Futures scalpers and day traders
- Traders who prefer visual trendline breakouts
- Those wanting automated TP/SL placement
- Traders tracking performance in dollar terms
- Multiple timeframe analysis (compare 1min vs 5min signals)
## NOT SUITABLE FOR
- Swing trading (targets too close)
- Stocks/forex without modifying point values
- Extremely low timeframes (<30 seconds) - too much noise
- Markets without volume data if using volume filter
- Illiquid contracts (signals may not execute at shown prices)
---
**Settings Summary:**
- Core: Period, bandwidth, extension, trendline style
- Filters: Volume, RTH session, ATR volatility
- Risk: R:R ratio, target/stop multipliers, trailing stop
- Display: Stats table position, size, colors
- Stats: Timeframe selection (all-time to custom days)
**License:** This indicator is published open-source under Mozilla Public License 2.0. You may use and modify the code with proper attribution.
**Disclaimer:** This indicator is for educational purposes. Past performance does not guarantee future results. Always practice proper risk management and test thoroughly before live trading.
---
## CREDITS & ATTRIBUTION
This script builds upon the "Trendline Breakouts With Targets" concept by ChartPrime with significant enhancements:
**Major Improvements Added:**
- **Futures-Specific Calculations**: Automated dollar P&L conversion using actual contract point values (NQ=$20, ES=$50, YM=$5, RTY=$50)
- **Advanced Statistics Engine**: Comprehensive performance tracking with customizable timeframe analysis (today, week, month, custom ranges)
- **Multi-Layer Filtering System**: Volume confirmation, RTH session filter, and ATR volatility filter to reduce false signals
- **Professional Trade Management**: Enhanced visual trade tracking with separate TP/SL lines, dollar value labels, and optional trailing stops
- **Optimized for Scalping**: Faster pivot periods (5 vs 10), tighter bands, and reduced extension bars for quick entries
Original trendline detection methodology by ChartPrime - used with modification under Mozilla Public License 2.0.
Weekly Breakout Screenermencari harga saham yang kuat breakout harga mingguan. potensi swing trading
VWAP HMA Trends
It visually syncs Trend, VWAP, and Confidence — giving you instant clarity to trade with calm precision.
⚙️ The Three Core Gauges:
1. 📈 Trend Green for up, Red for down (Trend: Confirms direction)
2. 💰 VWAP Price vs. Volume Weighted Average Price. Institutional Fair Value. (Bull or Bear)
3. 🎯 Confidence Agreement between trend & VWAP. Dont fight the trend.
Bonus Feature: Confidence Turns 🟢 Confident when aligned, 🟡 Cautious when mixed.
Together, these create a clean, visual readout of the market’s health.
🧩 How to Use
Watch the Color Flow:
🟢 Green Cloud → Buyers in control.
🔴 Red Cloud → Sellers in control.
Check VWAP (Orange Line):
Price above VWAP → bullish strength.
Price below VWAP → bearish control.
Hovering at VWAP → indecision. Wait.
---
Act With Discipline:
Trade only when all gauges agree.
Add size only in Confident conditions.
Trim or tighten stops when it shifts to Cautious.
⚡ Quick Reference:
🟢 Green cloud + above VWAP + Confident | Uptrend continuation | Favor long bias
🔴 Red cloud + below VWAP + Confident | Downtrend continuation | Favor short bias
Mixed colors or Cautious: Wait or scale back
Cloud flips color: Possible shift. Reassess bias next bar
⚖️ Disclaimer: Educational and informational use only. Not financial advice. Always use independent judgment and position sizing.
XAU Aurum Precision Scalper Pro v1.0🏆 Aurum Precision Scalper Pro v1.0
SMMA 21/50/200 + RSI14 | Multi-Rule Gold Strategy (M3–M15)
💡 Overview
Aurum Precision Scalper Pro is a professional multi-rule intraday strategy built for scalping and day-trading XAUUSD (Gold) on short timeframes (3m, 5m, 15m).
It combines RSI, SMMA trend filters, volume, and volatility logic with clean breakout and mean-reversion mechanics.
Optimized for the London–New York overlap, this system captures directional moves while filtering out noise and false breakouts — the most common trap for gold traders.
⚙️ Core Components
1️⃣ Multi-Timeframe Guardrail
Works only on 3m / 5m / 15m charts for precision.
Prevents accidental backtests on irrelevant timeframes.
2️⃣ SMMA Trend Framework
Uses SMMA(21) for short-term bias,
SMMA(50) for medium-term direction,
SMMA(200) for higher-order trend control.
RSI(14) confirms momentum and prevents chasing extreme moves.
3️⃣ Global Filters
✅ Trend filter (optional):
• Longs only if close > SMMA200
• Shorts only if close < SMMA200
✅ SMMA proximity filters:
• Blocks trades when SMMA21–SMMA50 or SMMA21–SMMA200 are too close → reduces chop.
✅ Volume filter:
• Requires volume > SMA(volume) × multiplier.
✅ Impulse filter:
• Body size ≥ k × ATR (volatility confirmation).
✅ Active-session filter:
• Default: 07:00–20:00 CET (Europe/Brussels).
4️⃣ XAUUSD Preset (optional toggle)
When symbol = “XAU” or “GOLD”, auto-applies gold-specific tuning:
RSI thresholds tightened (BUY > 55 / SELL < 45)
Stronger volume & volatility filters
Stricter SMMA distance checks
Automatic session activation
⚔️ Entry Rules
Rule Setup Type Logic Summary
R1 Full SMMA breakout Price closes above (or below) all SMMAs + RSI confirms direction
R2 SMMA21 touch + alignment Price bounces on 21 while aligned with 50 & 200 + RSI filter
R3 3-bar engulfing reversal After 3 candles in one direction, an engulfing opposite bar + RSI momentum
R4 SMMA21/50 crossover 21 crosses 50 with trend & volume confirmation
All rules respect your global filters (trend, volume, impulse, proximity, sessions).
R2–R4 entries can be individually toggled ON/OFF in inputs.
💰 Exit Logic
Simple % exits (for quick prototyping):
• TP = +X% (default 1.0%)
• SL = −X% (default 0.5%)
All entries are managed individually (R1–R4 IDs).
More advanced versions include ATR-based partials, breakeven and dynamic trailing logic.
🎨 Visuals
SMMA21 → teal line
SMMA50 → orange line
SMMA200 → magenta line
On-chart labels for each rule (BUY/SELL R1–R4).
Alerts for all entry conditions — ready for automation or alerting bots.
🧠 Suggested Usage
Best window: 14:00–17:00 CET (London–New York overlap).
Ideal timeframes: M5 and M15.
Avoid over-trading during low volatility (Asian session).
For XAUUSD, enable all filters for realistic conditions.
Recommended baseline:
TP = 1.0%
SL = 0.5%
UseVolFilter = true
UseImpulse = true
GapFilter = true
TrendFilter = true
📈 Performance Tips
✅ Stronger filter = fewer but higher-quality trades.
✅ When gold volatility spikes (CPI/NFP/FOMC), increase “minGap%” thresholds slightly.
✅ For smooth trend capture, use R4 (SMMA21/50 cross) with trend filters ON.
✅ For reversals, combine R3 (engulfing) + RSI confirmation.
🧾 Changelog (v1.0)
✅ Multi-timeframe guard (3/5/15min only)
✅ 4 rule logic (R1–R4)
✅ Global filters: trend, volume, impulse, proximity
✅ XAUUSD preset with adaptive parameters
✅ Session/timezone logic
✅ Simple exits for fast backtesting
✅ On-chart labels and alert system
🧭 Recommended Title / Tagline for TradingView
Aurum Precision Scalper Pro v1.0
“A high-precision RSI-SMMA strategy for Gold scalpers — designed for the London–NY overlap.”
🔖 Tags
#XAUUSD #Gold #Scalping #SMMA #RSI #Strategy #DayTrading #PineScriptV6 #ATR #TrendFollowing #Breakout
EMA Ribbon Reversal + Retest Signal🧩 1. Core Concept
This indicator combines EMA ribbon trend detection, reversal identification, and EMA144/233 retest confirmation to capture structured market transitions.
It’s designed to:
Detect trend changes when all EMAs align.
Confirm entry zones when price retests major EMAs (144, 233).
Avoid false signals through compression, volume, and body strength filters.
🧠 2. How to Read the Indicator on Chart
🟢 BUY Sequence (Bullish Scenario)
Reversal Detected → Candle closes above all EMAs (label: “BUY”).
Retest Phase → Price pulls back to EMA144 or EMA233 but stays above (label: “Retest BUY Strong/Weak”).
Confirmation → A bullish candle forms with strong volume — continuation likely.
Trend continues upward until opposite “SELL Reversal” occurs.
🔴 SELL Sequence (Bearish Scenario)
Reversal Detected → Candle closes below all EMAs (label: “SELL”).
Retest Phase → Price retests EMA144/233 from below but fails to break up (label: “Retest SELL Strong/Weak”).
Confirmation → Bearish candle + strong volume — continuation likely.
Downtrend continues until new “BUY Reversal” appears.
📈 3. How to Use in Real Trading
Step 1 — Identify Market Context
Use higher timeframe (e.g., 1H or 4H) to confirm main trend via EMA144 & 233.
Avoid entries during flat EMA ribbons (compression zones).
Step 2 — Watch for Reversal Signal
“BUY” or “SELL” label = early trend shift.
Wait for at least one candle close after the reversal for confirmation.
Step 3 — Wait for Retest Confirmation
Price should touch or bounce near EMA144/233.
“Retest BUY/SELL Strong” = higher probability entry zone.
Step 4 — Filter by Volume
Strong signals appear only if volume > SMA(volume) × multiplier.
Low-volume retests are weaker and more likely to fail.
Step 5 — Manage Trades
Enter on confirmed “Strong” retests.
Use EMA233 or ATR-based stop loss.
Exit on opposite reversal or loss of trend alignment.
💡 4. Reading Behavior Tips
EMA compression low (<0.2) → sideways market → avoid entries.
Strong retest + high volume → high probability continuation.
Weak retest or compressed EMA → caution; may be fakeout.
EMA144 & 233 cross → long-term trend shift zone.
Spaced signals = stable trend; clustered signals = volatility zone.
🔔 5. Using Alerts
You can set TradingView alerts for:
BUY/SELL Reversal: Trend direction change
Retest BUY/SELL Strong: Confirmation entry
BUY/SELL Breakout: First strong test after new reversal
BOS INDICATOR )Good for breaking structures. tells you where a break in structure occurs by outlining the break in structure in a red or green candle
My EMA IndicatorMy Absolutely Profitable Indicator
It can be use when ema9 crosses ema100 and so on...
Use it with Volume Oscillator...
Market Regime (w/ Adaptive Thresholds)Logic Behind This Indicator
This indicator identifies market regimes (trending vs. mean-reverting) using adaptive thresholds that adjust to recent market conditions.
Core Components
1. Regime Score Calculation (0-100 scale)
Starts at 50 (neutral) and adjusts based on two factors:
A. Trend Strength
Compares fast EMA (5) vs. slow EMA (10)
If fast > slow by >1% → +60 points (strong uptrend)
If fast < slow by >1% → -60 points (strong downtrend)
B. RSI Momentum
Uses 7-period RSI smoothed with 3-period EMA
RSI > 70 → +20 points (overbought/trending)
RSI < 30 → -20 points (oversold/mean-reverting)
The score is then smoothed and clamped between 0-100.
2. Adaptive Thresholds
Instead of fixed levels, thresholds adjust to recent market behavior:
Looks back 100 bars to find the min/max regime score
High threshold = 80% of the range (trending regime)
Low threshold = 20% of the range (mean-reverting regime)
This prevents false signals in different volatility environments.
3. Regime Classification
Regime Score Classification Meaning
Above high threshold STRONG TREND Market is trending strongly (follow momentum)
Below low threshold STRONG MEAN REVERSION Market is choppy/oversold (fade moves)
Between thresholds NEUTRAL No clear regime (stay out or wait)
4. Regime Persistence Filter
Requires the regime to hold for a minimum number of bars (default: 1) before confirming
Prevents whipsaws from brief score fluctuations
What It Aims to Detect
When to use trend-following strategies (green = buy breakouts, ride momentum)
When to use mean-reversion strategies (red = buy dips, sell rallies)
When to stay out (gray = unclear conditions, high risk of false signals)
Visual Cues
Green background = Strong trend (momentum strategies work)
Red background = Strong mean reversion (contrarian strategies work)
Table = Shows current regime, color, and score
Alerts = Notifies when regime changes