Stablecoin Liquidity Pulse Map [AGPro Series]Stablecoin Liquidity Pulse Map
🧠 Core Idea
Is stablecoin liquidity expanding into the market, parking defensively on the sidelines, or drying up before risk appetite weakens?
📌 Overview / What it does
Stablecoin Liquidity Pulse Map is a crypto market-context tool that maps stablecoin liquidity flow, stablecoin dominance pressure, and risk-appetite behavior into a clean visual pulse framework.
The script reads USDT and USDC market-cap sources, optionally includes DAI, compares stablecoin flow against broader crypto market-cap context, and converts those inputs into liquidity pulse states.
It produces a right-side liquidity pulse ribbon, pulse tracks, selective event labels, optional compact markers, and an AG Pro dashboard panel. It does not predict price, automate trades, or claim that stablecoin growth must immediately create a bullish market.
🎯 Purpose & Design Philosophy
Stablecoins are one of the most important liquidity layers in crypto.
When stablecoin supply expands, capital may be entering or preparing to rotate. When stablecoin dominance rises while price weakens, capital may be parking defensively. When stablecoin flow contracts, risk liquidity can become thinner.
This script was built to turn that macro liquidity layer into a practical chart-reading tool without pretending that liquidity alone is a complete trading system.
⚡ Why This Script Is Different
Most tools focus on price, trend, volatility, or exchange-specific derivatives data.
This script does NOT focus on funding, open interest, basis, leverage reset, liquidation levels, or ordinary trend signals.
Instead, it studies the stablecoin liquidity layer behind the market. It asks whether stablecoin flow, dominance pressure, and price behavior are aligned with expansion, defensive parking, dry liquidity, or early rotation.
⚙️ Methodology
1. Stablecoin Flow Detection
The script reads USDT and USDC market-cap data, with optional DAI inclusion.
2. Dominance Pressure Mapping
It compares stablecoin value against total crypto market-cap context when available.
3. Risk-Appetite Evaluation
It evaluates whether price is behaving constructively or defensively relative to a baseline.
4. Pulse Classification
The script combines flow, velocity, dominance pressure, parking risk, dry-liquidity behavior, and rotation context into a single liquidity pulse state.
🗺️ How to Read the Chart
The right-side pulse ribbon is the main visual object.
The center ribbon shows the active liquidity pulse state.
The upper ribbon tracks stablecoin flow and expansion pressure.
The lower ribbon helps identify parking or dry-liquidity pressure.
The vertical needle shows where the current pulse sits inside the active liquidity range.
Event labels identify important state changes such as Liquidity Inflow, Risk-Off Parking, Dry Liquidity, or Rotation Ready.
The panel summarizes state, pulse, stable flow, velocity, dominance, dominance change, direction, grade, risk parking, dry score, and data-source availability.
🚦 Signals & States
• Liquidity Expansion → stablecoin flow is improving while dominance pressure is not defensive
• Risk-Off Parking → stablecoin dominance pressure is rising while market appetite weakens
• Dry Liquidity → stablecoin flow is contracting and liquidity conditions may be thinner
• Rotation Ready → stablecoin flow improves while market behavior begins to recover
• Neutral Pulse → no strong stablecoin liquidity state is active
• Data Missing → selected stablecoin sources are unavailable
🔔 Alerts Logic
Alerts can be enabled for Liquidity Expansion, Risk-Off Parking, Dry Liquidity, and Rotation Ready.
Each alert triggers when the selected state becomes active. Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The strongest reads happen when stablecoin flow, velocity, dominance behavior, and price context align.
For example, rising stablecoin flow with falling defensive dominance pressure can support a constructive liquidity read.
Rising stablecoin dominance while price weakens can suggest defensive parking rather than active risk appetite.
📊 When to Use
• Crypto market-cycle analysis
• BTC and ETH context checks
• Stablecoin liquidity monitoring
• Risk-on / risk-off environment review
• Macro crypto liquidity dashboards
• 1D and 1W chart analysis
⚠️ When NOT to Use
• Very low liquidity altcoins as the only decision source
• Symbols where stablecoin market-cap data does not load
• Extremely noisy intraday charts
• Situations requiring exact exchange order flow
• Any workflow that expects a standalone buy/sell signal
🎛️ Key Inputs
• USDT Market Cap Symbol → primary stablecoin source
• USDC Market Cap Symbol → secondary stablecoin source
• Include DAI Source → optional additional stablecoin component
• Total Crypto Market Cap Symbol → used for dominance pressure
• Liquidity Flow Length → controls stablecoin flow measurement
• Pulse Baseline Length → controls slower liquidity and trend context
• Inflow / Outflow Thresholds → control state sensitivity
• Dominance Pressure Threshold → controls risk-off parking sensitivity
• Visual settings → control ribbon, event labels, tracks, markers, panel, and font sizes
🖥️ Interface & Visual Design
The design is intentionally different from derivatives-focused maps.
It avoids large projected zones, liquidation paths, reset ladders, and basis meters.
The right-side pulse ribbon keeps the visual focused on liquidity context rather than exact price levels. Colors remain visible on both dark and white chart backgrounds, and the panel follows the AG Pro merged-header format.
🧪 Practical Usage Workflow
1. Read the panel state first.
2. Confirm USDT and USDC sources are active.
3. Check stable flow and dominance change.
4. Review the right-side pulse ribbon.
5. Compare the state with price structure and broader market trend.
6. Use alerts as attention markers, not trade instructions.
🔍 Interpretation Guidelines
Liquidity Expansion does not guarantee upside.
Risk-Off Parking does not guarantee downside.
Dry Liquidity does not guarantee immediate volatility.
Rotation Ready means conditions are improving, not that a rotation must occur.
Use the script as a market-context layer alongside structure, trend, volatility, and disciplined risk management.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an automated trading system.
It is not an exact order-flow tool.
It does not guarantee market direction.
⚠️ Limitations & Transparency
Stablecoin market-cap symbols depend on PulseWire data availability.
Total crypto market-cap data may not be available in every environment.
Stablecoin supply changes can lag market behavior.
Different timeframes can produce different interpretations.
Extreme events, exchange stress, depegs, or abnormal data conditions can affect readings.
🧠 Market Context Notes
Stablecoin liquidity is not automatically bullish or bearish.
The meaning depends on context. Stablecoins can represent incoming buying power, defensive parking, cash rotation, or liquidity withdrawal.
This script focuses on interpreting that context more clearly.
🧾 Use Case Examples
When stablecoin flow rises and defensive dominance pressure is low, the script may show Liquidity Expansion.
When stablecoin dominance rises while price weakens, it may show Risk-Off Parking.
When stablecoin flow contracts and market appetite is weak, it may show Dry Liquidity.
When stablecoin flow improves with early market recovery, it may show Rotation Ready.
🧱 System Philosophy
AGProLabs scripts are built as structured decision-support tools.
The goal is to make hidden market context easier to read, not to replace judgment with certainty.
🔐 Non-Promise Statement
No liquidity model can remove uncertainty.
No state should be treated as certainty.
No visual element should replace trader judgment.
📉 Risk Disclosure
Trading involves risk.
Crypto markets can be highly volatile and liquidity conditions can change quickly.
This script is for educational and analytical purposes only.
Nothing in this script should be interpreted as financial advice, investment advice, or a guaranteed trading outcome.
Users remain fully responsible for their own decisions.
📚 Educational Note
Use this script to study how stablecoin supply, stablecoin dominance, and risk appetite interact across crypto market cycles.
Indicator

