Pine Script® göstergesi
Bantlar ve Kanallar
Statistical Range and Daily Range - MaePla PakkakeawSupport & Resistance Box (MaePla Pakkakeaw)
Major support and resistance levels are drawn approximately 500 points apart.
These are called Statistical Lines.
Statistical support and resistance levels are drawn at price levels ending in 0 and 5.
Daily Range
(Start the Day on H4 Timeframe)
At 7:00 AM, check the H4 candle close.
Identify the price level closest to a statistical line as the minor support or resistance.
The next statistical line 500 points above becomes the upper price range.
The next statistical line 500 points below becomes the lower price range.
Pine Script® göstergesi
Multi Trendlines from Pivots (>=3 Touches). DaliliIndicator Description
Multi Trendlines from Pivots (≥3 Touches)
This indicator automatically identifies and draws straight support and resistance trendlines based on confirmed price pivots. It is designed to approximate how a disciplined discretionary trader would draw trendlines, but does so algorithmically and consistently.
What it does
1. Pivot-based structure detection
The indicator first identifies swing highs and swing lows using a configurable pivot length. Only confirmed pivots are used, so lines do not repaint.
2. Line construction logic
For each side of the market:
• Pivot highs are used to construct resistance lines (drawn in red).
• Pivot lows are used to construct support lines (drawn in green).
All possible straight lines formed by pairs of pivots are evaluated.
3. Minimum touch requirement
A line is only considered valid if at least 3 pivot points fall on or very near that line. “Near” is defined by a volatility-adjusted tolerance using ATR (Average True Range), so the logic adapts across symbols and timeframes.
4. Multi-line output
The script does not stop at a single trendline. It draws as many valid lines as possible, up to a configurable maximum per side, prioritizing lines with the highest number of touches.
5. Dynamic updating
Lines are rebuilt only when new pivots form. Old lines are removed and replaced as structure evolves, keeping the chart clean and relevant.
Visual output
• Red straight lines: Resistance lines derived from pivot highs.
• Green straight lines: Support lines derived from pivot lows.
• Lines optionally extend to the right, projecting future support or resistance.
What it is not
• It does not curve or smooth lines.
• It does not use regression channels or moving averages.
• It does not rely on candle bodies unless explicitly modified.
• It does not repaint past structure.
Use case
This indicator is best suited for:
• Structural market analysis.
• Identifying confluence zones where multiple trendlines cluster.
• Swing trading and breakout/failure analysis.
• Overlaying objective structure on discretionary price action analysis.
If you want to further constrain it, the next logical refinements would be:
• Only downward-sloping resistance and upward-sloping support.
• Requiring touches to be higher highs or lower lows.
• Switching touches from pivots to raw candle highs/lows.
• Enforcing minimum bar separation between touches.
All of those can be layered on without changing the core architecture.
Pine Script® göstergesi
Volume Weighted MACD (Bollinger style)This indicator implements a Volume-Weighted MACD inspired by John Bollinger’s approach.
Instead of using standard exponential moving averages, the MACD line is calculated with volume-weighted EMAs, giving more importance to price movements that occur with higher volume. The signal line remains a regular EMA of the VWMACD, preserving the classic MACD structure while adding volume confirmation.
How it works
Fast VWEMA = EMA(price × volume) / EMA(volume)
Slow VWEMA = EMA(price × volume) / EMA(volume)
VWMACD = Fast VWEMA − Slow VWEMA
Signal Line = Standard EMA of the VWMACD
Histogram = Difference between VWMACD and Signal
Purpose
The indicator helps answer a key question: Does volume support the trend?
If price moves are accompanied by strong volume, the VWMACD will reinforce the signal. If volume fades, underlying weakness becomes more visible.
Typical Use
Crossovers for timing entries and exits
Divergences to spot potential reversals
Histogram expansion/contraction to gauge momentum strength
This tool blends trend and momentum analysis with built-in volume weighting to reduce false signals caused by low-participation price moves.
Pine Script® göstergesi
MAD RSIMAD RSI ~ by GForge
An adaptive trend-following indicator that combines RSI momentum with Median Absolute Deviation (MAD) volatility bands to identify trend direction, gauge regime strength, and generate entry/exit signals.
Core Concept
Most band-based indicators use Standard Deviation to measure volatility. The problem is that StdDev is highly sensitive to outlier candles — a single spike from news, earnings, or liquidation cascades can blow out the bands and distort signals. This indicator replaces StdDev with Median Absolute Deviation (MAD), a statistically robust volatility measure that resists outliers while still tracking genuine changes in market volatility. The result is more stable bands that better represent the true trading range.
RSI-Adaptive Mechanism
A smoothed RSI is calculated and used to dynamically scale the band width. The logic works as follows: when RSI is near 50 (neutral/indecisive), the bands stay at their base width. As RSI moves further from 50 in either direction — indicating stronger bullish or bearish momentum — the bands widen proportionally. This creates a self-adjusting system: during strong trends the bands expand to avoid premature exits, and during choppy consolidation they contract to keep signals responsive.
The RSI smoothing parameter applies an EMA on top of the raw RSI to control how quickly the adaptive multiplier responds. A low smoothing value makes the bands react quickly to momentum shifts. A higher value smooths out the adaptation, which can reduce whipsaws in noisy conditions.
Oscillator & Signal Logic
The indicator computes a Basis line (Simple Moving Average) and places the adaptive MAD bands above and below it. Price position within these bands is then normalized into an oscillator ranging from 0 to 100, where 0 means price is at the lower band, 50 means price is at the basis, and 100 means price is at the upper band.
Signals are generated when this oscillator crosses key thresholds:
A long signal fires when the oscillator crosses above the Long Threshold, indicating price has moved convincingly into the upper portion of the adaptive channel.
A short/exit signal fires when the oscillator crosses below the Short Threshold, indicating momentum has weakened and price is falling back within the channel.
The thresholds are independently configurable. For example, setting a Long Threshold of 80 means you require price to push well above the midpoint before entering, while a Short Threshold of 30 means you exit relatively early before price reaches neutral. This asymmetry can be tuned for different risk appetites — tighter thresholds produce more signals with smaller moves, wider thresholds produce fewer signals but filter out more noise.
Key Parameters
Source — the price input for all calculations. Close is standard, but hl2, hlc3, or ohlc4 can provide smoother behavior on volatile instruments.
RSI Length — controls the RSI lookback period. Longer values produce a smoother RSI that changes the adaptive multiplier gradually. Shorter values make it more reactive.
RSI Smoothing — additional EMA smoothing applied to the RSI before it feeds into the adaptive multiplier. Set to 1 for no extra smoothing.
Basis Length — the SMA period for the center line of the channel. This is the trend anchor. Longer values track slower trends, shorter values hug price more closely.
MAD Length — lookback for the Median Absolute Deviation calculation. Controls how many bars contribute to the volatility estimate. Longer values produce more stable bands, shorter values adapt faster.
Volatility Multiplier — the base scaling factor for band width before RSI adaptation is applied. Higher values widen the bands and reduce signal frequency. Lower values tighten them and increase signal frequency.
Visuals
A gradient cloud beneath price provides an at-a-glance read of trend regime and strength. Bar colors reflect the oscillator position. Signal markers appear as diamonds above and below bars.
Usage Notes
This is a tool to assist your analysis, not a standalone trading system. Always apply your own risk management and confirm signals with additional context.
Past performance does not guarantee future results.
Default settings are a starting point — optimize for your specific instrument, timeframe, and trading style.
The MAD calculation is particularly well-suited for instruments prone to sudden spikes or gap moves where Standard Deviation-based indicators tend to produce erratic signals.
Developed by GForge
Pine Script® göstergesi
Linear Regression Channel + 50 EMApretty self explanatory just added an ema to a lin reg for total world domination
Pine Script® göstergesi
Grop-Nai-Ya Mae-Pla Pak-Ka-Khiao [Adjustable Dynamic Price Grid]Adjustable Dynamic Round Price Grid 0,5
Called in Thai as Grob Nai-Ya used in XAU/USD Trading system named "Mae-Pla Pak-Ka-Khiao"
Pine Script® göstergesi
CRR HH LL EMASCRR – EMAs (Price Floors) v4 – Stick Right is an educational chart overlay designed to help traders visualize market structure and price context, not to generate trading signals.
This indicator is built around two core concepts:
EMA-based price structure
Clear visual references anchored to the most recent confirmed bar
What this indicator IS
A visual tool to display EMA structure (20 / 50 / 100 / 200)
A way to observe dynamic support and resistance
A helper to understand trend alignment, compression, and expansion
A non-repainting overlay anchored to the last completed bar
A tool intended for discretionary and educational analysis
What this indicator IS NOT
It is not a buy or sell signal generator
It does not predict future price
It is not a trading strategy
It does not provide financial or investment advice
It does not guarantee profitability
How it works
The indicator plots four Exponential Moving Averages:
EMA 20
EMA 50
EMA 100
EMA 200
Each EMA can optionally display:
A horizontal price floor line extending to the right
A value tag showing the exact EMA price
All tags and price floors are calculated using the latest confirmed bar and extend forward only for visual reference.
Nothing is projected into the future, and nothing repaints.
The Stick Right behavior ensures that EMA labels remain readable and stable when scrolling or changing chart zoom levels.
How traders typically use it
Traders commonly use this indicator to:
Identify trend direction and EMA stacking
Observe how price reacts around EMA zones
Combine EMA structure with their own price action, volume, or higher-timeframe analysis
Maintain a clean chart while keeping key structural levels visible
Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial advice, trading advice, or investment recommendations.
Trading involves risk, and users are fully responsible for their own decisions.
Pine Script® göstergesi
Robust Adaptive Cloud - Blue/White ThemeRobust Adaptive Cloud - Blue/White Theme
Robust Adaptive Cloud - Blue/White ThemeRobust Adaptive Cloud - Blue/White ThemeRobust Adaptive Cloud - Blue/White ThemeRobust Adaptive Cloud - Blue/White ThemeRobust Adaptive Cloud - Blue/White Theme
Pine Script® göstergesi
Pine Script® göstergesi
Al Brooks H2/L2 IndicatorWhat This Indicator Is
This is a price-action execution tool based on Al Brooks concepts.
Its job is not to find every H2 or L2 — it filters aggressively to show only the ones worth trading.
Think of it as answering one question in real time:
“Is this H2 / L2 good enough to take?”
What It Detects
1️⃣ H2 / L2 (Second-Entry Pullbacks)
H2 = second attempt up in a bull trend
L2 = second attempt down in a bear trend
Uses confirmed pivots, so signals do not repaint
2️⃣ A+ Signal Bar Quality
A signal only qualifies if the breakout bar is strong:
Adequate range relative to ATR
Large body
Close near the extreme
Optional follow-through confirmation
Weak bars are ignored.
3️⃣ Trend vs Trading Range Filter
The indicator skips trades in Trading Ranges by checking:
Flat EMA slope
Price chopping around the EMA
Heavy bar overlap
This removes the majority of low-probability H2/L2s.
4️⃣ Microchannel Suppression (Late Trends)
If the trend is overextended (tight microchannel):
H2/L2 signals are skipped
Prevents buying the top or selling the bottom
5️⃣ Wedges & Flags (Brooks Context)
When applicable, trades are tagged as:
W = Wedge pullback (3 pushes)
F = Flag (tight channel pullback)
W+F = both present
These are context tags, not extra signals.
What It Shows on the Chart
✅ Tradable Signals
UP → Long H2
DN → Short L2
Printed only when all filters pass
Clearly anchored to price
These are the only trades the script recommends.
🔔 Alerts
Alerts fire only on tradable setups
No alerts for skipped or marginal signals
Suitable for live execution
What It Does Not Do
It does not predict outcomes
It does not trade for you
It does not show every H2/L2
It intentionally removes most setups so you focus on quality, not frequency.
How to Trade With It (Recommended)
Only act on UP / DN labels
Confirm nearby support/resistance visually
Use Brooks-style risk:
Stop beyond signal bar
Skip trades near measured-move targets
Ignore everything else
Bottom Line
This indicator is a professional-grade Brooks execution filter.
It helps you:
Trade fewer setups
Avoid trading ranges
Avoid late trends
Focus on A+ second entries only
Pine Script® göstergesi
RSI(5) on RSI(14)RSI(5) on RSI(14)
This indicator is displayed in a separate pane and works on all timeframes.
It combines a classic RSI with a secondary RSI calculated on the RSI values themselves, allowing deeper analysis of momentum and internal strength.
Indicator Logic
The indicator consists of two components:
RSI (period 14) calculated from price data (default: Close).
RSI (period 5) calculated on the values of RSI(14), equivalent to Previous Indicator’s Data in MetaTrader.
This structure helps to:
identify overbought and oversold zones using the primary RSI,
observe acceleration, deceleration, and momentum shifts inside the RSI itself using the secondary RSI.
Visualization
RSI(14) is plotted as a configurable colored line.
RSI(5) on RSI(14) is plotted as a thin black line on top of the main RSI.
The indicator scale is fixed between 0 and 100.
Levels
20 and 80 — configurable oversold and overbought levels:
adjustable values,
customizable color,
line width,
line style (solid, dashed, dotted).
50 level:
black,
thin,
dashed,
acts as a mid-level equilibrium reference.
Inputs
Users can adjust:
RSI(14) period,
RSI(5) period,
price source for RSI(14),
colors and line widths,
level values and styles for 20 / 80.
Use Cases
This indicator can be used for:
momentum and strength analysis,
detecting internal RSI momentum shifts,
trend confirmation and filtering,
standalone oscillator analysis or as part of a larger trading system.
Pine Script® göstergesi
Profile volume deviationThis indicator calculates the width of the 70% Value Area of a moving volume profile over a defined number of candles.
It begins by identifying the highest and lowest points of the period under review, then divides this price range into several segments. For each candle, the volume is added to the segment corresponding to the closing price, which allows a volume profile to be constructed.
Once the total volume is known, the indicator identifies the most traded segment, called the Point of Control. From this central point, it gradually widens the area upwards and downwards by adding the most voluminous adjacent segments until it covers 70% of the total volume: this is the Value Area.
The lower and upper limits of this area are then converted into prices, and their difference gives the width of the Value Area. This width can be displayed directly as a price value or as a percentage of the current price.
The indicator is mainly used to assess the state of the market: a narrow Value Area suggests a phase of compression or range, while a wide Value Area indicates a period of expansion and strong activity.
Pine Script® göstergesi
Initial Balance Trader NXiIB (Initial Balance) can be trade at IBL or IBH. My setup based on 30min IB zone. This strategy can be trade in GOLD, SP500 or Currencies etc. Can be combine with VP (Volume profile)
Visit us for more:
www.traderxi.com
Pine Script® göstergesi
Order Flow + Mean Reversion + Vol S/R + MTFW mean reversion script i got 100 percent on a new york open
Pine Script® göstergesi
Trend Strength TableThis strategy is a time-in-trend awareness and exhaustion framework rather than a directional signal by itself. It uses a Hull Moving Average–based trend definition to continuously identify whether the market is in a bullish or bearish phase, then measures how long that trend typically lasts by averaging the durations of recent historical trends in the same direction. As a new trend unfolds, the system tracks how many bars have already closed and compares that progress against the trend’s historical “probable length.” The result is a live, adaptive estimate of where the current move sits within its natural life cycle, independent of price targets or indicators like RSI or MACD.
The real edge comes from contextual trade management. By converting elapsed trend time into a percentage of the probable trend length, the table classifies the move into Strong, Medium, Declining, or Exhaustion phases. Early stages (Strong/Medium) favor continuation trades and holding winners, while later stages (Declining/Exhaustion) warn against chasing momentum and instead encourage scaling out, tightening stops, or looking for reversal and mean-reversion setups. In practice, this strategy acts as a risk-timing overlay—helping traders decide when to press, when to be patient, and when to stand down—rather than telling them what direction to trade.
LONG TRADE RULES (Bullish Trend)
✅ Long Entry Recommendations
Only consider longs when the table shows a Bullish trend.
Best entry zones by Trend Strength:
Strong (< 25%)
✅ Best continuation entries
Enter on:
First pullback to VWAP / 9–20 EMA
Bullish engulfing candle
ORB continuation
Bias: Aggressive size allowed
Expect expansion
Medium (25%–50%)
✅ Still valid, but be selective
Enter on:
Higher low + strong close
Break-and-hold above key level
Bias: Normal size
Avoid chasing extended candles
Declining (50%–75%)
⚠️ Late trend
Only enter if:
Tight consolidation breakout
Strong volume confirmation
Bias: Reduced size
Faster profit-taking
Exhaustion (> 75%)
❌ No new longs
Trend is statistically mature
Look for:
Failed breakouts
Bearish rejection candles
🎯 Long Exit Rules
Partial exits
Take first scale at 50%–75%
Full exit
Mandatory by Exhaustion
Stop management
Strong/Medium → structure-based stop
Declining → tighten aggressively
Hard rule
Do not hold longs once trend flips bearish
SHORT TRADE RULES (Bearish Trend)
✅ Short Entry Recommendations
Only consider shorts when the table shows a Bearish trend.
Best entry zones by Trend Strength:
Strong (< 25%)
✅ Best short continuation zone
Enter on:
Failed bounce into resistance
VWAP / EMA rejection
ORB breakdown
Bias: Aggressive size allowed
Medium (25%–50%)
✅ Good continuation, slower
Enter on:
Lower high confirmation
Breakdown after consolidation
Bias: Normal size
Declining (50%–75%)
⚠️ Trend is aging
Only enter:
On clean breakdowns
With defined risk
Bias: Reduced size
Exhaustion (> 75%)
❌ No new shorts
Expect:
Short-covering
Dead-cat bounces
Reversal attempts
🎯 Short Exit Rules
Partial exits
Begin scaling out at 50%–75%
Full exit
Required at Exhaustion
Stop management
Strong/Medium → above lower high
Declining → tight trailing stop
Hard rule
Cover all shorts if trend flips bullish
🔥 Power Rules (Do NOT break these)
Never open new trades in Exhaustion
Strong = press, Declining = protect
Trend strength dictates size, not conviction
Direction comes from trend, timing comes from price
Pine Script® göstergesi
Double Trisectional Volatility BandsDouble Trisectional Volatility Bands (DTVB) | MisinkoMaster
Double Trisectional Volatility Bands (DTVB) is a volatility-based trend indicator designed to create smooth yet adaptive price envelopes capable of tracking trend structure while reacting to volatility expansion. The indicator emphasizes stability during consolidation while clearly highlighting strong price moves beyond normal market behavior.
This makes DTVB particularly suitable for traders seeking structured volatility envelopes that remain stable during noise yet clearly identify breakout and trend continuation phases.
Key Features
Double-layer trisectional smoothing for stable trend structure
Adaptive volatility bands responding to changing market conditions
Clear breakout detection through band expansion and price crossings
Dynamic candle coloring for immediate trend visualization
Automatic Long and Short markers on confirmed trend shifts
Designed to balance smooth structure with volatility responsiveness
Suitable for both breakout and trend-following strategies
How It Works
DTVB uses a multi-stage smoothing process that divides price behavior into layered components, allowing the central structure to remain smooth while still reacting to changing volatility conditions.
Instead of relying on a single smoothing pass, the indicator blends multiple smoothing layers to maintain structural consistency across varying market environments.
A volatility component then measures how far price deviates from this smoothed structure, and adaptive bands are constructed around the central value. When price moves outside these envelopes, it signals abnormal movement or potential trend continuation.
The result is a band system that stays stable during sideways markets yet expands when volatility increases, helping traders detect meaningful price transitions.
Inputs Overview
Source — Selects the price data used for calculations
Lookback Period — Controls the primary smoothing length used in the band structure
Factor — Adjusts the volatility multiplier controlling band width
Volatility Lookback — Defines the smoothing period applied to volatility calculations
Usage Notes
Designed for traders seeking smooth volatility envelopes
Breakouts occur when price crosses outside the bands
Band expansions often accompany strong trend movements
Works well for trend continuation and breakout confirmation
Best used alongside price structure or confirmation indicators
Parameters should be tuned according to asset volatility and timeframe
Summary
Double Trisectional Volatility Bands provide a smooth yet adaptive volatility envelope designed to highlight abnormal price movements while maintaining stable structure during consolidation. It is well suited for traders seeking structured breakout and volatility-aware trend analysis tools.
Pine Script® göstergesi
Neural Probability Channel [AlgoPoint]The Neural Probability Channel (NPC) is a next-generation volatility and trend analysis tool designed to overcome the limitations of traditional bands (like Bollinger Bands) and smoothing filters (like standard Moving Averages).
Unlike traditional indicators that rely on linear deviation or simple averages, the NPC utilizes a Rational Quadratic Kernel—a concept derived from machine learning regression models—to calculate a non-repainting, highly adaptive baseline (Fair Value). This allows the indicator to distinguish between market noise and genuine trend shifts with superior accuracy.
The volatility bands are dynamically calculated using a hybrid of Standard Error (Mean Deviation) and ATR, ensuring the channels adapt organically to market conditions—expanding during high-impact moves and contracting during consolidation.
How It Works
- The Neural Baseline (Center Line): Instead of a standard Moving Average, the NPC uses a Rational Quadratic Kernel weighting system. This assigns "importance" to price data based on both recency and similarity. It acts as a "Center of Gravity" for price, providing a smoother yet responsive trend detection line without the lag associated with SMAs or EMAs.
Crucially, the math is causal (no lookahead), meaning it does not repaint.
- Adaptive Volatility Bands: The channel width is not fixed. It uses a Hybrid Volatility Model:
- Inner Channel: Represents the "Probability Zone" (approx. 70% confidence). Price staying here indicates a stable trend.
- Outer Channel: Represents "Extreme Deviation" (Statistical Anomalies). When price touches or breaches these outer bands, it is statistically overextended (Overbought/Oversold).
Signal Generation:
- Reversion Signals: Generated when price breaches the Outer Bands and closes back inside. This suggests a "Snap-back" or Mean Reversion event.
- Trend Confirmation: The color of the baseline and the fill zones changes based on the slope of the Kernel, giving an instant visual read on market bias.
How to Use It
- Mean Reversion Strategy: Look for price action extending beyond the Outer Bands (Thinner lines). If price leaves a wick and closes back inside, it signals a high-probability reversal toward the Neural Baseline.
- Green Signal: Potential Long (Reversal from Lows).
- Red Signal: Potential Short (Reversal from Highs).
- Trend Following: Use the Neural Baseline (Thick Center Line) as a dynamic support/resistance level.
If price is holding above the baseline and the cloud is green, the trend is Bullish.
If price is holding below the baseline and the cloud is red, the trend is Bearish.
- Squeeze Detection: When the Inner and Outer bands compress significantly, it indicates low volatility and often precedes an explosive breakout.
Settings
- Lookback Window: Determines the depth of the Kernel analysis.
- Smoothness (Bandwidth): Higher values create a smoother baseline (better for trends), while lower values make it more reactive (better for scalping).
- Regression Alpha: Controls the weight distribution of the Kernel.
- Channel Multipliers: Adjust the width of the Inner and Outer bands to fit your specific asset's volatility profile.
Pine Script® göstergesi
EMA + Ichimoku with LabelsSai and Deb - Levels marked with Exponential moving average of 9,20, 50 and 200 along with Ichimoku concept of kijunsen and SSB.
Pine Script® göstergesi
NADAN PD Level and 9 AMenthuta giri aetante setup
numma poliw alle machane
like share comment follow
like for like share for share
like my pro pic bro
27 support
freaky amal on floor
freaky adarsh on floor
Pine Script® göstergesi
Pine Script® göstergesi
Volatility Expansion Indicator - D_QuantVolatility Expansion Indicator - D_Quant |V|C|E|
1. Concept & Overview
The Volatility Expansion Indicator (VCE) is a composite quantitative tool designed to identify robust trend states by aggregating signals from three distinct market dimensions: Relative Position (Volatility), Cyclical Momentum, and Price Velocity.
Unlike single-source indicators which often generate false positives during choppy markets, the VCE utilizes a "Consensus Engine." It normalizes signals from Bollinger %B, CCI, and ROC into a unified trend score (-1 to +1). This score drives the visual coloring of the price action and background, allowing traders to instantly gauge whether the market is in a state of volatility expansion (trending) or contraction (ranging).
2. Methodology & Calculation
The core logic relies on a weighted aggregation of three technical components. Users can toggle these components on or off in the settings to isolate specific market mechanics.
A. Component 1: Bollinger %B (Relative Positioning)
Logic: Measures where the price is located relative to the Bollinger Bands.
Bullish Condition: If %B > 0.5 (Price is operating in the upper hemisphere of the bands).
Bearish Condition: If %B < 0.0 (Price has broken below the lower band).
Purpose: Filters out weak trends by ensuring price is statistically significant relative to its recent volatility.
B. Component 2: CCI (Commodity Channel Index)
Logic: Measures current price levels relative to an average price level over a specific period.
Thresholds: A standard +100 / -100 threshold is used. Values above 100 add to the bullish score; values below -100 add to the bearish score.
Purpose: Identifies cyclical momentum extremes.
f_cci(_len) =>
cci_val = ta.cci(close, _len)
val = 0
if cci_val > 100
val := 1
if cci_val < -100
val := -1
val
C. Component 3: ROC (Rate of Change)
Logic: Calculates the percentage change between the current price and the price n periods ago.
Thresholds: Simple zero-line crossover. Positive ROC implies bullish velocity; negative implies bearish.
Purpose: Provides a raw directional bias based on pure price speed.
D. The Aggregation Engine: The script sums the active signals and divides by the number of active components.
Bullish Trend: Composite Score > 0 (Visualized as Deep Navy).
Bearish/Neutral: Composite Score ≤ 0 (Visualized as White).
E. Multi-Timeframe (MTF) Capability: The indicator includes a request.security module. This allows you to calculate the consensus trend on a higher timeframe (e.g., Daily) while viewing price action on a lower timeframe (e.g., 15-minute), ensuring you are trading in alignment with the macro trend.
// NEW: Timeframe Selection
tf_input = input.timeframe("", "VCE Timeframe", group=grp_sets, tooltip="Empty = Current Chart. Set to 'D' for fixed Daily trend.")
= request.security(syminfo.tickerid, tf_input, , lookahead=barmerge.lookahead_on)
3. Visualizations
The indicator overlays the following elements on the chart:
Trend SMMA: A central Smoothed Moving Average (SMMA 20) representing the mean.
Volatility Bands: Upper and Lower bands calculated at 2 Standard Deviations from the SMMA.
Bar Coloring:
Navy Blue: Indicates a confirmed Volatility Expansion (Bullish Confluence).
White: Indicates Neutrality, Retracement, or Bearish conditions.
Dynamic Fills: The space between the bands fills with color to highlight the strength of the current regime.
4. How to Use
Trend Following: Look for the bar color to switch to Navy. This indicates that momentum, volatility, and velocity have aligned bullishly. This is often an entry trigger for long positions.
Exits: When the bars switch from Navy back to White/Gray, the volatility expansion has ceased or momentum is diverging. This serves as a warning to tighten stops or take profits.
MTF Filter: Set the "VCE Timeframe" input to "D" (Daily). Trade on the H1 chart. Only take long positions when the Daily VCE paints the background/bands in the Bullish color.
5. Settings
Bollinger %B: Adjust Length and Multiplier (Default: 20, 2.0).
CCI: Adjust Length (Default: 23).
ROC: Adjust Length (Default: 50).
Signal Components: Toggle specific logic blocks on/off to customize the sensitivity of the composite score.
VCE Timeframe: Select the resolution for the calculation (Leave empty for current chart).
Disclaimer: This tool is for informational purposes only. Past performance of volatility expansion does not guarantee future results. Always manage risk appropriately.
Pine Script® göstergesi
SMA 20 & 5 MagicMoving Average based envelops and bands are quite popular tools in the equity trading universe. One such popular band is 20 SMA High-Low band. In 20 SMA High-Low band generally a BUY is signaled when price breaks above the High of the band, and a SELL when price falls below the Low of the band. However, at times the time-price points to look for trading/ investing opportunities and taking position are not very clear in this generic mode.
This script combines the 20 SMA High-Low band and a 5 SMA line plotted over it, to tackle this limitation. It helps to find more precise trading/ investing opportunities, Entry and Exit time-price points above & below the band, traversing along the 5 SMA line. The price within the band is usually considered as 'no trades' zone.
This set up can be applied on any TF, but generally holds good for swings on daily/ hourly TFs. By tweaking SMA 20 and 5 to SMA 200 and 50 respectively in the settings, it may also help in identifying medium/Long term trends and investment opportunities using daily/ weekly TFs .
Take it as a tool for learning and analysis. Happy trading/ investing.
Pine Script® göstergesi






















