Indikator

Margin Debt to M2 Ratio█ OVERVIEW
Plots customer margin debt divided by the M2 money stock, expressed as a percent, in a separate pane, with a standard deviation band around its mean. Normalizing margin debt by the broad money supply removes the secular growth the raw series accrues through inflation and monetary expansion, so leverage readings are comparable across decades rather than trending upward by construction.
█ HISTORY / BACKGROUND
Aggregate customer margin debt has long been followed as a gauge of speculative leverage and risk appetite. The statistic is published monthly by FINRA, and previously by the NYSE for member firms. Reading the raw dollar figure across long spans is misleading because it rises with the size of the economy and the money supply regardless of relative leverage. Dividing margin debt by M2 is a normalization that expresses borrowing against the monetary base, isolating changes in leverage intensity from growth in the quantity of money. The approach is a normalization technique rather than a named proprietary system. Its conceptual basis is that relative leverage, not the nominal dollar level, carries the sentiment information.
█ HOW IT WORKS
The script requests two series at monthly resolution, forms their ratio, and derives a mean and a standard deviation band from the monthly history.
1. Margin debt is requested with request.security at the 1M timeframe using the closing value of the symbol set in the first input. M2 is requested the same way from the second input.
2. The ratio is computed as margin debt divided by the quantity (M2 multiplied by 1000), then multiplied by 100. The factor of 1000 reconciles units, because the default margin debt series is reported in millions of dollars and M2 in billions. The factor of 100 expresses the result as a percent. When either series is na, or when M2 is zero, the ratio is na.
3. One ratio observation is appended to a persistent array on each new calendar month, detected with a change in the monthly time value. Computing the statistics from this array rather than from chart bars keeps them correct on any chart resolution, because forward filled monthly values on a lower timeframe do not inflate the sample.
4. On each new month the band statistics are recomputed. The window is the entire array in full sample mode, or the trailing number of months given by the lookback input in rolling mode. The mean is the arithmetic average over the window. The standard deviation is the sample deviation, computed as the square root of the summed squared deviations from the mean divided by the window length minus one, and is na until at least two observations exist.
5. The upper and lower band lines are the mean plus and minus the sigma multiplier times the standard deviation.
█ HOW TO USE
The script is built for the monthly timeframe. The underlying data is monthly for M2 and quarterly for the margin debt proxy, and the statistics are accumulated per calendar month, so 1M is the resolution at which the display matches the data cadence. On an intraday chart the script draws a warning label and the band should not be read at that resolution.
Visual elements:
• The blue line is the margin debt to M2 ratio in percent.
• The shaded band spans the mean plus and minus the chosen sigma multiple.
• The gray midline is the mean, when enabled.
• The label at the last bar prints the current ratio to two decimals.
Readings above the upper band indicate leverage that is high relative to the money supply. Readings below the lower band indicate depressed leverage, typically following a deleveraging episode. This is a slow moving macro context series, not a timing trigger. An alert condition fires when the ratio reaches or exceeds the upper band.
█ SETTINGS
• Margin debt series : the symbol used as the numerator. Default FRED:BOGZ1FL663067003Q.
• M2 money stock : the symbol used as the denominator. Default FRED:M2SL.
• Band mode : selects Rolling (point-in-time), which uses a trailing window, or Full sample (lookahead), which uses the entire history. Default Rolling (point-in-time).
• Rolling lookback (months) : the trailing window length used in rolling mode. Default 180, minimum 12.
• Sigma multiplier : the number of standard deviations for the band width. Default 1.0, minimum 0.25, step 0.25.
• Show mean midline : toggles the mean line. Default on.
• Show current value label : toggles the last bar value label. Default on.
█ WHAT MAKES IT ORIGINAL
The script normalizes margin debt by M2 and presents the result in a dedicated pane with an explicit standard deviation band, rather than overlaying a rate of change or a z score of the raw series on price. Two design choices distinguish the implementation. First, the band can be computed either as a trailing point-in-time window or as a fixed full sample band, and the full sample option is labeled as containing lookahead, so the distinction is explicit rather than hidden in the output. Second, the band statistics are accumulated from one observation per calendar month held in an array, which makes the mean and standard deviation independent of the chart timeframe and avoids the understated deviation that results when forward filled monthly values are sampled on a lower timeframe.
█ NOTES / LIMITATIONS
• Symbol resolution : both inputs ignore invalid symbols. If a symbol does not resolve or returns na, or if M2 is zero, the ratio is na and neither the line nor the band renders. No runtime error is raised.
• Unit assumption : the ratio applies a fixed factor of 1000 to reconcile a numerator in millions against a denominator in billions. Replacing the default symbols with series in other units breaks the percent scaling.
• Data cadence : the default margin debt proxy is quarterly and M2 is monthly, so the ratio holds the most recent quarterly margin debt value across the intervening months.
• Provenance : TradingView does not carry the FINRA monthly margin debt statistic as a native symbol. The default numerator is the Federal Reserve Z.1 series for margin accounts at brokers and dealers, a close substitute that differs in level and cadence from the FINRA figure.
• Lookahead : only the Full sample band mode uses future observations in its statistics and is therefore not point-in-time. Rolling mode does not. The request.security calls use the default non lookahead behavior.
• Timeframe : the logic is intended for 1M. On intraday charts a warning label is drawn and the band should not be read.
• History dependence : the band requires accumulated monthly observations to populate. Early in available history, or on symbols with short history, the standard deviation is na until at least two monthly observations exist and stabilizes only after the lookback window fills.
█ THANKS
Chart concept surfaced by the Stacked Insights YouTube channel. Margin debt data originates with FINRA and the Federal Reserve. M2 originates with the Board of Governors of the Federal Reserve System. Indikator

