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.
Indicators and strategies
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.
kkADXLibrary "kkADX"
TODO: add library description here
fun(x)
TODO: add function description here
Parameters:
x (float) : TODO: add parameter x description here
Returns: TODO: add what function returns
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.
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.
Lunchtime Lull (EST)Lunchtime Lull from 12:00-13:30 when institution market movers are on lunch break and market isn't moving
Lunchtime LullThe ability to understand when not to trade into the market. According to ICT, this is considered called the Lunchtime Lull.
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!
Mongoose Capital Trailing Entry ProMongoose Capital | Trailing Entry Pro
Built for professional traders and macro desks. This system dynamically trails price using ATR (Average True Range) logic, enabling disciplined breakout entries without chasing price.
Key features:
• ATR-Based Dynamic Trail — adapts to volatility in real-time.
• Entry Buffer — configurable distance to minimize false triggers.
• TPO POC Anchoring — optional filter to only allow entries if price is aligned with session auction bias.
• Visual Trail Lines — Green (Long trail) and Red (Short trail).
• Real Trade Entry Markers — Plots BUY/SELL labels for trade visualization.
Best combined with Mongoose Capital’s auction theory frameworks (TPO Profile) for superior edge in volatile environments.
Recommended Use:
- Macro trend following
- Tactical breakout trading
- Liquidity hunt defense
This script is free and open-source. Built to institutional standards by Mongoose Capital.
RSI SR OB Breakouts Strategy PRO (coffeshopcrypto)This was originally an indicator that I took from coffeshopcrypto, all credit to them. I simply turned it into a strategy. Only additions are TP/SL Levels based off of ticks and an optional EMA Filter
Original Script:
Dmarc Multi MAsMultiple MA's on a single chart.
You can add up to 10 MA's, either EMA or SMA per indicator instance.
SuperTrade ST1 StrategyThis strategy leverages the Supertrend indicator to identify trend direction and capture key entry and exit points in the market. By utilizing ATR (Average True Range) for dynamic stop-loss and take-profit levels, this script adapts to varying market conditions for improved risk management.
Key Features
Supertrend Indicator: Defines the trend direction and generates buy/sell signals based on trend reversal points.
ATR-based Exits: Take Profit and Stop Loss are dynamically calculated using ATR multipliers to accommodate market volatility.
Customizable Inputs: Fine-tune the ATR Length, Supertrend Factor, and ATR multipliers for take-profit and stop-loss according to your strategy preferences.
Visual Indicators: Buy and Sell signals are clearly marked with labels on the chart, and the Supertrend line is color-coded for easy trend identification.
Background Trend Highlighting: The chart background changes color based on the prevailing trend to make it easier to follow the market direction.
This strategy is perfect for traders looking to ride trends while managing risk with smart, automated exits.
Quantum UT BOT Trend Screener by MrCryptoBTCQuantum UT BOT Trend Screener by MrCryptoBTC (NOT FOR SELL - FREE)
The Quantum UT BOT Trend Screener by MrCryptoBTC powered by the UT BOT by Yo_adriiiiaan is designed to help traders identify market trends and manage trades using a dynamic trailing stop based on Average True Range (ATR) and key value sensitivity. It provides real-time trend analysis, buy/sell signals, and alerts to enhance your trading strategy.
Inputs:
* Key Value (Sensitivity): Controls the sensitivity of the trailing stop. A higher value results in a more responsive trailing stop to market movements.
* ATR Period: Defines the number of periods used to calculate the Average True Range (ATR), helping to measure market volatility.
Recommended Timeframe:
* The Quantum UT BOT Trend Screener is best used on higher timeframes, such as 1-hour (H1), 4-hour (H4), or daily (D1) charts. These timeframes allow for more reliable trend identification and reduce the noise present in lower timeframes.
How it Works:
* Trailing Stop Calculation: The trailing stop adjusts dynamically based on market volatility, with its distance determined by the ATR and key value. It tracks the price, moving upwards during an uptrend and downwards during a downtrend, locking in profits as the market moves in your favor.
* Trend Detection:
* Uptrend: When the price crosses above the trailing stop, indicating upward momentum.
* Downtrend: When the price crosses below the trailing stop, signaling downward movement.
* Neutral: When the price remains within the trailing stop range, indicating no clear trend.
Features:
1. Trend Label: Displays the current trend on the chart (Uptrend, Downtrend, or Neutral).
2. Dashboard Table: Shows the currency pair and its trend status on the top-right corner of the chart.
3. Trailing Stop Plot: Visually represents the trailing stop on the chart in green (uptrend), red (downtrend), or blue (neutral).
4. Buy/Sell Signals: Generates buy and sell signals when the price crosses the trailing stop.
* Buy: Triggered when the price crosses above the trailing stop.
* Sell: Triggered when the price crosses below the trailing stop.
5. Bar Color: The bar color changes to green for uptrends and red for downtrends, visually representing the market condition.
6. Alerts: Receive alerts when:
* A buy signal is triggered.
* A sell signal is triggered.
* An uptrend is detected.
* A downtrend is detected.
Use Case:
Ideal for swing traders, trend-following strategies, or anyone looking to spot and follow key trend changes in the market. This indicator offers clear visual signals and real-time alerts, helping traders stay in profitable trends and avoid false breakouts.
Multi-Pair Screening: Pine Script is limited to the current chart’s pair. For multi-pair screening, apply the script to multiple charts or use TradingView’s built-in screener with similar ATR-based criteria.
Trend Sensitivity: Adjust key value for tighter or looser trailing stops. Lower values increase sensitivity.
Timeframes: Test on various timeframes (e.g., 1H, 4H, 1D) to suit your trading style.
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:
Discipline WatermarkDescription for "Discipline Watermark" Indicator:
The Discipline Watermark is a motivational overlay tool designed to reinforce trading discipline directly on your chart. It periodically displays inspirational messages as a subtle watermark, reminding traders of key principles like risk management, capital protection, and the importance of discipline.
Displays one of three motivational phrases:
🛑 "The Stop protects me"
💵 "Protect Your Capital"
🔑 "Discipline is the Key"
Automatically rotates the message every user-defined number of bars (default is 10).
Customizable watermark visibility, text size, position, and background color.
Lightweight and non-intrusive, ideal for maintaining a disciplined trading mindset during live sessions.
Stay focused and consistent with the Discipline Watermark!
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.
JiT|SMA200A visually appealing "Trend" indicator that displays the 200 SMA... Blue & Gray have been swapped out for traditional Green & Red. The shading on both sides corresponds to the volume. The lighter the shade, the closer to a reversal. Created for any ticker via NYSE & works on any timeframe.
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.
Tram37 SMA calculates the average price over the last 377 periods.
SMA 37 can help identify major trends or reversals, acting as dynamic support/resistance, Useful in low-noise, trending markets. Prices may respect the SMA 377 as a dynamic level, especially in markets where Fibonacci levels are widely watched.
It works better in trending markets than in choppy or range-bound markets, where it may generate false signals.
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