Continuation Index [DCAUT]█ Continuation Index
📊 OVERVIEW
Continuation Index (CI) is an advanced trend analysis indicator developed by John F. Ehlers. This indicator provides early warning signals for trend onset, continuation, and exhaustion, with values oscillating between -1 and +1 to offer clear trend state identification for traders.
Based on the article TASC 2025.09 "Trend Onset And Trend Exhaustion - The Continuation Index" by John F. Ehlers.
💡 CORE VALUE
Unlike traditional trend indicators, the Continuation Index provides:
- Advanced dual-filter architecture (Ultimate Smoother + Laguerre Filter)
- Inverse Fisher Transform for enhanced signal-to-noise ratio
- Adaptive gamma parameter allowing market-specific tuning
- Binary state output (+1/-1) eliminating interpretation ambiguity
🎯 CONCEPTS
Signal Interpretation
CI > 0.5 : Strong bullish trend continuation - consider holding/adding long positions
CI = +1 : Maximum bullish signal - strong uptrend in progress
CI < -0.5 : Strong bearish trend continuation - consider holding/adding short positions
CI = -1 : Maximum bearish signal - strong downtrend in progress
CI near 0 : Neutral zone - trend uncertain, wait for clear signals
Brief pullbacks from extreme states : Potential reentry opportunities in trend direction
Primary Applications
Trend Onset Detection : Early warning signals for trend initiation
Trend Exhaustion Signals : Identify potential trend reversals
Position Management : Clear binary states for entry/exit decisions
Market Timing : Adaptive filtering reduces false signals
📋 PARAMETER SETUP
Source : Data source for calculation (default: close)
Length : The calculation length for the filters (default: 40, min: 1)
Gamma : Controls the phase response of the Laguerre filter. Smaller values increase responsiveness (default: 0.8, range: 0.0-1.0)
Laguerre Order : The order of the Laguerre filter, which directly affects its lag (default: 8, range: 1-10)
📊 COLOR CODING
Green : CI > 0.5 - Bullish trend continuation
Red : CI < -0.5 - Bearish trend continuation
Gray : Neutral zone - Trend unclear
אינדיקטורים ואסטרטגיות
Shadow Corp 90min Boxes90-min cycle boxes, marks 90min session highs and lows with color coded boxes.
G. Santostasi Bitcoin Power Law Monte Carlo IndicatorOverview:
The "G. Santostasi Bitcoin Power Law Monte Carlo" is a sophisticated TradingView indicator inspired by the Bitcoin Power Law Theory developed by physicist Giovanni Santostasi.
This theory posits that Bitcoin's price follows a power-law relationship with time, measured in days since the Bitcoin Genesis Block (January 3, 2009). The indicator leverages this framework to analyze Bitcoin's price dynamics through a normalized metric called "Daily Slopes," which captures local deviations from the long-term power-law trend. By fitting these Daily Slopes to a t-location scale distribution on a moving window, the indicator computes key parameters (mu, sigma, and nu) and plots them along with deviation bands. This allows traders to identify local minima and maxima in price action relative to the global power-law slope of approximately 5.9.Additionally, the indicator incorporates Monte Carlo simulations to project potential future price paths up to 100 days ahead, generating up to 500 randomized trajectories based on the statistical properties of the Daily Slopes. This tool is particularly useful for understanding Bitcoin's inherent diminishing returns, assessing market stability, and forecasting short-term scenarios while emphasizing the asset's long-term predictability as a self-organizing network akin to natural systems.
The indicator does not predict exponential growth but instead highlights Bitcoin's scale-invariant behavior, where returns diminish predictably over time—a feature, not a bug, of its design. It has been observed that the core metric (mu) remains stable across Bitcoin's entire history, reinforcing the power law as Bitcoin's "DNA."
Core Concept: Daily Slopes:
At the heart of the indicator is the "Daily Slopes" metric, which normalizes daily logarithmic returns to account for the diminishing nature predicted by the power-law model. This normalization reveals a stable "local slope" (n) that oscillates around a fixed global value, providing insight into Bitcoin's consistent behavior over time.
Definition and Calculation:
Daily logarithmic returns are calculated as log(P2/P1)\log(P_2 / P_1)\log(P_2 / P_1), where P2P_2P_2 is the current day's closing price and P1P_1P_1 is the previous day's closing price.
According to the power-law model, if Bitcoin's price ( P(t) ) follows P(t)=c⋅tnP(t) = c \cdot t^nP(t) = c \cdot t^n
(where ( t ) is days since the Genesis Block, ( c ) is a constant, and n≈5.9n \approx 5.9n \approx 5.9
is the global slope from log-log regression), then the expected daily log return is n⋅log((t+1)/t)n \cdot \log((t+1)/t)n \cdot \log((t+1)/t)
.
The Daily Slope is thus the normalized value:
Daily Slope=log(P2/P1)log((t+1)/t)\text{Daily Slope} = \frac{\log(P_2 / P_1)}{\log((t+1)/t)}\text{Daily Slope} = \frac{\log(P_2 / P_1)}{\log((t+1)/t)}
This normalization "stabilizes" the returns by dividing out the theoretical decay factor log((t+1)/t)\log((t+1)/t)\log((t+1)/t)
, which diminishes as ( t ) increases (reflecting slower growth in mature systems).
Result: The Daily Slope represents a "local n" that should remain stable, oscillating around the global slope of ~5.9 without long-term drift. Empirical data shows this stability holds over Bitcoin's 16-year history, with oscillations but no systematic change—indicating Bitcoin has statistically "done the same thing" since inception.
Interpretation:
Positive deviations (Daily Slope > 5.9) signal bullish momentum or potential local maxima.
Negative deviations (Daily Slope < 5.9) indicate bearish pressure or local minima.
The metric adjusts for absolute volatility, which appears to decrease over time due to diminishing returns. However, when normalized via Daily Slopes, relative volatility has been constant for the last 8 years, underscoring Bitcoin's resilience to macroeconomic factors.
Distribution Fitting and Parameter Estimation:
To quantify the behavior of Daily Slopes, the indicator fits them to a t-location scale distribution (Student's t-distribution with location and scale parameters) over a user-configurable moving window (e.g., 365 days for annual analysis).
This distribution is chosen as the best empirical fit for the heavy-tailed, outlier-prone nature of Bitcoin's normalized returns, outperforming alternatives like Gaussian or Laplacian.t-Location Scale Distribution:
The distribution is parameterized by:μ (mu): Location parameter, representing the mean or "average slope." This is the most critical metric, stable around 5.9 across Bitcoin's history. It tracks the central tendency of Daily Slopes and signals overall market regime (e.g., rising mu indicates strengthening momentum).
σ (sigma): Scale parameter, akin to standard deviation, measuring the spread or volatility of slopes. It has shown slight increases in certain contexts (e.g., hash rate applications) but remains stable for price data.
ν (nu): Degrees of freedom, controlling the "tailedness" (lower ν means heavier tails, capturing extreme events like bubbles or crashes).
Fitting is performed on a rolling basis, updating μ, σ, and ν dynamically.
Plotting:
Local μ: Plotted as a central line, showing the moving average slope.
Deviation Bands: μ + σ (upper band) and μ - σ (lower band), highlighting 1-standard-deviation ranges.
These bands help identify overbought/oversold conditions by measuring deviations from the global mean of 5.9.
For example:
Crossing above μ + σ may signal a local maximum (potential sell opportunity).
Dipping below μ - σ could indicate a local minimum (buy signal).
Additional visualizations include raw Daily Slopes (oscillating series) and smoothed averages for clarity.
Stability and Insights:μ has remained remarkably stable over 16 years, oscillating without drift, validating the power law's predictive power.
Parameters may show minor trends in rolling windows (e.g., slight σ increases), but no monotonic drift is observed in price data. This stability extends to related metrics like addresses and hash rate, where Daily Slopes can be derived similarly (e.g., via log(A2/A1) / log((t+1)/t) for addresses, yielding equivalent slopes around 5.9).
Monte Carlo Simulations for Future Projections
The indicator enables short-term forecasting (up to 100 days) by reversing the normalization process and simulating paths using the fitted distribution.
Projection Mechanism:
Recover expected daily returns: Multiply the sampled Daily Slope (drawn from the t-location scale distribution with current μ, σ, ν) by log((t+1)/t)\log((t+1)/t)\log((t+1)/t)
.
Generate randomized samples to create up to 500 Monte Carlo paths, incorporating the distribution's properties to model uncertainty (e.g., heavy tails for rare events).
Simulations can use the full historical dataset for broader spreads or recent windows (e.g., last 8 years) for tighter, regime-specific forecasts.
Output: Fan chart of projected prices, showing median path (based on μ), confidence intervals (e.g., ±σ bands), and extreme scenarios.
Applications and Limitations:
Useful for risk assessment, e.g., probability of reaching $200K in 2025 is low (1-2% per recent simulations).
Assumes parameters evolve minimally; if drift is detected, simulations can adjust dynamically.
Not for long-term predictions (beyond 100 days), as the power law excels in multi-year trends rather than short-term noise.
Empirical validation: Simulations align with historical backtests, where deviations (bubbles/crashes) revert to the power-law trend.
Usage Notes Inputs:
Customize moving window size, number of Monte Carlo paths (default: 500), projection horizon (up to 100 days), and global slope (default: 5.9).
Visuals: Overlay on BTCUSD log-log chart for context; bands and simulations appear in separate panels.
Caveats: This is not financial advice. The power law describes emergent behavior from network effects, not guarantees. Cycles and bubbles are secondary deviations, not core to the model.
Extensions: The concept applies beyond price (e.g., to addresses or hash rate), revealing interconnected power laws in Bitcoin's ecosystem.
This indicator transforms Santostasi's theoretical insights into a practical tool, empowering users to navigate Bitcoin's dynamics with statistical rigor.
ShadowCorp ICT Extended Macros (Original by toodegrees)Based on “ICT Algorithmic Macro Tracker° (Open-Source) by toodegrees” (MPL-2.0), this version simply extends the original macro logic: it keeps the same left/right verticals and dynamic horizontal cap. In short, it’s just an extended macro compared to TooDegree’s
1H Color-Change Open Levels (non-repainting)objective way of getting levels. better than anything else out there
ShadowCorp Time Cycle'sThis indicator marks key intraday windows — 7:00–8:30, 8:30–10:00 (NYO), 10:00–11:30, 11:30–13:00, 13:00–14:30, 14:30–16:00, and 18:00–19:00 — and draws a true **price-range box** for each window.
Each box builds **in real time** from that window’s running **high/low**, then **persists on the chart** after the window ends for historical study. It’s **timezone-aware** (configurable) and gives you **per-window color** controls. Use it to visualize session volatility, ranges, and liquidity sweeps across the day on any intraday chart.
Multi-Timeframe mybullandbearThis Multi-Timeframe RSI + Ultimate MA System combines RSI and customizable moving averages (SMA, EMA, WMA, HullMA, VWMA, RMA, TEMA) to generate powerful buy/sell signals across 5m, 15m, 1h, and 4h timeframes. Visualize signals with clear chart labels (BUY/SELL) and a multi-timeframe table showing RSI status, MA trends, and signal strength. Ideal for traders seeking trend confirmation and reversal signals.
Enable/disable RSI, MA cross, or combined signals, and adjust MA types/lengths. Use aligned signals across timeframes for stronger entries. Best with backtesting for your asset.
Double Moving Average█ OVERVIEW
The Double Moving Average (DMA) smooths one moving average with a second moving average.
Includes moving average type, higher timeframe, offset, alerts, and style settings for all of the indicator's visual components. This indicator includes an optional line and label to indicate the latest value of the DMA that repaints.
█ CONCEPTS
Shorter term moving averages, especially in choppy markets, can rapidly increase and decrease their slope. Which could lead some traders into assuming that the series trend may continue at that steeper slope. By smoothing a moving average with another one, the magnitude of rapid choppy movements is mitigated.
█ FEATURES
DMA Customization
Most inputs have a tooltip that can be read by interacting with the information icon to guide users.
For both moving averages in the DMA, users can set the lookback length and moving average type independently. Available moving average types include:
Simple Moving Average
Exponential Moving Average
Hull Moving Average
Weighted Moving Average
Volume Weighted Moving Average
A bar offset setting is included for shifting the indicator's placement. Using different lookback combinations for both averages alongside an offset can create equivalent values of other types of moving averages not included in this indicator. For example, if the default lookback settings are offset by 1 bar, this duplicates a 4 period centered moving average.
Colors for the DMA's plot can toggle between a single "base" color, or using increasing and decreasing colors. Changing the plot's style, line style, and width is also supported.
Latest Value Line and Label
The latest value of the DMA plot is replaced by default with a feature called the Latest Value Line and Label: a stylized line and label to help indicate the part of the indicator that can repaint from the parts that don't repaint. Data used to draw this feature is calculated separately from the indicator's confirmed historical calculations.
A label is included to display the latest value of the DMA which includes complete style settings. The style of both the line and label are completely customizable; every style feature that can be included has a corresponding input you can set.
Toggling off the Latest Value Line and Label feature will cause all the respective style inputs to deactivate so that they're no longer in focus or editable until the feature is toggled on again.
Higher Timeframes
Users can plot the DMA from higher timeframes on their chart.
As new bars print, the non-repainting DMA historical plot uses the last confirmed higher timeframe value. The repainting Latest Value Line and Label will update with the most recent higher timeframe value only for the latest bar. If the Latest Value Line feature is toggled off, the last confirmed higher timeframe DMA value is plotted up to the latest bar.
The built-in Moving Average Simple (SMA) indicator includes several of the features in this indicator, like an option for using higher timeframe. However, by default, it plots no values except on bars with higher timeframe close updates. Disabling "Wait for timeframe closes" to get values between updates causes repainting in both replay mode and realtime bars.
Since the calculations that repaint are separate and optional in the DMA indicator, historical plotted values will not repaint in replay mode or on realtime bars while using higher timeframes.
Alerts
There are two DMA value options when creating an alert:
DMA Latest Value: Use the latest updating DMA Value. The same value as the Latest Value Line.
DMA Last Confirmed Value: Use the last historical closed DMA value.
The default alert option is DMA Latest because most users expect alerts when the price crosses the latest updating DMA value. The Last Confirmed Value alert option uses the DMA value from the latest confirmed historical bar.
When creating an alert you should see a "Caution!" warning saying, "This is due to calculations being based on an indicator or strategy that can get repainted." This warning is intentional because the DMA indicator's Latest Value Line and Label feature is supposed to repaint in order to display the latest value.
█ FOR Pine Script™ CODERS
StyleLibrary is used to create user-friendly plot, line, and label style enum type inputs. The library's functions then take those user inputs and convert them into the appropriate values/built-in constants to customize styles for plot, line, and label functions.
Titles for #region blocks are included after #endregion statements for clarity when multiple #endregion statements occur.
This indicator utilizes the new active parameter for style inputs of togglable features.
Previous Day Close LinesWhat does the script do?
--Draws a line on the current session from previous day close.
--Leaves previous day close lines behind, notice the reaction around them.
Amritsingh Pinbar Candle GhostTrade Criteria//@version=5
indicator("Custom Candle with Asymmetric Wicks", overlay=true)
// === User Inputs ===
// Body percent thresholds (as % of full candle)
bodyMin = input.float(72.0, "Minimum Body %", minval=0.0, maxval=100.0)
bodyMax = input.float(85.0, "Maximum Body %", minval=0.0, maxval=100.0)
// Wick ratio threshold (e.g., 2.0 means one wick must be at least 2x the other)
wickRatio = input.float(2.0, "Min Wick Asymmetry Ratio", minval=1.0, step=0.1)
// === Candle Calculations ===
bodySize = math.abs(close - open)
candleRange = high - low
// Avoid divide-by-zero
validCandle = candleRange > 0
// Body as % of full candle
bodyPercent = validCandle ? (bodySize / candleRange) * 100 : 0
// Wick sizes
upperWick = high - math.max(close, open)
lowerWick = math.min(close, open) - low
// Ensure both wicks are present (non-zero)
bothWicksPresent = (upperWick > 0) and (lowerWick > 0)
// Wick asymmetry condition (either wick must be ≥ wickRatio × the other)
wickAsymmetry = (upperWick >= lowerWick * wickRatio) or (lowerWick >= upperWick * wickRatio)
// Final condition: all must be true
signal = validCandle and bothWicksPresent and wickAsymmetry and (bodyPercent >= bodyMin and bodyPercent <= bodyMax)
// === Plotting ===
plotshape(signal, title="Candle Signal", location=location.belowbar, style=shape.labelup, color=color.orange, size=size.small, text="⚡")
barcolor(signal ? color.orange : na)
BR Cross Swing - MACD HistRawThis strategy looks at the MACD Relationship through the same logic but mainly focuses on breaking things down and the application on raw values.
1H Open Level System-Lomeli indicatorsThis level system is a objective way of getting precise levels! Used by some of the trading goats
AI Trading Alerts v6 — SL/TP + Confidence + Panel (Fixed)Overview
This Pine Script is designed to identify high-probability trading opportunities in Forex, commodities, and crypto markets. It combines EMA trend filters, RSI, and Stochastic RSI, with automatic stop-loss (SL) & take-profit (TP) suggestions, and provides a confidence panel to quickly assess the trade setup strength.
It also includes TradingView alert conditions so you can set up notifications for Long/Short setups and EMA crosses.
⚙️ Features
EMA Trend Filter
Uses EMA 50, 100, 200 for trend confirmation.
Bull trend = EMA50 > EMA100 > EMA200
Bear trend = EMA50 < EMA100 < EMA200
RSI Filter
Bullish trades require RSI > 50
Bearish trades require RSI < 50
Stochastic RSI Filter
Prevents entries during overbought/oversold extremes.
Bullish entry only if %K and %D < 80
Bearish entry only if %K and %D > 20
EMA Proximity Check
Price must be near EMA50 (within ATR × adjustable multiplier).
Signals
Continuation Signals:
Long if all bullish conditions align.
Short if all bearish conditions align.
Cross Events:
Long Cross when price crosses above EMA50 in bull trend.
Short Cross when price crosses below EMA50 in bear trend.
Automatic SL/TP Suggestions
SL size adjusts depending on asset:
Gold/Silver (XAU/XAG): 5 pts
Bitcoin/Ethereum: 100 pts
FX pairs (default): 20 pts
TP = SL × Risk:Reward ratio (default 1:2).
Confidence Score (0–4)
Based on conditions met (trend, RSI, Stoch, EMA proximity).
Labels:
Strongest (4/4)
Strong (3/4)
Medium (2/4)
Low (1/4)
Visual Panel on Chart
Shows ✅/❌ for each condition (trend, RSI, Stoch, EMA proximity, signal now).
Confidence row with color-coded strength.
Alerts
Long Setup
Short Setup
Long Cross
Short Cross
🖥️ How to Use
1. Add the Script
Open TradingView → Pine Editor.
Paste the full script.
Click Add to chart.
Save as "AI Trading Alerts v6 — SL/TP + Confidence + Panel".
2. Configure Inputs
EMA Lengths: Default 50/100/200 (works well for swing trading).
RSI Length: 14 (standard).
Stochastic Length/K/D: Default 14/3/3.
Risk:Reward Ratio: Default 2.0 (can change to 1.5, 3.0, etc.).
EMA Proximity Threshold: Default 0.20 × ATR (adjust to be stricter/looser).
3. Read the Panel
Top-right of chart, you’ll see ✅ or ❌ for:
Trend → Are EMAs aligned?
RSI → Above 50 (bull) or below 50 (bear)?
Stoch OK → Not extreme?
Near EMA50 → Close enough to EMA50?
Above/Below OK → Price position vs. EMA50 matches trend?
Signal Now → Entry triggered?
Confidence row:
🟢 Green = Strongest
🟩 Light green = Strong
🟧 Orange = Medium
🟨 Yellow = Low
⬜ Gray = None
4. Alerts Setup
Go to TradingView Alerts (⏰ icon).
Choose the script under “Condition”.
Select alert type:
Long Setup
Short Setup
Long Cross
Short Cross
Set notification method (popup, sound, email, mobile).
Click Create.
Now TradingView will notify you automatically when signals appear.
5. Example Workflow
Wait for Confidence = Strong/Strongest.
Check if market session supports volatility (e.g., XAU in London/NY).
Review SL/TP suggestions:
Long → Entry: current price, SL: close - risk_pts, TP: close + risk_pts × RR.
Short → Entry: current price, SL: close + risk_pts, TP: close - risk_pts × RR.
Adjust based on your own price action analysis.
📊 Best Practices
Use on H1 + D1 combo → align higher timeframe bias with intraday entries.
Risk only 1–2% of account per trade (position sizing required).
Filter with market sessions (Asia, Europe, US).
Strongest signals work best with trending pairs (e.g., XAUUSD, USDJPY, BTCUSD).
MA Pack + Cross Signals (Short vs Long)Overview
A flexible moving average pack that lets you switch between short-term trend detection and long-term trend confirmation .
Short-term mode: plots 5, 10, 20, and 50 MAs with early crossovers (10/50, 20/50).
Long-term mode: plots 50, 100, 200 MAs with Golden Cross and Death Cross signals.
Choice of SMA or EMA .
Alerts included for all crossovers.
Why Use It
Catch early trend shifts in short-term mode.
Confirm institutional trend levels in long-term mode.
Visual signals (triangles + labels) make spotting setups easy.
Alert-ready for automated trade monitoring.
Usage
Add to chart.
In settings, choose Short-term or Long-term .
Watch for markers:
Green triangles = bullish cross
Red triangles = bearish cross
Green label = Golden Cross
Red label = Death Cross
Optional: enable alerts for notifications.
Morning Peak FadeMorning Peak Fade is an intraday analysis tool that identifies and measures the probability of early session rallies turning into sharp pullbacks.
📊 Core Idea
• Many stocks surge after the open, reaching an intraday peak before fading lower.
• This script anchors at the first significant morning high and tracks the drawdowns that follow within a customizable time window.
• It provides:
• Probability of a fade after the peak
• Average and maximum drawdown statistics
• Event-day hit rate (how often such setups occur)
🎯 Use Cases
• Spot potential “fade setups” where early enthusiasm exhausts quickly.
• Quantify how often chasing the morning high turns into a losing trade.
• Backtest opening range failure or fade strategies with hard data.
⚙️ Features
• Customizable thresholds for the initial surge (relative to prior close).
• Marks the peak (max) and subsequent low (min) used in calculations.
• Draws a reference line at the surge threshold to visualize when the fade triggers.
• Outputs summary stats directly on the chart.
Premarket Power MovePremarket Power Move is an intraday research tool that tracks what happens after strong premarket or opening gaps.
📊 Core Idea
• When a stock opens +X% above the prior close, it often attracts momentum traders.
• This script measures whether the stock continues to follow through higher or instead fades back down within the first trading hour.
• It calculates:
• The probability of a post-gap rally vs. a drawdown
• Average and maximum retracements after the surge
• Event-day hit rate (how many days actually triggered the condition)
🎯 Use Cases
• Identify “gap-and-go” opportunities where strong premarket strength leads to further gains.
• Spot potential fade setups where early enthusiasm quickly reverses.
• Backtest your intraday strategies with objective statistics instead of gut feeling.
⚙️ Features
• Customizable thresholds for premarket/open surge (%) and follow-through window (minutes).
• Marks the chart with reference lines:
• Prior close
• Surge threshold (e.g. +6%)
• Intraday high/low used for probability calculations.
• Outputs summary statistics (probabilities, averages, counts) directly on the chart.
🔔 Note
This is not a buy/sell signal generator. It is a probability and behavior analysis tool that helps traders understand how often strong premarket gaps continue vs. fade.
Seasonality con números RAMÓN SEGOVIAMonthly Bands – Colored Monthly Stripes for Statistical Analysis
Short Description
This indicator paints vertical background stripes by calendar month on your chart, making it easy to run statistical/seasonality analysis, compare monthly performance, and visually identify recurring patterns across assets and timeframes.
How It Works
Detects each new month and applies a background band spanning from the first to the last candle of that month.
Alternates colors automatically so consecutive months are easy to distinguish, or use a single uniform color for a clean look.
Optional: add dotted lines at the start/end of each month for precise separation.
Inputs / Settings
Color mode: alternating (odd/even months) or single.
Colors & opacity of the bands.
Border style: none / solid / dotted.
Highlight specific months: e.g., “Jan, Apr, Oct” with a different color.
Labels option: show month & year abbreviations at the top/bottom of the chart.
Drawing zone: full background vs. price-only area (to avoid covering lower indicators).
Typical Use Cases
Seasonality studies: identify historically bullish/bearish months.
Visual backtesting: segment the chart by months to evaluate strategy performance.
Context tracking: quickly locate reports, monthly closes, or economic cycles.
Compatibility
Works on all timeframes, including intraday (each band covers the full calendar month).
Lightweight and visual-only; doesn’t interfere with price or indicators.
Pro Tips
Combine with monthly returns (%) or candle counters to quantify each stripe.
Use labels when preparing clean presentations or trade journal screenshots.
Notes
This is a visual tool only, not a buy/sell signal generator.
Default settings are optimized for clarity and minimal clutter.
Long-short energy ratio /多空能量比值This indicator calculates the relative strength of bulls and bears by measuring the average candle body movement within a user-defined window (default: 50 bars).
Bull Energy = average percentage change of all bullish candles in the lookback period
Bear Energy = average percentage change of all bearish candles in the lookback period
Energy Ratio = Bull Energy ÷ Bear Energy
The ratio is plotted as a curve around the baseline of 1:
Ratio > 1 → Bull side shows stronger momentum
Ratio < 1 → Bear side shows stronger momentum
Ratio ≈ 1 → Balanced market conditions
This tool helps visualize short-term shifts in buying and selling pressure, offering a simple mean-reversion perspective or a confirmation of trend strength depending on the context.
EMA 20/40 Crossover//@version=5
indicator(title="EMA 20/40 Crossover", shorttitle="EMA Cross", overlay=true)
// Calculate EMAs
ema20 = ta.ema(close, 20)
ema40 = ta.ema(close, 40)
// Detect crossovers
bullCross = ta.crossover(ema20, ema40) // EMA20 crosses above EMA40 (Buy signal)
bearCross = ta.crossunder(ema20, ema40) // EMA20 crosses below EMA40 (Sell signal)
// Plot EMA lines
plot(ema20, color=color.blue, title="EMA 20", linewidth=2)
plot(ema40, color=color.red, title="EMA 40", linewidth=2)
// Plot signals
plotshape(series=bullCross, title="Buy Signal", location=location.belowbar, style=shape.labelup, size=size.small, color=color.green, text="BUY")
plotshape(series=bearCross, title="Sell Signal", location=location.abovebar, style=shape.labeldown, size=size.small, color=color.red, text="SELL")
// Alert setup (optional)
alertcondition(bullCross, title="EMA Bullish Cross", message="EMA 20 crossed above EMA 40 - BUY!")
alertcondition(bearCross, title="EMA Bearish Cross", message="EMA 20 crossed below EMA 40 - SELL!")
HFT Jude FootprintThis script is designed to detect potential High-Frequency Trader (HFT) activity based on unusual volume spikes and candle behavior, in order to identify potential intraday breakout opportunities. It is best suited for 3-minute and 5-minute charts across NSE-listed stocks.
How It Works
The strategy combines three core conditions:
Volume Spike Multiplier: Detects when current volume is > X times the rolling average (e.g., 5× 20-bar average volume).
Breakout Confirmation: Entry is considered only if the close is:
Near the high (for longs) or low (for shorts) of the candle.
Higher than the previous high (for longs), or lower than previous low (for shorts).
Visual Signal: When all conditions align, a Buy or Sell label is plotted on the chart, right at the candle where the footprint is detected.
This script is tailored for scalpers, intraday traders, and HFT watchers. It is not a mash-up of generic indicators and based on my backtesting and observation of large HFT firms that operate in the indian equities market,
Elite Entries Range Setter Premium
Elite Entries Range Setter
**What it is**
Elite Entries Range Setter builds a simple but sturdy market map: a predictive range on a higher timeframe, mid-levels between those lines, and **filtered breakout signals** plus **auto-drawn support/resistance zones** (with optional retest tags). It’s designed for day traders who want structure without noise—and swing traders who like to anchor to a higher-timeframe heartbeat.
What it gives you
* **Predictive range grid** (R2 / R1 / AVG / S1 / S2) computed from your chosen TF with adaptive ATR logic.
* **MTF signal engine**: breakouts are detected on your selected *Signal TF* while ranges come from the range TF—clean separation of “map” vs “trigger.”
* **Mid-lines** between range levels for bounce/continuation context (visual only here).
* **Auto Zones**: when price crosses a key line (range or mid), a shaded support/resistance box is created. Zones extend until broken; they dim when invalidated.
* **Optional Retests**: label when price re-tests a fresh zone and rejects/holds (cooldowns included).
* **Stacked Filters**: RSI, Volume EMA, and MA direction—use one, some, or all to tighten signals.
* **Session awareness**: choose to limit signals/zone creation to New York hours.
* **Alerts**: one consolidated breakout alert + dedicated zone-retest alerts.
---
How to use (the 60-second setup)
1. **Pick your Range TF** (default 15m). This sets the “grid” (R2/R1/AVG/S1/S2).
2. **Choose your Signal TF** (can be same as chart or different). This is where breakouts are confirmed.
3. **Turn on filters** to taste:
* **RSI** for momentum extremes (OB/OS configurable)
* **Volume EMA** for participation (Above/Below)
* **MA direction** for trend alignment (EMA/SMA/HMA, configurable length)
4. **Zones**: leave enabled to auto-box supports/resistances when lines are crossed. Adjust size by **Ticks** or **ATR ×** for instrument sensitivity.
5. **Alerts**: add “**Grid Breakout (Filtered)**” for trade triggers, and “Zone Bullish/Bearish Retest” if you trade pullbacks.
---
Inputs that matter
* **Range Setter**
* *ATR Length / Factor*: controls how wide the predictive range breathes.
* *Timeframe*: TF used to compute the grid (e.g., 15m).
* *Candlestick Type*: Traditional or Heikin-Ashi source.
* **Filter Options**
* *RSI*: Period + OB/OS thresholds.
* *Volume EMA*: Period + Above/Below condition.
* *MA Filter*: EMA/SMA/HMA + length; must be above (long bias) or below (short bias).
* **Trading Grid**
* *Signal TF*: where breakouts are detected.
* *Use MTF Signals*: toggle to confirm on a different TF than your chart.
* *Session Filter (NY)*: gate signals to the cash session.
* **Zones**
* *Only Create During NY Session*: keep structures “day-true.”
* *Size Mode*: **Ticks** (precise) or **ATR ×** (adaptive).
* *Retests*: on/off, min bars between retests, label size, colors.
* *Avoid Dupes at Same Level*: keeps the chart tidy.
---
Signals & Alerts
* **Breakout UP / DN**: confirmed cross of a mid or range line **and** all active filters pass.
* *Create alert:* **Grid Breakout (Filtered)**
* **Zone Retests**: optional labels/alerts when price wicks into a fresh zone and closes back out in the expected direction.
* *Create alerts:* **Zone Bullish Retest**, **Zone Bearish Retest**
*Pro tip:* Because the range grid comes from a (possibly) higher TF and signals can be confirmed on a different TF, you avoid most LTF chop while still reacting quickly.
---
Good habits (a trader’s creed)
* **Trust, but verify.** Filters help, not save. Read the tape: wicks, spreads, and time-of-day matter.
* **Let sessions speak.** NY hours tend to carry the volume; gating to session can reduce false pops.
* **Adjust zone size to the instrument.** Use ATR × on volatile tickers/futures; use Ticks for clean FX/Index contracts.
* **Mind the load.** If you enable many zones on very low TFs, consider trimming history or increasing tick size for performance.
---
Repainting & behavior notes
* Range levels are computed with `request.security(..., lookahead=off)` and only update as the higher-timeframe bar evolves/finishes.
* Breakout checks also use `lookahead=off`. Signals confirm on the **close** of the chosen *Signal TF*.
* Zone creation happens on **confirmed bars** to reduce flicker.
* No backtest or strategy orders—this is an **indicator** for discretionary or rule-based trading with external execution.
---
Who it’s for
Day traders who want **clear structure + filtered triggers**. Swing traders who anchor to a higher-TF grid but demand timely confirmation. Anyone tired of random “buy/sell” confetti and ready for a **map, a method, and a mute button** for the noise.
---
Final word
Markets are poetry and math—this tool sketches the meter so you can hear the rhyme. Keep risk first, keep faith in your process, and let disciplined edges do the talking. ✨
*Educational use only. Not financial advice. Trade responsibly.*
Daily SMA Gate + IHS(15m RS) - Early SignalDescription
This script combines Daily SMA gating with a 15-minute Inverse Head & Shoulders (IHS) Right Shoulder (RS) detector to create a clean 0/1 signal for pullback opportunities.
How It Works
Daily SMA Gate (orange line)
Checks if price is trading above the 50-day SMA and within a set % of the 20-day SMA.
This creates a higher-timeframe bullish filter so signals only appear when price structure aligns with trend context.
15-Minute RS Detector (green line)
Scans intraday price action for an IHS-style Right Shoulder pivot (L1–L2–L3 pattern).
Fires the RS signal as soon as the pivot is confirmed, instead of waiting for extra bar delays.
Combined Signal (blue line)
Only turns 1 (ON) when both conditions are met:
✅ Daily SMA gate passes
✅ RS pattern detected on the 15-minute timeframe
This produces early, high-quality signals ideal for pullback screening.
Usefulness
Designed as a screener for pullback entries in trending markets.
Works well for traders who combine higher-timeframe trend filters with intraday pattern triggers.
Helps avoid chasing extended moves by highlighting RS pivots near key daily averages.
Settings
Daily SMA Gate
SMA(50) length and SMA(20) length can be adjusted.
Within % of SMA(20) lets you widen/narrow the proximity filter.
Option to toggle between using the live daily bar or confirmed daily closes only.
RS Detector
Pivot L / Pivot R control swing sensitivity.
De-dup window avoids duplicate signals (optional, not plotted here).
ATR-based vs %-based tolerance (Use ATR tol for L3~L1).
Min bars between pivots for pattern quality.
Plots
Blue = final combined signal (main output)
Orange = Daily SMA gate only
Green = RS(15m) only
⚡ Best Practice:
Use the blue combined signal as your main screening tool, and toggle the green/orange lines if you want to debug why a signal did/didn’t fire.