Indikator

Indikator

Indikator

Indikator

Indikator

Indikator

Indikator

Indikator

Full Trendline + SMC System [Golden_WolfAI]Full Trendline + SMC System
This indicator is built for traders who want to see the market structure clearly, without manually marking every swing, trendline, liquidity zone and imbalance.
Full Trendline + SMC System combines classic trendline logic with Smart Money Concepts, helping you read the chart with more confidence and structure. It highlights key market events such as BOS, CHOCH, liquidity sweeps, equal highs/lows, order blocks, fair value gaps and trendline breaks directly on the chart.
The goal of this tool is simple: reduce noise and show where the real battle between buyers and sellers may be happening.
Main features:
• Automatic trendlines based on swing highs and swing lows
• Bullish and bearish trendline break detection
• BOS and CHOCH market structure labels
• Buy-side and sell-side liquidity sweep detection
• Equal highs and equal lows detection
• Bullish and bearish order block zones
• Fair Value Gap zones with optional auto-removal after fill
• 50% equilibrium level for premium/discount context
• Optional EMA trend filter
• BUY and SELL signal labels
• Built-in alerts for signals, BOS, CHOCH, trendline breaks, sweeps and FVGs
This indicator is not designed to replace your trading plan. It is designed to give you a structured view of the market, so you can make cleaner decisions, avoid random entries and understand where price may be reacting from.
Use it to identify structure, liquidity, imbalance and possible continuation or reversal areas.
Recommended use:
1. Start from higher timeframes to define market direction.
2. Watch BOS and CHOCH to understand structure shifts.
3. Use liquidity sweeps to detect possible traps.
4. Use order blocks and FVGs as reaction zones.
5. Use BUY/SELL signals only as confirmation, not as blind entries.
No indicator can predict the market with certainty. Always use proper risk management and test the tool on your own market, timeframe and trading style before making decisions.
Indikator

Indikator

Indikator

