Better DEMAThe Better DEMA is a new tool designed to recreate the classical moving average DEMA, into a smoother, more reliable tool. Combining many methodologies, this script offers users a unique insight into market behavior.
How does it work?
First, to get a smoother signal, we need to calculate the Gaussian filter. A Gaussian filter is a smoothing filter that reduces noise and detail by averaging data with weights following a Gaussian (bell-shaped) curve.
Now that we have the source, we will calculate the following:
n2 = n/2 (half of the user defined length)
a = 2/(1+n)
ns
Now that we have that out of the way, it is time to get into the core.
Now we calculate 2 EMAs:
slow EMA => EMA over n
fast EMA => EMA over n2 period
Rather then now doing this:
DEMA = fast EMA * 2 - slow EMA
I found this to be better:
DEMA = slow EMA * (1-a) + fast EMA * a
As a last touch I took a little something from the HMA, and used a EMA with period of √n to smooth the entire the thing.
The Trend condition at base is the following (but feel free to FAFO with it):
Long = dema > dema yesterday and dema < src
Short = dema < dema yesterday and dema > src
Methodology
While the DEMA is an amazing tool used in many great indicators, it can be far too noisy.
This made me test out many filters, out of which the Gaussian performed best.
Then I tried out the non subtractive approach and that worked too, as it made it smoother.
Compacting on all I learned and smoothing it bit by bit, I think I can say this is worth looking into :).
Use cases:
Following Trends => classic, effective :)
Smoothing sources for other indicators => if done well enough, could be useful :)
Easy trend visualization => Added extra options for that.
Strategy development => Yes
Another good thing is it does not a high lookback period, so it should be better and less overfit.
That is all for today Gs,
Have fun and enjoy!
Indicators and strategies
Quantum Portfolio vs S&P 500 (Base: May 2, 2021)This script compares the performance of a custom Quantum Portfolio — a weighted basket of quantum computing, semiconductor, and cybersecurity stocks — against the S&P 500 Index, with both series rebased to 100 on May 2 2021.
It provides a clear, normalized view of cumulative returns, allowing you to visualize portfolio outperformance or underperformance relative to the broader market benchmark.
Auto Chart PatternsAuto Chart Patterns automatically scans the chart for major technical patterns and marks them directly on price action. It detects:
• Head & Shoulders (bearish reversal)
• Inverse Head & Shoulders (bullish reversal)
• Rising and Falling Wedges
• Double / Triple Tops and Bottoms
• Cup & Handle (bullish continuation)
For each pattern, the script draws the structure (trendlines / neckline), shades the pattern zone, and places a label with the pattern name.
It also generates optional trade signals:
• “BUY” when a bullish pattern breaks out with confirmation
• “SELL” when a bearish pattern breaks down with confirmation
Confirmations can include:
• Follow-through candle in the breakout direction
• Volume spike vs recent average
• RSI momentum agreement
Inputs let you control:
• Pivot sensitivity (left/right bars)
• Pattern types to display
• Cup & Handle depth rules
• Confirmation rules for entry/exit signals
This tool is designed to help you visually spot reversal and continuation setups, highlight potential breakout levels (necklines / wedge boundaries), and time trades with clearer confirmation instead of guessing.
Disclaimer: This script is for educational/technical analysis purposes only. It does not guarantee future performance, does not execute trades, and is not financial advice. Always confirm signals with your own analysis and risk management before entering any position.
Range Opening (ADX)▶ OVERVIEW
Range Opening (ADX) dynamically detects market opening ranges triggered by ADX (Average Directional Index) momentum shifts. Upon a user-defined ADX crossover or crossunder event, it builds a volume-based range box that tracks high and low prices over a fixed bar length and visualizes order flow pressure with delta volume and breakout buffer zones.
▶ RANGE TRIGGER VIA ADX CROSSOVER
The range begins when ADX crosses a custom threshold, indicating a shift in trend strength:
Users choose between ADX crossover or crossunder as the trigger.
Once triggered, the indicator starts collecting price and volume data for the specified “Range Opening Length.”
The ADX plot on the subchart is colored dynamically using a green-to-magenta gradient based on its strength.
A small label marks the ADX crossover/crossunder event visually.
▶ RANGE DEVELOPMENT BOX
While the range is forming:
Price highs and lows over the defined period are collected and stored.
A temporary gray box is drawn between the maximum high and minimum low, showing the developing range.
At each bar, delta volume is updated:
Positive if close > open
Negative if close < open
A total delta volume value is shown inside the developing box for real-time monitoring.
▶ RANGE COMPLETION & BREAKOUT LINES
Once the range completes (after the defined bar count):
The gray box is replaced with a finalized, color-coded range box.
Color Logic:
Green box if delta volume is positive (bullish bias)
Magenta box if delta is negative (bearish bias)
Two solid horizontal lines are drawn:
Top line from the range high
Bottom line from the range low
Two dashed lines are added above and below the range using ATR-based buffers, acting as buffer zones.
These lines extend until a new ADX trigger occurs, helping track future price interaction with the range.
▶ INFO PANEL & STATUS MONITORING
A compact data table appears in the top-right corner, offering quick insight:
ADX: Current value, color-coded to strength.
Threshold: User-defined trigger level.
Range Status:
Shows a green diamond when range is still forming.
Shows a magenta diamond after the range has completed.
Tooltip updates to “Developing” or “Formatted” based on stage.
▶ USAGE
Traders can use Range Opening (ADX) to:
Identify periods of strength expansion and price consolidation using ADX signals.
Track breakout potential and liquidity zones formed during opening-type setups.
Monitor delta volume to gauge buying/selling bias inside short-term ranges.
Use ATR buffer zones for breakout confirmation or fade setups.
Visually mark where the most recent structured range was defined.
▶ CONCLUSION
Range Opening (ADX) offers a systematic method to detect and monitor market ranges triggered by volatility surges. With real-time delta volume insight, persistent breakout levels, and ADX-driven logic, it serves as a versatile tool for both breakout traders and range strategists looking to capitalize on momentum-based setups.
Trend Pivot Retracements▶ OVERVIEW
Trend Pivot Retracements identifies market trend direction using a Donchian-style channel and dynamically highlights retracement zones during trending conditions. It calculates the percentage pullbacks from recent highs and lows, plots labeled zones with varying intensity, and visually connects key retracement pivots. The indicator also emphasizes price proximity to trend boundaries by dynamically adjusting the thickness of plotted trend bands.
▶ TREND DETECTION & BAND STRUCTURE
The indicator determines the current trend by checking for new 50-bar extremes:
Uptrend: If a new highest high is made, the trend is considered bullish.
Downtrend: If a new lowest low is made, the trend is considered bearish.
Uptrend Band: Plots the 50-bar lowest low as a trailing support level.
Downtrend Band: Plots the 50-bar highest high as a trailing resistance level.
Thickness Variation: The thickness of the band increases the further price moves from it, indicating overextension.
▶ RETRACEMENT LABELING SYSTEM
During a trend, the indicator monitors pivot points in the opposite direction to measure retracements:
Bullish Retracement:
Triggered when a pivot low forms during an uptrend.
Measures % pullback from the most recent swing high (searched up to 20 bars back).
Plots a bold horizontal line at the low and a dashed diagonal from the previous swing high.
Adds a “-%” label above the low; intensity is based on recent 50 pullbacks.
Bearish Retracement:
Triggered when a pivot high forms during a downtrend.
Measures % pullback from the previous swing low (up to 20 bars back).
Plots a bold horizontal line at the high and a dashed diagonal from the prior swing low.
Adds a “%” label below the high with gradient color based on the past 50 extremes.
▶ PIVOT CONNECTION LINES
Each retracement includes a visual connector:
A diagonal dashed line linking the swing extreme (20 bars back) to the retracement point.
This line visually traces the path of price retreat within the trend.
Helps traders understand where the retracement originated and how steep it was.
▶ TREND SWITCH SIGNALS
When trend direction changes:
A diamond marker is plotted on the new pivot confirming the trend shift.
Green diamonds signal new bullish trends at fresh lows.
Magenta diamonds signal new bearish trends at fresh highs.
▶ COLOR INTENSITY & CONTEXTUAL AWARENESS
To help interpret the magnitude of retracements:
The % labels are color-coded using a gradient scale that references the max of the last 50 pullbacks.
Stronger pullbacks result in deeper color intensity, signaling more significant corrections.
Trend bands also use standard deviation normalization to adjust line thickness based on how far price has moved from the band.
This creates a visual cue for potential exhaustion or volatility extremes.
▶ USAGE
Trend Pivot Retracements is a powerful tool for traders who want to:
Identify trend direction and contextual pullbacks within those trends.
Spot key retracement points that may serve as entry opportunities or reversal signals.
Use visual retracement angles to understand market pressure and trend maturity.
Read dynamic band thickness as an alert for price stretch, potential mean reversion, or breakout setups.
▶ CONCLUSION
Trend Pivot Retracements gives traders a clean, visually expressive way to monitor trending markets, while capturing and labeling meaningful retracements. With adaptive color intensity, diagonal connectors, and smart trend switching, it enhances situational awareness and provides immediate clarity on trend health and pullback strength.
HTF Session Boxes H4 > H2 > H1HTF Session Boxes H4 > H2 > H1
Visualize higher timeframe candle structures on lower timeframe charts with nested, customizable boxes.
Overview
HTF Session Boxes plots 4-hour, 2-hour, and 1-hour candle ranges as nested boxes directly on your lower timeframe charts (15M and below). This provides instant visual context of higher timeframe structure without switching between different chart timeframes.
Key Features
- Three Timeframe Levels: Simultaneously displays 4H, 2H, and 1H candle boxes
- Nested Design: Boxes are layered inside each other for clear hierarchical structure
- Real-Time Updates: Boxes dynamically adjust as higher timeframe candles develop
Fully Customizable:
-Individual colors and transparency for each timeframe
-Custom border colors, widths, and styles (solid, dashed, dotted)
-Toggle each timeframe on/off independently
Best Use Cases
-Scalping & Day Trading: Maintain awareness of higher timeframe structure while trading lower
timeframes
-Session Analysis: Clearly see 4H session boundaries and internal 2H/1H divisions
-Support/Resistance: Identify key levels where higher timeframe candles open, close, or create
highs/lows
-Multi-Timeframe Confluence: Spot when multiple timeframes align at key price levels
Quantum Portfolio vs NASDAQ (Base: May 2, 2021)This custom Pine Script indicator tracks and compares the cumulative performance of a multi-asset “Quantum Portfolio” against the NASDAQ 100 benchmark, rebased to a common starting point on May 2, 2021.
Both series are normalized to a base value of 100 on that date, allowing direct visual comparison of percentage growth or decline over time.
50-Minute Opening Range BreakoutThis is a test of the opening range with Bearish/Bullish confirmation
Thematic Portfolio: Quantum Computing & Core TechThis indicator tracks the aggregated performance of a curated thematic portfolio representing the Quantum Computing & Core Technology sector.
It combines leading equities and ETFs with predefined weights to reflect a diversified exposure across quantum hardware, AI infrastructure, and semiconductor backbones.
Composition:
Stocks: Rigetti (RGTI), IonQ (IONQ), D-Wave (QBTS), Palantir (PLTR), Intel (INTC), Arqit (ARQQ)
ETFs: BUG, QTUM, SOXX, IHAK
Methodology:
Each component’s normalized performance is weighted according to its strategic importance within the theme (R&D intensity, infrastructure leverage, and hardware dependence). The indicator dynamically aggregates the weighted series to visualize the cumulative return of the quantum computing ecosystem versus traditional benchmarks.
Intended use:
Compare thematic returns vs. S&P 500 or NASDAQ
Identify macro inflection points in the quantum tech narrative
Backtest thematic exposure strategies or structure twin-win / delta-one certificates
Note: This script is for analytical and educational purposes only and does not constitute financial advice.
Bullish/Bearish Engulfing Candle ScannerFinds instances on any time frame of bullish or bearish engulfing candles, those with some increased average volume showing green arrows to highlight, otherwise red.
Advanced Currency StrengthThis indicator shows the strength of currency based on its movement. Ossiclator.
Simple Moving AveragesIn Pine Script v6, the standard method for plotting indicators is still the plot function, and it should be recognized. However, if you are getting an "Undeclared identifier 'plot'" error, double-check these points:
Make sure your script is still using indicator() (not study()) at the top.
The script must not use indentation or syntax errors that break context.
Confirm Pine Script version is set correctly with //@version=6.
Here is a fully corrected Pine Script v6 template for your moving averages scenario using
Turtle/Donchian Screener — with signalsTurtle strategy for Pine screener. Shows latest trigger for buy/sell long positions.
Current Weekly Open LineThis indicator is an indicator to make your weekly review.
It shows exactly where the last weekly open candle has been, so you don't have to search it manually.
Current Weekly Open LineVertical line on current weekly open.
To know exactly on every chart where the current weekly opening is, without having to do it manually.
HoneG_BJVH 改良版v2ザオプションのワンタッチ取引向けのサブチャート用ツールver2です
旧版は無効です
This is version 2 of the subchart tool for one-touch trading on The Option.
The previous version is no longer valid.
Micro cycle0-Minute Quarter Cycle Indicator (Q90-Final)
This indicator plots vertical lines marking the four quarters (Q1,Q2,Q3,Q4) of a continuous 90-minute cycle.
It is designed for traders who utilize time-based cycles for market analysis and entry/exit timing.
So you can easy identify the cycles off the micro cycles Q1,Q2,Q3 and Q4
Bias Macro: M2 (FRED) → Canal de MoisésCorrelacion positiva con el oro, sirve para la tendencia macro del xauusd
Volume TI65**TI65 (Trend Intensity 65)** is a technical indicator designed to measure the strength and momentum of a trend over two distinct periods. It compares a short-term 7-period simple moving average (SMA) with a long-term 65-period SMA, producing a ratio that helps traders identify shifts in market momentum and trend direction.
- When the **TI65 value is greater than 1**, it indicates that the short-term moving average is above the long-term average, suggesting increasing momentum and a potentially bullish trend.
- When the **TI65 value drops below 1**, it signals weakening short-term momentum relative to the longer-term trend, often interpreted as a bearish or consolidating phase.
This indicator can be applied to both price and volume data, making it useful for identifying periods of strong volume surges or price movements. By observing changes in the TI65 ratio, traders can pinpoint low-risk entry points for trend-following strategies and quickly recognize periods of market transition.
TI65 is commonly used by momentum and breakout traders for screening strong candidates and confirming the sustainability of ongoing trends. It is simple, effective, and easily implemented via custom scripts on popular platforms like TradingView.
Institutional Zones: Opening & Closing Trend HighlightsDescription / Content:
Track key institutional trading periods on Nifty/Bank Nifty charts with dynamic session zones:
Opening Volatility Zone: 9:15 AM – 9:45 AM IST (Green)
Closing Institutional Zone: 1:30 PM – 3:30 PM IST (Orange)
Both zones are bounded by the day’s high and low to help visualize institutional activity and price behavior.
Key Observations:
Breakout in both closing trend and opening trends often occurs on uptrending days.
Breakdown in both closing range and opening range usually happens on downside trending days.
Price opening above the previous closing trend is often a sign of a strong opening.
This script helps traders identify trend strength, breakout/breakdown zones, and institutional participation during critical market hours.
Disclaimer:
This indicator is for educational and informational purposes only. It is not a financial advice or recommendation to buy or sell any instrument. Always confirm with your own analysis before taking any trade.
Pine Script Features:
Dynamic boxes for opening and closing sessions
Boxes adjust to the day’s high and low
Optional labels at session start
Works on intraday charts (1m, 5m, 15m, etc.)
Usage Tip:
Use this indicator in combination with trend analysis and volume data to spot strong breakout/breakdown opportunities in Nifty and Bank Nifty.
Supertrend Auto BUY / SELL Signals by ISadd super trend 10.3 and 10.1 in the chart, add EMA 20, use this script for auto buy and sell signal. target you have to decide based on your instrument
Ichimoku MultiTF WillyArt v1.0.0What this indicator does
Ichimoku WillyArt turns the Ichimoku lines into angle-based momentum across multiple timeframes (W, D, 4H, 1H, 30m, 5m).
For each TF it computes the slope (angle in degrees) of:
Tenkan-sen
Kijun-sen
Senkou Span A
Senkou Span B
Angles are normalized so they’re comparable across assets and scales. You get a table with the angle per line and a quick emoji direction (↑, →, ↓), optional plots of the chosen line, and ready-to-use alerts.
Why angle?
Slope-as-degrees is an intuitive proxy for momentum/impulse:
Positive angle → line rising (bullish impulse).
Negative angle → line falling (bearish impulse).
Near zero → flat/indecisive.
Two normalization modes
ATR (default): slope / ATR. Robust across instruments; less sensitive to price level.
%Price: slope / price. More sensitive; can highlight subtle turns on low-volatility symbols.
Inputs you’ll actually care about
Timeframes: W, D, 4H, 1H, 30m, 5m (all fetched MTF, independent of chart TF).
Ichimoku lengths: Tenkan (9), Kijun (26), Span B (52) — standard defaults.
Bars for slope (ΔN): How many bars back the slope is measured. Higher = smoother, slower.
Threshold (°) for “strong”: Angle magnitude that qualifies as strong ↑/↓.
What you’ll see
Matrix/Table (top-right): For each TF, the angle (°) of Tenkan, Kijun, Span A, Span B + an emoji:
↑ above threshold, ↓ below −threshold, → in between.
Optional plots: Toggle “Plot angles” to visualize the chosen series’ angle across TFs.
Alerts included (ready to pick in “Create Alert”)
Sustained state: e.g., “Kijun 4H: strong ↑ angle” triggers while angle > threshold.
Threshold cross (one-shot): e.g., “Kijun 1H: upward threshold cross” fires on crossing.
Consensus (multi-TF): “Kijun consensus ↑ (D/4H/1H/30m/5m)” when all selected TFs align up (and the symmetric down case).
Messages are constant strings (TradingView requirement), so they compile cleanly. If you want dynamic text (current angle, threshold value, etc.), enable your own alert() calls—this script structure supports adding them.
How to use it (workflow)
Add to chart. No need to switch chart TF; the script pulls W/D/4H/1H/30m/5m internally.
Pick normalization. Start with ATR. Switch to %Price if you want more sensitivity.
Set ΔN & threshold.
Intraday momentum: try ΔN = 3–5 and threshold ≈ 4–8°.
Swing/position: ΔN = 5–9 and threshold ≈ 3–6° (with ATR).
Scan the table. Look for alignment (multiple TFs with ↑ or ↓ on Kijun/Spans).
Kijun + Span A up together → trending push.
Span B up/down → cloud baseline tilting (trend quality).
Turn on alerts that match your style: reactive cross for entries, sustained for trend follow, consensus to filter noise.
Reading tips
Kijun angle: great “trend backbone.” Strong ↑ on several TFs = higher-probability pullback buys.
Span A vs. Span B:
Span A reacts faster (momentum).
Span B is slower (structure).
When both tilt the same way, the cloud is genuinely rotating.
Mixed signals? Use higher TFs (W/D/4H) as bias, lower TFs (1H/30m/5m) for timing.
Good to know (limits & best practices)
Angles measure rate of change, not overbought/oversold. Combine with price structure and risk rules.
Extremely low volatility or illiquid symbols can produce tiny angles—%Price mode may help.
ΔN and thresholds are contextual: adapt per market (crypto vs FX vs equities).
Want me to bundle a “pro template” of alert presets (intraday / swing) and a heatmap color scale for the table? Happy to ship v2. 🚀






















