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
Indicateurs et stratégies
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.
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.
Williams R Zone Scalper v1.0[BullByte]Originality & Usefulness
Unlike standard Williams R cross-over scripts, this strategy layers five dynamic filters—moving-average trend, Supertrend, Choppiness Index, Bollinger Band Width, and volume validation —and presents a real-time dashboard with equity, PnL, filter status, and key indicator values. No other public Pine script combines these elements with toggleable filters and a custom dashboard. In backtests (BTC/USD (Binance), 5 min, 24 Mar 2025 → 28 Apr 2025), adding these filters turned a –2.09 % standalone Williams R into a +5.05 % net winner while cutting maximum drawdown in half.
---
What This Script Does
- Monitors Williams R (length 14) for overbought/oversold reversals.
- Applies up to five dynamic filters to confirm trend strength and volatility direction:
- Moving average (SMA/EMA/WMA/HMA)
- Supertrend line
- Choppiness Index (CI)
- Bollinger Band Width (BBW)
- Volume vs. its 50-period MA
- Plots blue arrows for Long entries (R crosses above –80 + all filters green) and red arrows for Short entries (R crosses below –20 + all filters green).
- Optionally sets dynamic ATR-based stop-loss (1.5×ATR) and take-profit (2×ATR).
- Shows a dashboard box with current position, equity, PnL, filter status, and real-time Williams R / MA/volume values.
---
Backtest Summary (BTC/USD(Binance), 5 min, 24 Mar 2025 → 28 Apr 2025)
• Total P&L : +50.70 USD (+5.05 %)
• Max Drawdown : 31.93 USD (3.11 %)
• Total Trades : 198
• Win Rate : 55.05 % (109/89)
• Profit Factor : 1.288
• Commission : 0.01 % per trade
• Slippage : 0 ticks
Even in choppy March–April, this multi-filter approach nets +5 % with a robust risk profile, compared to –2.09 % and higher drawdown for Williams R alone.
---
Williams R Alone vs. Multi-Filter Version
• Total P&L :
– Williams R alone → –20.83 USD (–2.09 %)
– Multi-Filter → +50.70 USD (+5.05 %)
• Max Drawdown :
– Williams R alone → 62.13 USD (6.00 %)
– Multi-Filter → 31.93 USD (3.11 %)
• Total Trades : 543 vs. 198
• Win Rate : 60.22 % vs. 55.05 %
• Profit Factor : 0.943 vs. 1.288
---
Inputs & What They Control
- wrLen (14): Williams R look-back
- maType (EMA): Trend filter type (SMA, EMA, WMA, HMA)
- maLen (20): Moving-average period
- useChop (true): Toggle Choppiness Index filter
- ciLen (12): CI look-back length
- chopThr (38.2): CI threshold (below = trending)
- useVol (true): Toggle volume-above-average filter
- volMaLen (50): Volume MA period
- useBBW (false): Toggle Bollinger Band Width filter
- bbwMaLen (50): BBW MA period
- useST (false): Toggle Supertrend filter
- stAtrLen (10): Supertrend ATR length
- stFactor (3.0): Supertrend multiplier
- useSL (false): Toggle ATR-based SL/TP
- atrLen (14): ATR period for SL/TP
- slMult (1.5): SL = slMult × ATR
- tpMult (2.0): TP = tpMult × ATR
---
How to Read the Chart
- Blue arrow (Long): Williams R crosses above –80 + all enabled filters green
- Red arrow (Short) : Williams R crosses below –20 + all filters green
- Dashboard box:
- Top : position and equity
- Next : cumulative PnL in USD & %
- Middle : green/white dots for each filter (green=passing, white=disabled)
- Bottom : Williams R, MA, and volume current values
---
Usage Tips
- Add the script : Indicators → My Scripts → Williams R Zone Scalper v1.0 → Add to BTC/USD chart on 5 min.
- Defaults : Optimized for BTC/USD.
- Forex majors : Raise `chopThr` to ~42.
- Stocks/high-beta : Enable `useBBW`.
- Enable SL/TP : Toggle `useSL`; stop-loss = 1.5×ATR, take-profit = 2×ATR apply automatically.
---
Common Questions
- * Why not trade every Williams R reversal?*
Raw Williams R whipsaws in sideways markets. Choppiness and volume filters reduce false entries.
- *Can I use on 1 min or 15 min?*
Yes—adjust ATR length or thresholds accordingly. Defaults target 5 min scalping.
- *What if all filters are on?*
Fewer arrows, higher-quality signals. Expect ~10 % boost in average win size.
---
Disclaimer & License
Trading carries risk of loss. Use this script “as is” under the Mozilla Public License 2.0 (mozilla.org). Always backtest, paper-trade, and adjust risk settings to your own profile.
---
Credits & References
- Pine Script v6, using TradingView’s built-in `ta.supertrend()`.
- TradingView House Rules: www.tradingview.com
Goodluck!
BullByte
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