BTC 5m Scalper Pro V4.2 [SAFE STRATEGY] DescriptionBTC 5m Scalper Pro V4.2 is a trend-following, high-probability scalping script meticulously optimized for volatile assets like Bitcoin (BTC) and Gold (XAU/USD). It is designed to capture quick intraday impulses while heavily filtering out market noise, choppy consolidations, and fakeouts.
The core philosophy of this script is SAFETY FIRST. It enforces strict mechanical rules combining momentum, trend synchronization, and trend strength before printing any signal.Key Features🛡️ Multi-Filter Safety EngineThe script will only trigger a signal if three independent conditions align perfectly:Trend Alignment (Supertrend + 200 EMA): Longs are strictly allowed only above the 200 EMA, and Shorts only below the 200 EMA.Momentum Confirmation (RSI): Filters out weak moves.
Longs require NYSE:RSI > 50$, and Shorts require NYSE:RSI < 50$.Trend Strength (ADX): An adjustable ADX threshold ensures the script remains completely silent during low-volume, sideways ranges.⏱️ Zero Repainting & Signal ProtectionSignals are strictly calculated and confirmed on the close of the previous bar .
The script highlights the candle in bright green (Long) or bright pink (Short) and places a clean "GO" label.
Once printed on a closed bar, the signal never disappears or changes.📊 Advanced Risk Management & Automatic PlottingAnti-Wick Stop Loss: Automatically scans the lowest low (for Longs) or highest high (for Shorts) of the last 3 candles and adds an ATR-based padding to prevent sudden market sweeps from stopping you out early.Dynamic Target Lines: Automatically draws your dynamic Stop Loss (Red) and Take Profit (Blue) lines right on your chart with precise price figures.Manual R:R or Fibonacci Target: Choose between a steady manual Reward-to-Risk ratio (default 1.5) or a Fibonacci 1.618 extension target.🎛️ Fully Customizable Mini DashboardIncludes a sleek, real-time table at the bottom-right of your screen showing critical data from your last trade (Execution Price, exact SL/TP, Entry RSI, and ADX strength).
The dashboard can be shrunk to "Ultra-Small" or completely disabled in the settings for a clean chart layout.How to Set Up Your Real-Time Alerts 🔔This script uses the modern alert() function call system to prevent any sync delays. To get instant alerts with your exact entry price, SL, and TP sent straight to your phone or PC:Click on the Create Alert clock icon (Alt + A).Condition: Select Stratégie SÉCURISÉE: BTC 5m Scalper Pro V4.2.Sub-Condition (Crucial): Select Any alert() function call (or Appels de fonction alert()).Trigger: Leave it on Only Once. Note: The code automatically resets itself and manages the bar-close frequency internally, so it will trigger on every valid setup!Click Create.Disclaimer: Scalping involves financial risk.
Always test this script on historical data and apply proper position sizing. Indikator

