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.
Indicators and strategies
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.
Sessions by SHARK [Kyiv Time]Why Forex Sessions Matter
First of all, it is very convenient for a trader to structure their working hours. The best times to open positions are during the London Kill Zone (KZ) and New York Kill Zone (KZ). Based on what happens within each session, you can build your future analysis while considering the overall context.
We must understand that there are specific times of the day that are more or less volatile. Knowing this will help you determine when you should be looking for trade setups and when you should avoid them.
Trading outside of the Kill Zones can lead to holding positions for too long because market liquidity decreases, which in turn leads to lower volatility.
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.
Bar Count for XAUThis TradingView indicator labels every other five-minute candle for XAU during the current Beijing session, which runs from 06:00 to 05:00 the next day. It shows the actual bar numbers—1, 3, 5, and so on—only for today’s session; yesterday’s labels are automatically cleared at the new open. The tags appear just below each qualifying candle with no background box, and you can adjust the font size in the settings. In short, it gives you a clean, real-time visual of intraday bar order without clutter
M2 Global Liquidity Index [Custom Offsets]M2 Global Liquidity Index
Plots the global M2 money supply alongside price, with two user-configurable forward shifts to help you anticipate macro-driven moves in BTC (or any asset).
Key Features
Current M2 Index (no offset)
Offset A — shift M2 forward by N days (default 78)
Offset B — shift M2 forward by M days (default 109)
Extended Currencies toggle adds 9 additional central banks (CHF, CAD, INR, RUB, BRL, KRW, MXN, ZAR)
All lines share the left-hand axis and scale to trillions
Inputs
Offset A (days): integer ≥ 0 (default 78)
Offset B (days): integer ≥ 0 (default 109)
Include extended currencies?: on/off
How to Use
Add the indicator to any chart (overlay mode).
In Settings → Inputs, enter your desired lead times for Offset A and Offset B.
Toggle extended currencies if you need a broader “global liquidity” view.
Watch how price action (e.g. BTC) tracks the shifted M2 lines to spot potential turning points.
Why It Matters
Changes in money supply often lead risk assets by several weeks to months. This tool makes it easy to visualize and test those correlations directly on your favorite timeframe.
KeyLevelsPivotsIndicator Name: Key Levels with Pivots
This indicator identifies key support and resistance levels using pivot high and pivot low values derived from TradingView’s built-in functions (ta.pivothigh and ta.pivotlow). When a new pivot is detected, the indicator checks if a similar level—within a specified percentage threshold (for example, ±1%) of the pivot value—already exists. If no such level is present, a horizontal line is drawn at that pivot level.
The drawn level extends to the right, automatically updating until one of two conditions occurs:
A breakout takes place—defined as the price moving beyond the level by the specified percentage—and then the level is fixed (truncated) at the bar where the breakout occurred.
The level reaches a maximum age (expressed in bars, e.g., 750 bars for a daily timeframe which approximates 3 years). In this case, the level is fixed at that maximum age.
Once fixed, the level no longer updates, allowing traders to view historically significant support and resistance levels from today's date up to approximately three years back. Additionally, the indicator prevents the re-plotting of a level if a similar level already exists within the defined percentage threshold, thereby avoiding duplicate reflections of the same level unless a breakout occurs.
Gold/Silver RatioOverview
This indicator displays the Gold/Silver Ratio by dividing the price of gold (XAUUSD) by the price of silver (XAGUSD) on the same timeframe. It is a widely used tool in macroeconomic and precious metals analysis, helping traders and investors evaluate the relative value of gold compared to silver.
📈 What it does
Plots the ratio between gold and silver prices as a line on the chart.
Displays two key horizontal levels:
Overbought level at 90 (dashed red line).
Oversold level at 70 (dashed green line).
Highlights the chart background to show extreme conditions:
Red shading when the ratio exceeds 90 (gold is likely overvalued relative to silver).
Green shading when the ratio drops below 70 (silver is likely overvalued relative to gold).
🧠 How to Use
When the ratio exceeds 90, it suggests that gold may be overbought or silver may be undervalued. Historically, these have been good times to consider shifting exposure from gold to silver.
When the ratio falls below 70, it may indicate silver is overbought or gold is undervalued.
This tool is best used in conjunction with technical analysis, macroeconomic trends, or RSI/Bollinger Bands applied to the ratio.
⚙️ Inputs
This version of the script uses OANDA's XAUUSD and XAGUSD pairs for spot gold and silver prices. You may edit the request.security() calls to change data sources (e.g., FXCM, FOREXCOM, or CFD tickers from your broker).
✅ Best For:
Macro traders
Commodity investors
Ratio and spread traders
Long-term portfolio reallocators
[blackcat] L3 Dynamic CrossOVERVIEW
The L3 Dynamic Cross indicator is a powerful tool designed to assist traders in identifying potential buy and sell opportunities through the use of dynamic moving averages. This versatile script offers a wide range of customizable options, allowing users to tailor the moving averages to their specific needs and preferences. By providing clear visual cues and generating precise crossover signals, it helps traders make informed decisions about market trends and potential entry/exit points 📈💹.
FEATURES
Multiple Moving Average Types:
Simple Moving Average (SMA): Provides a straightforward average of prices over a specified period.
Exponential Moving Average (EMA): Gives more weight to recent prices, making it responsive to new information.
Weighted Moving Average (WMA): Assigns weights to all prices within the look-back period, giving more importance to recent prices.
Volume Weighted Moving Average (VWMA): Incorporates volume data to provide a more accurate representation of price movements.
Smoothed Moving Average (SMMA): Averages out fluctuations to create a smoother trend line.
Double Exponential Moving Average (DEMA): Reduces lag by applying two layers of exponential smoothing.
Triple Exponential Moving Average (TEMA): Further reduces lag with three layers of exponential smoothing.
Hull Moving Average (HullMA): Combines weighted moving averages to minimize lag and noise.
Super Smoother Moving Average (SSMA): Uses a sophisticated algorithm to smooth out price data while preserving trend direction.
Zero-Lag Exponential Moving Average (ZEMA): Eliminates lag entirely by adjusting the calculation method.
Triangular Moving Average (TMA): Applies a double smoothing process to reduce volatility and enhance trend identification.
Customizable Parameters:
Length: Adjust the period for both fast and slow moving averages to match your trading style.
Source: Select different price sources such as close, open, high, or low for more nuanced analysis.
Visual Representation:
Fast MA: Displayed as a green line representing shorter-term trends.
Slow MA: Shown as a red line indicating longer-term trends.
Crossover Signals:
Generate buy ('BUY') and sell ('SELL') labels based on crossover events between the fast and slow moving averages 🏷️.
Clear visual cues help traders quickly identify potential entry and exit points.
Alert Functionality:
Receive real-time notifications when crossover conditions are met, ensuring timely action 🔔.
Customizable alert messages for personalized trading strategies.
Advanced Trade Management:
Support for pyramiding levels allows traders to manage multiple positions effectively.
Fine-tune your risk management by setting the number of allowed trades per signal.
HOW TO USE
Adding the Indicator:
Open your TradingView chart and go to the indicators list.
Search for L3 Dynamic Cross and add it to your chart.
Configuring Settings:
Choose your desired Moving Average Type from the dropdown menu.
Adjust the Fast MA Length and Slow MA Length according to your trading timeframe.
Select appropriate Price Sources for both fast and slow moving averages.
Monitoring Signals:
Observe the plotted lines on the chart to track short-term and long-term trends.
Look for buy and sell labels that indicate potential trade opportunities.
Setting Up Alerts:
Enable alerts based on crossover conditions to receive instant notifications.
Customize alert messages to suit your trading plan.
Managing Positions:
Utilize the pyramiding feature to handle multiple entries and exits efficiently.
Keep track of your position sizes relative to the defined pyramiding levels.
Combining with Other Tools:
Integrate this indicator with other technical analysis tools for confirmation.
Use additional filters like volume, RSI, or MACD to enhance decision-making accuracy.
LIMITATIONS
Market Conditions: The effectiveness of the indicator may vary in highly volatile or sideways markets. Be cautious during periods of low liquidity or sudden price spikes 🌪️.
Parameter Sensitivity: Different moving average types and lengths can produce varying results. Experiment with settings to find what works best for your asset class and timeframe.
False Signals: Like any technical indicator, false signals can occur. Always confirm signals with other forms of analysis before executing trades.
NOTES
Historical Data: Ensure you have enough historical data loaded into your chart for accurate moving average calculations.
Backtesting: Thoroughly backtest the indicator on various assets and timeframes using demo accounts before deploying it in live trading environments 🔍.
Customization: Feel free to adjust colors, line widths, and label styles to better fit your chart aesthetics and personal preferences.
EXAMPLE STRATEGIES
Trend Following: Use the indicator to ride trends by entering positions when the fast MA crosses above/below the slow MA and exiting when the opposite occurs.
Mean Reversion: Identify overbought/oversold conditions by combining the indicator with oscillators like RSI or Stochastic. Enter counter-trend positions when the moving averages diverge significantly from the mean.
Scalping: Apply tight moving average settings to capture small, quick profits in intraday trading. Combine with volume indicators to filter out weak signals.
Weekly Open Range [BigBeluga]
A precision weekly range tracker that captures early market positioning from the first moments of the trading week.
By dynamically measuring the highest and lowest points from the first three candles after the Sunday 21:00 UTC open, the indicator builds a reactive support and resistance framework for the week ahead.
It also visualizes the active range with a dynamic box and provides live updates of the current price movement against the established range boundaries.
🔵 KEY FEATURES
Automatically marks the weekly open range starting at Sunday 21:00 UTC .
Identify maximum high and minimum low from the first 3 candles after the weekly open.
if isWeeklyOpen or isWeeklyOpen or isWeeklyOpen or isWeeklyOpen
h = math.max(high, range_box.get_top())
l = math.min(low, range_box.get_bottom())
Draws two horizontal lines from the range extremes, acting as dynamic support/resistance zones throughout the week.
Visualizes the range with a semi-transparent box for clear zone identification.
Includes a compact dashboard panel with:
- Symbol and current price with bullish or bearish bar indication with ▲ / ▼
- Current weekly high/low range values
🔵 USAGE
Treat the high and low of the range as support/resistance zones for the week.
Combine with volume analysis or liquidity tools for entry confirmation .
Refresh your key levels every week as the indicator resets each Sunday night .
Works great alongside Smart Money Concepts (ICT) strategies and weekly planning.
Weekly Open Range gives traders a reliable structure to anchor their week. With clear range mapping, breakout signals, and intuitive visuals, it becomes a valuable part of any strategic trading approach—especially when precision timing around liquidity zones is key.
Deviation Symmetry Breaker ~ C H I P ADeviation Symmetry Breaker ~ C H I P A is a custom trend breakout tool designed to detect directional shifts through raw deviation asymmetry around a median price baseline.
It uses:
A user-selectable price source (Close, High, Low, etc.)
Dual median smoothing to stabilize trend foundation without introducing moving average lag
Raw positive and negative deviation tracking for pure momentum extraction
Dynamic upper and lower breakout bands scaled by standard deviation
Independent band multipliers to fine-tune breakout sensitivity
This setup highlights powerful breakouts when price meaningfully separates from its balanced median behavior — helping traders capture early trend movements, volatility expansions, and structural shifts with minimal smoothing and no hidden moving averages.
Candle coloring responds directly to breakout status, using vibrant electric blue and red for immediate visual clarity on the chart.
Smart Breakout with ATR Stop-LossThe Smart Breakout indicator combines a classic 20-day Donchian channel breakout with a tight trailing stop, drawing green lines and “ENTRY” labels at the bar after a valid breakout, and red lines and “EXIT” label at the bar after a stop-loss breach.
By default it uses the chart’s timeframe to compute ATR and stops, but you can flip on Daily lock to freeze both ATR and price reads at the daily resolution—so your stops stay the same whether you view at 1s, 15 m, 4h or lower frequency bars.
Key features:
20-day Donchian breakout: entry when price closes above the highest high of the previous 20 bars
2 × ATR(14) trailing stop: initialized at entry and raised only when the new (close – 2 × ATR) exceeds the prior stop
Daily lock option: Ensures all ATR and close values are calculated on the daily timeframe, keeping stop levels consistent across resolutions
DDDDD: SET50 (40 Stocks) - % New 52W LowsDDDDD: SET50 - % New 52W Lows (40 Stocks)
This indicator measures the percentage of selected SET50 stocks making a new 52-week low, helping identify periods of extreme market fear that often align with long-term buying opportunities.
How It Works:
Tracks the daily closing prices of 40 major SET50 constituents.
A stock is counted when it closes at its lowest price over the past 252 trading days (approximately 1 year).
Calculates the percentage of new 52-week lows relative to 40 stocks.
Displays threshold lines to highlight levels of market panic.
📈 Threshold Levels:
Threshold Line Color Level (%) Interpretation Action
30% Threshold Orange 30% Early signs of stress Start monitoring opportunities
33% Threshold Yellow 33% Confirmed panic Consider gradual accumulation
50% Panic Zone Red 50% Extreme market panic Aggressive accumulation zone
📌 Important Notes:
Why not use the full 50 stocks?
Due to TradingView Pine Script's current technical limits, a script cannot request data for more than 40 symbols efficiently.
Therefore, this indicator uses 40 representative SET50 stocks to ensure optimal performance without exceeding system limits.
The selected stocks are diversified across major sectors to maintain reliability.
🔥 Key Insights:
Historically, spikes above 30%-50% of stocks making new lows have coincided with major market bottoms (e.g., 2011, 2020).
Higher simultaneous new lows = stronger potential for long-term recovery.
PowerHouse SwiftEdge AI v2.10 with Custom Filters & AI AnalysisPowerHouse SwiftEdge AI v2.10 with Custom Filters & AI Analysis
Overview
PowerHouse SwiftEdge AI v2.10 is an advanced TradingView Pine Script indicator designed to identify high-probability trading setups by combining pivot-based structure analysis, multi-timeframe trend detection, and adaptive AI-driven signal filtering. The script integrates Change of Character (CHoCH) and Break of Structure (BOS) signals with customizable momentum, volume, breakout, and trend filters to enhance trade precision. Additionally, it offers an optional AI Market Analysis module that predicts future price trends across multiple timeframes, providing traders with a comprehensive market outlook.
The script is highly customizable, allowing users to tailor inputs to their trading style, whether for scalping, swing trading, or long-term strategies. It is suitable for all asset classes, including stocks, forex, crypto, and commodities, and performs optimally on timeframes ranging from 1-minute to daily charts.
Key Features
Pivot-Based Signal Generation:
Identifies pivot highs and lows to detect CHoCH (reversal patterns) and BOS (continuation patterns).
Signals are plotted as "Buy" or "Sell" labels with optional "Get Ready" pre-signals to prepare traders for potential setups.
Take-profit (TP) levels are automatically calculated based on user-defined points, with optional TP box visualization.
Multi-Timeframe Trend Analysis:
Analyzes trends across seven timeframes (1M, 5M, 15M, 30M, 1H, 4H, D) using EMA and VWAP to determine bullish, bearish, or neutral conditions.
Displays a futuristic AI-Trend Matrix dashboard showing trend direction, strength, and confidence levels for quick decision-making.
Customizable Signal Filters:
Momentum Filter: Ensures signals align with significant price changes, adjusted dynamically using ATR-based volatility.
Higher Timeframe Trend Filter: Requires signals to align with the trend of a user-selected higher timeframe (e.g., 1H).
Lower Timeframe Trend Filter: Prevents signals that conflict with the trend of a user-selected lower timeframe (e.g., 5M).
Volume Filter: Optionally requires above-average volume to confirm signals.
Breakout Filter: Optionally requires price to break previous highs/lows for signal validation.
Repeated Signal Restriction: Prevents consecutive signals in the same trend direction until the trend changes on a user-defined timeframe.
AI-Driven Adaptivity:
Incorporates Cumulative Volume Delta (CVD) to assess buying/selling pressure and classify market volatility (Low, Medium, High).
Uses ATR to dynamically adjust momentum thresholds, ensuring signals adapt to current market conditions.
Optional AI Market Analysis module predicts trends across multiple timeframes by combining trend, momentum, and volatility scores.
Visual Elements:
Plots CHoCH and BOS levels as horizontal lines with distinct colors (aqua for CHoCH sell, lime for CHoCH buy, fuchsia for BOS sell, teal for BOS buy).
Draws dynamic support and resistance trendlines based on short and long-term price action, colored by trend strength.
Displays TP levels and pivot highs/lows for easy reference.
How It Works
The script combines several technical analysis concepts to create a robust trading system:
Market Structure Analysis:
Pivot highs and lows are identified using a user-defined lookback period (Pivot Length).
CHoCH occurs when price crosses below a pivot high (bearish reversal) or above a pivot low (bullish reversal).
BOS occurs when price breaks a previous pivot low (bearish continuation) or pivot high (bullish continuation).
Trend and Momentum Integration:
Trends are determined by comparing price to EMA and VWAP on multiple timeframes.
Momentum is calculated as the percentage price change, with thresholds adjusted by ATR to account for volatility.
"Get Ready" signals appear when momentum approaches the threshold, preparing traders for potential CHoCH or BOS signals.
Signal Filtering:
Filters ensure signals align with user-defined criteria (e.g., trend direction, volume, breakouts).
The Restrict Repeated Signals option prevents over-signaling by requiring a trend change on a specified timeframe before generating a new signal in the same direction.
AI Market Analysis:
The optional AI module calculates a score for each timeframe based on trend direction, momentum, and volatility (ATR compared to its SMA).
Scores are translated into predictions (▲ for bullish, ▼ for bearish, — for neutral), displayed in a dedicated table.
CVD and Volatility Context:
CVD tracks buying vs. selling pressure by accumulating volume based on price direction.
Volatility is classified using CVD magnitude, influencing the script’s visual cues and signal sensitivity.
Why This Combination?
The integration of pivot-based structure analysis, multi-timeframe trend filtering, and AI-driven adaptivity addresses common trading challenges:
Precision: CHoCH and BOS signals focus on key market turning points, reducing noise from minor price fluctuations.
Context: Multi-timeframe analysis ensures trades align with broader market trends, improving win rates.
Adaptivity: ATR and CVD adjustments make the script responsive to changing market conditions, avoiding static thresholds that fail in volatile or quiet markets.
Customization: Extensive input options allow traders to adapt the script to their preferred markets, timeframes, and risk profiles.
Predictive Insight: The AI Market Analysis module provides forward-looking trend predictions, helping traders anticipate market moves.
This combination creates a self-contained system that balances responsiveness with reliability, making it suitable for both novice and experienced traders.
How to Use
Add to Chart:
Apply the indicator to your TradingView chart for any asset and timeframe.
Recommended timeframes: 5M to 1H for scalping/day trading, 4H to D for swing trading.
Configure Inputs:
Pivot Length: Adjust (default 5) to control sensitivity to pivot highs/lows. Lower values for faster signals, higher for stronger confirmations.
Momentum Threshold: Set the minimum price change (default 0.01%) for signals. Increase for stricter conditions.
Take Profit Points: Define TP distance (default 10 points). Adjust based on asset volatility.
Signal Filters: Enable/disable filters (momentum, trend, volume, breakout) to match your strategy.
Higher/Lower Timeframe: Select timeframes for trend alignment (e.g., 1H for higher, 5M for lower).
AI Market Analysis: Enable for predictive trend insights across timeframes.
Get Ready Signals: Enable to see pre-signals for potential setups.
Interpret Signals:
Buy/Sell Labels: Act on green "Buy" or red "Sell" labels, confirming with TP levels and trend direction.
Get Ready Labels: Yellow "Get Ready BUY" or orange "Get Ready SELL" indicate potential setups; prepare but wait for confirmation.
CHoCH/BOS Lines: Use aqua/lime (CHoCH) and fuchsia/teal (BOS) lines as key support/resistance levels.
AI-Trend Matrix: Check the top-right dashboard for trend strength (%), confidence (%), and timeframe-specific trends.
AI Market Analysis Table: If enabled, view predictions (▲/▼/—) for each timeframe to anticipate market direction.
Trading Tips:
Combine signals with other indicators (e.g., RSI, MACD) for additional confirmation.
Use higher timeframe trend alignment for higher-probability trades.
Adjust TP and signal distance based on asset volatility and trading style.
Monitor the AI-Trend Matrix for trend strength; values above 50% or below -50% indicate strong directional bias.
Originality
PowerHouse SwiftEdge AI v2.10 stands out due to its unique blend of:
Adaptive Signal Generation: ATR-based momentum thresholds and CVD-driven volatility context ensure signals remain relevant across market conditions.
Multi-Timeframe Synergy: The script’s ability to filter signals based on both higher and lower timeframe trends provides a rare balance of precision and context.
AI-Powered Insights: The AI Market Analysis module offers predictive capabilities not commonly found in traditional indicators, simulating institutional-grade analysis.
Visual Clarity: The futuristic dashboard and color-coded trendlines make complex data accessible, enhancing usability for all trader levels.
Unlike standalone pivot or trend indicators, this script integrates multiple layers of analysis into a cohesive system, reducing false signals and providing actionable insights without requiring external tools or research.
Limitations
False Signals: No indicator is foolproof; signals may fail in choppy or low-volume markets. Use filters to mitigate.
Timeframe Sensitivity: Performance varies by timeframe and asset. Test settings thoroughly.
AI Predictions: The AI Market Analysis is based on historical data and simplified scoring; it’s not a guaranteed forecast.
Resource Usage: Enabling all filters and AI analysis may slow performance on lower-end devices.
[blackcat] L2 EMA NexusOVERVIEW
The L2 EMA Nexus is a comprehensive trading indicator that utilizes a three-tiered Exponential Moving Average (EMA) system to identify potential trading opportunities. This script combines technical analysis with robust risk management features to help traders make informed decisions.
KEY FEATURES
• Triple EMA Analysis:
Customizable source inputs for each EMA
Adjustable length parameters (3, 8, 21 periods)
Dynamic color coding based on trend direction
Real-time price action monitoring
• Advanced Entry Signals:
High-low price action verification
EMA cross-overs and cross-unders
Multi-timeframe trend confirmation
Dynamic position sizing limits
• Risk Management:
Configurable Take Profit levels
Flexible Stop Loss settings
Optional TP/SL activation
Clear visual indicators for levels
HOW TO USE
Setup Initial Parameters:
Configure EMA lengths for your timeframe
Set Take Profit percentage (default 25%)
Define Stop Loss percentage (default 2.5%)
Adjust pyramiding limit as needed
Enable/Disable Features:
Toggle TP/SL settings based on strategy
Customize alert conditions
Modify visual labels for clarity
Monitor Trading Signals:
Watch for buy/sell labels
Track TP/SL levels
Monitor position status
TRADE MANAGEMENT
• Entry Conditions:
Long Entry: Higher high with rising EMA1 and stable EMA3
Short Entry: Lower low with falling EMA1 and stable EMA2
• Exit Conditions:
Take Profit: Price reaches defined percentage above/below entry
Stop Loss: Price reaches defined percentage below/above entry
• Position Control:
Limited to specified number of positions
Automatic position tracking
Clear visual indication of current trades
TECHNICAL DETAILS
• EMA Calculation:
Uses Exponential Moving Average for trend following
Color-coded based on 2-bar trend direction
Multiple timeframe compatibility
• Label System:
Clear buy/sell markers
Take Profit and Stop Loss indicators
Real-time position status updates
• Alert Configuration:
Customizable alert messages
Multiple alert conditions
Option to enable/disable specific alerts
LIMITATIONS
⚠️ Important Considerations:
Results may vary across different market conditions
Historical performance does not guarantee future results
Always backtest strategy before live trading
Consider complementing with additional analysis tools
BEST PRACTICES
• Recommended Timeframes:
Daily charts for long-term strategies
4-hour charts for swing trading
1-hour charts for short-term trading
• Risk Management Tips:
Start with small position sizes
Always use TP/SL in live trading
Monitor market volatility before entering trades
TROUBLESHOOTING
• Common Issues:
Ensure proper chart resolution
Verify alert conditions are enabled
Check for conflicting indicators
• Performance Optimization:
Use appropriate timeframe for your strategy
Adjust indicator parameters based on market conditions
Monitor for potential overfitting
[blackcat] L3 Hull SeekerOVERVIEW
The L3 Hull Seeker is a comprehensive trading indicator that combines Hull Moving Average (HMA) analysis with robust position management and risk control features. This script is designed to help traders identify potential entry and exit points while maintaining strict risk management protocols.
KEY FEATURES
• Hull MA Analysis:
Advanced Hull Moving Average calculations
Separate Hull MA lines for Close and Open prices
Visual color coding for trend direction
Customizable length parameter for flexibility
• Position Tracking:
Real-time monitoring of long and short positions
Maximum position limit control
Clear position status indicators on chart
• Risk Management System:
User-defined Take Profit percentage
User-defined Stop Loss percentage
Optional activation of TP/SL features
Dynamic label markers for important levels
• Alert System:
Buy/Sell entry alerts
Take Profit/Stop Loss exit alerts
Position status changes
HOW TO USE
Setup Initial Parameters:
Hull MA Length: Adjust based on your trading timeframe
Take Profit Percentage: Set according to your risk tolerance
Stop Loss Percentage: Define your maximum acceptable loss
Enable/Disable Features:
Toggle Take Profit/Stop Loss options as needed
Adjust alert conditions for your trading style
Monitor Trading Signals:
Watch for crossover/crossunder signals
Track position status through labels
Monitor entry and exit alerts
Manage Risk:
Use TP/SL features to control position size
Monitor pyramiding limits
Review position status regularly
TRADE MANAGEMENT
• Entry Conditions:
Long Entry: HullMA_close crosses above HullMA_open
Short Entry: HullMA_close crosses below HullMA_open
• Exit Conditions:
Take Profit: Price reaches defined percentage above/below entry
Stop Loss: Price reaches defined percentage below/above entry
• Position Control:
Limited to one position at a time
Automatic position tracking
Clear visual indication of current trades
TECHNICAL DETAILS
• Hull MA Calculation:
Uses WMA (Weighted Moving Average) for precise calculations
Optimized for trend-following strategies
Smoothed Hull MA lines for better readability
• Label System:
Clear buy/sell markers
Take Profit and Stop Loss indicators
Real-time position status updates
• Alert Configuration:
Customizable alert messages
Multiple alert conditions
Option to enable/disable specific alerts
LIMITATIONS
⚠️ Important Considerations:
Results may vary across different market conditions
Historical performance does not guarantee future results
Always backtest strategy before live trading
Consider complementing with additional analysis tools
BEST PRACTICES
• Recommended Timeframes:
Daily charts for long-term strategies
4-hour charts for swing trading
1-hour charts for short-term trading
• Risk Management Tips:
Start with small position sizes
Always use TP/SL in live trading
Monitor market volatility before entering trades
TROUBLESHOOTING
• Common Issues:
Ensure proper chart resolution
Verify alert conditions are enabled
Check for conflicting indicators
• Performance Optimization:
Use appropriate timeframe for your strategy
Adjust indicator parameters based on market conditions
Monitor for potential overfitting