CAP Channel Trading (Auto-Deviation & Analysis Dashboard)This indicator is a highly precise and comprehensive replica of the well-known "MeetAlgo CAP Channel Trading" indicator, originally developed for MetaTrader 4 and 5. It has been built from the ground up in Pine Script v6 and expanded with exclusive PulseWire features (such as Auto-Deviation calculation and dynamic themes).
The indicator is based on the "Advanced Envelope Theory." This theory assumes that market prices naturally oscillate within dynamically calculated boundaries (envelopes). If the price breaks out of these boundaries or touches them, it signals a statistical anomaly and provides an excellent opportunity for reversal trades.
Unlike classic Bollinger Bands, which often lag behind volatility, this system reacts extremely sensitively to current fluctuations and keeps the channel width much more constant.
🧠 How does the indicator work?
The Center Line (TMA): The heart of the channel is a double-smoothed Triangular Moving Average. This filters out short-term market noise and forms a static center of gravity for the price.
The Outer Bands (ATR): The channel boundaries are calculated using the Average True Range (ATR) as a proxy for true market volatility.
Auto-Deviation (Exclusive): Since highly volatile instruments (like XAUUSD on the 5M chart) have more extreme outliers than quiet Forex pairs, this indicator features an Auto-Deviation logic. It analyzes the last 200 candles and calculates the 85th percentile of volatility to stretch the channel exactly enough to capture normal price action, while immediately providing razor-sharp signals during real breakouts.
✨ Main Features & Visualization (See Screenshots)
Dual-Color Smart Bands: The channel visually displays the market state. If the price remains safely within the channel, the bands are red with a yellow edge. If the price touches the outer boundary and enters the reversal zone (Overbought/Oversold), the bands instantly switch to black with a green edge.
Precise Entry Signals: As soon as extreme zones are reached, the indicator plots colored arrows (including the exact entry price as text) directly above or below the corresponding candle. The text color automatically adapts to your PulseWire theme (Light/Dark).
Live Analysis Dashboard: In the top right corner of the chart, there is an info table that automatically simulates trades in the background and evaluates how profitable the signals currently are (including Win-Rate, accumulated Points/Pips, and the Live Spread).
⚙️ Settings (Parameters)
1. Auto-Calculate Optimal Deviation
(Default: Enabled) Allows the indicator to independently calculate the optimal channel width (Deviations) for the currently open instrument and selected timeframe. Ideal for dynamic markets like Gold.
2. Auto-Dev Percentile (Sensitivity)
(Default: 85) Controls the sensitivity of the automatic calculation. A lower value (e.g., 80) ignores more historical spikes, makes the channel tighter, and generates signals more frequently. A higher value (e.g., 95) makes the channel wider and filters signals more strictly.
3. Auto-Dev Smoothing Length
(Default: 14) Smooths the dynamically calculated channel width using an Exponential Moving Average (EMA). This prevents the channel from becoming erratic during a sudden, unnatural price spike.
4. Static Deviations
(Default: 2.0) The manual multiplier for the distance of the bands to the center line. This value is only used if the "Auto-Calculate" function is disabled.
5. Trade Exit Level
Determines at which point the dashboard considers a trade "closed" to calculate the Win-Rate.
Middle Line (Default): A trade is opened at the outer band and closed exactly at the TMA center line.
Opposite Band: A trade is only closed when the price has traveled completely through the channel and touches the opposite band.
6. Show Analysis Report
Shows or hides the performance dashboard (Info-Box) in the top right corner of the chart.
7. Signal Bar (Notification)
ClosedBar (Default): Signals and dashboard evaluations are only confirmed when the current candle has completely closed. This prevents "repainting" (arrows disappearing later).
LiveBar: Evaluates every tick in real-time. Can enable faster entries but carries the risk of false signals if the price pulls back before the candle closes. Indicator