NY Session Conviction DashboardOverview
The NY Session Conviction Dashboard is a comprehensive market-state engine designed specifically for intraday futures traders (ES/NQ) executing during the New York session. Rather than generating lagging, automated buy/sell signals, this tool functions as a professional tape-reading companion. It provides a real-time, statistical framework to assess institutional conviction, market efficiency, and volume participation when price tests critical structural levels like Prior Day High/Low (PDH/PDL), Overnight High/Low (ONH/ONL), and Session VWAP.
By applying a Wyckoff-inspired Effort vs. Result model, the script evaluates whether current order flow supports a structural breakout/continuation or a structural fading/rejection.
Core Architecture & Components
1. Intraday Effort (Market Internals Engine)
Dual Index VOLD Ratios: Tracks institutional volume deployment by calculating the dynamic ratio of advancing vs. declining volume for both the NYSE (USI:UVOL/USI:DVOL) and NASDAQ (USI:UVOLQ/USI:DVOLQ).
NYSE TICK Integration: Samples centralized order flow momentum to confirm whether sudden price spikes are supported by broad market buying/selling.
2. Intraday Result (Structural Efficiency & Pressure)
Kaufman-Driven Adaptive KAMA: Uses an Efficiency Ratio (ER) lookback to dynamically adjust its smoothing factor. It remains flat during erratic, noisy balance areas and turns sharply directional when true algorithmic expansion occurs.
Session VWAP with ER Stabilization: Resets precisely at the NY Open (0930 EST). Features a unique initial-hour "Stabilization Event Box" based on Early Session efficiency to protect against choppy opening balancing behaviors.
Candle Pressure Index (CPI): Measures the precision of close location relative to a bar's total range, filtered through an ATR noise gate to eliminate low-liquidity anomalies.
3. Institutional Absorption Detection
Plots discrete, real-time exhaustion markers (X) directly on the chart when high-effort internal signatures (VOLD extremes/TICK spikes) fail to yield a directional result—classically signaling institutional absorption or passive resting liquidity behavior.
Understanding the Tape Reading States
The dashboard dynamically computes and displays the mathematical harmony between broad market internals and current price action, classifying the market into distinct behavioral regimes:
BULL ALIGN / BEAR ALIGN (Golden State): Full harmony. Internals, Volume Ratios, TICK, CPI, and Trend Efficiency are aligned aggressively in one direction. High-conviction expansion.
BULL DIV / BEAR DIV (Price Divergence): Price is flat or declining, but broad market internals are heavily positive (or vice-versa). Often leads to a sudden catch-up expansion or rotational reversal.
BULL ABSORB / BEAR ABSORB: High internal volume effort is actively hitting the market, but the price trend efficiency is exceptionally low (ER < 0.30). This points to major passive limit orders blocking further progression.
LEAD DIV (Leadership Divergence): NYSE and NASDAQ volume structures are actively opposing one another, indicating a split, rotation-heavy market profile.
How to Use This Tool
This indicator is built for discretionary execution support.
Identify Your Levels Manually: Map out your key price boundaries (PDH, PDL, Daily VWAP, or high-volume nodes).
Watch the Test: As price approaches a level, look down at the Tape Dashboard.
Verify Conviction: * A breakout past PDH accompanied by a BULL ALIGN state implies high-probability continuation.
A test of PDH accompanied by a BEAR ABSORB or BEAR DIV state indicates a structural failure, offering a high-probability mean-reversion setup back to VWAP. Indikator

Indikator

5 Major Signal Strategy / 7 Candlestick Patterns ## 5 Major Signal Strategy / 7 Candlestick Patterns
This strategy is based on the `HanJinSignals26` signal library and is designed to detect multiple independent candlestick reversal and momentum patterns on the chart.
The strategy currently supports the following signal groups:
1. Pinbar
2. Engulfing Pattern
3. Fractal Top
4. Fractal Bottom
5. Single Harami
6. Double Harami
7. Big Body Candle
Each signal can be enabled or disabled independently from the input panel. When a signal is disabled, the related library function will not be called, keeping the detection flow clean and modular.
## Core Design
The main design goal of this strategy is signal independence.
Each enabled signal has:
* Its own detection logic
* Its own chart marker
* Its own strategy entry ID
* Its own webhook alert tag
This means that different signal types can trigger independently without depending on one shared signal result.
## Webhook Bridge
The strategy also includes a webhook payload generator.
When a confirmed signal appears at bar close, the strategy sends a structured JSON payload containing:
* Secret key
* Unique signal ID
* Timestamp
* Symbol
* Trade side
* Signal comment/tag
This makes the script suitable for connecting TradingView alerts to external automation systems, bridge services, or execution engines.
## Important Notes
This script is designed for signal research, automation testing, and strategy development.
It is not financial advice and does not guarantee profitability.
Users should always perform their own backtesting, forward testing, risk control, and parameter adjustment before using any signal in a real trading environment.
## Author
Created by richardgong1988.
Strategi

Indikator

Smart Market Structure ProDescription:
This indicator automatically detects and marks significant swing highs and swing lows using pivot-based market structure analysis.
Features:
Identifies Swing Highs and Swing Lows.
Labels market structure as:
HH (Higher High)
HL (Higher Low)
LH (Lower High)
LL (Lower Low)
Draws structure lines connecting consecutive highs and lows.
Helps traders visualize trend direction and market structure.
Suitable for Forex, Gold, Indices, Stocks, and Cryptocurrencies.
Works on all timeframes, including 1-minute charts.
How to Use:
A sequence of HH and HL indicates an uptrend.
A sequence of LH and LL indicates a downtrend.
Use market structure breaks as potential trend reversal signals.
Combine with support/resistance, moving averages, or supply and demand zones for better trade confirmation.
Recommended Settings:
Aggressive: Left Bars = 3, Right Bars = 3
Balanced: Left Bars = 5, Right Bars = 5
Conservative: Left Bars = 8, Right Bars = 8
Disclaimer:
This indicator is for educational and analytical purposes only and should not be considered financial advice. Always use proper risk management when trading. Indikator

