Pine Script®指標
頻帶和通道
multi assett1222This scanner is designed to identify high-probability trading opportunities using a rules-based, momentum-driven strategy. It filters the market based on trend direction, volume confirmation, and key technical indicators to surface stocks/crypto/forex pairs showing strong potential setups.
The scanner focuses on:
Trend alignment across multiple timeframes
Volume spikes and unusual activity
Momentum shifts and breakout signals
Volatility expansion for strong price movement
Built for active traders and swing traders, this tool helps eliminate noise and highlights assets that meet strict, data-driven criteria. Whether you're trading breakouts, pullbacks, or continuation patterns, this scanner streamlines your workflow and keeps you focused on high-quality setups.
Pine Script®指標
YY FX NINJA FX piyasasında özellikle gold paritesinde nadaraya watson indikatörü ile beraber kullanımı uygun
Pine Script®指標
Trends By B Strategy + HeatmapIt shows the trend of the token currently open on the chart for 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1w, and 1 month (displayed in the table on the right).
It indicates when all of them are either green (a total uptrend) or red (a total downtrend).
Pine Script®策略
Trends By B Heatmap IndicatorIt shows the trend of the token currently open on the chart for 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1w, and 1 month (displayed in the table on the right).
It indicates when all of them are either green (a total uptrend) or red (a total downtrend).
Pine Script®指標
MTF Trend Example//@version=6
indicator("MTF Trend Example", overlay=true)
emaFast = ta.ema(close, 20)
emaSlow = ta.ema(close, 50)
trendUp = emaFast > emaSlow
trendDown = emaFast < emaSlow
plot(emaFast)
plot(emaSlow)
barcolor(trendUp ? color.green : trendDown ? color.red : na)
Pine Script®指標
Pine Script®指標
Donchian BO with SAR & Fixed TargetDonchian breakout Strategy for Long & Short. Helps in identifying trades.
Pine Script®策略
Super Trend + Stoch/RSI + Tolerance + 3 TPI like Simple Strategy and just code one using super trend and Stochastic RSI
But like All super trend strategy buy and sell signal most of the time are to late
So I am using the super trend like indicator for trend direction and Stochastic RSI
for pull back and if direction is ok we get in trade but only when tolerance% is close to
the trend
3 tp to take profit and % how much can be take
If is not 100% of the trade size change direction of the trend will close the rest
There is A choice if you want to use fixed sum for the trades or increase the size of
the trade after # of losing trades
The increase of the size is working like D'Alembert System
If any Questions Let Me Know
Happy Trading
Pine Script®策略
VWAP (ARCHI)VWAP Bands — Volume Weighted Average Price with Deviation Bands
Overview
**VWAP Bands** is an advanced VWAP indicator featuring automatic standard deviation bands (±1σ, ±2σ, ±3σ), multiple anchor period options, and fully customizable visuals. Designed for intraday and swing traders who use volume-weighted levels for decision-making.
🔑 Key Features
📐 **Anchored VWAP** — Choose your reset period: Session (default), Week, Month, Quarter, or Year. VWAP resets at the beginning of each period.
📊 **Deviation Bands** — Three levels of standard deviation bands (±1σ, ±2σ, ±3σ) highlight statistical zones of overextension relative to the volume-weighted mean price.
🎨 **Full Customization** — Adjustable colors, line widths, band fills, and edge labels. Toggle each band on/off independently.
📍 **Previous VWAP Close** — Optionally display the closing VWAP level from the previous session as a key reference point.
📈 How to Use
Identifying Value Zones
- Price **at VWAP** = fair value. Institutional traders benchmark execution quality against VWAP.
- Price **above VWAP** = buyers in control, bullish bias.
- Price **below VWAP** = sellers in control, bearish bias.
Mean Reversion Trading
- Price touches **±2σ** = extreme deviation, look for a reversal back to VWAP.
- Price touches **±3σ** = very rare event, high probability of a pullback.
- **±1σ** = normal volatility range, not a standalone signal.
Trend vs Range
- **Trending market**: Price stays on one side of VWAP, bands widen.
- **Ranging market**: Price oscillates around VWAP, bands contract.
### Confluence Trading
Combine VWAP Bands with horizontal support/resistance levels. When a VWAP band aligns with a key level — that's a high-probability zone for entries.
⚙️ Settings
| Parameter | Default | Description |
|-----------|---------|-------------|
| Anchor Period | Session | VWAP reset period (Session/Week/Month/Quarter/Year) |
| Source | hlc3 | Price source (hlc3, close, ohlc4) |
| Band 1 Multiplier | 1.0 | First band (±1σ) |
| Band 2 Multiplier | 2.0 | Second band (±2σ) |
| Band 3 Multiplier | 3.0 | Third band (±3σ) |
| Fill Bands | ✅ | Color fill between bands |
| Show Labels | ✅ | Labels at band edges |
| Prev VWAP Close | ❌ | Previous session VWAP close level |
💡 Tips
1. **Intraday (M5–H1):** Use Anchor = Session. VWAP resets daily.
2. **Swing (H4–D1):** Use Anchor = Week or Month for broader context.
3. **Forex/Gold:** Source `hlc3` provides the closest approximation to tick-based VWAP.
4. **Stocks:** Session VWAP matches the standard institutional benchmark.
⚠️ Note
This indicator calculates VWAP from bar data (OHLCV), not tick data. On lower timeframes (M1–M5), accuracy is near-perfect. On higher timeframes (H4+), slight deviations from tick-based VWAP may occur — this is a fundamental limitation of bar-based calculation.
Pine Script®指標
Automatic Trendline [Metrify]Metrify Automatic Trendlines is an auto-drawing support/resistance channel built around pivot clustering + scoring, not “connect two perfect points”. The script continuously collects swing pivots (high/low) over a configurable lookback window, then searches for the best single support line and the best single resistance line that behave like a human-drawn trendline: multiple interactions, controlled slope, limited break-throughs, and (most importantly) still relevant to the current price. (configurable in "Max Relevance Distance" input)
The fundamental problem with algorithmic trendlines is subjectivity. To solve this mathematically, we treat trendlines as a statistical regression problem with specific constraints. We do not use linear regression on all candles, instead, we use a brute-force iterative approach on specific "Pivot Points."
The logic operates on a simple premise: Generate every possible line between past swing points, validate them against price history, score them based on fit, and render only the winner.
The Calculation Engine (f_find_best_line)
This function contains the primary computational load. It performs a nested loop operation:
Outer Loop (newer): Iterates through recent pivots.
Inner Loop (older): Iterates through older pivots to form a candidate line segment.
For every pair of pivots (P1,P2), we calculate the slope (m) and the y-intercept concept. This gives us a tentative trendline equation:
y=mx+c
The Scoring Matrix
We assign a score to each candidate line based on weighted heuristics:
Touch Count (touches * 2.8): The primary driver. More touches = higher statistical significance.
Recency (recency * 1.2): Lines originating closer to the current price action are weighted higher.
Tightness (avgErr): We calculate the average distance of all touches from the line. A "tighter" fit (lower error) increases the score.
Penalties:
violations * 2.2: False breaks heavily penalize the score.
barBreakRatio * 2.0: If the line cuts through candle bodies (even if pivots are fine).
The line with the highest localBest score is returned as the dominant trendline.
What you can use it for?
This is a structure visualizer that tries to keep a clean, current S/R channel on screen with volatility-aware rules. It’s not a signal generator, it doesn’t predict breakouts, and it won’t always draw something, if the market is messy and no line survives the filters, it will show none instead of hallucinating geometry. If you need more lines (multiple concurrent channels), that’s a different design tradeoff (and usually becomes clutter + false confidence fast).
Pine Script®指標
Trend Road Map█ OVERVIEW
Trend Road Map is a volatility-based trend indicator built around a dynamic ATR channel that defines the current market regime and visualizes it as a structured “trend road.”
Instead of relying on classic moving average crossovers, the indicator filters price movement relative to a base moving average and a minimum ATR-based deviation threshold. This removes minor fluctuations and focuses only on meaningful market shifts.
█ CONCEPTS
Markets spend most of their time fluctuating around equilibrium near a moving average. A strong trend begins when price moves a meaningful distance away from that average relative to current volatility.
The indicator operates in three steps:
- Calculates a base moving average (SMA / EMA / WMA / HMA).
- Verifies whether price deviation exceeds an ATR-based minimum threshold.
- Smooths the filtered average and builds a volatility channel (“Road”) around it.
If price closes above the upper boundary → bullish regime activates.
If price closes below the lower boundary → bearish regime activates.
Additionally, the indicator includes an ATR-based distance heatmap.
Market observation shows that even in strong trends, price rarely moves extremely far away from its moving average. When distance becomes relatively large compared to volatility, price often retests the MA.
The heatmap visualizes this distance dynamically, helping traders assess whether the move is balanced or overstretched.
█ FEATURES
Minimum Deviation Filter:
MA updates only when |Price – MA| > ATR × Multiplier
reduces noise and false regime shifts
Smoothed Trend Axis:
- additional smoothing (EMA / RMA / WMA / SMA)
- stabilizes the central structure of the channel
Volatility Channel (“Road”):
- width = ATR × Road Width Multiplier
- dynamically adapts to current volatility
- channel fill:
• light gray – bullish regime
• dark gray – bearish regime
Optional Candle Coloring:
- candles can reflect the active regime direction
- fully toggleable in settings
Regime Change Signals:
- green circle below the bar → start of BULL regime
- red circle above the bar → start of BEAR regime
Re-entry (🚦):
- appears when price re-enters the channel after a breakout
- signals a return to equilibrium conditions
Distance Heatmap:
- vertical gradient bar displayed on the right side
- smooth color transitions from neutral to warning levels
- based on ATR-relative distance from the smoothed MA
Heatmap settings:
- Max ATR Distance for Heatmap – defines the maximum ATR distance used for scaling
- Heatmap Cells – controls gradient resolution (number of segments)
Dynamic Status Label:
- displays current market zone (Clear Road / Normal Range / Warning Zone / Danger Zone)
- automatic text color adjustment based on background brightness
Alerts:
- Bull Entry
- Bear Entry
- Re-Entry
█ HOW TO USE
Add the indicator to your chart → Indicators → search for
“Trend Road Map”
Basic interpretation:
- Price above upper boundary + light gray channel fill = active bullish regime
- Price below lower boundary + dark gray channel fill = active bearish regime
- Price inside the channel = equilibrium / transitional phase
Parameters should be adjusted depending on whether the indicator is used as a strict trend filter or as a wider price channel tool.
█ APPLICATIONS
Trend Road Map is primarily a trend indicator. Its main purpose is to define the active market regime and filter trading conditions.
It can be used as a directional filter for momentum tools such as RSI or MACD.
For example:
- consider LONG signals only when a bullish regime is active
- ignore signals that go against the dominant direction
Channel Breakout Trading
Breakouts outside the “Road” can be traded directly. However, confirmation from other tools is recommended, such as:
- RSI above 50 during bullish breakout (but not extremely overbought),
- increasing momentum,
- no major resistance directly ahead.
Price Channel / Mean Reversion (with wider bands)
By increasing the Road Width multiplier, the indicator can function as a structured price channel.
In this configuration, traders may apply band-to-band mean reversion strategies.
As with any mean reversion approach, probability improves when combined with additional tools, such as:
- pivot levels,
- Fibonacci retracements,
- key support and resistance zones.
█ NOTES
This indicator was not designed as a standalone trading strategy, but primarily as a market filtering and context tool.
Parameters should be adjusted according to the instrument and, most importantly, according to the strategy and function the indicator is intended to serve (trend filter, breakout tool, or structured channel).
Volatility varies significantly across markets and timeframes — optimization is essential for consistent performance.
Pine Script®指標
Nifty ATR Manager (NKS)🎯 WHAT IS THIS INDICATOR?
The Nifty ATR Manager is a comprehensive volatility and risk
management tool that helps you:
✓ Measure current market volatility
✓ Set dynamic stop-loss levels
✓ Calculate take-profit targets
✓ Manage position sizing
✓ Identify volatility regimes
⚖️ DISCLAIMER
This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always: • Paper trade before going live • Risk only what you can afford to lose • Consult a financial advisor for investment decisions • Understand that all trading involves risk
✅ CHECKLIST BEFORE TRADING
□ ATR period set correctly (14 for most cases)
□ SL multiplier appropriate for timeframe
□ Position size calculated (max 2% risk)
□ Stop loss level noted and accepted
□ Take profit targets identified
□ Chart is on correct symbol (Nifty/Bank Nifty)
□ Current ATR value is normal (not spiked)
□ No major news scheduled for next 2 hours, "Happy Trading"
Pine Script®指標
AFIM- Aether Fib-Ichi Master Aether Fib-Ichi Master:
The Aether Fib-Ichi Master is a high-precision hybrid algorithm designed for "Sniper" entries. It merges Fibonacci Retracement levels with the Ichimoku Kinkō Hyō framework to identify high-probability reversal points within a trend.
Pine Script®指標
Volume Weighted Trend [QuantAlgo]🟢 Overview
The Volume Weighted Trend indicator identifies statistically significant trend changes by combining volume-weighted price analysis with volatility-based breakout bands. It calculates a Volume Weighted Moving Average (VWMA) as the central trend baseline, then creates dynamic upper and lower bands using Average True Range (ATR) multipliers to define normal volatility boundaries. When price breaks above the upper band or below the lower band, it signals a confirmed trend change, helping traders and investors identify directional shifts driven by both volume-weighted momentum and volatility expansion across different timeframes and markets.
🟢 How It Works
The indicator's core methodology lies in its dual-layer approach combining volume weighting with volatility filtering, where trend changes require both price direction and statistical significance:
vwma_basis = ta.vwma(close, vwma_length)
atr_value = ta.atr(vwma_length)
upper_band = vwma_basis + atr_value * atr_multiplier
lower_band = vwma_basis - atr_value * atr_multiplier
First, the script calculates the Volume Weighted Moving Average to establish a trend baseline that gives greater weight to periods with higher trading volume, ensuring the trend line reflects significant participation and genuine market conviction rather than low-volume noise.
Then, it measures the Average True Range over the same period to quantify current market volatility:
atr_value = ta.atr(vwma_length)
Next, dynamic volatility bands are constructed by adding and subtracting ATR-based buffers from the VWMA baseline, creating adaptive boundaries that expand during volatile conditions and contract during calm periods:
upper_band = vwma_basis + atr_value * atr_multiplier
lower_band = vwma_basis - atr_value * atr_multiplier
The trend state is then determined through breakout logic that requires price to exceed these volatility-adjusted boundaries:
if close > upper_band
trend_direction := 1
else if close < lower_band
trend_direction := -1
Finally, trend change detection identifies transitions between bullish and bearish states:
trend_turned_bullish = trend_direction == 1 and trend_direction != 1
trend_turned_bearish = trend_direction == -1 and trend_direction != -1
This creates a robust trend-following system that only signals directional changes when price makes statistically significant moves beyond normal volatility bounds, with volume weighting ensuring the trend reflects meaningful market activity rather than thin-volume spikes.
🟢 Signal Interpretation
▶ Bullish Trend (Price Above Upper Band): When price closes above the upper volatility band, the indicator switches to bullish mode with green/bullish coloring throughout all visual elements = Confirmed uptrend signal for trend-following long positions. The trend remains bullish until price breaks below the lower band, allowing traders to stay positioned during sustained upward momentum without premature exits on minor pullbacks within the band range.
▶ Bearish Trend (Price Below Lower Band): When price closes below the lower volatility band, the indicator switches to bearish mode with red/bearish coloring throughout all visual elements = Confirmed downtrend signal for trend-following short positions or long exit signals. The trend remains bearish until price breaks above the upper band, enabling traders to maintain directional bias through corrective moves that stay within the band boundaries.
▶ Neutral Zone (Price Between Bands): When price trades between the upper and lower volatility bands, the indicator maintains its previous trend direction = Continuation of existing trend during consolidation or normal volatility retracements. This design prevents whipsaws during sideways action by requiring price to make a significant move beyond opposite-side bands to trigger trend reversal, rather than flip-flopping on minor crosses of the VWMA center line.
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading approaches and timeframes. "Default" provides balanced trend detection for swing trading on 4-hour and daily charts, filtering noise effectively while capturing meaningful trend changes. "Fast Response" delivers quicker trend signals for intraday trading on 5-minute to 1-hour charts, with tighter bands triggering earlier on breakouts for active traders who can monitor positions closely. "Smooth Trend" focuses on major trend changes for position trading on daily to weekly timeframes, with wider bands filtering out minor fluctuations to identify only primary directional shifts.
▶ Built-in Alerts: Three alert conditions enable automated monitoring of trend changes without constant chart watching. "Bullish Trend Signal" triggers when the indicator switches to bullish mode after price breaks above the upper band, alerting for potential long entries. "Bearish Trend Signal" activates when the indicator switches to bearish mode after price breaks below the lower band, signaling potential short entries or long exits. "Trend Direction Changed" provides a combined alert for any trend transition regardless of direction, allowing traders to monitor both bullish and bearish opportunities with a single alert setup.
▶ Visual Customization: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, plus Custom) accommodate different chart backgrounds and aesthetic preferences, with coordinated bullish and bearish color schemes applied across all indicator elements. Optional neon glow effect creates layered visual emphasis around the central VWMA line with three overlapping plots at different transparencies, making the trend line more prominent and easier to track (ideal for charts with multiple indicators where visual distinction is important). Optional volatility ribbons display gradient fills between the VWMA and band boundaries, providing visual context for price position relative to breakout thresholds with adjustable band transparency (0-100%) to control prominence. Optional bar coloring tints price bars with trend-appropriate colors during bullish and bearish periods, enabling instant visual confirmation of trend state across multiple timeframes without switching between chart and indicator panels.
Pine Script®指標
Pine Script®指標
Candle Patterns Ver.3I am always studying strategies and one way to incorporate different strategies aiming to improve the chances to be on the right side of a trade.
This indicator has other indicators that together makes easy to spot a possible good trade.
It has:
- Bollinger Bands that give us the market volatility and can identify overbought or oversold levels;
- Stochastic: that give us market momentum and also overbought and oversold levels;
- Candle patterns: I just added the Pin bars(or Hammer at support) and Engulfing patterns. I noticed those 2 are the most reliable if spotted at the right place.
- Daily Trend direction: based on an EMA(200), one of the most reliable and used Moving averages.
- Round Numbers: This is always a good help before we place our trade to identify possible rejection levels or Support / Resistance levels.
So the idea here is, during the analysis, identify when a new candle open what was and where was the previous candle. I in general trade Daily charts and during tests I notice that when the previous bar closed at the lower BB, it was an Engulfing bar and the Stochastic %K was crossing %D below the 20 level I would say there is a 65 to 75% chance of the price move up, at least to test the middle BB. It is some kind of situation that does not happen very often but when happens is almost sure "money in the bank". So I added the Daily Trend as away to confirm the market direction or if it is just a pullback.
So to make my analysis easy and fast I added symbols telling me the story of the previous day like EG arrow for an engulfing bar, a big light blue arrow when the engulfing is close to the lower BB, an green(Stoch cross above below 20 level) and a red arrow(Stoch cross below at 80 level) with a TRUE text.
Of course it is not perfect but it helps me on my analysis. Also the Engulfing pattern can have different interpretations so keep that in mind. An I am working on make the arrows not appears on top of the others so be kind... :)
Please feel free to comment or criticize( in a good way).
You all have a great trading.
Pine Script®指標
Pine Script®指標
EMA Cross with MTF Understanding EMA Crossover and Multi-Time Frame SMA Crossover in Technical Analysis
Technical indicators like Exponential Moving Averages (EMAs) and Simple Moving Averages (SMAs) are foundational tools for traders to identify trends, momentum shifts, and potential entry/exit points in markets such as stocks, forex, or cryptocurrencies. Crossovers—where one average line crosses another—signal changes in trend direction. Below, I'll break down EMA crossovers, then extend to multi-time frame (MTF) SMA crossovers, and explain how analyzing from a lower time frame can reveal higher time frame trends.
EMA Crossover: Basics and Application
An EMA crossover involves two or more EMAs of different periods intersecting on a price chart. EMAs give more weight to recent prices compared to SMAs, making them more responsive to new data and ideal for capturing short- to medium-term trends.
How It Works:
Typically, traders use a short-term EMA (e.g., 9-period or 12-period) and a longer-term EMA (e.g., 26-period or 50-period).
Golden Cross (Bullish Signal): When the shorter EMA crosses above the longer EMA, it suggests upward momentum and a potential buy opportunity. This indicates that recent price action is stronger than the historical average.
Death Cross (Bearish Signal): When the shorter EMA crosses below the longer EMA, it signals downward momentum and a potential sell or short opportunity.
Example: On a daily chart, a 12-period EMA crossing above a 26-period EMA might confirm the start of an uptrend, often used in strategies like the MACD (which is derived from EMA differences).
Advantages:
Quick response to price changes due to exponential weighting.
Reduces lag compared to SMAs, helping in volatile markets.
Can be combined with volume or other indicators (e.g., RSI) to filter false signals.
Limitations:
Prone to whipsaws (false crossovers) in sideways or ranging markets.
Best suited for trending environments; in choppy conditions, it may generate too many signals.
Traders often apply EMA crossovers on single time frames, but for broader context, incorporating multi-time frame analysis enhances reliability.
Multi-Time Frame SMA Crossover: Integrating Broader Perspectives
Multi-time frame (MTF) analysis involves examining the same asset across different time intervals (e.g., 5-minute, 1-hour, daily) to align short-term trades with longer-term trends. Here, we focus on SMA crossovers, where SMAs—simple arithmetic averages of closing prices over a set period—are used instead of EMAs. SMAs are smoother and less reactive, making them suitable for identifying sustained trends.
How It Works in MTF:
Choose at least two time frames: a lower one (e.g., 15-minute for intraday trading) and a higher one (e.g., 4-hour or daily for overall trend).
On each frame, plot two SMAs: a shorter one (e.g., 50-period) and a longer one (e.g., 200-period).
Crossover Signals:
Bullish: Shorter SMA crosses above the longer SMA.
Bearish: Shorter SMA crosses below the longer SMA.
In MTF, the higher time frame dictates the dominant trend, while the lower one provides precise entry timing. For instance:
If the daily chart shows a bullish 50/200 SMA crossover (uptrend), look for buy entries on the 1-hour chart when its own SMA crossover aligns.
This "top-down" approach ensures you're trading in the direction of the bigger picture, reducing counter-trend risks.
Advantages:
Filters noise: Higher time frames smooth out short-term volatility.
Improves win rate by confirming trends across scales.
Versatile for strategies like swing trading (daily/weekly) or scalping (5-min/15-min).
Limitations:
SMAs lag more than EMAs, potentially missing early trend entries.
Requires monitoring multiple charts, which can be time-intensive without automation.
Viewing Higher Time Frame Trends from a Lower Time Frame
One of the key benefits of MTF analysis is the ability to "see" higher time frame trends directly on a lower time frame chart, without switching views constantly. This is achieved through anchored or overlaid indicators that project higher-period data onto the lower chart.
How It Enables Trend Tracking:
Overlay Technique: On a lower time frame (e.g., 15-minute), plot SMAs or EMAs calculated from higher time frame data. For example:
Use a 50-period SMA on a daily chart, but recalculate it for the 15-minute chart by multiplying periods (since there are about 96 15-minute bars in a trading day, a daily 50-SMA might approximate to a 4800-period SMA on 15-min).
Tools like TradingView allow "higher time frame" scripts to fetch and display this directly.
Trend Visibility: From the lower frame, you can observe if the price is above/below the higher-frame SMA, indicating the overall trend. A crossover on the lower frame that aligns with the higher frame's direction confirms momentum.
Example: On a 5-minute chart (lower TF), if the overlaid daily 200-SMA acts as support (price bounces off it), it shows the higher TF uptrend is intact, even amid intraday dips. This helps avoid selling into a pullback during a broader bull market.
Practical Benefits:
Early Detection: Lower TFs show granular price action, revealing how higher TF trends are forming in real-time (e.g., a building crossover on daily visible as momentum buildup on hourly).
Risk Management: Use higher TF levels for stop-losses while entering on lower TF signals.
Example Strategy: In forex, on a 1-hour chart, confirm the 4-hour SMA trend is bullish, then wait for a 1-hour EMA crossover for entry. This way, you're "zooming in" on the big trend without losing context.
Pine Script®指標
TSM 50-200-300-400 DMA STRATEGY (NR + One Signal)TSM 50–200–300–400 DMA Strategy is a multi-layer trend-following system designed to capture strong directional moves using long-term moving average alignment and momentum confirmation.
Pine Script®策略
VWAP Guppy (32 Days Structure)Introduction to the Volume Weighted Super Guppy Indicator
The Volume Weighted Super Guppy is a technical analysis indicator that builds on the traditional Guppy Multiple Moving Average (GMMA) by incorporating volume weighting, similar to how the Volume Weighted Average Price (VWAP) accounts for trading volume in price calculations. Developed as an enhancement to Daryl Guppy's original GMMA, this variant aims to provide a more robust signal by factoring in volume, which helps differentiate between price movements driven by high conviction (high volume) and those that are less significant. The "Super" aspect often refers to an optimized or expanded version of the standard Guppy setup, and the "30 days" likely alludes to the long-term moving average group, which typically starts at a 30-period EMA and extends upward, making it suitable for medium- to long-term trend analysis over roughly a month's worth of data (assuming daily charts).
Core Components and How It Works
The standard GMMA consists of two groups of exponential moving averages (EMAs):
Short-term group (representing traders' sentiment): Typically VWAP of 1 to 32 days . These react quickly to price changes and capture short-term momentum.
Long-term group (representing investors' sentiment): Typically VWAP of 1 to 32 days. These provide a smoother view of the underlying trend, with the 30-period EMA serving as the entry point into longer-term analysis.
In the Volume Weighted Super Guppy, each VWAP is adjusted to be volume-weighted, meaning the average price is calculated not just on closing prices but on a volume-adjusted basis (akin to VWAP's formula: Cumulative (Price × Volume) / Cumulative Volume). This weighting emphasizes periods of high trading activity, reducing the impact of low-volume price spikes or dips that might distort traditional EMAs. If volume data is unavailable (e.g., in certain markets like forex), a fallback to simple price-based EMAs is often implemented.
The indicator plots these multiple lines as "ribbons" on a price chart:
Short-term ribbons are usually colored differently (e.g., green for bullish, red for bearish) from long-term ones.
Convergence or divergence between the groups signals potential trend shifts, with volume weighting adding reliability by highlighting volume-backed moves.
How It Helps Track Trends
The Volume Weighted Super Guppy excels at identifying trend direction, strength, and potential reversals, making it a valuable tool for swing traders, trend followers, and investors monitoring 30-day or longer horizons. Here's how it aids in trend tracking:
Trend Direction Identification:
When the short-term EMA group is above the long-term group (starting from the 1 to 32 days VWAP), it indicates an uptrend. The volume weighting ensures this signal is stronger if supported by increasing volume, filtering out false breakouts.
Conversely, if the short-term group crosses below the long-term group, it signals a downtrend. This crossover is particularly useful over a 30-day rolling window, as it captures shifts from short-term volatility to sustained investor-driven moves.
Trend Strength Assessment:
Separation of Ribbons: Wide separation between the short- and long-term groups suggests a strong trend. For example, in a bullish scenario, expanding distance between the groups over 30 days indicates building momentum, often confirmed by higher volume in the weighted calculation.
Compression and Expansion: When the ribbons compress (lines bunch together), it signals consolidation or weakening trend strength, potentially foreshadowing a breakout. Volume weighting helps discern if the compression is due to low-interest trading (weaker signal) or building volume (stronger impending move).
Breakout and Reversal Anticipation:
The indicator anticipates breakouts when price and value (as captured by the volume-weighted EMAs) converge, especially around the 30-60 period long-term averages. A breakout above the long-term ribbon on rising volume can confirm a new uptrend.
For reversals, watch for the short-term group to "bounce" off the long-term group (e.g., acting as support in uptrends). Over 30 days, this can highlight trend exhaustion if volume diminishes.
Practical Application in a 30-Day Context:
On daily charts, the 1 to 32-days VWAP aligns with a monthly view, making it ideal for tracking intermediate trends. Traders can anchor the indicator to a specific date (similar to anchored VWAP) to analyze trends from key events, like earnings releases.
Combine with volume profiles or other indicators (e.g., RSI for overbought/oversold conditions) to validate signals. For instance, in a 30-day uptrend, if price pulls back to the long-term ribbon with low volume, it may present a buying opportunity.
Advantages and Limitations
Advantages: Volume integration makes it more responsive to market participation than standard GMMA, reducing false signals in volatile markets. It's versatile across assets like stocks, crypto, and forex, and particularly effective for trend-following strategies over 30+ days.
Limitations: It can lag in choppy, range-bound markets, and over-reliance on historical data (especially the 30-60 periods) may miss rapid intraday shifts. Always backtest on your specific timeframe and asset.
Pine Script®指標
TSM 50 DMA & 200 DMA STRATEGY (NR + One Signal)TSM 50 DMA & 200 DMA Strategy is a trend-following system designed to identify high-probability breakouts using moving average structure and momentum confirmation.
The strategy generates:
✅ BUY Signal when price closes above 50 DMA
AND price is above 200 DMA
AND RSI confirms bullish momentum
AND candle is fully closed (non-repainting logic)
❌ SELL Signal when price closes below 50 DMA
AND price is below 200 DMA
AND RSI confirms bearish momentum
Pine Script®策略
Regime Guard (Clean Background) - Free v1.0.1 [VBS]This indicator is built with one simple objective:
Help traders avoid trading when the market environment is unfavorable.
Instead of generating buy or sell signals, Regime Guard focuses on identifying whether the market is in a No-Trade (compression/choppy) condition or a Tradable (normal expansion) state.
It is designed to be used alongside trend or momentum tools — not as a standalone entry system.
What It Does
1) Detects Volatility Compression (Squeeze)
Using Bollinger Band Width percentile, the script identifies periods where volatility is unusually low compared to its recent history.
Low volatility often leads to:
False breakouts
Whipsaws
Overtrading losses
When compression is detected and trend strength is weak, the background turns gray, signaling a No-Trade environment.
2) Measures Trend Strength (DMI / ADX)
The script evaluates whether the market is trending or choppy using ADX.
Low ADX → weak structure, higher risk of random movement
Rising ADX → strengthening directional movement
This helps differentiate between:
Quiet compression
Genuine expansion
Market States
The indicator operates with clean, minimal states:
Gray Background → NO-TRADE
Market is compressed and trend strength is weak. Risk of chop is elevated.
Subtle Green Background → TRADABLE
Market conditions are normal and potentially suitable for setups.
No arrows.
No direction bias.
No false promises.
This tool is about environment filtering, not prediction.
Optional READY Hint
A “READY” event can be enabled to highlight when:
The market exits a squeeze
Or ADX begins rising above a defined threshold
By default, this marker is turned off to maintain a clean chart.
Important:
READY does not mean Buy or Sell.
It simply means market conditions may be shifting back toward tradable behavior.
How to Use It
A simple workflow:
Use a trend indicator to determine direction
Use a momentum tool for timing
Use Regime Guard to confirm the environment is tradable
If the background is gray, consider standing aside.
If conditions are tradable, then look for structured setups.
Why This Exists
Many traders don’t lose because of bad entries.
They lose because they trade in the wrong market conditions.
Regime Guard is designed to reduce that mistake.
It won’t tell you where to buy or sell.
It will help you decide when it makes sense to participate at all.
— VictoryByStrategy
Pine Script®指標






















