BanShen MACD Ultimate Multi Signal System[SpeculationLab]🧠 How This Script Works (Detailed Logic Breakdown)
This script is a closed-source, fully self-developed modular trading system centered around MACD divergence detection. It also includes auxiliary modules such as:
Vegas Tunnel trend filtering
Dynamic ATR-based stop placement
Engulfing candlestick pattern detection
RSI/OBV divergence modules
Fair Value Gap (FVG) recognition
A smart signal panel that consolidates all signals in real time
These components work together through a signal resonance framework, helping traders identify high-confluence, high-probability entry opportunities.
🔍 Why MACD Divergence Is the Core (Real-World Strategy Basis)
This system is based on a real-world trading strategy I’ve personally used and refined over time.
Through discretionary trading and backtesting, I discovered that divergence between price action and the MACD histogram — especially when certain structural conditions are met — produces a very high win rate.
Key observations include:
MACD peaks/troughs that are clean and well-shaped (defined pivot structure)
Large vertical differences between two MACD histogram extremes
Price making a higher high or lower low, while MACD does the opposite
Two or more divergences appearing consecutively, which creates a powerful reversal signal
These setups have proven extremely reliable in my experience. This script automates the detection of these conditions using strict logic filters.
🔷 1. MACD Divergence Engine (Core Module)
At its core, this script implements a multi-layered MACD divergence detection system, capable of identifying both **regular** and **consecutive** bullish/bearish divergences.
Key components of the logic:
- **Pivot-Based Peak Detection:**
Peaks and troughs in the MACD histogram are located using left/right lookback lengths.
These define valid turning points by requiring the center bar to be the highest (or lowest) compared to its neighbors.
- **Peak Size Thresholding:**
The height of the histogram peaks is compared to the standard deviation of MACD values.
Only peaks above a configurable multiplier (e.g., 0.1× stdev) are considered significant, filtering out noise.
- **Peak Ratio Filtering:**
For divergence to be valid, the size ratio between two histogram peaks must exceed a minimum threshold.
This prevents "flat" divergences with no meaningful MACD movement from triggering false signals.
- **Noise Suppression:**
A customizable threshold filters out weak histogram fluctuations between divergence points.
- **Price Action Confirmation:**
The divergence is only confirmed when the price forms a new high or low (depending on the type), and the MACD forms an opposing structure.
- **Consecutive Divergence Detection:**
For high-conviction setups, the script detects sequences of two or more divergences in the same direction.
These use stricter filters and flag rare but powerful market turning points.
Signals are plotted using plotshape() with visual differentiation between regular and consecutive setups. You can enable/disable each type individually.
⏰ Note: Histogram colors are styled similarly to TradingView’s built-in MACD for visual familiarity. However, this script is built entirely from scratch and does not reuse any internal TV code.
---
🔷 2. Trend Filtering via Vegas Tunnel
The **Vegas Tunnel** module plots 5 configurable EMAs (default: 12, 144, 169, 576, 676) to evaluate trend direction.
The trend is considered **bullish** when short EMAs (144/169) are positioned above long EMAs (576/676), and the price is interacting with the short EMA tunnel.
Conversely, a bearish condition is detected when the opposite is true.
A visual triangle marker highlights trend zones, and users can hide/show individual EMAs.
---
🔷 3. ATR-Based Dynamic Stop Loss
This module plots dynamic stop levels above and below the current price based on ATR.
Default setting uses 13-period ATR, and users can customize the multiplier or disable the plot.
It serves as a visual guide for risk management in live trades.
---
🔷 4. Engulfing Pattern Recognition
Candlestick-based signal detection:
- **Bullish Engulfing** occurs when a candle closes above the prior high, and the prior bar is bearish.
- **Bearish Engulfing** when a candle closes below the prior low, and the prior bar is bullish.
Users can modify the logic to use open/close levels for looser or stricter detection.
These patterns are highlighted using plotshape markers and optionally included in the signal table.
---
🔷 5. RSI and OBV Divergence Modules
These modules follow similar logic to the MACD engine:
- Use pivotlow() / pivothigh() to detect swing points.
- Confirm divergence only when price moves in one direction while RSI or OBV moves in the opposite direction.
- Require a minimum distance (in bars) between the two pivots.
- Require a certain ratio between two indicator values and their corresponding prices.
You can only enable **one of MACD/RSI/OBV divergences at a time** to avoid visual overlap, as they share the same subplot.
---
🔷 6. FVG (Fair Value Gap) Auto Detection
This module detects large single-direction price moves where price leaves a visible gap between candle 3 bars ago and 1 bar ago.
- **Bullish FVG**: high < low
- **Bearish FVG**: low > high
ATR-based filters are applied to eliminate minor gaps.
Each gap is drawn as a box and optionally extended, with a central line marking the midpoint (CE - Consequent Encroachment) level.
Traders often look for price to return to this level as an entry signal.
---
🔷 7. Smart Signal Table
All active signals (MACD, Vegas, RSI, OBV, Engulfing) are collected into a **real-time table** that displays current market bias.
- Each module reports whether it is currently giving a bullish (🟢) or bearish (🔴) condition.
- Helps users assess signal alignment (confluence).
- The table is updated every bar and appears in the bottom-right corner.
---
🔷 8. Watermark & Branding
The watermark displays the script name and author at the top-right, and can be toggled via settings.
📌 Not a Mashup — Structured System, Not a Stack of Indicators
⚠️ This is not a random mashup of unrelated indicators.
Every module in this system was intentionally designed to support the core MACD divergence logic by filtering, validating, or amplifying its signals.
Here's how the system achieves signal confluence and structure:
Vegas Tunnel acts as a macro trend filter, helping users determine whether to favor long or short trades.
For example, bullish MACD divergence is more reliable when confirmed by an uptrend in the Vegas EMAs. This prevents users from trading against momentum.
Engulfing Patterns serve as entry-level price action confirmation.
When a bullish engulfing candle appears near a MACD bullish divergence — and trend conditions from Vegas are aligned — the confluence increases dramatically.
This is especially powerful when multiple modules confirm in the same direction on the right side of the chart.
RSI and OBV Divergence modules offer redundant but independent momentum views.
Users may enable them selectively to validate MACD signals, or to use them as standalone alternatives when MACD is flat or noisy.
FVG Zones provide context for entries or targets.
For instance, a MACD bullish divergence forming near a bullish FVG gap increases the odds of reversal.
Price often "fills" these imbalances, which aligns well with reversal setups.
The Smart Signal Table aggregates signals from all modules and provides a visual, real-time overview of the current market bias.
This allows traders to act only when multiple signals are aligned — for example, when MACD is bullish, trend is up, and a bullish engulfing just printed.
Together, this framework creates a coherent decision-making system, where each tool has a defined role: trend filtering, signal confirmation, risk management, or entry detection.
🧩 It is modular in architecture, but not modular in purpose.
This system was not built by stacking indicators, but by integrating logic across modules to support a high-conviction MACD-based strategy.
🧬 Originality Statement
This script is entirely original, developed from scratch without using external libraries or public script code. The logic is fully custom, especially the consecutive divergence detection system and signal integration.
⚠️ Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice. Trade at your own risk.
---
📘 中文简要说明:
这是一个完全原创、闭源的交易系统,核心逻辑为 MACD 柱状图背离信号的识别,配合多模块共振判断,构建出一个高胜率的多信号共振策略。
本指标模块化结构清晰,主要包括:
- MACD 背离识别(支持连续背离)
- Vegas EMA 隧道趋势过滤
- RSI / OBV 背离模块
- 吞没形态识别
- FVG 平衡区间自动标注
- ATR 动态止损提示
- 智能信号面板(整合所有信号并可视化)
所有模块均可单独开启/关闭,适配顺势、逆势或多周期的交易风格。
本脚本为个人实战策略的程序化实现,逻辑完全由零开发,未使用任何公用代码。适合希望提高交易胜率和信号精准度的用户使用。
免责声明:本指标仅用于技术分析学习与参考,不构成任何投资建议。请您独立判断,自行承担交易风险。
Oscillators
Elite RSI Strategy Elite RSI Strategy
________________________________________
🔍 Overview
The Elite RSI Strategy combines multiple technical indicators into a unified visual toolkit, providing deep insights into market strength, reversals, and momentum shifts. Designed for serious traders who value confluence, clarity, and customizability.
________________________________________
📊 Core Components
🔸 Relative Strength Index (RSI)
• Classic RSI calculation with customizable length and price source.
• Dynamic background shading on RSI/MA crosses.
• Gradient fills highlight overbought and oversold zones.
• Alerts on RSI-MA crossovers for bullish or bearish momentum signals.
🔸 Smoothing Moving Averages (MA)
• Choose from SMA, EMA, SMMA, WMA, or VWMA.
• Configurable length and style.
• MA plotted over RSI for cross signal visualization.
________________________________________
🔸 WaveTrend Oscillator (WT)
• Built-in WaveTrend calculation using dual smoothing.
• Color-coded histogram based on oscillator direction:
o 🟢 Green: Bullish momentum
o 🔴 Red: Bearish momentum
• Optional candle coloring based on WT sentiment.
• Alert system for WT trend shifts.
________________________________________
🔸 Money Flow Index (MFI)
• Centered around 0 for clear trend polarity:
o Positive → Bullish Bias
o Negative → Bearish Bias
• Includes custom MFI smoothing, not available in standard indicators.
• Custom levels plotted: +30, +15, 0, -15, -30 for confluence.
• Dynamic color changes on zero-line crosses.
• Alert-ready behavior on trend shifts.
________________________________________
🖌️ Customization & Styling
• Toggle visibility for:
o RSI
o WT
o MFI
o Bar Colors
o Level Lines
• Style options for all plot types: line, area, or columns.
• Full color customization for bullish and bearish signals.
________________________________________
🚨 Built-In Alerts
• 📈 RSI crosses above MA
• 📉 RSI crosses below MA
• 🔄 RSI/MA Cross (any)
• 🟢 WT turns Bullish
• 🔴 WT turns Bearish
• 🔁 WT Direction Change
________________________________________
🧠 Why Use Elite RSI Strategy?
• Combines momentum, volume flow, and trend structure.
• Helps filter false signals through multi-layer confluence.
• Increases confidence in entry/exit decisions.
• Fully customizable to suit any trading style.
________________________________________
Disclaimer:
This indicator script is intended for educational and informational purposes only. It does not constitute investment advice or a recommendation to buy or sell any asset.
Always seek guidance from a licensed financial advisor or broker. You are solely responsible for your own trading decisions.
Thank you.
[Pandora] Laguerre Ultimate Explorations MulticatorIt's time to begin demonstrations differentiating the difference between known and actual feasibility beyond imagination... Welcome to my algorithmic twilight zone .
INTRODUCTION:
Hot off my press, I present this Laguerre multicator employing PSv6.0, originally formulated by John Ehlers for TASC - July 2025 Traders Tips. Basically I transcended Ehlers' notions of transversal filtration with an overhaul of his Laguerre design with my "what if" Pandora notions included. Striving beyond John Ehlers' original intended design. This action packed indicator is a radically revamped version of his original filter using novel techniques. My aim was to explore whether providing even more enhanced responsiveness and lesser lag is possible and how. Presented here is my mind warping results to witness.
EHLERS' LAGUERRE EXPLAINED:
First and foremost, the concept of Ehlers' Laguerre-izing method deserves a comprehensive deep dive. Ehlers' Laguerre filter design, as it functions originally, begins with his Ultimate Smoother (US) followed by a gang of four LERP (jargon for Linear intERPolation) filters. Following a myriad of cascading LERPs is a window-like FIR filter tapped into the LERP delay values to provide extra smoothness via the output.
On a side note, damping factor controlled LERP filters resemble EMAs indeed, but aren't exactly "periodic" filters that would have a period/length parameter and their subsequent calculations. I won't go into fine-grained relationship details, but EMA and LERP are indeed related in approach, being cousins of similar pedigree.
EXAMINING LAGUERRE:
I focused firstly on US initialization obstacles at Pine's bar_index==0 with nz() in abundance. The next primary notion of intrigue I mostly wondered about was, why are there four LERP elements instead of fewer or more. Why not three or why not two LERPs, etc... 1-4-6-4-1, I remember seeing those coefficients before in high pass filters.
Gathering my thoughts from that highpass knowledge base, I devised other tapped configuration modes to inspect their behavior out of curiosity. Eureka! There is actually more to Laguerre than Ehlers' mind provided, now that I had formulated additional modes. Each mode exhibits it's own lag/smoothness characteristics better than the quad LERPed version. I narrowed it down to a total of 5 modes for exploration. Mode 0 is just the raw US by itself.
ANALYZING FILTER BEHAVIORS:
Which option might be possibly superior, and how may I determine that? Fortunately, I have a custom-built analyzer allowing me to thoroughly examine transient responses across multiple periodicities simultaneously, providing remarkable visual insights.
While Ehlers has meagerly touched upon presenting general frequency responses in his books, I have excelled far beyond that. This robust filter analysis capability enables me to observe finer aspects hidden to others, ultimately leading to the deprecation of numerous existing filters. Not only this, but inventing entirely new species of filtration whether lowpass, highpass, or bandpass is already possible with a thorough comprehensive evaluation.
Revealing what's quirky with each filter and having the ability to discover what filters may be lacking in performance, is one of it's implications. I'm just going to explain this: For example US has a little too much overshoot to my liking, along with nonconformant cutoff frequency compliance with the period parameter. Perhaps Ehlers should inspect US coefficients a bit closer... I hope stating this is not received in an ill manner, as it's not my intention here.
What this technically eludes to is that UltimateSmoother can be further improved, analogous to my Laguerre alterations described above. I will also state Laguerre can indeed be reformulated to an even greater extent concerning group delay, from what I have already discussed. Another exciting time though... More investigative research is warranted.
LAGUERRE CONCLUSIONS:
After analyzing Laguerre's frequency compliance, transient responses, amplitudes, lag, symmetry across periodicities, noise rejection, and smoothness... I favor mode 3 for a multitude of reasons over the mode 4 configuration, but mostly superb smoothing with less lag, AND I also appreciated mode 1 & 2 for it's lower lag performance options.
Each mode and lag (phase shift) damping value has it's own unique characteristics at extremes, yet they demonstrate additional finesse in it's new hybrid form without adding too much more complexity. This multicator has a bunch of Laguerre filters in the overlay chart over many periodicities so you can easily witness it's differing periodic symmetries on an input signal while adjusting lag and mode.
LAGUERRE OSCILLATOR:
The oscillator is integrated into the laguerreMulti() function for the intention of posterity only. I performed no evaluation on it, only providing the code in Pine. That wasn't part of my intended exploration adventure, as I'm more TREND oriented for the time being, focusing my efforts there.
Market analysis has two primary aspects in my observations, one cyclic while the other is trending dynamics... There's endless oscillators, but my expectations for trend analysis seems a little lesser explored in my opinion, hence my laborious trend endeavors. Ehlers provided both indicator facets this time around, and I hope you find the filtration aspect more intriguing after absorption of this reading.
FUNCTION MODULES EXPLAINED:
The Ultimate Smoother is an advanced IIR lowpass smoothing filter intended to minimize noise in time series data with minimal group delay, similar to a traditional biquad filter. This calculation helps to create a smoother version of the original signal without the distortions of short-term fluctuations and with minimal lag, adjustable by period.
The Modified Laguerre Lowpass Filter (MLLF) enhances the functionality of US by introducing a Laguerre mode parameter along side the lag parameter to refine control over the amount of additional smoothing/lag applied to the signal. By tethering US with this LERPed lag mechanism, MLLF achieves an effective balance between responsiveness and smoothness, allowing for customizable lag adjustments via multiple inputs. This filter ends with selecting from a choice of weighted averages derived from a gang of up to four cascading LERP calculations, resulting with smoother representations of the data.
The Laguerre Oscillator is a momentum-like indicator derived from the output of US and a singular LERPed lowpass filter. It calculates the difference between the US data and Laguerre filter data, normalizing it by the root mean square (RMS). This quasi-normalization technique helps to assess the intensity of the momentum on any timeframe within an expected bound range centered around 0.0. When the Laguerre Oscillator is positive, it suggests that the smoothed data is trending upward, while a negative value indicates a downward trend. Adjustability is controlled with period, lag, Laguerre mode, and RMS period.
PSX OBV Divergence Labels (1D)PSX OBV Divergence Labels (1H/4H/1D/1W, Enhanced)
Description:
This indicator marks bullish and bearish OBV divergences on the price chart for PSX and other markets. Designed specifically for swing traders who operate on 1H, 4H, 1D, and 1W timeframes, it enhances basic divergence detection by incorporating volume spikes and OBV slope confirmation — improving signal reliability and reducing noise.
Key Features:
📈 Bullish Divergence: Marks potential buy zones when price hits a local low while OBV shows upward momentum with volume spike confirmation.
📉 Bearish Divergence: Flags potential sell zones when price hits a local high while OBV trends lower with volume weakness.
✅ Slope Confirmation: Filters signals based on sustained OBV direction over a user-defined number of bars.
🔊 Volume Filter: Detects divergence only when volume exceeds the average by a customizable multiplier (default 1.0).
🔍 Clean Visualization: Green “BUY” and red “SELL” labels show clearly on the chart, synced with candle price movement.
Best Timeframes to Use:
1H, 4H, 1D, and 1W (optimized for PSX stocks, KSE100, and KMI30)
Swing traders aiming for 2–4 week holding windows will find the most utility.
Recommended Settings:
OBV Lookback: 20
Volume Smoothing: 20
Spike Multiplier: 1.0
Slope Confirmation: 3 bars
Strategy Tip:
Use divergences in confluence with key support/resistance levels, price action traps, and market structure for high-probability setups. This tool is best used for trend exhaustion detection and reversal signals.
MVRV Altcoins📌 Technical Description of Indicator: MVRV Altcoins
This advanced script calculates the Market Value to Realized Value (MVRV) ratio across multiple cryptocurrencies simultaneously. It offers two analytical modes: Normal and Z-Score, optimized for visual comparison and real-time monitoring of up to 13 predefined assets. If a user applies the indicator to a symbol that is not among the 13 programmed assets, the default behavior displays the Bitcoin chart as a fallback reference.
🔍 What Is MVRV and Why Is It Important?
MVRV is an on-chain metric designed to assess whether a cryptocurrency is overvalued or undervalued by comparing its market capitalization to its realized capitalization.
- Market Cap: The total circulating supply multiplied by the current market price.
- Realized Cap: The sum value of all coins based on the price at the time they last moved on-chain, offering a time-weighted valuation.
Normal Calculation:
MVRV_Normal = Market Cap / Realized Cap
This version reflects investor profitability and identifies potential accumulation or distribution zones.
📊 Z-Score Calculation:
MVRV_ZScore = (Market Cap − Realized Cap) / Standard Deviation of Market Cap
This formula evaluates how extreme the current market conditions are compared to historical norms. It normalizes the difference using statistical dispersion, turning it into a volatility-aware metric that better reflects valuation extremes.
🔎 How Market Cap Is Computed
Unlike conventional indicators relying on consolidated feeds, this script uses modular components from CoinMetrics to construct the active capitalization more accurately, especially for altcoins. Here's the breakdown:
Active Capitalization = MARKETCAPFF + MARKETCAPACTSPLY
Realized Capitalization = MARKETCAPREAL
Component Definitions:
- MARKETCAPFF: Market Cap Free Float — total valuation based only on truly circulating coins.
- MARKETCAPACTSPLY: Capitalization from actively circulating supply — filters dormant or locked coins.
- MARKETCAPREAL: Realized Cap — historical valuation weighted by the last on-chain movement of each coin.
This method offers enhanced precision and compatibility across assets that may lack comprehensive data from centralized providers.
⚙️ User-Configurable Parameters
- MVRV Mode: Choose between Normal and Z-Score.
- Percentage Scale View: If enabled, visual output is scaled using predefined divisors (100 / 3.5 or 100 / 6).
- Thresholds for Analysis:
- Normal mode: Define overbought and oversold levels (default 1.0 and 3.5).
- Z-Score mode: Configure statistical boundaries (default 0.0 and 6.0).
- Table Controls:
- Adjustable position on screen (9 options).
- Font size customization: tiny, small, normal, large.
- Color scheme personalization:
- Header: text and background
- Body: text and background
- Central column separator color
📊 Multicrypto Table Architecture
The indicator renders a high-performance visual table displaying data from up to 13 assets simultaneously. Each asset is represented as a vertical column featuring eigth historical data points plus the most recent value.
- Assets are displayed in two blocks separated by a decorative column.
- Each value is rounded to one decimal place for clarity.
- Cells are styled dynamically based on user settings.
🎨 Decorative Column Separator
Since the entire table is built as a unified structure, a color-configurable empty column is inserted mid-table to act as a visual divider. This approach improves readability and aesthetic balance without duplicating code or splitting table logic.
🔁 Default Behavior on Unsupported Assets
If the active chart is not one of the 13 predefined assets, the indicator will automatically display Bitcoin’s data. This ensures the chart remains functional and informative even outside the target asset group.
🎯 Color Interpretation by Condition
The MVRV value for each asset is highlighted using a traffic light system:
- Green: Undervalued (below oversold threshold)
- Red: Overvalued (above overbought threshold)
- Yellow: Neutral zone
This coding simplifies decision-making and visual scanning across assets.
Final Notes
This indicator is modular and fully adaptable, with well-commented sections designed for efficient customization. Its multiactive architecture makes it a valuable tool for crypto analysts tracking diversified portfolios beyond Bitcoin and Ethereum.
It supports visual storytelling across assets, comparative historical evaluation, and identification of strategic zones — whether for accumulation, distribution, or monitoring on-chain sentiment.
PRO Investing - Apex EnginePRO Investing - Apex Engine
1. Core Concept: Why Does This Indicator Exist?
Traditional momentum oscillators like RSI or Stochastic use a fixed "lookback period" (e.g., 14). This creates a fundamental problem: a 14-period setting that works well in a fast, trending market will generate constant false signals in a slow, choppy market, and vice-versa. The market's character is dynamic, but most tools are static.
The Apex Engine was built to solve this problem. Its primary innovation is a self-optimizing core that continuously adapts to changing market conditions. Instead of relying on one fixed setting, it actively tests three different momentum profiles (Fast, Mid, and Slow) in real-time and selects the one that is most synchronized with the current price action.
This is not just a random combination of indicators; it's a deliberate synthesis designed to create a more robust momentum tool. It combines:
Volatility analysis (ATR) to generate adaptive lookback periods.
Momentum measurement (ROC) to gauge the speed of price changes.
Statistical analysis (Correlation) to validate which momentum measurement is most effective right now.
Classic trend filters (Moving Average, ADX) to ensure signals are only taken in favorable market conditions.
The result is an oscillator that aims to be more responsive in volatile trends and more stable in quiet periods, providing a more intelligent and adaptive signal.
2. How It Works: The Engine's Three-Stage Process
To be transparent, it's important to understand the step-by-step logic the indicator follows on every bar. It's a process of Adapt -> Validate -> Signal.
Stage 1: Adapt (Dynamic Length Calculation)
The engine first measures market volatility using the Average True Range (ATR) relative to its own long-term average. This creates a volatility_factor. In high-volatility environments, this factor causes the base calculation lengths to shorten. In low-volatility, they lengthen. This produces three potential Rate of Change (ROC) lengths: dynamic_fast_len, dynamic_mid_len, and dynamic_slow_len.
Stage 2: Validate (Self-Optimizing Mode Selection)
This is the core of the engine. It calculates the ROC for all three dynamic lengths. To determine which is best, it uses the ta.correlation() function to measure how well each ROC's movement has correlated with the actual bar-to-bar price changes over the "Optimization Lookback" period. The ROC length with the highest correlation score is chosen as the most effective profile for the current moment. This "active" mode is reflected in the oscillator's color and the dashboard.
Stage 3: Signal (Normalized Velocity Oscillator)
The winning ROC series is then normalized into a consistent oscillator (the Velocity line) that ranges from -100 (extreme oversold) to +100 (extreme overbought). This ensures signals are comparable across any asset or timeframe. Signals are only generated when this Velocity line crosses its signal line and the trend filters (explained below) give a green light.
3. How to Use the Indicator: A Practical Guide
Reading the Visuals:
Velocity Line (Blue/Yellow/Pink): The main oscillator line. Its color indicates which mode is active (Fast, Mid, or Slow).
Signal Line (White): A moving average of the Velocity line. Crossovers generate potential signals.
Buy/Sell Triangles (▲ / ▼): These are your primary entry signals. They are intentionally strict and only appear when momentum, trend, and price action align.
Background Color (Green/Red/Gray): This is your trend context.
Green: Bullish trend confirmed (e.g., price above a rising 200 EMA and ADX > 20). Only Buy signals (▲) can appear.
Red: Bearish trend confirmed. Only Sell signals (▼) can appear.
Gray: No clear trend. The market is likely choppy or consolidating. No signals will appear; it is best to stay out.
Trading Strategy Example:
Wait for a colored background. A green or red background indicates the market is in a tradable trend.
Look for a signal. For a green background, wait for a lime Buy triangle (▲) to appear.
Confirm the trade. Before entering, confirm the signal aligns with your own analysis (e.g., support/resistance levels, chart patterns).
Manage the trade. Set a stop-loss according to your risk management rules. An exit can be considered on a fixed target, a trailing stop, or when an opposing signal appears.
4. Settings and Customization
This script is open-source, and its settings are transparent. You are encouraged to understand them.
Synaptic Engine Group:
Volatility Period: The master control for the adaptive engine. Higher values are slower and more stable.
Optimization Lookback: How many bars to use for the correlation check.
Switch Sensitivity: A buffer to prevent frantic switching between modes.
Advanced Configuration & Filters Group:
Price Source: The data source for momentum calculation (default close).
Trend Filter MA Type & Length: Define your long-term trend.
Filter by MA Slope: A key feature. If ON, allows for "buy the dip" entries below a rising MA. If OFF, it's stricter, requiring price to be above the MA.
ADX Length & Threshold: Filters out non-trending, choppy markets. Signals will not fire if the ADX is below this threshold.
5. Important Disclaimer
This indicator is a decision-support tool for discretionary traders, not an automated trading system or financial advice. Past performance is not indicative of future results. All trading involves substantial risk. You should always use proper risk management, including setting stop-losses, and never risk more than you are prepared to lose. The signals generated by this script should be used as one component of a broader trading plan.
xGhozt Stoch RSI StatsQuantify Stochastic RSI behavior with this unique analytical tool. It measures the average number of candles and total occurrences your chosen Stochastic RSI spends within its overbought and oversold zones. All historical data is presented in a clean, customizable table directly on your chart, helping you understand the typical persistence and frequency of extreme conditions to sharpen your market analysis.
Previous Price Action## Previous Price Action - Market Structure Visualization Tool
**Three time-segmented boxes for enhanced market structure analysis:**
🟢 **240 Candles Box (Green)** - Historical context (candles -240 to -120)
🟡 **120 Candles Box (Yellow)** - Medium-term trend (candles -120 to -10)
🔴 **10 Candles Box (Red)** - Recent price action (last 10 candles)
**Key Features:**
- Non-overlapping time segments for clear trend analysis
- Uniform height based on 240-candle range for easy comparison
- 50% transparency to maintain chart readability
- Ideal for identifying momentum vs mean reversion conditions
**Perfect for:**
- Crypto day trading and scalping
- Market regime identification (trending vs choppy)
- Entry timing and trade management
- Duration of trend analysis
**Settings:** Fully customizable colors, transparency, and individual box toggle switches.
RSI with Williams %R Coloringsimple fusion of RSI to seek divergence and williams % R coloring to see overbought/oversold price.
not my own work, just merely took two standard indicators and infused them.
Unified Signal EngineThis Pine Script titled "Unified Signal Engine" is a comprehensive multi-indicator trading tool designed to generate buy and sell signals based on the combined logic of five different technical indicators:
🔍 Core Components
PMO (Price Momentum Oscillator)
Uses double-smoothed rate of change to detect momentum shifts.
Buy signal: when PMO crosses above its signal line.
Average Force
Measures the strength of price movement within a range.
Buy signal: when the force is positive.
Dynamic Sentiment RSI
A sentiment-weighted RSI with smoothing and step rounding.
Buy signal: when sentiment RSI is above zero.
Adaptive Resonance Oscillator
Uses Hilbert Transform and adaptive RSI logic.
Buy signal: when RSI crossover occurs and RSI is above 50 (added filter for stronger confirmation).
Turbo Oscillator
Combines RSI, MFI, and Stochastic indicators with divergence detection and take-profit logic.
Buy signal: when oscillator conditions and reversal patterns align.
📈 Signal Logic
Buy Signal (long) is triggered when all selected indicators (based on user input toggles) align positively.
Sell Signal (short) is triggered when all selected indicators align negatively.
🔔 Alerts and Visuals
Plots triangle shapes below/above bars for buy/sell signals.
Alerts are configured for buy, sell, and combined conditions.
🧠 Customisation
Users can toggle each indicator on/off.
Includes smoothing, divergence detection, and visual styling options.
This script is ideal for traders looking to unify multiple momentum and sentiment indicators into a single decision engine, offering flexibility and layered confirmation for entries and exits.
Cross-Correlation Lead/Lag AnalyzerCross-Correlation Lead/Lag Analyzer (XCorr)
Discover which instrument moves first with advanced cross-correlation analysis.
This indicator analyzes the lead/lag relationship between any two financial instruments using rolling cross-correlation at multiple time offsets. Perfect for pairs trading, market timing, and understanding inter-market relationships.
Key Features:
Universal compatibility - Works with any two symbols (stocks, futures, forex, crypto, commodities)
Multi-timeframe analysis - Automatically adjusts lag periods based on your chart timeframe
Real-time correlation table - Shows current correlation values for all lag scenarios
Visual lead/lag detection - Color-coded plots make it easy to spot which instrument leads
Smart "Best" indicator - Automatically identifies the strongest relationship
How to Use:
Set your symbols in the indicator settings (default: NQ1! vs RTY1!)
Adjust correlation length (default: 20 periods for smooth but responsive analysis)
Watch the colored lines:
• Red/Orange: Symbol 2 leads Symbol 1 by 1-2 periods
• Blue: Instruments move simultaneously
• Green/Purple: Symbol 1 leads Symbol 2 by 1-2 periods
Check the table for exact correlation values and the "Best" relationship
Interpreting Results:
Correlation > 0.7: Strong positive relationship
Correlation 0.3-0.7: Moderate relationship
Correlation < 0.3: Weak/no relationship
Highest line indicates the optimal timing relationship
Popular Use Cases:
Index Futures : NQ vs ES, RTY vs IWM
Sector Rotation : XLF vs XLK, QQQ vs SPY
Commodities : GC vs SI, CL vs NG
Currency Pairs : EURUSD vs GBPUSD
Crypto : BTC vs ETH correlation analysis
Technical Notes:
Cross-correlation measures linear relationships between two time series at different time lags. This implementation uses Pearson correlation with adjustable periods, calculating correlations from -2 to +2 period offsets to detect leading/lagging behavior.
Perfect for quantitative analysts, pairs traders, and anyone studying inter-market relationships.
NWE-cRSI-StochRSI增强反转信号 [2分钟专用]The NWE-cRSI-StochRSI Reversal System is a sophisticated trading indicator designed exclusively for 2-minute charts. It combines three powerful technical components—Nadaraya-Watson Envelope (NWE), Cyclical RSI (cRSI), and Stochastic RSI (StochRSI)—to identify high-probability reversal opportunities in fast-moving markets. This triple-confirmation system filters noise while capturing early reversal signals with precision.
BTCÐ&SOL 5M Sinal IndicatorThis is a signal indicator that combines MACD, RSI, and three moving averages. When all signals match, the entry signal is determined based on the golden cross/death cross of the moving averages.
The entry signal is set so that it does not occur when the RSI value is below 30 or above 70.
It also prevents countertrend trading based on the long-term moving average.
Based on Ethereum, it can achieve a 70% win rate and a 3:1 profit-to-loss ratio.
Compatible with Luxalgo S&O indicator.
BTCÐ&SOL 5M Sinal IndicatorThis is a signal indicator that combines MACD, RSI, and three moving averages. When all signals match, the entry signal is determined based on the golden cross/death cross of the moving averages.
The entry signal is set so that it does not occur when the RSI value is below 30 or above 70.
It also prevents countertrend trading based on the long-term moving average.
Based on Ethereum, it can achieve a 70% win rate and a 3:1 profit-to-loss ratio.
AethryonAethryon
Designed to provide a comprehensive market sentiment analysis by combining multiple technical indicators into a normalized Z-Score. It is suitable for assets like Bitcoin, on any timeframe.
Key Features:
Indicator Aggregation: Integrates RSI, Stochastic, Stochastic RSI, CCI, Bull Bear Power, Moving Average, VWAP Bands, Bollinger Bands, Supertrend, Linear Regression, and Market Structure, normalized to a 0-100 scale.
Customizable Inputs:
Z-Score lookback period (default 50) and upper/lower thresholds (default ±2.0).
Individual indicator settings (e.g., lengths, sources, multipliers).
Visualization options including style (Gradient, Bands, Pulses, Binary), glow effect, signals, thresholds, and dashboard size.
Visualization:
Plots a sentiment Z-Score line with a futuristic color scheme (cyan-green for bearish, magenta-red for bullish).
Features a gradient fill, bands, pulses, or binary visualization based on user selection.
Displays triangular buy/sell signals and threshold grid lines.
A dashboard shows value, trend, strength, signal, Z-Score, and system status with a neo-tech aesthetic.
Usage:
Helps traders gauge overall market sentiment and identify overbought/oversold conditions based on the Z-Score.
The dashboard provides real-time insights into trend direction, strength, and trading signals.
Ideal for overlay on a 1-day chart to monitor sentiment trends, as depicted in the Bitcoin/USD chart.
Indicator TesterIndicator Tester
Designed to evaluate and backtest a composite trading signal based on multiple technical indicators across volatility, volume, momentum, and moving average categories. It is suitable for assets like Bitcoin, on all timeframes.
Key Features:
Indicator Selection: Allows users to enable/disable indicators such as CCI, Bollinger Bands, RVI, MFI, VZO, EFI, KVO, VPT, COPP, RSI, StochRSI, MOM, TRIX, SMI, MA Cross, RTI, and Simple MA, with customizable parameters.
Customizable Inputs:
Individual indicator settings (e.g., lengths, thresholds).
Flip threshold to adjust the signal activation point.
Backtest settings including custom start date, signal type (Long & Short, Long Only, Short Only), and fees.
Table positions for performance and settings display.
Visualization:
Plots an equity curve (orange for positive signals, white otherwise) and a buy-and-hold equity curve (blue).
Displays a performance table comparing indicator equity, drawdown, standard deviation, Sharpe, Sortino, and Omega ratios with buy-and-hold metrics.
A settings table shows backtest start date, fees, number of indicators used, and flip threshold.
Usage:
Enables traders to test and optimize a strategy by combining selected indicators, with performance metrics calculated from the equity curve.
The equity curve and backtest tables help compare the strategy against a buy-and-hold approach.
Ideal for overlay on a 1-day chart to analyze historical performance, as depicted in the Bitcoin/USD chart.
BoaBias 3RSI(Custom) + Stats3RSI(Custom) + Stats
3RSI(Custom) + Stats is an advanced multi-RSI indicator for professional and active traders. It visualizes overbought/oversold conditions using three independently configured, smoothed RSI lines (defaults: 24, 14, 9), and provides unique statistics on how long your chosen asset stays in these extreme zones.
Key Features
Triple RSI Display: Simultaneously plots three customizable RSI lines, each with its own period and smoothing.
Dynamic Overbought/Oversold Highlights: Background color highlights only when any RSI is above the overbought level or below the oversold level—no clutter, just the key moments.
In-Panel Statistics Table: See current RSI values, and average streak length in overbought and oversold zones for each RSI, calculated over your chosen historical window (default: 360 bars). Table font size can be adjusted in settings for maximum readability.
Configurable Levels: Set your preferred levels for overbought/oversold zones, as well as additional mid-levels for more nuanced analysis.
Alerts: Instantly set up alerts for when any (or each) RSI enters an extreme zone. Never miss a key reversal setup.
How to Use
Use the indicator to objectively spot exhaustion and reversal points on any timeframe and asset.
The average streak statistics help you judge whether the market is behaving “normally” or if an extreme condition is being sustained.
Table with live RSI and stats makes your decision process faster and more data-driven.
Alerts allow you to stay informed even when you’re not watching the chart.
Settings
RSI Periods & Smoothing: Adjust all three lines independently to suit your strategy.
Overbought/Oversold Levels: Customize thresholds to fit your asset or timeframe.
Statistical Window: Define how many bars to use for calculating streak averages.
Font Size: Make the stats table readable on any screen size with adjustable font.
Summary
All-in-one solution for tracking momentum exhaustion with real statistical support.
Visual clarity: only shows what matters, when it matters.
Fully compatible with TradingView alerts for ultimate automation and risk management.
Questions or suggestions? Leave feedback in the comments!
Macro Nexus Model | MrAlvarezMacro Nexus Model (MNM)
The Macro Nexus Model (MNM) is a sophisticated, next-generation oscillator engineered to synthesise the intricate dynamics of the global financial system into an actionable signal. Where traditional indicators are limited to price action, the MNM provides a quantitative measure of the underlying macro forces driving assets like Bitcoin.
Key Features:
Dynamic & Regime-Aware: Unlike static indicators, the MNM is built on a dynamic engine that identifies the prevailing market regime. It understands that the factors driving the market during periods of expansion are fundamentally different from those that matter during systemic contractions.
Intelligent, Self-Adjusting Weights: At its core, the MNM analyses a diverse basket of global macro inputs—including global growth indicators, credit spreads, central bank liquidity, and safe-haven flows. The indicator's proprietary engine continuously and smoothly adjusts the importance of each of these factors based on its real-time assessment of the global risk environment.
The Macro Trend Line: The final output is a single, smoothed line representing the net macro pressure on risk assets. A positive value indicates a supportive, expansionary environment, while a negative value signals a contractionary environment where caution is warranted.
Automated Divergence Detection: The MNM automatically identifies and plots powerful bullish and bearish divergences between the macro trend and price, providing clear, early warnings of potential market tops and bottoms.
The Macro Nexus Model is more than an indicator; it is a sophisticated dashboard for quantifying the primary forces driving the market. Use it to elevate your analysis, gain a decisive edge, and make more informed, data-driven decisions.
RSI Ichimoku-like (Subchart) tohungmcThe RSI Ichimoku-like (Subchart) indicator offers a novel approach to technical analysis by uniquely combining the Relative Strength Index (RSI) with the principles of the Ichimoku Kinko Hyo system. Unlike traditional Ichimoku, which is applied to price data, this indicator innovatively uses RSI values to construct Ichimoku components (Conversion Line, Base Line, Leading Span 1, Leading Span 2, and Cloud). Displayed on a separate subchart, it provides traders with a powerful tool to analyze momentum and trend dynamics in a single, intuitive view.
Unique Features
Innovative RSI-based Ichimoku System: By applying Ichimoku calculations to RSI instead of price, this indicator creates a momentum-driven trend analysis framework, offering a fresh perspective on market dynamics.
Cloud Visualization: The cloud (formed between Leading Span 1 and 2) highlights bullish (green) or bearish (red) momentum zones, helping traders identify trend strength and potential reversals.
Customizable Parameters: Adjust RSI and Ichimoku periods to suit various trading styles and timeframes.
Subchart Design: Keeps your price chart clean while providing a dedicated space for momentum and trend analysis.
Components
RSI Line: A 14-period RSI (customizable) plotted in blue, with overbought (70) and oversold (30) levels marked for quick reference.
Conversion Line: Average of the highest and lowest RSI over 9 periods, acting as a short-term momentum indicator.
Base Line: Average of the highest and lowest RSI over 26 periods, serving as a medium-term trend guide.
Leading Span 1: Average of Conversion and Base Lines, shifted forward 26 periods.
Leading Span 2: Average of the highest and lowest RSI over 52 periods, shifted forward 26 periods.
Cloud: The area between Leading Span 1 and 2, colored green (bullish) when Span 1 is above Span 2, and red (bearish) when Span 2 is above Span 1.
How to Use
Momentum Analysis:
Monitor the RSI line for overbought (>70) or oversold (<30) conditions to spot potential reversals.
A RSI crossing above 30 or below 70 can indicate shifts in momentum.
Trend Identification:
When the RSI is above the cloud and the cloud is green, it suggests bullish momentum.
When the RSI is below the cloud and the cloud is red, it indicates bearish momentum.
Crossovers:
RSI crossing above the Conversion or Base Line may signal bullish opportunities, especially if aligned with a green cloud.
RSI crossing below these lines may suggest bearish opportunities, particularly with a red cloud.
Cloud Breakouts:
A RSI breaking through the cloud can signal a potential trend change, with the cloud’s color indicating the direction.
Customization:
Adjust the RSI Period (default: 14), Conversion Line Period (default: 9), Base Line Period (default: 26), and Leading Span 2 Period (default: 52) to match your trading timeframe or strategy.
Settings
RSI Period: Default 14. Increase for smoother signals or decrease for higher sensitivity.
Conversion Line Period: Default 9. Adjust for short-term momentum sensitivity.
Base Line Period: Default 26. Modify for medium-term trend analysis.
Leading Span 2 Period: Default 52. Tune for long-term trend context.
Why Closed Source?
The unique methodology of applying Ichimoku calculations to RSI, combined with optimized subchart visualization, represents a proprietary approach to momentum and trend analysis. Protecting the source code ensures the integrity of this innovative concept while allowing traders worldwide to benefit from its functionality.
Notes
This indicator does not generate explicit Buy/Sell signals, giving traders flexibility to interpret signals based on their strategies.
Best used in conjunction with other technical tools (e.g., support/resistance, candlestick patterns) for confirmation.
Suitable for all timeframes, from intraday to long-term trading.
HBD.FIBONACCI TARAMA - TABLOThe coin has been automatically drawing Fibonacci numbers since its launch. You don't need to draw Fibonacci numbers forever. All you need to do is check the coin daily, weekly, and monthly. Additionally, 12 customizable scans have been added. Fibonacci marks the coin that touches the orange zone. Enjoy the benefits.
MCPZ - Meme Coin Price Z-Score [Da_Prof]Meme Coin Price Z-score (MCPZ). Investor preference for meme coin trading may signal irrational exuberance in the crypto market. If a large spike in meme coin price is observed, a top may be near. Similarly, if a long price depression is observed, versus historical prices, that generally corresponds to investor apathy, leading to higher prices. The MEME.C symbol allows us to evaluate the sentiment of meme coin traders. Paired with the Meme Coin Volume (MCV) and Meme Coin Gains (MCG) indicators, the MCPZ helps to identify tops and bottoms in the overall meme coin market. The MCPZ indicator helps identify potential mania phases, which may signal nearing of a top and apathy phases, which may signal nearing a bottom. A moving average of the Z-score is used to smooth the data and help visualize changes in trend. In back testing, I found a 10-day sma of the MCPZ works well to signal tops and bottoms when extreme values of this indicator are reached. The MCPZ seems to spend a large amount of time near the low trigger line and short periods fast increase into mania phases.
Meme coins were not traded heavily prior to 2020, but the indicator still picks a couple of tops prior to 2020. Be aware that the meme coin space also increased massively in 2020, so mania phases may not spike quite as high moving forward and the indicator may need adjusting to catch tops. It is recommended to pair this indicator with the MCG and MCV indicators to create an overall picture.
The indicator grabs data from the MEME.C symbol on the daily such that it can be viewed on other symbols.
Use this indicator at your own risk. I make no claims as to its accuracy in forecasting future trend changes of memes or any other asset.
Hope this is helpful to you.
--Da_Prof
PSX OBV Divergence Labels (1H/4H/1D/1W, Enhanced)This script identifies and labels bullish and bearish OBV divergences on the price chart, specifically optimized for swing trading in the Pakistan Stock Exchange (PSX) but also works well across global equities, indices, and crypto.
🔍 What It Does
📈 Bullish OBV Divergence (Green “BUY” label):
Price makes a new low while OBV forms a higher low — suggesting accumulation and a potential reversal.
📉 Bearish OBV Divergence (Red “SELL” label):
Price makes a new high while OBV forms a lower high — indicating distribution and potential weakness.
All signals are confirmed on candle close and filtered for smart volume and OBV stability, helping reduce noise and false positives.
⚙️ How It Works
OBV Divergence Lookback: Scans the last N bars (default 20) for divergence patterns
Volume Spike Filter: Bullish divergences are only considered valid if volume exceeds a smoothed average × multiplier
OBV Slope Confirmation: Confirms that OBV is moving in the expected direction across recent bars before signaling
Multi-Timeframe Support: Designed for 1H, 4H, 1D, and 1W timeframes — ideal for position and swing traders
📈 Best Use Cases
✅ PSX stocks (KSE100, KMI30)
✅ Crypto, indices, or commodities where volume data is available
✅ Works best when combined with price action, support/resistance, or market structure
📎 Parameters
OBV Divergence Lookback: Length of historical window to evaluate OBV vs. price divergence
Volume Smoothing: Period for volume moving average
Volume Spike Multiplier: Threshold for volume strength (default = 1.0x)
OBV Stability Confirmation Bars: OBV must show consistent direction across this many bars before confirming divergence
🧠 Pro Tip
Use divergence signals in confluence with:
Fair Value Gaps
Market Structure Breaks (BMS)
HTF Order Blocks or key SR levels
… for much stronger trade setups.
Lightning StrategyThese signals are provided for educational purposes only and do not constitute financial advice or a recommendation to buy or sell.
Combined 3-Bar Pattern + Price Oscillator Zero-Cross (Shading)These signals are provided for educational purposes only and do not constitute financial advice or a recommendation to buy or sell.