Stock Data Table█ OVERVIEW
This is a table that shows some information about stocks. It is divided into four sections:
1) Correlation
2) Shares
3) Daily Data
4) Extended Session Data
The table is completely modular, which means you can add or remove each element from the settings menu, and it will automatically rearrange its spaces.
It is also highly customizable, to the extent that you can change almost any color, remove or change titles, invert section rows, and much more.
1) Correlation
The script checks if the stock is listed on NASDAQ, and if so, uses the QQQ (Nasdaq-100 ETF) as the reference index in the first cell; otherwise, it uses the SPY (S&P 500 ETF). The length of the correlation is shown in the second cell. The table then displays the correlation between the reference index and the other index, and the correlation between the reference index and the stock.
To make it easier to interpret the correlation values, each row's last cell is color-coded with a gradient to highlight the type of correlation, and the direction of the gradient can be customized.
The correlation coefficient is a statistical measure that quantifies the strength and direction of the relationship between two variables, indicating how changes in one variable are associated with changes in the other variable, so it can be used to identify patterns and trends.
If you are interested in correlation, I suggest taking a look at my dedicated indicator:
2) Shares
This feature provides you with quick access to key information about shares and market capitalization.
On one row, you can view the total shares outstanding and the market capitalization for the fiscal year or the quarterly year. The total shares outstanding represents the total number of shares of the stock that have been issued and are currently outstanding, regardless of whether they are held by insiders or public investors. The market capitalization is a widely used measure of the company's value as determined by the stock market, calculated by multiplying its current stock price with the total number of outstanding shares.
The other row shows the float, which is the number of shares of a company that are available for public trading, and the corresponding free-float market cap, calculated by multiplying the company's current stock price with the float. Because Pine Script does not allow retrieving information about quarterly year float, you can view the float and the free-float market cap of the fiscal year only. The data can be displayed at all times or only when the difference between the total shares outstanding and the float is significant enough to result in a difference between the market cap and free-float market cap.
The classification for market cap and free-float market cap is set in this way:
Mega Cap: $200 billion or more
Large Cap: between $10 billion and $200 billion
Mid Cap: between $2 billion and $10 billion
Small Cap: between $300 million and $2 billion
Micro Cap: less than $300 million
Penny Stocks: less than $5 (customizable)
Comparing the free-float market cap to the market cap can provide insights into the liquidity of a stock. In fact, if the float is relatively small compared to the total shares outstanding, it may be more difficult to find buyers or sellers, which could lead to increased volatility. On the other hand, a larger float indicates that the stock is more liquid and may be easier to trade, potentially resulting in lower volatility. However, market conditions can change quickly and significantly, especially for intraday traders, and the free-float can also change as insiders or other large shareholders buy or sell shares. Therefore, comparing the data of the fiscal year with that of the quarterly year may not provide the most up-to-date and accurate information for making trading decisions. This limitation can be mitigated by combining those data with other indicators and tools, such as technical analysis or news events, to gain a better understand of the stock's performance and potential trading opportunities.
3) Daily Data
This section is available on daily charts only due to the lack of accuracy of real-time daily data on other time frames. Here, you can view the Average Daily Volume (ADV) over a preferred time range (20 days by default), and the Daily Change, which represents the percentage difference between the closing price on two consecutive trading days.
ADV is useful in measuring the stock's volatility, as it provides an indication of how much trading activity there is in it. Generally speaking, stocks with higher trading volume tend to be less volatile than stocks with lower trading volume. High trading volume means there are more buyers and sellers actively trading the stock, which makes it easier for investors to buy and sell shares at fair prices. This increased liquidity can help to stabilize the stock price, reducing the potential for large swings in either direction. On the other hand, stocks with lower trading volume may experience greater volatility, as there are fewer buyers and sellers actively trading the stock. This can result in larger price swings, as it may be more difficult for investors to buy or sell shares at fair prices.
The daily percentage change can provide an indication of the stock's volatility, with larger values indicating greater volatility and risk. It can also be compared to that of a benchmark such an index or other stocks in the same sector, helping to determine whether the stock is outperforming or underperforming relative to them.
4) Extended Session Data
The fourth section is available on intraday charts only. This section provides two pieces of information: the Extended Session Change and the Pre-Market Volume.
The Extended Session Change indicates the percentage difference between the previous day's closing price and the latest price in the extended session. This gives you the extent and the direction of the price gap that occurred during extended trading hours.
The Pre-Market Volume shows the sum of all shares traded during the pre-market session. This can be helpful in understanding how much interest the stock gained before the market opened.
By default, the two rows will be visible at all times. They will stop updating after the end of their respective time range, and resume updating when it starts again. However, you can choose to automatically hide them outside of their time ranges.
Both the extended session and pre-market time ranges can be customized. Please note that if you select time ranges outside of the regular market session (as set by default), you must enable the extended session to view the corresponding rows.
█ GENERAL NOTES
• Total Shares Outstanding, Float, Average Daily Volume and Pre-Market Volume cells use a customizable color system based on two thresholds, to help you quickly identify whether the value is "too low/acceptable/too high" or "too low/not enough high/acceptable".
• If you cannot see certain data, that simply means it is not available. Indicator

