Williams Percent Range with ThresholdEnhance your trading analysis with the "Williams Percent Range with Threshold" indicator, a powerful modification of the classic Williams %R oscillator. This custom version introduces customizable uptrend and downtrend thresholds, combined with dynamic candlestick coloring to visually highlight market trends. Originally designed to identify overbought and oversold conditions, this script takes it a step further by allowing traders to define specific threshold levels for trend detection, making it a versatile tool for momentum and trend-following strategies.
Key Features:
Customizable Thresholds: Set your own uptrend (default: -16) and downtrend (default: -67) thresholds to adapt the indicator to your trading style.
Dynamic Candlestick Coloring: Candles turn green during uptrends, red during downtrends, and gray in neutral conditions, providing an intuitive visual cue directly on the price chart.
Flexible Length: Adjust the lookback period (default: 50) to fine-tune sensitivity.
Overlay Design: Integrates seamlessly with your price chart, enhancing readability without clutter.
How It Works:
The Williams %R calculates the current closing price's position relative to the highest and lowest prices over a specified period, expressed as a percentage between -100 and 0. This version adds trend detection based on user-defined thresholds, with candlestick colors reflecting the trend state. The indicator plots the %R line with color changes (green for uptrend, red for downtrend) and includes dashed lines for the custom thresholds.
Usage Tips:
Use the uptrend threshold (-16 by default) to identify potential buying opportunities when %R exceeds this level.
Apply the downtrend threshold (-67 by default) to spot selling opportunities when %R falls below.
Combine with other indicators (e.g., moving averages or support/resistance levels) for confirmation signals.
Adjust the length and thresholds based on the asset's volatility and your trading timeframe.
Oscillators
RSI+BOLLINGER (LONG & SHORT)This indicator combines two of the most popular tools in technical analysis, the Relative Strength Index (RSI) and Bollinger Bands (BB), to generate both long (BUY) and short (SELL) trading signals.
Strategy:
Entries (Buy/Short): Entry signals are based on the RSI.
A BUY is suggested when the RSI crosses above an oversold level (default: 29), indicating a possible upward reversal.
A SHORT is suggested when the RSI crosses below an overbought level (default: 71), indicating a possible downward reversal.
Exits (Position Closure): Exit signals are based on Bollinger Bands.
A long position is closed when the price crosses below the upper Bollinger Band.
A short position is closed when the price crosses above the lower Bollinger Band.
Key Features:
Cascade Filter: Includes a smart filter that prevents opening new consecutive trades if the price hasn't moved significantly in favor of a new entry, optimizing signal quality.
Automation Alerts: Generates detailed alerts in JSON format for each event (buy, sell, close), designed for easy integration with trading bots and automated systems via webhooks.
Fully Configurable: All parameters of the RSI, Bollinger Bands, and strategy filters can be adjusted from the indicator’s settings menu.
RSI Shift Zone [ChartPrime] with MAThis is a modified version of the original *RSI Shift Zone * script.
What’s new?
➤ Added a customizable Moving Average (SMA/EMA) plotted on top of the RSI for better trend confirmation.
➤ Keeps the original RSI zone detection logic and highlights possible reversal or shift areas.
➤ Clean visual style with clear zone fills, labels, and optional RSI value display.
Settings:
- RSI Length and Levels
- Minimum Channel Length
- Display RSI Value Toggle
- Moving Average Length & Type (SMA or EMA)
License: This script is shared under the Mozilla Public License 2.0 and retains © ChartPrime as the original author.
I hope this helps traders get a better visual on trend shifts and confirmations.
Feel free to share feedback or suggestions!
RV Indicator This Pine Script defines a custom Relative Volatility (RV) Indicator, which measures the ratio of directional price movement to volatility over a specified number of bars. Below is a full explanation of what this script does.
Title:
RV Indicator — Relative Volatility Oscillator
Purpose:
This indicator measures how aggressively price is moving compared to recent volatility, and smooths the result with a signal line. It can be used to gauge momentum shifts and trend strength.
How It Works – Step by Step
1. Measuring Price Momentum (v1)
It calculates the difference between the close and open prices of the last 4 candles.
A weighted average is applied:
The current candle and the one 3 bars ago get weight 1.
The two middle candles (1 and 2 bars ago) get weight 2.
This creates a smoothed momentum measure:
If close > open (bullish), v1 is positive.
If close < open (bearish), v1 is negative.
2. Measuring Volatility (v2)
Similarly, it calculates the high-low range for the last 4 candles.
The same weighting (1, 2, 2, 1) is applied.
This gives a smoothed volatility measure.
3. Combining Momentum and Volatility (RV Ratio)
For the past ti bars (default: 10), it sums up:
All v1 values (momentum sum)
All v2 values (volatility sum)
Then it divides them:
𝑅𝑉= sum of price momentum % sum of volatility
This produces the RV value:
RV > 0: Momentum is bullish (price is generally moving up relative to its volatility).
RV < 0: Momentum is bearish (price is moving down relative to its volatility).
4. Smoothed Signal Line (rvsig)
A smoothed version of the RV is created using a weighted average of the latest 4 RV values.
This acts like a signal line, similar to how MACD uses a signal line.
Crossovers between RV and this signal line can be used to detect shifts in momentum.
5. Visual Output
Orange Line (RV): Shows the raw momentum/volatility ratio.
Blue Line (Signal): A smoother line that follows RV more slowly.
Zero Line: Divides bullish vs. bearish momentum.
How to Use It in Trading
1. Look for Crossovers:
If RV crosses above its signal line → Possible buy signal (momentum turning bullish).
If RV crosses below its signal line → Possible sell signal (momentum turning bearish).
2. Check the Zero Line:
If both RV and Signal are above zero, momentum is bullish.
If both are below zero, momentum is bearish.
3. Filter False Signals:
Combine RV with a trend filter (like a 50 or 200 EMA) to avoid trading against the main trend.
Disclaimer: This script is for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. All trading decisions are solely your responsibility. Use at your own risk.
RSS-Stochastik [afterworktrading]Hi all,
this is the first script from the series "afterworktrading". The goal is to develop and provide tools for traders with a fulltime job or little time for trading/analyzing charts.
Over time some of the scripts will also be linked to complete trading systems.
Let's start with my favourite one, the "RSS-Stochastik" with alert function.
The RSS-concept (Relative Spread Strength, developed by Ian Copsey) is based on the variance between a "short" and a "long" moving averages (or "slow" and "fast"), here between two EMA.
This variance is calculated and plotted in a RSI-diagram to show "overbought" and "oversold" conditions, helping to identify an ideal entry setup for trend continuation or catching a possible reversal.
Compared to the conventional RSI etc., possible reversal or trend continuation areas are often better represented in terms of quality, as an example see the Amazon-Chart.
The EMA-values, limit value thresholds and background colors can be set in the script. As a special feature, alarms can be set to be notified when a value has reached the extreme range. This reduces the screen time to the minimum.
In my personal trading, this indicator forms the basis for almost all trades, but is not a pure signal indicator on its own.
However, the informative value can be further improved if volume or support/resistance zones etc. are linked to the RSS, see example NASDAQ future with support zone price or 200 EMA.
Example for a possible RSS-Trade-Setup:
- choose an asset with a strong trend
- set alerts for crossing the oversold or overbought condition in direction of the trend
- in case of an alert check possible support/resistance areas on the current chart level (EMA, price zones, volume zones, anchored VWAP etc.)
- trade in the direction of the trend using your preferred entry setup
In my opinion, the system can be used very well, especially in trend phases, in order to obtain optimal entries.
Does it works also on lower timeframes?
Yes, it might work on every timeframe with a strong trend of high quality. Please see attached a 5m-Chart of GPBUSD-pair, notice the signal quality in direction of the trend.
Like every trading system this is not the "holy grail setup" and you will have losing trades. But handling this indicator with care you can have better entries especially in trend direction with less screen time due to the alert function.
Good luck with it! Further indicators will be published in the coming months, some will also be based on the RSS system.
As always: no liability for losing trades, no investment advice etc. Observe the risk limit for every trade!
Penguin Trend with RSI on Diff🐧 Penguin Trend with RSI on Diff
Overview
This is a modified version of the original "Penguin Trend" indicator. Instead of displaying the magnitude of volatility with a histogram, this version uses an RSI oscillator to analyze the "momentum of volatility".
The main goal is to help traders see whether volatility is accelerating or decelerating, while still providing color signals on the price bars to indicate the primary trend direction during periods of volatility expansion.
---
How It Works
1. Volatility Difference Calculation
The indicator still calculates the difference value (diff) between the Bollinger Bands and Keltner Channels in the background. This value remains the core component for identifying a Squeeze (consolidation) or a Squeeze Release (volatility expansion).
2. RSI of Volatility Difference
Instead of plotting the diff value as a histogram, this script calculates an RSI based on the diff value. The result is an oscillator line (ranging from 0-100).
This RSI line represents the "momentum" or "rate of change" of the volatility itself.
- A rising RSI indicates that volatility is expanding at an increasing rate.
- A falling RSI indicates that volatility is decelerating or contracting.
3. Bar Coloring
This feature remains identical to the original version. The colors on the price bars are determined by MACD and EMA conditions to reflect the price trend and momentum.
- Lime: Strong bullish trend.
- Red: Strong bearish trend.
- Yellow: Pullback or weakening trend.
Important: The bar colors will only appear during a Squeeze Release (when diff > 0).
---
How to Use
1. Analyze Volatility Momentum with the RSI:
- RSI crossing above 50: Signals that volatility momentum is increasing; the market may be starting to trend.
- RSI above 70: Volatility expansion is in an "overbought" state and might slow down soon.
- RSI below 30: Volatility is very low ("oversold"), which could be a precursor to a new volatility expansion.
2. Confirm with Bar Colors:
After observing that the volatility RSI is rising, look for the bar colors on the main chart to confirm a trade.
- Example: If the RSI line crosses above 50 and, at the same time, the price bars turn "Lime", it could be a strong signal to enter a long position.
Tip: This version is ideal for traders who want a deeper analysis of the strength of a volatility breakout. As always, use it in conjunction with other technical analysis tools for confirmation.
WarTrend Pro v1.0 - NDX EditionWarTrend Pro v1.0 is a high-frequency intraday strategy tailored for the NASDAQ 100 Index (NDX) on the 1H timeframe.
It is engineered for professional traders seeking to combine momentum, structure, and market psychology into a single automated trading system.
Built around a customized SuperTrend logic, the system integrates a set of 11 tactical conditions. A trade is only triggered when 3 or more conditions are simultaneously validated, ensuring high-conviction entries.
Entry Conditions (Long only in v1.0):
✅ SuperTrend turns bullish (price > ATR band)
✅ ADX confirms strong trend (>25)
✅ Price above EMA stack (20, 50, 100, 200)
✅ RSI breakout from neutral zone
✅ Volume anomaly or price reversal candle
✅ Optional: bullish MFI crossover, MACD slope, Keltner confirmation, divergence detection
Exit Conditions:
SL and TP are calculated from volatility-adjusted ranges
Trailing stop can be optionally enabled
Exit also triggered on signal reversal (SuperTrend or ADX flip)
💡 How to Use It
Apply on 1H timeframe (NDX)
Customize risk settings, SL/TP logic, and session filters
Optional: combine with news filters or macro overlays for discretionary enhancement
*License
This strategy is part of the WTRADE Project – Institutional Edition.
Reproduction, republishing, or commercial use without permission is prohibited.
COT Comm OsciThe COT Ocsillator Indicator is a quantitative analysis tool that uses the positioning of so-called Commercials from the weekly Commitments of Traders (COT) report published by the CFTC. It is designed to detect extreme hedging behavior by institutional participants and translates it into a normalized scale from 0 to 100. The goal is to provide early indication of potential market reversals or overextensions.
What is the "Commercial Index"?
Commercials are market participants with a direct connection to the underlying asset – such as producers, processors, or large-scale users of commodities. They are often referred to as "Smart Money" due to their fundamental market insight and hedging purpose.
The Commercial Index measures where the current net position of Commercials (Long - Short) stands within a user-defined historical lookback window:
Index = 100: the most bullish net position in the selected period.
Index = 0: the most bearish net position.
How does the indicator work?
Data Source: The script uses the latest TradingView/LibraryCOT/4, which provides structured access to official COT data.
Calculation:
Weekly long and short positions of Commercials are requested based on the selected root symbol (e.g., "HG" for Copper).
Net position is calculated as: Net = Long - Short.
This value is normalized within the selected historical range (e.g., 150 weeks) between the highest and lowest net positions.
Result: A smooth oscillator ranging from 0 to 100 is plotted.
How to use the indicator?
Select your target future market (e.g., "GC" for Gold, "CL" for Crude Oil, "HG" for Copper).
Optionally adjust the three time windows to observe short-, mid-, and long-term sentiment (e.g., 125, 250, 500 weeks).
Watch for extreme readings:
Above 80–100: Commercials are heavily net long.
Below 20–0: Commercials are heavily net short.
These extremes are especially relevant when combined with price action, seasonality, or technical signals.
What makes this script unique?
Objective sentiment evaluation based on real institutional positioning.
Three timeframes shown in parallel for multi-horizon analysis.
No smoothing or distortion – raw positioning is visualized cleanly.
Useful in futures markets, where hedging behavior is a major driver.
Tips for Use:
Best viewed on weekly daily or charts (e.g., COMEX:HG1!, NYMEX:CL1!, CBOT:ZW1!).
Combine with technical setups or external sentiment tools for confirmation.
Can be used as a core building block in COT-based strategies or signal generation systems.
This indicator helps you track the footprints of Smart Money – and anticipate where the market might turn.
DI/ADX Trend Strategy | (1-Min Scalping)Strategy Overview
This is an experimental 1-minute trend-following strategy combining DI+/DI-, ADX, RSI, MACD, VWAP, and EMA filters with a time-based exit. It aims to catch strong directional moves while strictly managing risk.
Indicator Components
• DI+/DI- + ADX – Trend direction + strength filter
• RSI (14) – Momentum confirmation (RSI > 55 or < 45)
• MACD Histogram – Detects directional momentum shifts
• Candle Body % Filter – Screens for strong commitment candles
• EMA 600 / 2400 – Long-term trend alignment
• Weekly VWAP – Entry only when price is above/below VWAP
• Trade Limit – Max 2 trades per direction per VWAP cycle
• Time-Based Stop – 0.50% SL, 3.75% TP, 12h (720 bars) time stop
Entry Logic
Long Entry:
• DI+ crosses above DI−
• RSI > 55
• MACD histogram > 0
• Strong bullish candle
• Price > VWAP
• EMA600 > EMA2400
• Within 25 bars of EMA crossover
• Max 2 long trades before VWAP resets
Short Entry:
• DI+ crosses below DI−
• RSI < 45
• MACD histogram < 0
• Strong bearish candle
• Price < VWAP
• EMA2400 > EMA600
• Within 25 bars of EMA crossover
• Max 2 short trades before VWAP resets
Exit Logic
• Stop Loss: 0.50%
• Take Profit: 3.75% (7.5R)
• Time Stop: 720 bars (~12 hours on 1m chart)
• Each trade exits independently
Testing Parameters
• Initial Capital: $10,000
• Commission: 0.10%
• Timeframe: 1-minute
• Tested on: BTCUSDT, ETHUSDT
• Pyramiding: Up to 5 positions allowed
• VWAP resets trade counter to reduce overtrading
Alerts
• Buy / Sell signal
• Trade Opened / Closed
• SL/TP triggered
⚠️ Notes
• Early-stage strategy — entry count varies by trend conditions
• Shared for educational use and community feedback
• Please forward-test before using live
• Open-source — contributions and suggestions welcome!
Disclaimer
This strategy is for educational purposes only and should not be considered financial advice. Past performance does not guarantee future results. Always validate independently before trading live.
[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.
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.
MACD 衰减信号For Max's MACD Decay Signal
A non-repainting signal based on MACD histogram momentum decay combined with price structure divergence. This script helps traders identify potential trend reversal points using multi-wave analysis.
📈 Bullish Signal
Triggered when:
MACD histogram prints three weakening red waves (histogram bars are rising toward zero)
Price makes lower lows, while MACD histogram rises (bullish divergence)
Histogram just turns green
🟢 Label: "MACD多头" appears below the candle
📢 Alert: "MACD 多头信号"
📉 Bearish Signal
Triggered when:
MACD histogram prints three weakening green waves (histogram bars falling toward zero)
Price makes higher highs, while MACD histogram falls (bearish divergence)
Histogram just turns red
🔴 Label: "MACD空头" appears above the candle
📢 Alert: "MACD 空头信号"
⚙️ Features
Adjustable MACD parameters: Fast, Slow, Signal lengths
Uses arrays to track momentum and price shift patterns
Built to avoid repainting, works on all timeframes
Comes with alert conditions for automation or manual notifications
✅ Best For
Catching early trend reversal opportunities
Combining with price action or support/resistance levels
Traders who value momentum + structure-based signals
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.
Gabriel's Dynamic Sentiment RSI📊 Dynamic Sentiment RSI with Velocity, Acceleration & Divergence Detection
Created by GabrielAmadeusLau
This advanced Pine Script indicator fuses multiple layers of market insight into a unified momentum and sentiment tool. It is designed to extract nuanced sentiment signals from price action using a hybridized RSI model enhanced with stochastic dynamics, volatility weighting, and divergence tracking. It adapts to a wide range of asset classes including equities, crypto, gold, and forex.
🔍 Core Components
✅ 1. Dynamic Sentiment RSI
A normalized, stochastic-based RSI that adjusts its sensitivity using the Sentiment Factor.
Smoothed using a Jurik Moving Average for precision noise filtering.
Weighted using volume, volatility (VIX-like), HL extremes, and trend-based adaptive weighting, giving it a powerful multi-dimensional response.
✅ 2. Hann-Window RSI Calculation
Leverages a Hann Window and Levy Flight transformation to amplify cyclical behavior in RSI inputs.
Applies power-based weighting to directional movement, ideal for assets with cyclic or fractal-like structure.
✅ 3. Velocity & Acceleration Engine
Measures the rate of RSI change over a customizable period, and then the rate of that rate (acceleration).
Both are plotted with adaptive coloring to visually represent momentum shifts.
This dynamic structure aids in anticipating breakout strength or exhaustion.
✅ 4. Sentiment Heat Background
Background shading reflects bullish (teal) or bearish (silver) sentiment using smoothed stochastic RSI outputs.
Creates an intuitive market "mood" indicator for quick-glance visual analysis.
🔁 Smoothing & Weighting Customizations
You can toggle between different weighting modes:
Volume Weighted: Uses volume or ATR if unavailable.
VIX Weighted: Incorporates a volatility-based weight via a WVF-like formula.
HL Weighted: High-Low range smoothed.
Linear Weighted: Applies linear regression to the signal.
Trend Adaptive: Squares rolling maximums/minimums for dynamic strength adaptation.
🔎 Divergence Detection System
Supports Regular & Hidden Divergence using any of the following pivots:
Raw RSI
Smoothed K% RSI
Sentiment RSI
Velocity
Acceleration
Allows divergence tracking on custom timeframes and Heikin Ashi data.
Custom line styles, colors, and optional “last signal only” visibility.
Alerts are provided for all four divergence types.
📌 Built-in Alerts
✅ Bullish/Bearish Regular Divergence
✅ Bullish/Bearish Hidden Divergence
✅ General Divergence Summary Alerts
⚙️ Highly Configurable Settings
Sentiment Factor scaling (default ~2.2)
Levy exponent (ideal between 0.4 to 3.2 depending on asset class)
Velocity & Acceleration scaling inputs
Pivot lookback controls
Toggle smoothing methods and weighting logic
🧠 Ideal Use Cases
Swing and Trend Trading: The dynamic structure identifies both trend continuations and reversals with precision.
Divergence Confirmation: Confirm entries or exits using regular/hidden divergence alongside acceleration/velocity overlays.
Adaptive Strategy Building: Integrate this tool as a sentiment engine for algorithmic trading strategies.
🔬 Recommended Settings by Asset Class
Asset Type Levy Sentiment Factor
Crypto 0.6–1.2 2.0–2.5
Gold 0.4–1.0 2.0–2.2
Stocks 0.9–1.2 2.2–2.5
Forex 2.5–3.2 1.8–2.3
*A sentiment Factor of 9.5 can tell the larger trend apart on Daily and up.*
🧩 Technical Notes
Uses Jurik MA (Power 2, Phase 50) for minimal lag smoothing.
Employs Chebyshev filters (pre-Stochastic) for advanced sentiment smoothing.
Weighted RSI is normalized from -100 to 100, with color-coded velocity and acceleration histograms.
KusKus Starlight Strategy📌 Gabriel's KusKus Starlight Strategy – Adaptive Volume-Based Momentum System
Description:
Gabriel’s KusKus Starlight Strategy is a high-precision, volume-driven trading system designed for short- to medium-term intraday setups. By combining Cumulative Volume Delta (CVD) with Fisher Transform logic, Z-Score anomaly detection, and adaptive moving averages (like Jurik MA and Super Smoother), the strategy seeks to capture early trend shifts, continuation breakouts, and statistically favorable reversals.
🧠 How It Works
CVD-Based Fisher Oscillator
Transforms volume delta imbalances into clean trend signals using a Fisher Transform with dual-stage smoothing.
Jurik Signal Line & Super Smoother
Provides confirmation filters that reduce whipsaw trades by identifying prevailing trend direction.
Z-Score & Velocity Boosters
Highlight when momentum is accelerating with statistical outliers, improving early entry timing.
ATR-Driven Trade Management
All entries use dynamically calculated Stop Loss and Take Profit levels based on ATR, with optional hour-specific overrides.
🎯 Strategy Entry Conditions
🔼 Long Entry:
A long trade is entered when all the following are true:
Fisher (smoothedFish) crosses above 0
Z-Score (ZKusKus) is rising or Z-Score velocity is rising
Fisher is above the Jurik MA (signal)
Price (src) is above the Super Smoother MA (ma)
Time filter is allowed (optional setting)
🔽 Short Entry:
A short trade is entered when all the following are true:
Fisher (smoothedFish) crosses below 0
Z-Score (ZKusKus) is falling or Z-Score velocity is rising
Fisher is still above the Jurik MA (signal) (anticipating exhaustion)
Price (src) is below the Super Smoother MA (ma)
Time filter is allowed (optional setting)
📤 Strategy Exit Conditions
Take Profit (TP) and Stop Loss (SL) levels are based on the ATR multiplied by dynamic multipliers.
Both TP and SL can be adjusted per hour using tp_hour_* and risk_hour_* settings to reflect optimal market behavior during different sessions.
⏰ Smart Hour-Based Filters
Use include Hours to restrict trading to 3 specific hours (e.g., 7, 8, 9). Each hour has its own:
Risk % Allocation
TP Multiplier
This adds fine-tuned control over position sizing and target reachability.
📈 Recommended Timeframes:
Optimized for 30-minute ~ 1 Hour charts, but adaptable to 1m–15m with parameter tuning.
Use hourly filters to target only statistically profitable hours, London ~ New York Afterhours.
📌 Ideal Use Case:
For traders looking to fade weak volume reversals or ride volume-supported breakouts with smart, auto-adjusting position sizing—this strategy offers a refined and flexible framework grounded in real-time order flow behavior.
RSI First Condition SignalsBuy signal with the exit of RSI from the bottom to the top of the number 30.
Sell signal with RSI exit from above 70 to below. The longer the RSI stays above the overbought zone, i.e above 70, and then breaks below 70,
the stronger the sell signal.
The longer the RSI stays below thw oversold zone, i.e. below 70, and then exits above 30,the stronger the buy signal.
And if the RSI exits below the 70 line with a steeper slope, the sell signal is valid.
And if the RSI exits with a steeper slope above 30, the buy signal is valid .
Vortex strategy🧠 Overview
The Vortex Strategy is a sophisticated trend-following and volatility-based trading algorithm designed for precision entries during directional market phases. It leverages Jurik smoothing, velocity filtering, and Vortex Indicator derivatives, enhanced with advanced risk management and hourly optimization. This strategy is best suited for futures and high-volume intraday markets like the CME E-Mini S&P 500 (ES1!).
🔧 Core Features
🔄 Vortex Indicator with Velocity Filter
Uses a velocity-enhanced form of the classic Vortex Indicator (VIP and VIM) to capture directional momentum.
Smooth VMP/VMM via SS & BW and pass that through a custom velocity function using RMS-scaled filtering.
📉 Super Smoother Trend Filter
Implements Ehlers' Super Smoother Filter to define trend bias dynamically.
Acts as a directional filter for long/short entry conditions, avoiding whipsaws.
🔊 Volume Velocity Confirmation
Entry signals require increasing volume velocity, calculated using RMS scaling and normalized via bandpass filtering.
🧠 Signal Conditions
Long Entry: VIP crosses above VIM, price above smoothed trend filter, and volume velocity increasing.
Short Entry: VIM crosses above VIP, price below trend filter, and volume velocity increasing.
🛡️ Risk & Trade Management
🎯 Dynamic Stop Loss & Take Profit
SL and TP are calculated using ATR smoothed with Jurik MA.
TP multiplier is customizable by hour, optimizing profit capture per trading session.
🕐 Hourly Optimization
Define up to 3 specific trade hours, each with:
Unique risk % allocation
Unique TP multipliers
Falls back to user-defined default settings if outside optimized hours, (Asia, New York).
🪙 Position Sizing
Risk-based sizing per trade.
Contracts are calculated dynamically using user/hourly risk and stop distance.
Rounded down to whole units to comply with futures contract rules.
⚙️ Advanced Tools
Jurik Moving Average (JMA): Smoothing with minimal lag
T3 Moving Average: Tilson’s smoother with configurable alpha
Laguerre Ultimate Smoother: Custom low-pass filter for signal confirmation
Hann Window FIR Filter: Optional for fine-tuned smoothing
Butterworth High-Pass & Bandpass Filters: For noise reduction and signal isolation
Z-Score Normalization: Detect extreme moves
Modular MA Framework: Plug-and-play MA type selector for quick experiments
⚙️ User Inputs (Grouped)
📌 Strategy Settings
Trade Direction: Long, Short, or Both
User-defined base risk (%)
📌 Entry Filters
Source type (hl2 default)
Vortex Length and Velocity Length
Super Smoother length
Volume Velocity length
📌 Risk & TP Settings
ATR Length, SL Multiplier, TP Multiplier
Per-hour TP/SL & risk percentages
📌 Time Filter
Toggle & configure 3 active trade hours
✅ Execution Logic
Strategy orders are submitted using strategy entry with calculated qty and a stop trigger.
Exits are handled by strategy exit with both SL and TP conditions.
Ensures each entry aligns with direction, trend filter, and volume momentum.
📈 Ideal For
Intraday futures traders (e.g., CME ES1!)
Traders needing hour-by-hour performance tuning
Strategies requiring advanced smoothing and signal validation
Quantitative backtesters analyzing risk-adjusted performance
Vortex Indicator with HistogramThis is a simple script showing a standard Vortex Indicator along with a histogram that displays the difference between the Vortex lines.
Momentum and Momentum ChangeThis is a simple script, showing a line for the 14-day momentum (changes in price) along with a histogram that displays the change in momentum (an indicator of price acceleration).
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.
RSI Long Only with Confirmed CrossbacksThis RSI-based long-only strategy aims to identify and trade potential reversals with confirmation to reduce false signals. It enters a long position only after the Relative Strength Index (RSI) first dips below a specified oversold threshold (default 44) and then crosses back above it, signaling a possible bullish reversal with momentum. The strategy avoids premature entries by requiring this two-step confirmation. Similarly, it exits the long position only after RSI first rises above the overbought threshold (default 70) and then crosses back below it, indicating a potential loss of bullish momentum. By waiting for RSI to travel beyond the thresholds and then revert, the strategy attempts to capture stronger and more reliable directional moves while filtering out temporary spikes.
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.
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.