Indikator

Indikator

Indikator

RizA_Ultra_v23RizA Ultra v23 - Multi-Timeframe Trend & Liquidity Engine
RizA_Ultra_v23 is a highly adaptive, institutional-grade technical analysis indicator designed for multi-timeframe trend alignment, liquidity tracking, and dynamic risk management. By fusing dual Multi-Timeframe (MTF) Simple Moving Averages, an advanced MTF Momentum Confirmation Filter (WaveTrend), and real-time Liquidity Swing Zones, this tool provides traders with a pristine macro-to-micro view of any market.
Whether you trade Indices (NAS100, GER40), Crypto (BTCUSD), or Forex/Metals (XAUUSD), this indicator eliminates the noise and delivers precise execution signals.
🌟 Key Features
1. Smart Asset Profiles (Broker-Independent)
Say goodbye to constantly changing your indicator settings when switching assets. The script features built-in, optimized presets for four major symbols that apply automatically by scanning your chart ticker:
NAS100 (Nasdaq)
BTCUSD (Bitcoin)
XAUUSD (Gold)
GER40 (Dax)
Note: Includes a fully customizable manual mode for any other asset of your choice.
2. Dual MTF Trend Alignment (MTF1 & MTF2)
The core engine tracks two distinct higher timeframes simultaneously using customizable Short/Long SMA pairs.
Visual Ribbons: Fills the space between the short and long moving averages with color-coded sentiment bands (Bullish/Bearish).
Execution Matrix: Signals are only triggered when the faster MTF cross aligns with the directional bias of the slower MTF trend.
3. MTF MAC Confirmation (WaveTrend Filter)
To filter out false breakouts and choppy consolidation zones, an integrated WaveTrend Oscillator Engine functions on a third customizable timeframe. It validates the structural health of the move, preventing you from buying a premium or selling a discount.
4. Institutional Liquidity Swings
Tracks market structure in real-time by identifying key Pivot Highs and Pivot Lows.
Wick & Range Extremities: Draws clear, real-time institutional liquidity blocks.
Intrabar Precision: Utilizes lower timeframe lower-tf lookups to calculate historical volume/count depth within the swing areas.
Breach Tracking: Solid lines turn to dashed lines once liquidity is swept or invalidated by price action.
5. Dynamic Trailing Stop Loss (TSL)
Protects your capital with a fully automated, trailing stop-loss visualizer:
Fixed Initial Risk: Plots a standard initial stop loss based on your fixed percentage input.
Profit Activation Engine: Once price reaches a specific percentage threshold, a Trailing Stop activates, dynamically locking in profits bar-by-bar until a violation candle closes out the position.
6. Heads-Up Display (HUD) Dashboard
Includes a clean, highly readable info-table positioned on your chart to track the real-time status of your MTF1, MTF2, and MAC momentum filters simultaneously without cluttering your price action view.
📥 Settings & Customization
Timeframes & Periods: Fully configure intervals and lengths for all MTF filters.
Liquidity Options: Adjust Pivot Lookbacks, select filter parameters (Volume vs. Count), and customize visual zones.
Risk Metrics: Tweak initial stop-loss percentages, TSL activation points, and trailing tighter percentages.
UI/UX: Toggle visual components, change colors, adjust transparency, and reposition the dashboard table.
🚨 Real-Time Alerts Included
Never miss a setup. This indicator comes equipped with ready-made alert conditions for automation or push notifications:
Long Signal — Triggered when multi-timeframe structures align bullishly with MAC confirmation.
Short Signal — Triggered when multi-timeframe structures align bearishly with MAC confirmation.
Disclaimer: Trading financial instruments involves high risk. This tool is designed for educational and analytical purposes and does not constitute financial advice. Indikator
