3+ Consecutive Higher or Lower Closes (Full Highlight)This indicator identifies 3 or more sequential bars of higher/lower candle closes and highlights them on the chart.
Candle colour is adjustable.
This is the first edition and has a small issue where it only starts highlighting from the 3rd bar in the sequence.
I'll continue working on this to try to debug
Indicatori e strategie
Price Channel MarkerThis indicator identifies a dynamic price channel based on the most relevant recent price action. It draws two horizontal lines:
* 🔴 Red Line – Marks the high of the most recent red candle (bearish) whose high is just below the current price. It selects the red candle with the high closest in price to the current close, and ensures it is from a valid historical context (ignoring recent highs above the current price).
* 🟢 Green Line – Marks the low of the most recent green candle (bullish) whose low is just above the current price, also selected based on proximity to the current price.
Together, these two lines define a potential price compression zone or "trap" area — showing where price may currently be trading between recent supply (red candle) and demand (green candle). The lines update dynamically and extend into the future to help visualize breakout or rejection levels.
Use Cases:
* Spot potential breakout zones.
* Define short-term support and resistance.
* Filter for entries in range-bound or squeeze conditions.
Customization:
* Adjustable lookback range (up to 5000 bars).
* Colors and line style are easily customizable.
ian_Trado v15 Trend Entry Filter# 📈 ian_Trado v15 Trend Entry Filter (Pine Script v6)
The **ian_Trado v15** is a multi-factor **trend confirmation filter** for NASDAQ (NAS100), Dow Jones (DJ30), Gold (XAU), DAX, and USDJPY.
It combines **EMA structure**, **Donchian channel breakout**, **MACD histogram momentum**, **Volume confirmation**, and a **Range Compression Filter** to avoid entering during choppy or sideways markets.
✅ Designed for **bot deployment** (e.g., grid bots, long/short breakout bots) or **manual trading**.
---
## 🔍 How This Filter Works:
1. **EMA Trend Confirmation**
- Long Trend: EMA(1) > EMA(5) > EMA(60)
- Short Trend: EMA(1) < EMA(5) < EMA(60)
2. **Donchian Channel Width Expansion**
- Only allows trades when the **breakout width** exceeds a minimum threshold.
3. **MACD Histogram Slope Filter (Optional)**
- Confirms momentum building in the direction of the trend.
- Strict Mode: MACD histogram must consistently rise or fall over 3 bars.
4. **Volume Filter (Optional)**
- Ensures volume supports the move (filters out weak conditions).
5. **Range Compression Filter (Optional)**
- Avoids entries during sideways chop.
6. **Cooldown Control**
- Limits overtrading by requiring spacing between entries.
7. **Exit Conditions**
- Gray dot appears when trending conditions are no longer valid.
---
## ⚙️ Settings Explained:
| Setting | Description |
|:--------|:------------|
| **Cooldown Bars** | Minimum bars between consecutive entries |
| **Profit Target (%)** | Visual profit marker for exit tracking |
| **Donchian Channel Length** | Lookback period for detecting breakout width |
| **Minimum Donchian Width** | Threshold to confirm meaningful breakouts |
| **Volume Lookback Period** | Average volume validation window |
| **Box Range (Range Compression)** | Max allowed price range over lookback bars |
| **Range Compression Bars** | Number of bars to check for range compression |
| **Strict MACD Filter** | Use stricter MACD slope checks |
---
## 📊 Recommended Settings by Instrument (1H Chart):
| Asset | Min Donchian Width | Range Compression | Profit Target |
|:------|:-------------------|:------------------|:--------------|
| **NAS100** (Nasdaq) | 300–450 pts | 400 pts / 40 bars | 1.5% |
| **DJ30** (Dow Jones) | 400–600 pts | 500 pts / 40 bars | 1.0–1.5% |
| **XAU/USD** (Gold) | 10–15 pts | 8 pts / 30 bars | 0.8–1.2% |
| **DAX40** (Germany) | 200–300 pts | 250 pts / 40 bars | 1.0% |
| **USD/JPY** (Forex) | 0.5–0.8 pts | 0.4 pts / 40 bars | 0.5–0.8% |
---
## 🔔 Alerts Available:
- Long Entry
- Short Entry
- Exit Zone
> **Note:** Volume filter may be disabled if volume is unreliable (e.g., some forex pairs).
---
## 📅 Version:
- **ian_Trado v15** — April 2025
- Built with **Pine Script v6** for maximum stability
- Clean toggling and plotting logic (no `na` errors)
MACD Multi-Timeframe x4 (Custom Params)■About this indicator
・This indicator can display 4 MACD lines for different time frames. (Multi-time framework)
・The color of the MACD line changes when the MACD has a golden or dead cross.
All MACDs can be set individually for long time period, short time period, and signal smoothing.
All MACDs can show/hide MACD lines, signal lines, histograms, and select colors.
■Explanation of effective usage
By displaying MACDs in multiple time frames, you can time the push.
For example, let's say you have three MACDs: one weekly, one daily, and one hour.
With the weekly and daily MACDs continuing to golden cross, the timing for the hourly MACD to golden cross is considered a push opportunity.
An example chart is attached below for your reference.
The area circled vertically is a push-buying opportunity.
Yellow-green: Weekly Green: Daily Light blue: Hourly
-------------------------------------------------------------------------------------------------------------
■このインジケーターについて
・このインジケーターは別の時間軸の4本のMACDを表示させることが出来ます。(マルチタイムフレームワーク)
・MACDがゴールデンクロス・デッドクロスした場合にMACDラインの色が変化します。
・全てのMACDについて個別に長期の期間・短期の期間・シグナルの平滑化を設定できます。
・全てのMACDはMACDライン・シグナルライン・ヒストグラムの表示/非表示、色の選択ができます。
■有効な使い方の説明
マルチタイムフレームでMACDを表示することで、押し目のタイミングを計ることが出来ます。
例えば、3本のMACDを1週間・1日・1時間とします。
週足と日足のMACDがゴールデンクロスを継続した状態で、1時間足のMACDがゴールデンクロスしてくるタイミングは押し目買いのチャンスと考えられます。
以下に例題のチャートを付けますので、参考にしてください。
縦に囲った辺りが押し目買いのチャンスになります。
黄緑:週足 緑:日足 水色:1時間足
Multi-Timeframe Closures with Signals month week dayMulti-Timeframe Price Anchoring Indicator (Monthly, Weekly, Daily)
This indicator provides a powerful visual framework for analyzing price action across three major timeframes: monthly, weekly, and daily. It plots the closing prices of each timeframe directly on the chart to help traders assess where current price stands in relation to significant historical levels.
🔍 Core Features:
Monthly, Weekly, and Daily Close Lines: Automatically updated at the start of each new period.
Color-coded Price Anchors: Each timeframe is visually distinct for fast interpretation.
Multi-timeframe Awareness: Helps you identify trend alignment or divergence across different time horizons.
Long & Short Bias Signals: The script can optionally display long or short suggestions based on where the current price stands relative to the anchored closing prices.
📈 How to Use:
Trend Confirmation: If price is consistently above all three levels, it signals a strong bullish trend (potential long bias). If it’s below, the opposite applies (short bias).
Reversal or Pullback Zones: When price becomes extended far above/below the monthly and weekly closes, it may suggest overbought/oversold conditions and the possibility of a reversal or retracement.
Intraday Alignment: Useful for traders who want to enter positions on lower timeframes while being aware of higher timeframe trends.
This indicator is ideal for swing traders, day traders, and position traders who want to anchor their decisions to meaningful multi-timeframe reference points.
Smart Adaptive MACDAn advanced MACD variant that dynamically adapts to market volatility using ATR-based scaling.
Key Features:
Volatility-sensitive MACD and Signal lengths
Optional smoothed MACD line
Dynamic histogram heatmap (strong vs. weak momentum)
Built-in Regular and Hidden Divergence detection
Clear visual signals via solid (regular) and dashed (hidden) divergence lines
What makes this different:
Unlike traditional MACD indicators with fixed-length settings, this version adapts in real time
to changing volatility conditions. It shortens during high-momentum environments for faster
reaction, and lengthens during low-volatility phases to reduce noise. This allows better
alignment with market behavior and cleaner momentum signals.
Divergence Detection – How It Works
The Smart Adaptive MACD detects both regular and hidden divergences by comparing price action with the smoothed MACD line. It uses recent pivot highs and lows to evaluate divergence and draws lines on the chart when conditions are met.
Regular Divergence Detection
This type of divergence signals potential reversals. It occurs when the price moves in one
direction while the MACD moves in the opposite.
Bullish Regular Divergence:
Price makes lower lows, but MACD makes higher lows.
Result: A solid green line is plotted beneath the MACD curve.
Bearish Regular Divergence:
Price makes higher highs, but MACD makes lower highs.
Result: A solid red line is plotted above the MACD curve.
Hidden Divergence Detection
This type of divergence signals trend continuation. It occurs when price pulls back slightly,
but the MACD shows deeper movement in the opposite direction.
Bullish Hidden Divergence:
Price makes higher lows, but MACD makes lower lows.
Result: A dashed green line is plotted below the MACD curve.
Bearish Hidden Divergence:
Price makes lower highs, but MACD makes higher highs.
Result: A dashed red line is plotted above the MACD curve.
How to Use:
This tool is best used alongside price structure, key support/resistance levels, or as a
secondary confirmation for your trend or reversal strategy. It is designed to enhance your
interpretation of market momentum and divergence without needing extra chart clutter.
Disclaimer:
This script is provided for educational and informational purposes only. It is not intended as
financial advice or a recommendation to buy or sell any asset. Always conduct your own
research and consult with a licensed financial advisor before making trading decisions. Use
at your own risk.
License:
This script is published under the Mozilla Public License 2.0 and is fully open-source.
Built by AresIQ | 2025
Median Price RSI DeviationThis indicator is a smoothed RSI-based trend filter that combines median price smoothing, customizable moving averages, and standard deviation bands to identify bullish or bearish conditions:
=> It first smooths price using a median filter.
=> Then it calculates RSI on that smoothed price.
=> The RSI is further smoothed using a selectable moving average (e.g., DEMA, EMA).
=> Standard deviation bands are applied around this smoothed RSI.
Signals:
=> A bullish signal is triggered when the upper band exceeds a long threshold (default 50).
=> A bearish signal occurs when the smoothed RSI drops below a short threshold (default 40).
Hippo Battlefield - Bulls VS Bears 20 bars## Hippo Battlefield – Bulls VS Bears (20 Bars)
**What it is**
A multi-dimensional momentum-and-sentiment oscillator that combines classic Bull/Bear Power with ATR- or peak-normalization, then layers on RSI and MACD-derived metrics into:
1. **A colored bar series** showing net Bull+Bear Power strength over the last 20 bars,
2. **A dynamic table** of each of those 20 BBP values (grouped into four 5-bar “quartals”), with symbols, per-bar change, and rolling averages, and
3. **A composite “Weighted BBP” histogram** blending normalized RSI, MACD, and BBP into a single view.
---
### Key Inputs
- **Length (EMA)** – look-back for the underlying EMA (default 60)
- **Normalization Length** – look-back window for peak-normalization (default 60)
- **Use ATR for Norm.** – toggle ATR-based normalization vs. highest-abs(BBP)
- **Show Tables** – toggle the bottom-right 21×11 grid of raw and average BBP values
---
### What You See
#### 1. Colored Bars (Overlay = false)
- Bars are colored by normalized BBP intensity:
- Extreme Bull (≥+10): deep blue
- Strong Bull (+5 to +10): green/yellow
- Weak Bull (+0 to +5): dark green
- Weak Bear (–0 to –5): dark red
- Strong Bear (–5 to –10): pink/red
- Extreme Bear (<–10): magenta
#### 2. Bottom-Right Table (20 Bars of Data)
- Divided into four columns (0–4, 5–9, 10–14, 15–19 bars ago) and one “average” row.
- Each cell shows:
1. Bar index (1–20),
2. Normalized BBP value (to four decimals),
3. Direction symbol (↑/↓/=),
4. Bar-to-bar change (± value),
5. A separator “|”.
- At the very bottom, each column’s 5-bar average is displayed as “Avg: X.XXXX” with a dot marker.
#### 3. Top-Center Mini-Table
- When ≥20 bars have elapsed, shows the date at 20 bars ago and the average BBP across the full 20-bar window.
#### 4. Normalized RSI Line
- Rescales the classic 14-period RSI into a –20…+20 band to align with BBP.
#### 5. MACD Lines (Hidden) & Composite Histogram
- MACD and signal lines are calculated but not plotted by default.
- A “Weighted BBP” histogram combines:
- 20% normalized RSI,
- 20% average of (MACD + signal + normalized BBP),
- 60% normalized BBP
- Plotted as columns, color-coded by strength using the same palette as the main bars.
#### 6. Middle Reference Line
- A horizontal zero line to anchor over/under-zero readings.
---
### How to Use It
- **Trend confirmation**: Strong blue/green bars alongside a rising histogram suggest bull conviction; strong reds/magentas signal bear dominance.
- **Divergence spotting**: Watch for price making new highs/lows while BBP or the histogram fails to follow.
- **Quartal analysis**: The 5-bar group averages can reveal whether recent momentum is accelerating or waning.
- **Cross-indicator weighting**: Because RSI, MACD, and raw BBP all feed into the final histogram, you get a smoothed, blended view of momentum shifts.
---
**Tip:** Tweak the EMA and normalization length to suit your preferred timeframe (e.g. shorter for intraday scalps, longer for swing trades). Enable/disable the table if you prefer a cleaner pane.
Coinbase BTC Premium by BIGTAKERBTC Premium Gap Analysis: Binance, Coinbase, Upbit
This indicator provides real-time analysis and visualization of the premium gap between the Binance BTCUSDT price and the BTC prices on Coinbase (BTCUSD) and Upbit (BTCKRW).
Key Features
Coinbase Premium Gap
Measures the price difference between Coinbase and Binance as a percentage.
To improve visibility, the Coinbase premium is visually amplified by 10x.
Upbit Premium Gap
Calculates the premium by comparing Upbit's BTCKRW price (converted into USD using the real-time USDKRW exchange rate) against Binance BTCUSDT.
Dynamic Color Coding
Premiums above 0% are displayed in lime green, indicating positive premiums.
Premiums below 0% are displayed in red, indicating discounts.
Real-Time Labels
Displays real-time premium values for both Coinbase and Upbit on the right side of the chart.
Additional Notes
Upbit premiums are adjusted for the USD/KRW exchange rate to ensure accurate USD-based comparison.
The Coinbase premium is magnified visually (10x) to better capture minor movements, while the actual premium value remains correctly displayed.
The indicator is optimized for traders who monitor global BTC market price disparities across major exchanges.
How to Use
Quickly track global BTC price discrepancies across Binance, Coinbase, and Upbit.
Detect "Kimchi Premium" conditions in the Korean market through Upbit premiums.
Analyze buying and selling pressure in North American markets through Coinbase premiums.
Rawstocks 15 Minute ModelRawstocks 15-Minute Model
The Rawstocks 15-Minute Model is a precision intraday trading strategy designed for the US stock market (9:30 AM - 4:00 PM ET), optimized for the 15-minute timeframe. It combines institutional order flow concepts with Fibonacci retracements to identify high-probability reversal setups while enforcing strict risk management and session-based rules.
Key Features
Time-Based Execution
Trading Hours: 9:30 AM - 4:00 PM ET (no new entries after 4:00 PM)
Force Close: All positions auto-exit at 4:30 PM ET (prevents overnight risk)
Entry Logic
Order Block + Fib Confluence:
Identifies institutional order blocks (previous swing highs/lows)
Requires price pullback to 61.8% or 79% Fibonacci level
Liquidity Confirmation:
Waits for stop runs (liquidity sweeps) before reversal entries
Exit Rules
Stop Loss: 1x ATR (14) from entry
Take Profit: 2:1 Risk-Reward (adjustable)
Visual Signals
Green Triangle: Valid long setup (pullback to bullish OB + Fib)
Red Triangle: Valid short setup (pullback to bearish OB + Fib)
Blue/Purple Background: Highlights active trading vs. close period
How It Works
Identify the Setup
Wait for a strong impulse move (break of structure)
Mark the order block (institutional zone)
Confirm Pullback
Price must retrace to 61.8% or 79% Fib level
Must occur within trading hours (9:30 AM - 4:00 PM)
Enter on Confirmation
Long: Break of pullback candle high (stop below recent swing low)
Short: Break of pullback candle low (stop above recent swing high)
Manage the Trade
Trail stop or exit at 2R (risk-to-reward)
All positions close at 4:30 PM sharp
Linear Regression Slope The Linear Regression Slope provides a quantitative measure of trend direction. It fits a linear regression line to the past N closing prices and calculates the slope, representing the average rate of price change per bar.
To ensure comparability across assets and timeframes, the slope is normalized by the ATR over a shorter window. This produces a volatility-adjusted measure which allows for the slope to be interpreted relative to typical price fluctuations.
Mathematically, the slope is derived by minimizing the sum of squared deviations between actual prices and the fitted regression line. A positive normalized slope indicate upwards movement; a negative slope indicate downwards movement. Persistent values near zero could indicate an absence of clear trend, with price dominated by short-term fluctuations or noise.
The definition of a trend depends on the period of observation. The lookback setting should be set based on to the desired timeframe. Shorter lookbacks will respond faster to recent changes but may be more sensitive to noise, while longer lookbacks will emphasize broader structures.
While effective at quantifying existing trends, this method is not predictive. Sudden regime changes, volatility shocks, and non-linear dynamics can all cause rapid slope reversals. Therefore, it is best applied as part of a broader analytical framework.
In summary, the Linear Regression Slope quantifies price direction and serves as a measurable supplement to the visual assessment of trends on price charts.
Additional Features:
Option to display or hide the normalized slope line.
Option to enable background coloring when the slope is above or below zero.
ATR Based Zigzag w EMAThe "ATR Based Zigzag with EMA" indicator is a refined trend-following tool designed for traders who demand clarity, precision, and robust trend detection. This script uses an ATR (Average True Range)-based breakout mechanism to dynamically determine the current market trend, while overlaying a clean, smoothed EMA (Exponential Moving Average) line to visually represent the active directional bias.
The indicator continuously tracks new swing highs and lows based on ATR volatility thresholds. When price moves sufficiently against the current trend — exceeding an ATR-multiplied distance — the trend is considered reversed. This adaptive method ensures that trend flips are based not on arbitrary price action, but on meaningful, volatility-adjusted movements.
Instead of plotting zigzag-style pivots which can create visual noise, the indicator draws a single, smooth EMA line calculated from the median price ((high + low) / 2). The color of the line shifts instantly based on the active trend: green (or your customized color) for uptrends, and red for downtrends. In addition, individual price bars are optionally colored to match the trend, further enhancing at-a-glance clarity without cluttering the chart.
Key user-defined inputs include the ATR length, ATR multiplier (sensitivity for trend flips), EMA smoothing length (responsiveness of the trend line), and full color customization for uptrend and downtrend states.
This indicator excels at providing a clear and immediate understanding of trend conditions, making it highly effective for:
Trend-following strategies
Reversal spotting based on volatility breaks
Entry/exit confirmation
Visual chart cleanliness and minimalism
Whether used standalone or alongside other tools, the "ATR Based Zigzag with EMA" offers a disciplined, volatility-sensitive view of market structure — engineered for traders who refuse to tolerate noise, hesitation, or ambiguity in their decision-making.
Trend and Trendline DetectorTrend and Trendline Detector
Overview
The Trend and Trendline Detector indicator provides both major and minor trend analysis using Simple Moving Averages (SMA) and automatically plots dynamic support and resistance trendlines based on pivot highs and lows.
Key Features
Major Trend Detection: Uses a configurable SMA to determine primary market direction.
Minor Trend Visualization: Optional minor SMA with color-coded line segments to mark smaller trend fluctuations.
Dynamic Pivot Trendlines: Automatically detects pivot highs/lows and draws major (solid) and minor (dashed) trendlines, with user-controlled extension modes.
Customizable Inputs: User can adjust SMA lengths, pivot look back/look forward periods, line extend mode, and toggle features on/off.
John's Sig PROJohn's Sig PRO is a powerful Wyckoff-style trade detection tool that identifies potential long and short setups based on pivot formations, trading range analysis, and optional confluence filters.
🔹 Core Features:
Pivot-Based Springs and Upthrusts (customizable "Loose" or "Strict" setups)
Dynamic Risk Management:
Static % Risk OR ATR-based stops
2 Risk/Reward Targets (Target 1 and Target 2)
Volume Confirmation (optional)
Dynamic Range Monitoring: Highest high/Lowest low over user-defined periods
🔹 Optional Setup Filters (for higher probability entries):
✅ EMA Filter (Price above/below EMA)
✅ RSI Oversold/Overbought Confirmation
✅ MACD Cross Confirmation
✅ VWAP Filter (Price above/below VWAP)
✅ SuperTrend Direction Confirmation
🔹 Visual Highlights:
Entry, Stoploss, Target 1, Target 2 auto-plotted with lines
Setup labels colored based on strength (Loose/Strict)
Real-time alert generation (LONG/SHORT)
🔹 How to Use:
Enable Loose Springs for more aggressive setups or keep strict validation.
Customize risk settings: ATR-based dynamic stops or static pivot % risk.
Turn on optional filters to tighten your entry criteria.
Watch for plotted signals and set alerts!
⚡ Ideal For:
Intraday Traders
Swing Traders
Wyckoff Enthusiasts
Traders wanting automated pivot-based signals + multi-filter confluence
Created with ❤️ by John.
Trade smart, not hard!
Day Range DividerThe indicator divides the chart into Israeli trading days, starting at one o’clock after midnight and ending a minute before the next midnight, marking each day’s open with a thin vertical line whose color and width you can choose. A label with the day’s name (in Hebrew) can appear on the very first bar of the session, while another label is placed midway through the previous day, beneath the candles at a fixed distance from the bottom so it doesn’t obscure price. You can adjust the label’s color, size, and letter spacing, customize the line style, and decide whether to show the early-session label. The indicator ignores Saturday and Sunday, works on any intraday timeframe, never repaints after plotting, and lets you quickly spot daily sequences and time-of-day patterns for market analysis.
2 MA + Strat Candle ColorsThe "2 MA + Strat Candle Colors" indicator combines two customizable moving averages (MAs) with a strategic candle-coloring system to help traders analyze trends and price action. Here’s a breakdown of its features:
1. Two Moving Averages (MAs):
MA 1 & MA 2 Settings:
Users can select between 7 MA types for each line: SMA, EMA, WMA, HMA, VWMA, LSMA, SMMA.
Adjustable periods and price sources (e.g., close, open) for both MAs.
Default settings: MA 1 = 9-period EMA, MA 2 = 20-period EMA.
Plotting:
MA 1 is blue, MA 2 is red (colors customizable via inputs).
Crossovers between the MAs can signal trend changes.
2. Strategic Candle Coloring:
Candles are colored based on their relationship to the previous candle:
Green (Bullish): "Two-Up Bar" – current high > prior high, and low does not break prior low.
Red (Bearish): "Two-Down Bar" – current low < prior low, and high does not break prior high.
Purple (Outside Bar): "Three Bar" – current candle engulfs the prior candle (higher high and lower low).
Yellow (Inside Bar): "One Bar" – current candle is contained within the prior candle’s range.
Candle coloring is based on:
Global M2 Money Supply Top20 + Offset & WaveThe M2 Top20 is a global aggregation of the M2 money supply from the 20 largest economies in the world , providing a comprehensive view of the total liquidity in the global financial system. It is expressed in trillions of USD.
This script calculates and visualizes the M2 Money Supply of the Top 20 Global Economies, adjusted to various timeframes (4H, 1D, 1W, 1M) with customizable offset adjustments (in days) from -1000 days to +1000 days. This indicator includes data from the Americas, Europe, Africa, and the Asia Middle East , offering a diverse and balanced representation of major economic regions. The M2 of each country has been converted to USD.
Additionally, the user can set a minimum and maximum offset to create a wave around the main offset and expand the comparison.
Combining these options, this indicator enables users to visualize a range of the global money supply, making it useful for market analysis, economic forecasting, and understanding macroeconomic trends. This indicator is particularly valuable for traders and analysts interested in understanding the dynamics of global monetary systems and their potential impact on financial markets.
Key Features:
Global M2 Money Supply calculation from the Top 20 Economies.
Adjustable Offset: Adjust the offset to align the indicator with the best bar. Adjustment in days, usable on different timeframes (1D, 1W, 4H, 1M).
Wave Projection: Displays a "probability cloud"—a smoothed area that shows the probable path of Bitcoin, derived from shifts in global liquidity.
Min/Max Offset Adjustments: Customizable offsets allow you to determine the range of future windows, helping to shape the wave and better identify liquidity-driven turning points.
Use Cases:
Economic Forecasting: Identify trends in global money supply and their potential market impact (e.g., historically leads Bitcoin price by +/- 78 days to +/-108 days).
Market Analysis: Track the growth or contraction of money supply across key economies.
Macro-Economic Analysis: Understand the relationship between monetary policies and market performance.
How to use:
Add the indicator to your chart.
Set the timeframe to 1D to customize the offset.
Set the Offset (in days).
Set the Offset Range Minimum and Maximum.
Show/Hide the Range Wave
.
Use offset = 0 to have the indicator align directly with the current data, without any shift, providing a baseline for comparison with the most recent market conditions.
Countries included in the M2 Top20:
China (CN), Japan (JP), South Korea (KR), Hong Kong (HK), Taiwan (TW), India (IN), Saudi Arabia (SA), Thailand (TH), Vietnam (VN), United Arab Emirates (AE), Malawi (MW) – Africa, United States (US), Canada (CA), Brazil (BR), Mexico (MX), Eurozone (EU), United Kingdom (GB), Russia (RU), Poland (PL), Switzerland (CH).
These countries were selected from the ranking of the World Economy Indicator of Trading View .
RSI with HMA & Momentum ZonesRSI with HMA & Momentum Zones — Indicator Description
This indicator combines Relative Strength Index (RSI) analysis with Hull Moving Averages (HMA) and Momentum Zone detection to provide a multi-layered view of market strength, trend shifts, and divergence signals.
It includes:
Main Features:
RSI Core:
Standard RSI calculated from a customizable source (close, open, etc.) with adjustable length.
A dynamic RSI Signal Line is plotted with selectable smoothing types (SMA, EMA, SMMA, WMA, VWMA) to enhance trend-following signals.
RSI crossovers of its signal line change color (green for bullish crossovers, red for bearish crossunders).
Hull Moving Averages (HMA):
Two HMA lines are plotted based on the RSI:
Short HMA (fast) and Long HMA (slow).
Color shifts indicate crossovers between RSI and Short HMA (short-term trend change) and Short HMA vs Long HMA (longer-term trend shifts).
Momentum Zones:
When the gap between the RSI and the Long HMA exceeds a user-defined threshold:
A green background highlights strong bullish momentum.
A red background highlights strong bearish momentum.
Helps visualize when momentum becomes extended.
Divergence Detection (Optional):
Regular and hidden bullish and bearish divergences are automatically detected between price and RSI.
Divergences are plotted on the RSI pane with labels ("Bull", "H Bull", "Bear", "H Bear").
Adjustable lookback settings for fine-tuning sensitivity.
Alerts are available for all divergence events.
Visual Enhancements:
A shaded cloud fills between RSI and its signal line, green for bullish bias and red for bearish bias.
Horizontal bands at 70, 50, and 30 levels to mark traditional RSI zones (overbought, neutral, oversold).
Customization Options:
All major components — RSI settings, Signal Line type, HMA lengths, Momentum Zone threshold, and Divergence controls — are fully adjustable.
Rate of Change HistogramExplanation of Modifications
Converting ROC to Histogram:
Original ROC: The ROC is calculated as roc = 100 * (source - source ) / source , plotted as a line oscillating around zero.
Modification: Instead of plotting roc as a line, it’s now plotted as a histogram using style=plot.style_columns. This makes the ROC values visually resemble the MACD histogram, with bars extending above or below the zero line based on momentum.
Applying MACD’s Four-Color Scheme:
Logic: The histogram’s color is determined by:
Above Zero (roc >= 0): Bright green (#26A69A) if ROC is rising (roc > roc ), light green (#B2DFDB) if falling (roc < roc ).
Below Zero (roc < 0): Bright red (#FF5252) if ROC is falling (roc < roc ), light red (#FFCDD2) if rising (roc > roc ).
Implementation: Used the exact color logic and hex codes from the MACD code, applied to the ROC histogram. This highlights momentum ebbs (falling ROC, fading waves) and flows (rising ROC, strengthening waves).
Removing Signal Line:
Unlike the previous attempt, no signal line is added. The histogram is purely the ROC value, ensuring it directly reflects price change momentum without additional smoothing, making it faster and more responsive to pulse waves, as you indicated ROC performs better than other oscillators.
Alert Conditions:
Added alerts to match the MACD’s logic, triggering when the ROC histogram crosses the zero line:
Rising to Falling: When roc >= 0 and roc < 0, signaling a potential wave peak (e.g., end of Wave 3 or C).
Falling to Rising: When roc <= 0 and roc > 0, indicating a potential wave bottom (e.g., start of Wave 1 or rebound).
These alerts help identify transitions in 3-4 wave pulse patterns.
Plotting:
Histogram: Plotted as columns (plot.style_columns) with the four-color scheme, directly representing ROC momentum.
Zero Line: Kept the gray zero line (#787B86) for reference, consistent with the MACD.
Removed ROC Line/Signal Line: Since you want the ROC to act as the histogram itself, no additional lines are plotted.
Inputs:
Retained the original length (default 9) and source (default close) inputs for consistency.
Removed signal-related inputs (e.g., signal_length, sma_signal) as they’re not needed for a pure ROC histogram.
How This ROC Histogram Works for Wave Pulses
Wave Alignment:
Above Zero (Bullish Momentum): Positive ROC bars indicate flows (e.g., impulse Waves 1, 3, or rebounds in Wave B/C). Bright green bars show accelerating momentum (strong pulses), while light green bars suggest fading momentum (potential wave tops).
Below Zero (Bearish Momentum): Negative ROC bars indicate ebbs (e.g., corrective Waves 2, 4, A, or C). Bright red bars show increasing bearish momentum (strong pullbacks), while light red bars suggest slowing declines (potential wave bottoms).
3-4 Wave Pulses:
In a 3-wave A-B-C correction: Wave A (down) shows bright red bars (falling ROC), Wave B (up) shows bright/light green bars (rising ROC), and Wave C (down) shifts back to red bars.
In a 4-wave consolidation: Alternating green/red bars highlight the rhythmic ebbs and flows as momentum oscillates.
Timing:
Zero-line crossovers mark wave transitions (e.g., from Wave 2 to Wave 3).
Color changes (e.g., bright to light green) signal momentum shifts within waves, helping identify pulse peaks/troughs.
Advantages Over MACD:
The ROC histogram is more responsive than the MACD histogram because ROC directly measures price change percentage, while MACD relies on moving average differences, which introduce lag. This makes the ROC histogram better for capturing rapid 3-4 wave pulses, as you noted.
Example Usage
For a stock with 3-4 wave pulses on a 5-minute chart:
Wave 1 (Flow): ROC rises above zero, histogram turns bright green (rising momentum), indicating a strong bullish pulse.
Wave 2 (Ebb): ROC falls below zero, histogram shifts to bright red (falling momentum), signaling a corrective pullback.
Wave 3 (Flow): ROC crosses back above zero, histogram becomes bright green again, confirming a powerful pulse.
Wave 4 (Ebb): ROC dips slightly, histogram turns light green (falling momentum above zero) or light red (rising momentum below zero), indicating consolidation.
Alerts trigger on zero-line crosses (e.g., from Wave 2 to Wave 3), helping time trades.
Settings Recommendations
Default (length=9): Works well for most time frames, balancing sensitivity and smoothness.
Intraday Pulses: Use length=5 or length=7 for faster signals on 5-minute or 15-minute charts.
Daily Charts: Try length=12 or length=14 for broader wave cycles.
Testing: Apply to a stock with clear wave patterns (e.g., tech stocks like AAPL or TSLA) and adjust length to match the pulse frequency you observe.
Notes
Confirmation: Pair the ROC histogram with price action (e.g., Fibonacci retracements, support/resistance) to validate wave counts, as momentum oscillators can be noisy in choppy markets.
Divergences: Watch for divergences (e.g., price makes a higher high, but ROC histogram bars are lower) to spot wave reversals, especially at Wave 3 or C ends.
Comparison to MACD: The ROC histogram is faster and more direct, making it ideal for short-term pulse waves, but it may be more volatile, so use with technical levels for precision.
My-Indicator - Global Liquidity & Money Supply M2 + Time OffsetThis script is designed to visualize a global liquidity and money supply index by combining data from various regions and, optionally, central bank activity. Visualizing this data on a chart allows you to see how central banks are intervening in the financial system and how the total amount of money in the economy is changing. Let’s take a look at how it works:
Central Bank Liquidity
Shows the actions of central banks (e.g. FED, ECB) providing short-term cash to commercial banks. If you see spikes or a steady increase in these indicators, it may suggest that liquidity is being increased through intervention, which often stimulates the market.
Money Supply
M2 money supply is a monetary aggregate that includes M1 (cash and current deposits) plus savings deposits, small term deposits, and other financial instruments that, while not as liquid as M1, can be quickly converted into cash. As a result, M2 provides a broader picture of the available money in the economy, which is useful for analyzing market conditions and potential economic trends.
How does it help investors?
It allows you to quickly see when central banks are injecting additional liquidity, which could signal higher prices.
It allows you to see trends in the money supply, which informs potential changes in inflation and the economic cycle.
Combining both sets of data provides a more complete picture – both in the short and long term – which makes it easier to predict upcoming price movements.
This allows investors to better respond to changes in central bank policy and broader monetary trends, increasing their chances of making better investment decisions.
Data Collection
The script retrieves money supply data for key markets such as the USA (USM2), Europe (EUM2), China (CNM2), and Japan (JPM2). It also offers additional money supply series for other markets—like Canada (CAM2), Great Britain (GBM2), Russia (RUM2), Brazil (BRM2), Mexico (MXM2), and New Zealand (NZM2)—with extra options (e.g., Australia, India, Korea, Indonesia, Malaysia, Sweden) disabled by default. Moreover, you can enable data for central bank liquidity (such as FED, RRP, TGA, ECB, PBC, BOJ, and other central banks), which are also disabled by default.
Index Calculation
The indicator calculates the index by adding together all the enabled money supply series (and the central bank data if activated) and then scales the sum by dividing it by 1,000,000,000,000 (one trillion). This scaling makes the resulting values more manageable and easier to read on the chart.
Time Offset Feature
A key feature of the script is the time offset. With the input parameter "Time Offset (days)", the user can shift the plotted index line by a specific number of days. The script converts the given offset in days into a number of bars based on the current chart's timeframe. This allows you to adjust for the delay between liquidity changes and their effect on asset prices.
Overall, the indicator plots a line on your chart representing the global liquidity and money supply index, allowing you to visually monitor trends and better understand how liquidity and central bank actions may influence market movements.
What makes this script different from others?
Every supported market—both major regions (USA, Eurozone, China, Japan, etc.) and additional ones—is available. You can toggle each series on or off, so you can view only Money Supply data, only Central Bank Liquidity, or any custom combination.
Separated Data Groups. Inputs are organized into clear groups (“Money Supply”, “Other Money Supply”, “Central Bank Liquidity”), making it easy to focus on just the data you need without clutter.
True Day‑Based Offset. This script converts your chosen “Time Offset (days)” into actual days regardless of timeframe. Whether you’re on a 5‑minute or daily chart, the index is always shifted by exactly the number of days you specify.
Stormer setupHere's a trading setup with reversal candle coloring and simple market structure analysis:
Based on the experienced trader Stormer (Alexandre Wolwacz), to be used with combined price action.
Key improvements added:
1. **Smart Reversal Candles**:
- Detects hammer/shooting star patterns and engulfing candles
- Colors candles based on confluence with market structure
- Teal for bullish reversals, Maroon for bearish reversals
2. **Dynamic Confluence System**:
- Uses MA trend direction to determine if SR levels should be prioritized
- Adjustable sensitivity threshold for SR proximity
- Combines price action with stochastic position
3. **Enhanced Market Structure**:
- Improved trend detection using ROC instead of slope
- Adaptive logic that uses SR levels when MA is flat
4. **Advanced Visualization**:
- Semi-transparent candle coloring preserves original colors
- Dotted SR lines with automatic cleanup
- Clear triangle markers for entries
5. **Efficiency Improvements**:
- Limited historical SR storage for better performance
- Automatic line management to prevent chart clutter
To use this enhanced version:
1. Bullish reversal candles appear teal when:
- Hammer/engulfing pattern forms
- Near support (if MA flat) or stochastic oversold
- Price above MA
2. Bearish reversal candles appear maroon when:
- Shooting star/engulfing pattern forms
- Near resistance (if MA flat) or stochastic overbought
- Price below MA
3. Signals combine all elements (MA position, stochastic, SR levels, and candle patterns) for higher probability trades
Zweig Breadth ThrustZweig Breadth Thrust Detector
This indicator tracks one of the rarest and most powerful bullish signals in market history: the Zweig Breadth Thrust.
It calculates the 10-day moving average of NYSE advancing stocks divided by the sum of advancing and declining stocks. When the breadth reading surges from deeply oversold (<0.40) to explosively bullish (>0.615) within just 10 trading days, it signals a momentum reset so intense that it often marks the start of major new bull runs.
Zweig Thrusts are extremely rare — but when they occur, historical odds favor significant market gains over the next 6 to 12 months.
This tool doesn't just chase price — it measures raw internal strength across the entire market.
When the masses panic, and the army of stocks surges together — that's when legends are made.
RSI_Heikinashi📜 Title:
Heikin-Ashi RSI Candle Plot with Multi-Timeframe Analysis and EMA Overlay
📖 Full Description:
This is an original custom indicator that transforms the traditional Relative Strength Index (RSI) into a Heikin-Ashi (HA) candle representation, allowing traders to visualize RSI trends with greater clarity, less noise, and multi-timeframe perspective.
🛠️ Core Concept and Original Method:
Rather than plotting a single RSI line, this script recalculates RSI into a Heikin-Ashi candle format, using a double EMA smoothing method on the RSI data itself.
Here's how the transformation works:
RSI Calculation:
RSI is computed traditionally using Wilder's Moving Average (RMA) for smoothing gains and losses.
The RSI period and price source are fully customizable (default length = 28, source = close).
Heikin-Ashi Style Smoothing (applied to RSI):
The HA Close is calculated as the EMA of the average between the current RSI and previous HA Close.
The HA Open is calculated as the EMA of the average between the previous HA Open and the current HA Close.
The HA High and HA Low are dynamically calculated based on the maximum/minimum values of the current RSI, HA Open, and HA Close.
Smoothing is done via 5-period EMA, which adds a unique layer of trend smoothing without traditional price-based HA calculation.
Multi-Timeframe Comparison:
In addition to plotting the chart timeframe HA RSI, the indicator retrieves the 1-hour timeframe HA RSI using request.security.
This allows traders to align trades with higher timeframe RSI trends, a powerful technique for multi-timeframe confirmation.
50 EMA Overlay:
A 50-period Exponential Moving Average (EMA) is plotted over both the chart timeframe HA RSI and the 1-hour HA RSI.
EMA acts as a trend filter or dynamic support/resistance for RSI behavior.
RSI Bands and Visual Aids:
Standard RSI bands at 70 (Overbought), 50 (Midline), and 30 (Oversold) are plotted.
A shaded background between the 30–70 levels helps highlight RSI range-bound movements versus breakout momentum.
🔥 Why this script is original and useful:
Unique Application:
This is not a simple RSI plot or standard Heikin-Ashi candle — it is a specialized smoothing method applied directly to RSI values for a clearer, noise-reduced momentum reading.
Multi-Timeframe Advantage:
Unlike typical RSI indicators, it includes a 1-hour timeframe comparison alongside the chart timeframe, improving decision-making across intraday and swing strategies.
Advanced Smoothing Logic:
Double EMA smoothing of RSI and HA-style recalculations offer a much smoother signal than traditional RSI or basic RSI/EMA crossovers.
Visualized Trend Strength:
Using colored candles instead of just a line enhances readability and gives an intuitive sense of momentum direction, strength, and possible reversals.
Fully Customizable:
Traders can adjust the RSI period and source depending on asset volatility or timeframe preferences.
📋 How to Use:
Look for HA RSI candles color changes for early momentum shifts.
Use the 50 EMA crossovers on HA RSI to confirm larger trend changes.
Compare chart timeframe vs 1H timeframe HA RSI for stronger signal alignment.
Watch for overbought/oversold breaks beyond the 70/30 bands for trade entries or exits.
⚙️ Inputs:
RSI Length (Default: 28)
RSI Source (Default: Close)
📢 Important Note:
This script is originally conceptualized and custom-built.
It is not a mashup of existing open-source indicators and introduces a new smoothing technique for RSI visualization.
🙏 Credits:
Script developed by Sri_RSI.