HaP MACDHaP MACD - Advanced DEMA Assisted Signal Indicator
Overview
The HaP MACD is an evolution of the classic MACD, designed for traders who demand faster response times and clearer trend visualisations. By integrating DEMA (Double Exponential Moving Average) logic into the standard MACD framework, this indicator filters out noise and highlights momentum shifts with a unique color-coded dot system.
How It Works
The indicator calculates two types of MACD: a standard one for the main lines and a DEMA-based one for signal generation. This dual approach ensures you stay in the trend while being alerted the moment the momentum starts to fade.
Visual Guide & Color Logic
The signal dots are placed directly on the MACD line to guide your decisions:
🔵 Blue Dot: The Entry Signal. Appears when DEMA conditions first align for a bullish move.
🟢 Green Dot: Strong Momentum. The trend is active and the MACD value is increasing.
🟠 Orange Dot: Warning Signal. The bullish trend is still active, but the momentum is slowing down (MACD is lower than the previous bar).
🔴 Red Dot: Exit Signal. The bullish condition has ended. It’s time to consider closing the position or tightening stops.
Key Features
Reduced Lag: DEMA integration provides earlier signals than standard EMA-based MACDs.
Trend Monitoring: Easily distinguish between a healthy trend (Green) and a tiring trend (Orange).
Customizable: Choose between EMA and SMA for both the oscillator and signal calculations.
Crossover Markers: Optional triangle markers for classic MACD crossovers (can be enabled in settings).
Średnie kroczące
SMA MAD Trend [Alpha Extract]A sophisticated trend identification system that combines Simple Moving Average with Mean Absolute Deviation methodology to create adaptive Super Trend-style bands with advanced strength filtering and gradient visualization. Utilizing ADX-based trend strength validation and slope analysis for signal quality enhancement, this indicator delivers institutional-grade trend detection with dynamic ATR-based ribbon visualization and comprehensive strength measurement. The system's dual-filter architecture eliminates false signals during weak or choppy market conditions while maintaining sensitivity to genuine trend establishment and reversal events.
🔶 Advanced SMA-MAD Band Construction
Implements innovative Mean Absolute Deviation calculation around Simple Moving Average baseline to create volatility-adaptive bands with ratcheting logic for trend persistence. The system calculates MAD by measuring absolute price deviations from the mean, then applies configurable multipliers to generate upper and lower bands that adjust to changing market conditions while preventing premature band violations.
// Core SMA-MAD Framework
SMA_Value = ta.sma(close, SMA_Length)
Mean = ta.sma(close, MAD_Length)
Abs_Deviation = abs(close - Mean)
MAD_Value = ta.sma(Abs_Deviation, MAD_Length)
// Adaptive Bands
Upper_Band = SMA_Value + MAD_Factor * MAD_Value
Lower_Band = SMA_Value - MAD_Factor * MAD_Value
🔶 Intelligent Dual-Filter System
Features comprehensive trend validation using ADX strength measurement and slope analysis to eliminate low-conviction signals during ranging or consolidating markets. The system calculates normalized slope strength using ATR scaling and combines with ADX threshold analysis, generating filtered trend states that distinguish genuine trends from temporary price fluctuations.
🔶 Dynamic Trend Strength Engine
Implements sophisticated strength calculation combining slope intensity and ADX readings to produce normalized 0-100% strength scores with gradient colour intensity modulation. The system normalizes slope by minimum threshold and ADX by configurable level, multiplying factors to create composite strength measurement that drives visual feedback intensity across all indicator elements.
🔶 Super Trend-Style Direction Logic
Utilizes classic Super Trend methodology adapted for SMA-MAD bands, where trend direction flips occur on opposite band violations with persistent state maintenance. The system tracks previous band levels with ratcheting behaviour that adjusts bands only when price movement or new calculations warrant changes, preventing oscillation during normal volatility.
🔶 ATR-Based Ribbon Visualization
Provides dynamic ribbon overlay using ATR-scaled width around the trend line with opacity modulation based on trend strength for intuitive conviction assessment. The system creates upper and lower ribbon bounds at configurable ATR multiples, filling the channel with gradient-adjusted transparency that increases during strong trends and fades during weak conditions.
🔶 Multi-Dimensional Visual Architecture
Provides complete chart integration through trend line overlay, ATR ribbon fills, candle colouring, background glow, and transition signal labels with configurable visibility toggles. The system enables traders to customize display density from minimal (trend line only) to comprehensive (all visual elements) while maintaining consistent colour scheme and strength-based intensity across components.
🔶 Slope Strength Validation
Calculates ATR-normalized slope over configurable lookback periods to measure trend line momentum and filter sideways price action. The system compares absolute slope against minimum threshold requirements, preventing trend signals when price movement relative to the trend line lacks sufficient directional conviction regardless of band position.
🔶 Signal Generation Framework
Generates trend change signals when filtered direction state transitions from bearish to bullish or vice versa, with label placement and alert integration. The system implements state persistence that maintains previous trend until both ADX and slope filters confirm directional change, reducing whipsaw signals while capturing genuine reversals with minimal lag.
🔶 Performance Optimization Framework
Utilizes efficient calculation methods with optimized variable management and configurable parameters for balance between responsiveness and stability. The system includes intelligent state tracking with NA handling for initial bars and smooth gradient calculations that maintain performance across extended historical periods and real-time updates.
This indicator delivers sophisticated trend identification through Mean Absolute Deviation methodology combined with dual-strength filtering for superior signal quality. Unlike traditional Super Trend indicators that rely solely on ATR bands, the SMA-MAD approach uses statistical deviation measurement while incorporating ADX strength and slope validation to eliminate false signals during choppy conditions. The system's gradient-based visual feedback, ATR ribbon visualization, comprehensive dashboard, and multi-dimensional filtering make it essential for traders seeking reliable trend-following approaches with clear conviction measurement across cryptocurrency, forex, and equity markets. The combination of adaptive bands, strength-based transparency, and intelligent filtering creates an institutional-grade trend system suitable for systematic trading strategies.
Early Trend Warning Using MTF AnalysisAs an active trader and software professional, I build my own indicators. I built this one today which I want to share with fellow traders.
If you are a trend trader then HTF/MTF analysis is very critical. It is virtually impossible to constantly track multiple tickers all the time. One should not take a buy trade when MTF is bearish and vice versa. This indicator solves this problem.
The EMA Trend Warning indicator helps traders detect potential trend changes early by analyzing price interactions with multi-timeframe Exponential Moving Averages (EMAs) and their momentum. It sends instant alerts when price crosses above or below EMAs with supporting momentum, making it easier to capture bullish or bearish moves.
The EMA Trend Warning indicator detects potential trend changes by monitoring price against 14-period EMAs on multiple timeframes: 15-minute, 30-minute, and 1-hour charts. It sends alerts when the price crosses above or below the EMA with supporting momentum, helping traders identify early bullish or bearish signals.
How It Works:
1. Calculates 14-period EMA on 15m, 30m, and 1H charts.
2. Computes EMA slopes to determine momentum direction.
3. BUY alert triggers when price crosses above the 15m EMA and at least one EMA slope is upward.
4. SELL alert triggers when price crosses below the 15m EMA and at least one EMA slope is downward.
5. Alerts fire once per bar and track previous state to avoid repeated notifications.
Features:
1. Multi-timeframe EMA monitoring.
2. Momentum confirmation with EMA slopes.
3. Instant BUY/SELL alerts.
4. Tracks previous trend state to prevent alert spam.
Benefits:
1. Detects trend changes early for better entry timing.
2. Confirms trend across multiple timeframes.
3. Saves time with automated alerts.
4. Helps traders align trades with market momentum.
Please consider this indicator as EARLY WARNING ONLY. Take trade based on multiple confluences post receiving any warning. I have tested it on BTCUSD since yesterday, multiple warning alerts were 100% perfect.
cd_VW_CxOverview
The cd_VW_Cx is a sophisticated trend analysis tool designed to quantify market momentum using Multi-Period VWAP (Volume Weighted Average Price). Unlike standard indicators, this script evaluates the current price relationship across multiple historical VWAP anchors to generate a real-time "Confidence Score" ranging from -100 to +100.
💡 Key Features
• Dynamic Anchoring: Seamlessly switch between Daily, Weekly, or Monthly open anchors to align with your trading style (Scalping, Day Trading, or Swing).
• Algorithmic Scoring (The Score Box): The indicator compares the current VWAP against historical periods.
o Score > +70: Strong Bullish Momentum.
o Score < -70: Strong Bearish Momentum.
• Polyline Rendering: Utilizes Pine Script v6’s advanced polyline architecture for high-performance, sleek visual plotting that doesn't clutter your chart.
• Institutional Support/Resistance: Historical VWAP levels are color-coded, often acting as "invisible" magnetic zones where institutional orders are clustered.
🛠 How to Trade with cd_VW_Cx
1. Momentum Confirmation: Look for the Score Box to turn Teal (Bullish) or Red (Bearish). This indicates that the current trend has statistical backing from multiple previous sessions.
2. The Breakout Signal: The script tracks price crossovers of the current VWAP. A "Bullish Breakout" combined with a high score is a high-probability entry signal.
3. Visual Guidance: Use the custom labels to identify which specific day/week/month’s VWAP is currently being tested as support or resistance.
⚙️ Customizable Settings
• Anchor Selection: Choose the calculation basis (Daily, Weekly, Monthly).
• Thresholds: Adjust the sensitivity of the Bullish/Bearish alerts (Default is +/- 70).
• Visuals: Full control over table positioning, font sizes, and color palettes to match your chart theme.
📢 cd_VW_Cx: Multi-Period VWAP Scoring & Analysis Guide
🔍 Overview & Visual Logic
The labels next to the VWAP levels dynamically change based on your Anchor selection:
• Daily Open: Displays the Day Name (e.g., Monday, Tuesday).
• Weekly Open: Displays the Week Number (1 – 52).
• Monthly Open: Displays the Month Number (1 – 12).
•
General View:
________________________________________
🚦 How to Filter & Track Your Assets
You can monitor your favorite assets using two powerful methods:
1. Real-Time Alerts
Stay updated with TradingView notifications:
• Per Asset: Track a single pair.
• Watchlist Basis: Monitor your entire list at once. Alert Setup Guide:
2. Pine Screener Integration
Filter the market effortlessly using the Pine Screener. Pine Screener View:
________________________________________
⚙️ Settings & Configuration
• Timeframe Selection: Your chart timeframe must be lower than the selected Anchor timeframe. (e.g., If "Daily Open" is selected, the timeframe should be lower than 1D).
• Anchor Choice: Select Daily, Weekly, or Monthly opens.
• Source Selection: Default value is set to ohlc4. Source Settings:
Filtering Criteria Examples:
• Bullish Filtering: Find assets with high momentum scores.
• Bullish Breakout (Single Criteria): Filters assets that have closed above the current VWAP level.
• Combined Strength (Score + Breakout): Filters assets that have a Score > 70 AND a fresh VWAP Breakout simultaneously.
________________________________________
⚠️ Important Notes & Warnings
• Calculation Logic: The indicator calculates levels and scores on timeframes lower than the anchor. It is best used on timeframes that are close to but lower than the anchor.
• Avoid Extreme Gaps: Using a very low timeframe (e.g., 1m) with a very high anchor (e.g., Monthly) increases the risk of erroneous results.
• Optimization: The default score threshold of 70 is a starting point; I recommend adjusting it based on your own trading experience.
• The Power of Confluence: VWAP levels are naturally strong. Their significance increases when they coincide with institutional levels like PDH (Previous Day High), Session H/L, or HTF FVG.
• Experience Matters: A high score alone is not enough for an entry. Always combine this data with your personal strategy.
________________________________________
💬 Community & Feedback
I would love to hear your suggestions regarding the scoring logic or visual improvements! Feel free to share your thoughts in the comments.
Happy Trading! 🚀
Universal Moving Average🙏🏻 UMA (Universal Moving Average) represents the most natural and prolly ‘the’ final general universal entity for calculating rolling typical value for any type of time-series. Simply via different weighting schemes applied together, it encodes:
Location of each datapoint in corresponding fields (price, time, volume)
Informational relevance of each datapoint via using windowing functions that are fundamental in nature and go beyond DSP inventions & approximations
Innovation in state space (in our case = volatility)
The real beauty of this development: being simply a weighting scheme that can be applied to anything: be it weighted median , weighted quantile regression, or weighted KDE , or a simple weighted mean (like in this script). As long as a method accepts weights, you can harness the power of this entity. It means that final algorithmic complexity will match your initial tool.
As a moving ‘average’ it beats ALMA, KAMA, MAMA, VIDYA and all others because it is a simple and general entity, and all it does is encoding ‘all’ available information. I think that post might anger a lot of people, because lotta things will be realized as legacy and many paywalls gonna be ignored, specially for the followers of DSP cult, the ones who yet don’t understand that aggregated tick data is not a signal omg, it’s a completely different type of time series where your methods simply don’t fit even closely. I am also sorry to inform y’all, that spectral analysis is much closer to state-space methods in spirit than to DSP. But in fact DSP is cool and I love it, well for actual signals xD
...
Weights explained & how to use them: as I already said, the whole thing is based on combining different set of weights, and you can turn them on/off in script settings. Btw I've set em up defaults so you can use the thing on price data out of the box right away.
Price, Time, Volume weights: encode location of every datapoint in Price & TIme & Volume field
Howtouse: u have to disable one weight that corresponds to the field you apply UMA to. E.g if you apply UMA to prices, you turn off price weighting And turn on time and volume weighting. Or if you apply UMA to volume delta, you turn off volume weighting And turn on price and time weighting.
Higher prices are more important, this asymmetry is confirmed and even proved by the fact that prices can’t be negative (don’t even mention that incorrect rollover on CL contract in 2k20...).
Signal weights: encode actuality/importance/relevance of datapoints.
Howtouse: in DSP terms, it provides smoothing, but also compensates for the lag it introduces. This smoothness is useful if you use slope reversals for signal generation aka watching peaks and valleys in a moving average shape. It's also better to perturb smoothed outputs with this , this way you inject high freq content back, But in controlled way!
Signal = information.
The fundamental universal entity behind so-called “smoothing” in DSP has nothing to do with signals and goes eons beyond DSP. This is simply about measuring the relevance of data in time.
First, new datapoints need some time to be “embedded” into the timeline, you can think of it as time proof, kinda stuff needs time to be proved, accepted; while earliest datapoints lose relevance in time.
Second, along with the first notion, at the same time there’s the counter notion that simply weights new data more, acting as a counterweight from the down-weighting of the latest datapoints introduced by the first notion.
The first part can be represented as PDF of beta(2, 2) window (a set of weights in our case). It’s actually well known as the Welch window, that lives in between so called statistical and DSP worlds, emerges in multiple contexts. Mainstream DSP users tho mostly don’t use this one, they use primitive legacy windowing function, you can find all kinds on this wiki page.
Now the second part, where DSP adepts usually stop, is to introduce the second compensating windowing function. Instead they try to reduce window size, or introduce other kinds of volatility weights, do some tricks, but it ain’t provides obviously. The natural step here is to simply use the integral of the initial window; if the initial window is beta(2, 2) then what we simply need is CDF of beta(2, 2), in fact the vertically inverted shape of it aka survival function . That’s it bros. Simply as that.
When both of these are applied you have smth magical, your output becomes smooth and yet not lagging. No arbitrary windowing functions, tricks with data modification etc
Why beta(2, 2)? It naturally arises in many contexts, it’s based on one of the most fundamental functions in the universe: x^2. It has finite support. I can talk more bout it on request, but I am absolutely sure this is it.
^^ impulse response of the resulting weighs together (green) compared with uniform weights aka boxcar (red). Made with this script .
Weighing by state: encodes state-space innovation of each datapoint, basically magnitude of changes, strength of these changes, aka volatility.
Howtouse: this makes your moving average volatility aware in proper math ways. The influence of datapoints will be stronger when changes are stronger. This is weighting by innovations, or weighting by volatility by using squared returns.
Why squared returns? They encode state‑space innovations properly because the innovation of any continuous‑time semimartingale is about its quadratic variation, and quadratic variation is built from squared increments, not absolute increments.
Adaptive length is not the right way to introduce adaptivity by volatility xD. When you weight datapoints by squared returns you’re already dynamically varying ‘effective’ data size, you don’t need anything else.
...
It’s all good, progress happens, that’s how the Universe works, that's how Universal Moving Average works. Time to evolve. I might update other scripts with this complete weighting scheme, either by my own desire or your request.
...
∞
IDAHL | QuantEdgeBIDAHL | QuantEdgeB
🔍 Overview
The IDAHL indicator builds adaptive, volatility-aware threshold bands from two separate ALMA lines—one smoothed from recent highs, the other from recent lows—then uses percentiles of those lines to define a dynamic “high/low” channel. Price crossing above or below that channel triggers clear long/short signals, with on-chart candle coloring, fills, optional labels and even a built-in backtest table.
✨ Key Features
• 📈 Dual ALMA Bands (with DEMA pre-smoothing)
o High ALMA: ALMA applied to DEMA-smoothed highs (high → DEMA(30) → ALMA).
o Low ALMA: ALMA applied to DEMA-smoothed lows (low → DEMA(30) → ALMA).
• 📊 Percentile Thresholds
o Computes a high threshold at the Xth percentile of the High ALMA over a lookback window.
o Computes a low threshold at the Yth percentile of the Low ALMA.
o Shifts each threshold forward by a small period to reduce repainting.
• ⚡ Dynamic Channel Logic
o When price closes above the high percentile line, the “final” threshold flips down to the low percentile line (and vice versa), creating an adaptive channel that only moves when the outer bound is violated.
o Inside the channel, the threshold holds its last value to avoid whipsaw.
• 🎨 Visual & Alerts
o Plots the two percentile lines and fills between them with a color that reflects the current regime (green for long, yellow for neutral, orange for short).
o Colors your candles to match the active signal.
o Optional “Long”/“Short” labels on confirmed flips.
o Alert conditions fire on each long/short crossover.
• 📊 On-Chart Backtest Metrics
o Toggle on a small performance table—complete with win-rate, net P/L, drawdown—from your chosen start date, without any extra code.
⚙️ How It Works
1. Adaptive Smoothing (ALMA)
o Uses ALMA (Arnaud Legoux Moving Average) for smooth, low-lag filtering. In this script, the inputs are additionally pre-smoothed with DEMA(30) to reduce noise before ALMA is applied—improving stability on highs/lows.
2. Percentile Lines
o The High ALMA series feeds a linear-interpolation percentile function to generate the upper bound; the Low ALMA produces the lower bound.
o These lines are offset by a small look-ahead (X bars) to reduce repaint behavior.
3. Channel Logic
o Breakout Flip: When the selected source (default: Close) closes above the upper bound, the active threshold “jumps” to the lower bound—locking in a new channel until price next crosses.
o Breakdown Flip: Conversely, a close below the lower bound flips the threshold to the upper bound.
4. Signal Generation
o Long while the source is above the current “final” threshold.
o Short while below.
o Neutral inside the channel before any flip.
5. Visualization & Alerts
o Dynamic fills between the two percentile lines change hue as the regime flips.
o Candles adopt the regime color.
o Optional pinned “Long”/“Short” labels at flip bars.
o Alerts on every signal crossover of the zero-based regime line.
6. Backtest Table
o From your chosen start date, a mini-table displays cumulative P/L, win rate and drawdown for this strategy—handy for quick in-chart validation.
🎯 Who Should Use It
• Breakout Traders hunting for adaptive channels that auto-recenter on new highs/lows.
• Volatility Traders who want thresholds that expand and contract with market turbulence.
• Trend-Chasers seeking a fresh take on high/low channels with built-in smoothing.
• Systematic Analysts who appreciate on-chart backtesting without leaving TradingView.
⚙️ Default Settings
• ALMA Length: 14
• Percentile Length: 35 bars
• Percentile Lookback Period (offset): 4 bars
• Upper Percentile: 92%
• Lower Percentile: 50%
• Threshold Source: Close
• Visuals: Candle coloring on, labels off by default, “Strategy” palette
• Backtest Table: on by default (toggleable)
• Start Date (Backtest): 09 Oct 2017
📌 Conclusion
IDAHL blends two smooth, low-lag ALMA filters (fed by DEMA-smoothed highs/lows) with percentile-based channel construction for a self-rewiring high/low envelope. It gives you robust breakout/breakdown signals, immediate visual context via colored fills and candles, optional labels, alerts, and even performance stats—everything you need to spot and confirm regime shifts in one compact script.
🔹 Disclaimer : Past performance is not indicative of future results. Always backtest and align settings with your risk tolerance and objectives before live trading.
🔹 Strategic Advice : Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
rosh Swift ALGO-X based on ema for xauusd scalping use with original settings, assured 100 pips per day
Multi-Fractal Trading Plan [Gemini] v22Multi-Fractal Trading Plan
The Multi-Fractal Trading Plan is a quantitative market structure engine designed to filter noise and generate actionable daily strategies. Unlike standard auto-trendline indicators that clutter charts with irrelevant data, this system utilizes Fractal Geometry to categorize market liquidity into three institutional layers: Minor (Intraday), Medium (Swing), and Major (Institutional).
This tool functions as a Strategic Advisor, not just a drawing tool. It calculates the delta between price and structural pivots in real-time, alerting you when price enters high-probability "Hot Zones" and generating a live trading plan on your dashboard.
Core Features
1. Three-Tier Fractal Engine The algorithm tracks 15 distinct fractal lengths simultaneously, aggregating them into a clean hierarchy:
Minor Structure (Thin Lines): Captures high-frequency volatility for scalping.
Medium Structure (Medium Lines): Identifies significant swing points and intermediate targets.
Major Structure (Thick Lines): Maps the "Institutional" defense lines where trend reversals and major breakouts occur.
2. The Strategic Dashboard A dynamic data panel in the bottom-right eliminates analysis paralysis:
Floor & Ceiling Targets: Displays the precise price levels of the nearest Support and Resistance.
AI Logic Output: The script analyzes market conditions to generate a specific command, such as "WATCH FOR BREAKOUT", "Near Lows (Look Long?)", or "WAIT (No Setup)".
3. "Hot Zone" Detection Never miss a critical test of structure.
Dynamic Alerting: When price trades within 1% (adjustable) of a Major Trend Line, the indicator’s labels turn Bright Yellow and flash a warning (e.g., "⚠️ WATCH: MAJOR RES").
Focus: This visual cue highlights the exact moment execution is required, reducing screen fatigue.
4. The Quant Web & Markers
Pivot Validation: Deep blue fractal markers (▲/▼) identify the exact candles responsible for the structure.
Inter-Timeframe Web: Faint dotted lines connect Minor pivots directly to Major pivots, visualizing the "hidden" elasticity between short-term noise and long-term trend anchors.
5. Enterprise Stability Engine Engineered to solve the "Vertical Line" and "1970 Epoch" glitches common in Pine Script trend indicators. This engine is optimized for Futures (NQ/ES), Forex, and Crypto, ensuring stability across all timeframes (including gaps on ETH/RTH charts).
Operational Guide
Consult the Dashboard: Before executing, check the "Strategy" output. If it says "WAIT", the market is in chop. If it says "WATCH FOR BOUNCE", prepare your entry criteria.
Monitor Hot Zones: A Yellow Label indicates price is testing a major liquidity level. This is your signal to watch for a rejection wick or a high-volume breakout.
Utilize the Web: Use the faint web lines to find "confluence" where a short-term pullback aligns with a long-term trend line.
Configuration
Show History: Toggles "Ghost Lines" (Blue) to display historical structure and broken trends.
Fractal Points: Toggles the geometric pivot markers.
Hot Zone %: Adjusts the sensitivity of the Yellow Warning system (Default: 1%).
Max Line Length: A noise filter that removes stale or "spiderweb" lines that are no longer statistically relevant.
cd_VW_Cx IMPROVED - Quant VWAP System: Regime, Magnets & Z-ScoQuant VWAP System: Regime, Magnets & Z-Score Matrix
This indicator is a comprehensive Quantitative Trading System designed to move beyond simple support and resistance. Instead of static lines, it uses Statistical Probability (Z-Score) and Standard Deviation to define the current market regime, identify institutional value zones, and project high-probability liquidity targets.
It is engineered for Day Traders and Scalpers (Crypto & Futures) who need to know if the market is Trending, Ranging, or preparing for a Breakout.
1. The "Regime" System (Standard Deviation Bands)
The core engine anchors a VWAP (Volume Weighted Average Price) to your chosen timeframe (Daily, Weekly, or Monthly) and projects volatility bands based on market variance.
The Trend Zone (Inner Band / 1.0 SD): This is the "Fair Value" zone. In a healthy trend, price will pull back into this zone and hold. A hold here signals a high-probability continuation (Trend Following).
The Reversion Zone (Outer Band / 2.0 SD): This represents a statistical extreme. Price rarely sustains movement beyond 2 Standard Deviations without a reversion. A touch of this band signals "Overbought" or "Oversold" conditions.
2. Liquidity Magnets (Virgin VWAPs)
The script automatically tracks "Unvisited VWAPs" from previous sessions. These are price levels where significant volume occurred but have not yet been re-tested.
The Logic: Algorithms often target these "open loops." The script visualizes them as Blue Dashed Lines with price tags.
Smart Scaling (Anti-Scrunch): Includes a custom "Ghost Engine" that automatically hides or "ghosts" magnets that are too far away. This prevents your chart from being squashed (scrunched) on lower timeframes, keeping your candles perfectly readable while still tracking targets in the background.
3. The Quant Matrix (Dashboard)
A real-time Heads-Up Display (HUD) that interprets the data for you:
Regime: Detects Volatility Squeezes. If the bands compress, it signals "⚠ SQUEEZE", warning you to stop mean-reversion trading and prepare for an explosive breakout.
Bias: Color-coded Trend Direction (Bullish/Bearish) based on VWAP slope.
Signal: actionable text prompts such as "BUY DIP" (Trend Following), "FADE EXT" (Mean Reversion), or "PREP BREAK" (Squeeze).
4. Visual Intelligence
Bold Day Separators: Clear, vertical dotted dividers with Date Stamps to instantly separate trading sessions.
Dynamic Labels: Floating labels on the right axis identify exactly which deviation level is which, preventing chart confusion.
How to Use
Strategy A: The Trend Pullback (continuation)
Check Matrix: Ensure Bias is BULLISH (Green).
Wait: Allow price to pull back into the Inner Band (Dark Green Zone).
Trigger: If price holds the Center VWAP or the -1.0 SD line, enter Long.
Target: The next Liquidity Magnet above or the +2.0 SD band.
Strategy B: The Reversion Fade (Counter-Trend)
Check Matrix: Ensure price is labeled "EXTREME" or Signal says "FADE EXT".
Trigger: Price touches or pierces the Outer Band (2.0 SD).
Action: Enter counter-trend (Short) with a target back to the Center VWAP (Mean Reversion).
Strategy C: The Magnet Target
Identify a "MAGNET" line (Blue Dashed) near current price.
These act as high-probability Take Profit levels. Price will often rush to these levels to "close the loop" before reversing.
Settings
Anchor: Daily (default), Weekly, or Monthly.
Magnet Focus Range: Adjusts how aggressively the script hides distant magnets to fix chart scaling (Default: 2%).
Visuals: Fully customizable colors, label sizes, and dashboard position.
Smart Money Concepts with EMA + RSI - DrSafDescription
This indicator combines LuxAlgo’s Smart Money Concepts (SMC) framework with a trend and momentum confluence system.
Core Features:
Swing & internal BOS / CHoCH
Order blocks, fair value gaps, equal highs/lows
Premium & discount zones
Multi-timeframe high/low levels
Added Filters:
EMA 21 / 50 / 200 trend alignment
Optional RSI 50 momentum filter
Clear long/short signals based on:
Swing CHoCH
Higher-timeframe trend alignment
Momentum confirmation
Signal Logic
Long: Bullish CHoCH + EMA bullish structure + RSI confirmation
Short: Bearish CHoCH + EMA bearish structure + RSI confirmation
Designed for non-repainting execution, clean chart structure or systematic trading.
Indicator plots EMA 21, EMA 50, and EMA 200 to define trend structure and dynamic support/resistance.
EMA 200: overall trend bias
EMA 21 and EMA 50: pullback support for high probability trend entries.
EMA 21/50 crosses highlight momentum shifts but are not intended as standalone entry signals.
License
Based on LuxAlgo Smart Money Concepts
CC BY-NC-SA 4.0 (Non-Commercial)
CryptoFlux Dynamo [JOAT]CryptoFlux Dynamo: Velocity Scalping Strategy
This Pine Script v6 strategy is designed for cryptocurrency markets operating on 5-minute and faster timeframes. It combines volatility regime detection, multi-path signal confirmation, and adaptive risk management to identify momentum-based trading opportunities in perpetual futures markets.
Core Design Principles
The strategy addresses three challenges specific to cryptocurrency trading:
24/7 market operation without session boundaries requires continuous monitoring and execution logic
Volatility regimes shift rapidly, demanding adaptive stop and target calculations
Tick-level responsiveness is critical for capturing momentum moves before they complete
Strategy Architecture
1. Signal Generation Stack
The strategy uses multiple technical indicators calibrated for cryptocurrency momentum:
MACD with parameters 8/21/5 (fast/slow/signal) optimized for crypto acceleration phases
EMA ribbon using 8/21/34 periods with slope analysis to assess trend structure
Volume impulse detection combining SMA baseline, standard deviation, and z-score filtering
RSI (21 period) and MFI (21 period) for momentum confirmation
Bollinger Bands and Keltner Channels for squeeze detection
2. Volatility Regime Classification
The strategy normalizes ATR as a percentage of price and classifies market conditions into three regimes:
Compression (< 0.8% ATR): Reduced position sizing, tighter stops (1.05x ATR), lower profit targets (1.6x ATR)
Expansion (0.8% - 1.6% ATR): Standard risk parameters, balanced risk-reward (1.55x stop, 2.05x target)
Velocity (> 1.6% ATR): Wider stops (2.1x ATR), amplified targets (2.8x ATR), tighter trailing offsets
ATR is calculated over 21 periods and smoothed with a 13-period EMA to reduce noise from wicks.
3. Multi-Path Entry System
Four independent signal pathways contribute to a composite strength score (0-100):
Trend Break (30 points): Requires EMA ribbon alignment, positive slope, and structure breakout above/below recent highs/lows
Momentum Surge (30 points): MACD histogram exceeds adaptive baseline, MACD line crosses signal, RSI/MFI above/below thresholds, with volume impulse confirmation
Squeeze Release (25 points): Bollinger Bands compress inside Keltner Channels, then release with momentum bias
Micro Pullback (15 points): Shallow retracements within trend structure that reset without breaking support/resistance
Additional scoring modifiers:
Volume impulse: +5 points when present, -5 when absent
Regime bonus: +5 in velocity, -2 in compression
Cycle bias: +5 when aligned, -5 when counter-trend
Trades only execute when the composite score reaches the minimum threshold (default: 55) and all filters agree.
4. Risk Management Framework
Position sizing is calculated from:
RiskCapital = Equity × (riskPerTradePct / 100)
StopDistance = ATR × StopMultiplier(regime)
Quantity = min(RiskCapital / StopDistance, MaxExposure / Price)
The strategy includes:
Risk per trade: 0.65% of equity (configurable)
Maximum exposure: 12% of equity (configurable)
Regime-adaptive stop and target multipliers
Adaptive trailing stops based on ATR and regime
Kill switch that disables new entries after 6.5% drawdown
Momentum fail-safe exits when MACD polarity flips or ribbon structure breaks
5. Additional Filters
Cycle Oscillator : Measures price deviation from 55-period EMA. Requires cycle bias alignment (default: ±0.15%) before entry
BTC Dominance Filter : Optional filter using CRYPTOCAP:BTC.D to reduce long entries during risk-off periods (rising dominance) and short entries during risk-on periods
Session Filter : Optional time-based restriction (disabled by default for 24/7 operation)
Strategy Parameters
All default values used in backtesting:
Core Controls
Enable Short Structure: true
Restrict to Session Window: false
Execution Session: 0000-2359:1234567 (24/7)
Allow Same-Bar Re-Entry: true
Optimization Constants
MACD Fast Length: 8
MACD Slow Length: 21
MACD Signal Length: 5
EMA Fast: 8
EMA Mid: 21
EMA Slow: 34
EMA Slope Lookback: 8
Structure Break Window: 9
Regime Intelligence
ATR Length: 21
Volatility Soothing: 13
Low Vol Regime Threshold: 0.8% ATR
High Vol Regime Threshold: 1.6% ATR
Cycle Bias Length: 55
Cycle Bias Threshold: 0.15%
BTC Dominance Feed: CRYPTOCAP:BTC.D
BTC Dominance Confirmation: true
Signal Pathways
Volume Baseline Length: 34
Volume Impulse Multiplier: 1.15
Volume Z-Score Threshold: 0.5
MACD Histogram Smoothing: 5
MACD Histogram Sensitivity: 1.15
RSI Length: 21
RSI Momentum Trigger: 55
MFI Length: 21
MFI Momentum Trigger: 55
Squeeze Length: 20
Bollinger Multiplier: 1.5
Keltner Multiplier: 1.8
Squeeze Release Momentum Gate: 1.0
Micro Pullback Depth: 7
Minimum Composite Signal Strength: 55
Risk Architecture
Risk Allocation per Trade: 0.65%
Max Exposure: 12% of Equity
Base Risk/Reward Anchor: 1.8
Stop Multiplier • Low Regime: 1.05
Stop Multiplier • Medium Regime: 1.55
Stop Multiplier • High Regime: 2.1
Take Profit Multiplier • Low Regime: 1.6
Take Profit Multiplier • Medium Regime: 2.05
Take Profit Multiplier • High Regime: 2.8
Adaptive Trailing Engine: true
Trailing Offset Multiplier: 0.9
Quantity Granularity: 0.001
Kill Switch Drawdown: 6.5%
Strategy Settings
Initial Capital: $100,000
Commission: 0.04% (0.04 commission_value)
Slippage: 1 tick
Pyramiding: 1 (no position stacking)
calc_on_every_tick: true
calc_on_order_fills: true
Visualization Features
The strategy includes:
EMA ribbon overlay (8/21/34) with customizable colors
Regime-tinted background (compression: indigo, expansion: purple, velocity: magenta)
Dynamic bar coloring based on signal strength divergence
Signal labels for entry points
On-chart dashboard displaying regime, ATR%, signal strength, position status, stops, targets, and risk metrics
Recommended Usage
Timeframes
The strategy is optimized for 5-minute charts. It can operate on 3-minute and 1-minute timeframes for faster scalping, or 15-minute for swing confirmation. When using higher timeframes, consider:
Increasing structure lookback windows
Raising RSI trigger thresholds above 58 to filter noise
Extending volume baseline length
Markets
Designed for high-liquidity cryptocurrency perpetual futures:
BTC/USDT, BTC/USD perpetuals
ETH perpetuals
Major L1 tokens with sufficient volume
For thinner order books, increase volume impulse multiplier and adjust quantity granularity to match exchange minimums.
Limitations and Compromises
Backtesting Considerations
TradingView strategy backtesting does not replicate broker execution. Actual fills, slippage, and commissions may differ
The strategy uses calc_on_every_tick=true and calc_on_order_fills=true to reduce bar-close distortions, but real execution still depends on broker infrastructure
At least 200 historical bars are required to stabilize regime classification, volume baselines, and cycle context
Market Structure Dependencies
BTC dominance feed ( CRYPTOCAP:BTC.D ) may lag during low-liquidity periods or weekends. Consider disabling the filter if data quality degrades
Volume impulse detection assumes consistent order book depth. During extreme volatility or exchange issues, volume signatures may be unreliable
Regime classification based on ATR percentage assumes normal volatility distributions. During black swan events, regime thresholds may not adapt quickly enough
Parameter Sensitivity
Default parameters are tuned for BTC/ETH perpetuals on 5-minute charts. Different assets or timeframes require recalibration
The composite signal strength threshold (55) balances selectivity vs. opportunity. Higher values reduce false signals but may miss valid setups
Risk per trade (0.65%) and max exposure (12%) are conservative defaults. Aggressive scaling increases drawdown risk
Execution Constraints
Same-bar re-entry requires broker support for rapid order placement
Quantity granularity must match exchange contract minimums
Kill switch drawdown (6.5%) may trigger during normal volatility cycles, requiring manual reset
Performance Expectations
This strategy is a framework for momentum-based cryptocurrency trading. Performance depends on:
Market conditions (trending vs. ranging)
Exchange execution quality
Parameter calibration for specific assets
Risk management discipline
Backtest results shown in publications reflect specific market conditions and parameter sets. Past performance does not indicate future results. Always forward test with paper trading or broker simulation before deploying live capital.
Code Structure
The strategy is organized into functional sections:
Configuration groups for parameter organization
Helper functions for position sizing and normalization
Core indicator calculations (MACD, EMA, ATR, RSI, MFI, volume analytics)
Regime classification logic
Multi-path signal generation and composite scoring
Entry/exit orchestration with risk management
Visualization layer with dashboard and chart elements
The source code is open and can be modified to suit your trading requirements. Everyone is encouraged to understand the logic before deploying and to test thoroughly in their target markets.
Modification Guidelines
When adapting this strategy:
Document any parameter changes in your publication
Test modifications across different market regimes
Validate position sizing logic for your exchange's contract specifications
Consider exchange-specific limitations (funding rates, liquidation mechanics, order types)
Conclusion
This strategy provides a structured approach to cryptocurrency momentum trading with regime awareness and adaptive risk controls. It is not a guaranteed profit system, but rather a framework that requires understanding, testing, and ongoing calibration to market conditions.
You should thoroughly understand the logic, test extensively in their target markets, and manage risk appropriately. The strategy's effectiveness depends on proper parameter tuning, reliable execution infrastructure, and disciplined risk management.
Disclaimer
This script and its documentation are for educational and informational purposes only. They do not constitute financial advice, investment recommendations, or trading advice of any kind. Trading cryptocurrencies and derivatives involves substantial risk of loss and is not suitable for all investors. Past performance, whether real or indicated by backtesting, does not guarantee future results.
This strategy is provided "as is" without any warranties or guarantees of profitability
You should not rely solely on this strategy for making trading decisions
Always conduct your own research and analysis before making any financial decisions
Consider consulting with a qualified financial advisor before engaging in trading activities
The authors and contributors are not responsible for any losses incurred from using this strategy
Cryptocurrency trading can result in the loss of your entire investment
Only trade with capital you can afford to lose
Use this strategy at your own risk. The responsibility for any trading decisions and their consequences lies entirely with you.
DeadCatBounce Short EMA TrendDeadCatBounce Short EMA Trend
DeadCatBounce Short EMA Trend is a simple and responsive trend-following indicator built around two commonly used exponential moving averages: the 21 EMA and 50 EMA . It is designed to help traders quickly identify short-term trend direction, momentum shifts, gap fills, and potential entry or exit signals.
How It Works
The indicator calculates and plots:
21 EMA – fast, short-term momentum
50 EMA – slower, trend-defining average
Trend direction is determined by the relationship between these two EMAs. When the faster EMA crosses above or below the slower EMA, it highlights potential changes in momentum.
Optional crossover triangle signals can be displayed directly on the chart to visually mark bullish and bearish EMA cross events.
Features:
Clean overlay of 21 EMA and 50 EMA
Customizable colors for each EMA
Optional crossover triangle signals
This indicator provides a fast and clear visual representation of EMA-based trend conditions without unnecessary complexity.
DeadCatBounce Longer EMA TrendDeadCatBounce Longer EMA Trend
DeadCatBounce Longer EMA Trend is a higher-timeframe trend-following indicator built around two widely respected exponential moving averages: the 100 EMA and 200 EMA. It is designed to help traders identify overall market bias, long-term trend direction, and key dynamic support and resistance zones.
How It Works
The indicator calculates and plots:
100 EMA – medium-to-long-term trend guidance
200 EMA – major trend and market bias reference
Trend direction is determined by the relationship between these two EMAs. When price holds above or below them, it provides clear insight into whether the market is in a bullish or bearish long-term structure.
These EMAs are commonly used by institutional and swing traders to define trend alignment and filter lower-timeframe trade setups.
Features:
Clean overlay of 100 EMA and 200 EMA
Customizable colors for each EMA
Ideal for trend confirmation and bias filtering
Works across all markets and timeframes
This indicator offers a clean and reliable view of long-term EMA trend structure without unnecessary signals or clutter, making it a perfect companion to shorter-term momentum tools.
WN 5-20-50 SMA Setup (Discrete Lines = SL TP) Multiple Entries Pretty Simple Script as I got this idea from a YouTuber that showed us how to use AI to make TradingView Indicators.
When the 5 day Simple Moving Average Goes Above the 20 day Simple Moving Average it issues a BUY Signal when the Trend itself is over the 50 day Simple Moving Average.
When the 5 day Simple Moving Average Goes Below the 20 day Simple Moving Average it issues a SELL Signal when the Trend itself is under the 50 day Simple Moving Average.
The Green Cloud Represents price over the 50 day Simple Moving Average. BUY signals will only show up in the green cloud.
The Red Cloud Represents price under the 50 day Simple Moving Average. SELL signals will only show up in the green cloud.
The lines represent Stop Loss and two Take Profit Levels. Take Profit 1 is 1.5x the stop loss and Take Profit 2 is 3x the Stop Loss.
This version of the Script has multiple Trend signals for entries so you can scale into a trade when the Trend is being aggressive.
Witch-Fire ALMA signals: Dynamic Liquidity & Trend GlowThe Witch-Fire ALMA is a high-precision trend bias and liquidity mapping tool designed for price action traders and Smart Money practitioners. Unlike traditional indicators that clutter your chart with lagging signals, this script provides a "clean-yet-powerful" visual anchor to help you stay on the right side of the market while identifying key Points of Interest (POIs).
At its core, the script utilizes an optimized Arnaud Legoux Moving Average (ALMA). Known for its superior ability to balance smoothness and responsiveness, the ALMA effectively filters out market noise and "whipsaws" that often plague standard EMAs.
Key Features:
The Witch-Fire Glow: A neon-styled ALMA line that shifts between Bullish Green and Bearish Red. The white core provides surgical precision for price intersection, while the outer glow visualizes the strength and dominance of the current trend.
Scaled Liquidity Levels: Automatically maps Buy Side Liquidity (BSL) and Sell Side Liquidity (SSL). These levels are dynamic—they scale proportionally with your ALMA settings. This ensures that the liquidity zones you see are always relevant to the trend cycle you are analyzing.
Strategic Bias Background: A subtle background tint provides an instant psychological filter. Only look for Longs in the green zone and Shorts in the red zone to maintain a high-probability strike rate.
How to Trade with Witch-Fire:
Identify the Bias: Look at the Fire ALMA. If the "fire" is red and the price is below the line, your bias is strictly bearish.
Watch the Sweeps: Wait for the price to "sweep" (pierce with a wick) the horizontal SSL (Green) or BSL (Red) lines.
Execution: Look for a strong rejection candle (long wick, small body) at these levels that closes back towards the ALMA line.
Best Used On: 15m, 1H, and 4H timeframes. Works exceptionally well for Crypto, Forex, and Indices.
PM/PW/PD/OVN/CD Highs & Lows with prices+ EMAsPM/PW/PD/OVN/CD Highs & Lows with prices
+
3 customizable EMAs (def 12/34/55)
2 EMA Cloud2 EMA Cloud is a clean, lightweight overlay indicator that plots two configurable EMAs (default 14 and 150) and fills the space between them to form an easy-to-read trend “cloud.” It also marks bullish and bearish EMA crossovers with configurable triangle signals and includes built-in alert conditions for both crossover directions.
Features
Two adjustable EMAs (default 8 & 13)
Cloud fill between EMAs for quick trend/phase visibility
Crossover signals
Bullish: EMA1 crosses above EMA2
Bearish: EMA1 crosses below EMA2
Signal sizing control (Tiny → Huge)
Visual modes / themes for cloud + signals:
Classic, Monochrome, Heatmap, Pastel, Dark, Neon (1/2), BlueScale, RedScale, GreenScale, PriceBased
Alerts included
“Bullish EMA Crossover”
“Bearish EMA Crossover”
How to use
Use the cloud + EMA alignment to gauge directional bias and momentum.
Use crossover markers as potential trend-change or continuation triggers depending on your strategy.
Switch to PriceBased color mode for simple visual confirmation (green when price is above EMA2, red when below).
Notes / Limitations
This is an EMA-based tool and will lag by design, especially in choppy markets.
Signals are not trade recommendations; consider using higher-timeframe context and risk management.
Inputs: EMA periods, show/hide EMA lines, cloud transparency, color mode, crossover signal size.
Ichimoku MTF Heatmap W/ adj alert placement W and D cloud ALERTShows green FLAG 50 bars back when Daily and Weekly Cloud metrics are ACTIVE.
EMA 8/21 & SMA 50/200 - NDAThese are a useful combination of Moving Averages.
I use these on the Daily chart.
There;s not much to add here - happy charting!
Cantillon Clean Moving Averages [Free]Overview Standard Moving Averages are static. The Cantillon Clean MA is dynamic. It automatically changes color based on price interaction, giving you an instant visual read on the trend health of the Short (20), Medium (50), and Long (200) term flows.
Features
Dynamic Coloring: Green when Bullish, Red when Bearish.
Smart Weighting: Uses Exponential Moving Averages (EMA) to react faster than standard SMAs.
Crossover Signals: Subtle "X" markers when the short-term trend flips.
Want the Real Institutional Trend? Moving averages lag. To track the True Institutional Cost Basis (Anchored VWAP) and statistical reversal points, you need the Cantillon Terminal .
Dynamic EMA Trend Table [Customizable]Overview
The Dynamic EMA Trend Table is a comprehensive dashboard designed to give traders an instant overview of the market trend across five distinct Exponential Moving Averages (EMAs). Instead of cluttering your chart with multiple lines, this script organizes the data into a clean, customizable table, allowing you to assess trend alignment at a glance.
How It Works
This indicator calculates five user-defined EMAs (defaulting to the popular 5, 20, 50, 100, and 200 periods). It then compares the Current Price against each EMA value to determine the immediate trend status:
Bullish State: When the current price is above the specific EMA, the table cell turns Green (customizable).
Bearish State: When the current price is below the specific EMA, the table cell turns Red (customizable).
This logic allows swing traders and scalpers to instantly see if the asset is in a strong uptrend (all cells Green), a strong downtrend (all cells Red), or a consolidation phase (mixed colors).
Key Features
Fully Customizable Periods: Change the length of all 5 EMAs to fit your specific strategy (e.g., Fibonacci numbers or standard Swing Trading settings).
Dynamic UI: Position the table anywhere on the screen (Top/Bottom/Left/Right) and adjust the size to fit your screen resolution.
Visual Cleanliness: You can choose to show the table only, or toggle the "Show EMAs on Chart" option to plot the actual lines on your chart.
Smart Coloring: The lines on the chart (if enabled) inherit the same color logic as the table—turning Green when price is above them and Red when price is below.
Settings & Configuration
Price Source: Select Close, High, Low, etc. (Default is Close).
Table Position & Size: Customize where the dashboard appears.
EMA Lengths: Set your 5 preferred lookback periods.
Color Theme: Fully adjustable colors for Bullish, Bearish, Neutral, and Background elements to match your chart theme (Dark/Light mode friendly).
Use Case Example
Trend Confirmation: A trader looking for a "Buy" entry might wait for the short-term EMAs (5 and 20) and the medium-term EMA (50) to all turn Green in the table before entering.
Support/Resistance Watch: By quickly glancing at the values in the table, you can see exactly where the 200 EMA sits without needing to scroll back on your chart to find the line.
SB A / A++ ALERT ENGINE (Alerts Only)SB A / A++ Alert Engine
Session-Based Level Rejection Strategy (Automation-Ready)
Overview
The SB A / A++ Alert Engine is a rules-based TradingView indicator designed to identify high-probability institutional-style reversal trades using Stacey Burke–inspired concepts such as previous day levels, session structure, opening ranges, and round numbers.
This tool is alerts-only by design, making it ideal for:
TradingView alerts
Webhook automation
Telegram / Discord signal delivery
External trade execution systems
It does not repaint and evaluates signals on confirmed bar close only.
---
Core Trading Idea
Price frequently reacts at important reference levels during active trading sessions.
This script looks for rejection + confirmation at those levels and grades setups based on confluence and candle quality.
Only A-grade and A++-grade setups are alerted.
---
What the Script Detects
📌 Key Levels (Confluence Engine)
Previous Day High / Low
Initial Balance (Mon–Tue range, active Wed–Fri)
Session Opening Range (first hour of London / NY)
Round Numbers (configurable tick spacing)
Each level touched contributes to confluence — without double-counting the same zone.
---
🕒 Session Control
Signals are only allowed during:
London Session
New York Session
Includes:
Session resets
Max alerts per session
Cooldown between signals
---
🔎 Candle Confirmation
Valid signals require clear rejection behavior, such as:
Bullish / Bearish Engulfing candle
Strong Pin Bar (wick ≥ 2× body)
---
🧠 Trade Grades
A Trade
Valid session
ATR percentile filter passed
≥ 1 level of confluence
Directional rejection
A++ Trade
All A-Trade rules
Strong confirmation candle (engulf or pin)
≥ 2 independent confluence zones
Grades are displayed visually and included in alert payloads.
---
📊 Volatility Filter (ATR Percentile)
Instead of fixed ATR thresholds, the script uses an ATR percentile rank, ensuring trades only trigger when volatility is above normal for that market.
This adapts automatically across:
Forex
Indices
Futures
Crypto
---
Visual Output
▲ Green / Lime triangles → LONG (A / A++)
▼ Orange / Red triangles → SHORT (A / A++)
Color intensity reflects trade grade
Optional session shading (if enabled)
---
Alerts & Automation
All alerts are webhook-ready and structured for automation.
Each alert includes:
Symbol
Timeframe
Direction (LONG / SHORT)
Trade grade (A or A++)
Confluence count
Entry price (close of signal bar)
Designed to integrate with:
Telegram bots
Trade execution bridges
Risk management engines
---
What This Script Is (and Is Not)
✅ IS
A high-quality signal engine
Non-repainting
Automation-friendly
Institutional level-based logic
❌ IS NOT
A scalping indicator
A prediction tool
A “trade every candle” system
This tool favors patience, structure, and quality over frequency.
---
Recommended Usage
Timeframes: M5 – M15
Best markets: FX majors, indices, liquid crypto
Combine with your own execution, risk, and trade management rules
---
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. Always test on demo or paper trading before using live capital.
A-Share Broad-Based ETF Dual-Core Timing System1. Strategy Overview
The "A-Share Broad-Based ETF Dual-Core Timing System" is a quantitative trading strategy tailored for the Chinese A-share market (specifically for broad-based ETFs like CSI 300, CSI 500, STAR 50). Recognizing the market's characteristic of "short bulls, long bears, and sharp bottoms," this strategy employs a "Left-Side Latency + Right-Side Full Position" dual-core driver. It aims to safely bottom-fish during the late stages of a bear market and maximize profits during the main ascending waves of a bull market.
2. Core Logic
A. Left-Side Latency (Rebound/Bottom Fishing)
Capital Allocation: Defaults to 50% position.
Philosophy: "Buy when others fear." Seeks opportunities in extreme panic or momentum divergence.
Entry Signals (Triggered by any of the following):
Extreme Panic: RSI Oversold (<30) + Price below Bollinger Lower Band + Bullish Candle Close (Avoid catching falling knives).
Oversold Bias: Price deviates more than 15% from the 60-day MA (Life Line), betting on mean reversion.
MACD Bullish Divergence: Price makes a new low while MACD histogram does not, accompanied by strengthening momentum.
B. Right-Side Full Position (Trend Following)
Capital Allocation: Aggressively scales up to Full Position (~99%) upon signal trigger.
Philosophy: "Follow the trend." Strike heavily once the trend is confirmed.
Entry Signals (All must be met):
Upward Trend: MACD Golden Cross + Price above 20-day MA.
Breakout Confirmation: CCI indicator breaks above 100, confirming a main ascending wave.
Volume Support: Volume MACD Golden Cross, ensuring price increase is backed by volume.
C. Smart Risk Control
Bear Market Exhaustion Exit: In a bearish trend (MA20 < MA60), the strategy does not "hold and hope." It immediately liquidates left-side positions upon signs of rebound exhaustion (breaking below MA20, touching MA60 resistance, or RSI failure).
ATR Trailing Stop: Uses Average True Range (ATR) to calculate a dynamic stop-profit line that rises with the price to lock in profits.
Hard Stop Loss: Forces a stop-loss if the left-side bottom fishing fails and losses exceed a set ATR multiple, preventing deep drawdowns.
3. Recommendations
Target Assets: High liquidity broad-based ETFs such as CSI 300 ETF (510300), CSI 500 ETF (510500), ChiNext ETF (159915), STAR 50 ETF (588000).
Timeframe: Daily Chart.






