Indicator

BTC Cap Dominance RSI StrategyThis strategy is based on the BTC Cap Dominance RSI indicator, which is a combination of the RSI of Bitcoin Market Cap and the RSI of Bitcoin Dominance. The concept of this strategy is to get a good grasp of the bitcoin market flow by combining bitcoin dominance as well as bitcoin market cap.
BTC Cap Dominance (BCD) RSI is defined as:
BCD RSI = (BTC Cap RSI + BTC Dominance RSI) / 2
Case 1 (Bull market):
Both Cap RSI and Dominance RSI values are high
Case 2 (Neutral market):
Cap RSI is high but Dominance RSI is low
Cap RSI is low but Dominance RSI is high
Case 3 (Bear market):
Both Cap RSI and Dominance RSI values are low
When the BCD RSI value closes the candle above the Bull level, it triggers a long signal and when the value closes below the Bear level, it triggers a short signal.
(Note) Please note that PulseWire's market cap symbols (CRYPTOCAP:TOTAL and CRYPTOCAP:TOTAL2) started in January 2020, so strategy backtesting is possible from this point on.
(Note) Since the real-time BCD RSI value does not come out with this strategy, it is recommended to use it together because the current value can be known and the long-short signal can be predicted in advance by using a separate BCD RSI Index together.
If "Use Combination of dominance RSI ?" is not checked in addition to the recommended default value of the strategy, the recommended values are Length (14), Bull level (74), Bear level (25).
_______________________________________________________________________
이 전략은 비트코인 시가총액의 RSI와 비트코인 도미넌스 RSI를 조합하여 만든 BTC Cap Dominance RSI 지표를 기반으로 만들어졌습니다. 이 전략의 컨셉은 비트코인 시가총액뿐만 아니라 비트코인 도미넌스를 조합함으로써 비트코인 시장 흐름을 잘 파악할 수 있도록 하는 것입니다.
BTC Cap Dominance (BCD) RSI는 다음과 같이 정의하였습니다.
BCD RSI = (BTC Cap RSI + BTC Dominance RSI) / 2
Case 1 (강세 장):
Cap RSI와 Dominance RSI 값 모두 높은 경우
Case 2 (횡보 장):
Cap RSI는 높지만 Dominance RSI는 낮은 경우
Cap RSI는 낮지만 Dominance RSI는 높은 경우
Case 3 (약세 장):
Cap RSI와 Dominance RSI 값 모두 낮은 경우
BCD RSI 값이 Bull level 위에서 캔들 마감할 경우 long 신호를 트리거하고 Bear level 아래에서 캔들 마감할 경우 short 신호를 트리거합니다.
(주의) 트레이딩뷰의 시가총액 심볼들 (CRYPTOCAP:TOTAL과 CRYPTOCAP:TOTAL2)이 2020년 1월부터 시작하였으므로 이 시점부터 전략 백테스팅이 가능한 점을 유의하십시오.
(주의) 이 전략은 실시간 BCD RSI 값이 나오지 않기 때문에 별도의 BCD RSI Index를 함께 사용하면 현재 값을 알 수 있어 롱숏 신호를 사전에 예측할 수 있으므로 함께 사용하기를 권장합니다.
전략의 추천 기본값 외에 "Use Combination of dominance RSI ?"를 체크하지 않는 경우 권장하는 값은 Length (14), Bull level (74), Bear level (25) 입니다. Strategy
