Crypto Flows [ETF|On-chain]The surge in Bitcoin and Ethereum spot ETFs has transformed how crypto is held and traded. By mid‑2025, U.S. spot Bitcoin ETFs already controlled roughly 1.28 million BTC, or about 6.5 percent of the circulating supply (Fosque, 2025). This accumulation has coincided with sharp price rallies and signals that regulated vehicles are absorbing a meaningful share of supply (Fosque, 2025; Wright, 2025). At the same time, on‑chain analytics show that exchange flows still influence markets: large inflows to exchanges often precede sell‑offs, whereas withdrawals to private wallets signal accumulation and reduced sell pressure (Singh, 2024; CryptoQuant, 2024). IntoTheBlock’s large‑holder inflow indicator even notes that spikes in whale buying frequently mark major bottoms (IntoTheBlock, 2022). I wanted to weave these pieces together, so I created this indicator.
Essence and logic
The script draws from two data streams: net flows into ETFs and net on‑chain flows from large holders, both scaled by the asset’s circulating market cap. ETF flows are aggregated across the ten largest INDEX:BTCUSD Bitcoin ETFs, the ten largest Ethereum INDEX:ETHUSD ETFs and the first CRYPTOCAP:SOL Solana ETF; each fund has its own checkbox and colour selection. On‑chain data uses IntoTheBlock’s large‑holder inflows and outflows, with dozens of coins available( CRYPTO:XRPUSD CRYPTOCAP:AVAX CRYPTOCAP:ADA CRYPTOCAP:LINK CRYPTO:DOGEUSD CRYPTOCAP:OTHERS ; if your coin isn’t shown in the dropdown you can manually enter its symbol. For each component, daily flows are converted into either a Z‑score or, by default, a percent‑of‑market‑cap series; users choose the weighting between ETF and on‑chain signals. These weighted series are summed into a composite, smoothed, and then two moving averages (a fast and a slow one) are applied to define bullish or bearish regimes. Because ETFs are a recent phenomenon, the early part of the composite is dominated by on‑chain flows; as ETF history lengthens, the fund‑flow component will become more influential. Trade signals are generated via moving‑average crossovers and optional dip triggers, and a trend table summarises current values and directions.
Why these components?
ETF flows reflect institutional adoption and supply absorption. Funds such as IBIT already hold about 744 000 BTC (roughly 3.3 percent of total supply), and cumulative ETF holdings have been growing faster than new coins are mined (Wright, 2025). Net inflows into these vehicles have tended to accompany rising prices and signal long‑horizon capital (Fosque, 2025). On‑chain flows, meanwhile, capture exchange liquidity dynamics. High inflows to exchanges often indicate that investors are preparing to sell, increasing tradable supply (Singh, 2024; CryptoQuant, 2024). Outflows into self‑custody suggest accumulation and reduced sell pressure, providing a bullish signal (Singh, 2024; CryptoQuant, 2024). IntoTheBlock points out that spikes in large‑holder inflows—whales moving coins into cold storage—have historically preceded price bottoms (IntoTheBlock, 2022). By weighting and standardising these flows relative to market cap, the composite aims to offer a more objective lens on risk‑on versus risk‑off regimes than price alone.
Limitations and outlook
ETFs a pretty new, so the data history is short. The list of tracked funds is currently limited to U.S. and European products; adding Asian or Canadian vehicles could provide a fuller picture. On‑chain flows can be noisy and occasionally give conflicting signals, and large‑holder data is not available for every crypto asset. The ETF and on‑chain components are also correlated through market cap, so equal weighting may amplify common trends. As macro conditions evolve and ETF redemption mechanisms change, the usefulness of fund flows could vary. I see this indicator as one tool among many, and I’m considering adding stablecoin flows, derivatives funding rates, or halving‑cycle adjustments. Suggestions are welcome.
Personal note
I’m a student who enjoys exploring the intersection of macro flows, on‑chain analytics and market psychology. This script is free to use. You can enable or disable each component, adjust weights, change the display mode and lookback, and select individual ETF tickers. If it brings you value, feel free to follow my work or reach out with feedback. I appreciate your support. Please remember that this indicator is for educational purposes and not investment advice. I built this indicator in addition to my Liquidity indicator, where I use Global M2, the yield curve, and the high-yield spread to define risk-on/risk-off regimes. If you are interested, you can find it here:
References
CryptoQuant Team. (2024). Exchange in/outflow and netflow user guide.
Fosque, J. (2025). Bitcoin ETFs pull $17.8 billion in 90 days as price surges past $118 K. The Digital Chamber.
IntoTheBlock. (2022). Large holders inflow indicator description.
Singh, O. (2024). Crypto exchange inflows and outflows explained: What they reveal about market trends. CCN.
Wright, L. (2025). Bitcoin ETFs to lock up 1.5 million BTC by New Year as supply squeeze tightens grip. CryptoSlate.
週期
Major & Modern Wars TimelineDescription:
This indicator overlays vertical lines and labels on your chart to mark the start and end dates of major global wars and modern conflicts.
Features:
Displays start (red line + label) and end (green line + label) for each war.
Covers 20th century wars (World War I, World War II, Korean War, Vietnam War, Gulf War, Afghanistan, Iraq).
Includes modern conflicts: Syrian Civil War, Ukraine War, and Israel–Hamas War.
For ongoing conflicts, the end date is set to 2025 for timeline visualization.
Customizable: label position (above/below bar), line width.
Works on any chart timeframe, overlaying events on financial data.
Use case:
Useful for historical market analysis (e.g., gold, oil, S&P 500), helping traders and researchers see how wars and conflicts align with market movements.
The Debasement IndexOVERVIEW
The Debasement Index measures asset prices relative to monetary debasement, providing a currency-neutral view of underlying economic fundamentals. Unlike traditional inflation metrics, it captures the sole impact of money supply expansion on asset valuations across different monetary regimes.
Key Innovation: Divides any asset by the ratio of Broad Money Supply (M2/M3) to Real GDP, reducing the impact of excess money creation on asset prices.
HOW IT WORKS
• Input 1: Select any symbol/asset for analysis (default: close price)
• Region: Choose country/currency for debasement calculation
• Display: Purple line overlay on main chart
Formula: Asset Price ÷ Debasement Index
i.e.
Formula: Asset Price ÷ (Money Supply / Real Output / last result (to rebased the index))
The indicator calculates neutralised security prices for each supported region:
• Numerator: M2/M3 money supply data
• Denominator: Real GDP (inflation-adjusted economic output)
• Number: rebases the index to the last updated value of the selected security
Supported Regions: US, UK etc. (regions may change based on availability)
DATA SOURCES
FRED (Federal Reserve Economic Data), TradingView Economics data feeds
INTERPRETATION
Rising Ratio: Asset outperforming monetary debasement (genuine value creation)
Falling Ratio: Asset underperforming relative to currency dilution (fundamental value loss)
Trend Analysis: Long-term slopes reveal whether assets maintain purchasing power against monetary expansion
The purple line represents the performance of the selected security after filtering out monetary noise, exposing fundamental economic trends that raw prices often obscure.
Take special note that most indices do not provide the total return, and the total return is necessary to understand actual value gains and losses.
APPLICATIONS
• Asset Allocation: Compare real returns across different monetary environments
• Cross-Country Analysis: Evaluate assets in countries with varying monetary policies
• Regime Identification: Spot asset price transitions that raw price measurements might obfuscate
• Value Assessment: Distinguish between monetary-driven and fundamental price movements
THEORETICAL FOUNDATION
Inspired by Anna Schwartz's monetary framework, the index attempts to measure currency dilution and remove that impact on the selected asset prices. It is a systematic attempt to filter out ‘monetary noise’ from financial data. The index addresses limitations of traditional inflation measures by:
1. Using real GDP (not nominal) to avoid circular causation of money creation
2. Capturing asset price effects beyond goods and services
3. Providing regime-aware analysis across monetary systems
LIMITATIONS
• Requires reliable M2/M3 and GDP data (scope and quality vary by country)
• Rebasing factors need periodic adjustment
• Most effective for medium to long-term analysis
• Not suitable for short-term trading signals
Note: This indicator reveals trends rather than providing entry/exit signals. Combining debasement-adjusted indices with comprehensive fundamental analysis can reframe and enhance your insights, providing a more complete understanding of price developments over time.
VVIX/VIX Ratio with Interpretation LevelsVVIX/VIX Ratio with Interpretation Levels
This indicator plots the ratio of VVIX (Volatility of Volatility Index) to VIX (CBOE Volatility Index) in a separate panel.
The ratio highlights when the options market is pricing unusually high volatility in volatility (VVIX) relative to the base volatility index (VIX).
Ratio < 5 → Complacency: Markets expect stability; often a pre-shock zone.
5–6 → Tension Building: Traders begin hedging volatility risk while VIX remains low.
6–7 → Elevated Risk: Divergence warns of potential regime change in volatility.
> 7 → High-Risk Zone: Options market pricing aggressive swings; can precede volatility spikes in equities.
The script also includes dashed interpretation lines (5, 6, 7) and automatic labels when key thresholds are crossed.
Background shading helps visualize current regime.
Use cases:
Detect hidden stress when VIX remains calm but VVIX rises.
Anticipate potential volatility regime shifts.
Support risk management and timing of long/short volatility strategies.
Pi Cycle OscillatorThis oscillator combines the Pi Cycle Top indicator with a percentile-based approach to create a more precise and easy to read market timing tool.
Instead of waiting for moving average crossovers, it shows you exactly how close you are to a potential market top.
Orange background means you should start preparing for a potential top and look into taking profits.
Red background means that the crossover has happened on the original Pi Cycle Indicator and that you should have already sold everything. (Crossover of the gray line aka 100)
Thank you
Bollinger Band Width Percentile - The_Caretaker
Pi Cycle Top - megasyl20
Market Cap Landscape 3DHello, traders and creators! 👋
Market Cap Landscape 3D. This project is more than just a typical technical analysis tool; it's an exploration into what's possible when code meets artistry on the financial charts. It's a demonstration of how we can transcend flat, two-dimensional lines and step into a vibrant, three-dimensional world of data.
This project continues a journey that began with a previous 3D experiment, the T-Virus Sentiment, which you can explore here:
The Market Cap Landscape 3D builds on that foundation, visualizing market data—particularly crypto market caps—as a dynamic 3D mountain range. The entire landscape is procedurally generated and rendered in real-time using the powerful drawing capabilities of polyline.new() and line.new() , pushed to their creative limits.
This work is intended as a guide and a design example for all developers, born from the spirit of learning and a deep love for understanding the Pine Script™ language.
---
🧐 Core Concept: How It Works
The indicator synthesizes multiple layers of information into a single, cohesive 3D scene:
The Surface: The mountain range itself is a procedurally generated 3D mesh. Its peaks and valleys create a rich, textured landscape that serves as the canvas for our data.
Crypto Data Integration: The core feature is its ability to fetch market cap data for a list of cryptocurrencies you provide. It then sorts them in descending order and strategically places them onto the 3D surface.
The Summit: The highest point on the mountain is reserved for the asset with the #1 market cap in your list, visually represented by a flag and a custom emblem.
The Mountain Labels: The other assets are distributed across the mountainside, with their rank determining their general elevation. This creates an intuitive visual hierarchy.
The Leaderboard Pole: For clarity, a dedicated pole in the back-right corner provides a clean, ranked list of the symbols and their market caps, ensuring the data is always easy to read.
---
🧐 Example of adjusting the view
To evoke the feeling of flying over mountains
To evoke the feeling of looking at a mountain peak on a low plain
🧐 Example of predefined colors
---
🚀 How to Use
Getting started with the Market Cap Landscape 3D:
Add to Chart: Apply the "Market Cap Landscape 3D" indicator to your active chart.
Open Settings: Double-click anywhere on the 3D landscape or click the "Settings" icon next to the indicator's name.
Customize Your Crypto List: The most important setting is in the Crypto Data tab. In the "Symbols" text area, enter a comma-separated list of the crypto tickers you want to visualize (e.g., BTC,ETH,SOL,XRP ). The indicator supports up to 40 unique symbols.
> Important Note: This indicator exclusively uses TradingView's `CRYPTOCAP` data source. To find valid symbols, use the main symbol search bar on your chart. Type `CRYPTOCAP:` (including the colon) and you will see a list of available options. For example, typing `CRYPTOCAP:BTC` will confirm that `BTC` is a valid ticker for the indicator's settings. Using symbols that do not exist in the `CRYPTOCAP` index will result in a script error. or, to display other symbols, simply type CRYPTOCAP: (including the colon) and you will see a list of available options.
Adjust Your View: Use the settings in the Camera & Projection tab to rotate ( Yaw ), tilt ( Pitch ), and scale the landscape until you find a view you love.
Explore & Customize: Play with the color palettes, flag design, and other settings to make the landscape truly your own!
---
⚙️ Settings & Customization
This indicator is highly customizable. Here’s a breakdown of what each setting does:
#### 🪙 Crypto Data
Symbols: Enter the crypto tickers you want to track, separated by commas. The script automatically handles duplicates and case-insensitivity.
Show Market Cap on Mountain: When checked, it displays the full market cap value next to the symbol on the mountain. When unchecked, it shows a cleaner look with just the symbol and a colored circle background.
#### 📷 Camera & Projection
Yaw (°): Rotates the camera view horizontally (side to side).
Pitch (°): Tilts the camera view vertically (up and down).
Scale X, Y, Z: Stretches or compresses the landscape in width, depth, and height, respectively. Fine-tune these to get the perfect perspective.
#### 🏞️ Grid / Surface
Grid X/Y resolution: Controls the detail level of the 3D mesh. Higher values create a smoother surface but may use more resources.
Fill surface strips: Toggles the beautiful color gradient on the surface.
Show wireframe lines: Toggles the visibility of the grid lines.
Show nodes (markers): Toggles the small dots at each grid intersection point.
#### 🏔️ Peaks / Mountains
Fill peaks volume: Draws vertical lines on high peaks, giving them a sense of volume.
Fill peaks surface: Draws a cross-hatch pattern on the surface of high peaks.
Peak height threshold: Defines the minimum height for a peak to receive the fill effect.
Peak fill color/density: Customizes the appearance of the fill lines.
#### 🚩 Flags (3D)
Show Flag on Summit: A master switch to show or hide the flag and emblem entirely.
Flag height, width, etc.: Provides full control over the dimensions and orientation of the flag on the highest peak.
#### 🎨 Color Palette
Base Gradient Palette: Choose from 13 stunning, pre-designed color themes for the landscape, from the classic SUNSET_WAVE to vibrant themes like NEON_DREAM and OCEANIC .
#### 🛡️ Emblem / Badge Controls
This section gives you granular control over every element of the custom emblem on the flag. Tweak rotation, offsets, and scale to design your unique logo.
---
👨💻 Developer's Corner: Modifying the Core Logic
If you're a developer and wish to customize the indicator's core data source, this section is for you. The script is designed to be modular, making it easy to change what data is being ranked and visualized.
The heart of the data retrieval and ranking logic is within the f_getSortedCryptoData() function. Here’s how you can modify it:
1. Changing the Data Source (from Market Cap to something else):
The current logic uses request.security("CRYPTOCAP:" + syms.get(i), ...) to fetch market capitalization data. To change this, you need to modify this line.
Example: Ranking by RSI (14) on the Daily timeframe.
First, you'll need a function to calculate RSI. Add this function to the script:
f_getRSI(symbol, timeframe, length) =>
request.security(symbol, timeframe, ta.rsi(close, length))
Then, inside f_getSortedCryptoData() , find the `for` loop that populates the `caps` array and replace the `request.security` call:
// OLD LINE:
// caps.set(i, request.security("CRYPTOCAP:" + syms.get(i), timeframe.period, close))
// NEW LINE for RSI:
// Note: You'll need to decide how to format the symbol name (e.g., "BINANCE:" + syms.get(i) + "USDT")
caps.set(i, f_getRSI("BINANCE:" + syms.get(i) + "USDT", "D", 14))
2. Changing the Data Formatting:
The ranking values are formatted for display using the f_fmtCap() function, which currently formats large numbers into "M" (millions), "B" (billions), etc.
If you change the data source to something like RSI, you'll want to change the formatting. You can modify f_fmtCap() or create a new formatting function.
Example: Formatting for RSI.
// Modify f_fmtCap or create f_fmtRSI
f_fmtRSI(float v) =>
str.tostring(v, "#.##") // Simply format to two decimal places
Remember to update the calls to this function in the main drawing loop where the labels are created (e.g., str.format("{0}: {1}", crypto.symbol, f_fmtCap(crypto.cap)) ).
By modifying these key functions ( f_getSortedCryptoData and f_fmtCap ), you can adapt the Market Cap Landscape 3D to visualize and rank almost any dataset you can imagine, from technical indicators to fundamental data.
---
We hope you enjoy using the Market Cap Landscape 3D as much as we enjoyed creating it. Happy charting! ✨
Adaptive Rolling Quantile Bands [CHE] Adaptive Rolling Quantile Bands
Part 1 — Mathematics and Algorithmic Design
Purpose. The indicator estimates distribution‐aware price levels from a rolling window and turns them into dynamic “buy” and “sell” bands. It can work on raw price or on *residuals* around a baseline to better isolate deviations from trend. Optionally, the percentile parameter $q$ adapts to volatility via ATR so the bands widen in turbulent regimes and tighten in calm ones. A compact, latched state machine converts these statistical levels into high-quality discretionary signals.
Data pipeline.
1. Choose a source (default `close`; MTF optional via `request.security`).
2. Optionally compute a baseline (`SMA` or `EMA`) of length $L$.
3. Build the *working series*: raw price if residual mode is off; otherwise price minus baseline (if a baseline exists).
4. Maintain a FIFO buffer of the last $N$ values (window length). All quantiles are computed on this buffer.
5. Map the resulting levels back to price space if residual mode is on (i.e., add back the baseline).
6. Smooth levels with a short EMA for readability.
Rolling quantiles.
Given the buffer $X_{t-N+1..t}$ and a percentile $q\in $, the indicator sorts a copy of the buffer ascending and linearly interpolates between adjacent ranks to estimate:
* Buy band $\approx Q(q)$
* Sell band $\approx Q(1-q)$
* Median $Q(0.5)$, plus optional deciles $Q(0.10)$ and $Q(0.90)$
Quantiles are robust to outliers relative to means. The estimator uses only data up to the current bar’s value in the buffer; there is no look-ahead.
Residual transform (optional).
In residual mode, quantiles are computed on $X^{res}_t = \text{price}_t - \text{baseline}_t$. This centers the distribution and often yields more stationary tails. After computing $Q(\cdot)$ on residuals, levels are transformed back to price space by adding the baseline. If `Baseline = None`, residual mode simply falls back to raw price.
Volatility-adaptive percentile.
Let $\text{ATR}_{14}(t)$ be current ATR and $\overline{\text{ATR}}_{100}(t)$ its long SMA. Define a volatility ratio $r = \text{ATR}_{14}/\overline{\text{ATR}}_{100}$. The effective quantile is:
Smoothing.
Each level is optionally smoothed by an EMA of length $k$ for cleaner visuals. This smoothing does not change the underlying quantile logic; it only stabilizes plots and signals.
Latched state machines.
Two three-step processes convert levels into “latched” signals that only fire after confirmation and then reset:
* BUY latch:
(1) HLC3 crosses above the median →
(2) the median is rising →
(3) HLC3 prints above the upper (orange) band → BUY latched.
* SELL latch:
(1) HLC3 crosses below the median →
(2) the median is falling →
(3) HLC3 prints below the lower (teal) band → SELL latched.
Labels are drawn on the latch bar, with a FIFO cap to limit clutter. Alerts are available for both the simple band interactions and the latched events. Use “Once per bar close” to avoid intrabar churn.
MTF behavior and repainting.
MTF sourcing uses `lookahead_off`. Quantiles and baselines are computed from completed data only; however, any *intrabar* cross conditions naturally stabilize at close. As with all real-time indicators, values can update during a live bar; prefer bar-close alerts for reliability.
Complexity and parameters.
Each bar sorts a copy of the $N$-length window (practical $N$ values keep this inexpensive). Typical choices: $N=50$–$100$, $q_0=0.15$–$0.25$, $k=2$–$5$, baseline length $L=20$ (if used), adaptation strength $s=0.2$–$0.7$.
Part 2 — Practical Use for Discretionary/Active Traders
What the bands mean in practice.
The teal “buy” band marks the lower tail of the recent distribution; the orange “sell” band marks the upper tail. The median is your dynamic equilibrium. In residual mode, these tails are deviations around trend; in raw mode they are absolute price percentiles. When ATR adaptation is on, tails breathe with regime shifts.
Two core playbooks.
1. Mean-reversion around a stable median.
* Context: The median is flat or gently sloped; band width is relatively tight; instrument is ranging.
* Entry (long): Look for price to probe or close below the buy band and then reclaim it, especially after HLC3 recrosses the median and the median turns up.
* Stops: Place beyond the most recent swing low or $1.0–1.5\times$ ATR(14) below entry.
* Targets: First scale at the median; optional second scale near the opposite band. Trail with the median or an ATR stop.
* Symmetry: Mirror the rules for shorts near the sell band when the median is flat to down.
2. Continuation with latched confirmations.
* Context: A developing trend where you want fewer but cleaner signals.
* Entry (long): Take the latched BUY (3-step confirmation) on close, or on the next bar if you require bar-close validation.
* Invalidation: A close back below the median (or below the lower band in strong trends) negates momentum.
* Exits: Trail under the median for conservative exits or under the teal band for trend-following exits. Consider scaling at structure (prior swing highs) or at a fixed $R$ multiple.
Parameter guidance by timeframe.
* Scalping / LTF (1–5m): $N=30$–$60$, $q_0=0.20$, $k=2$–3, residual mode on, baseline EMA $L=20$, adaptation $s=0.5$–0.7 to handle micro-vol spikes. Expect more signals; rely on latched logic to filter noise.
* Intraday swing (15–60m): $N=60$–$100$, $q_0=0.15$–0.20, $k=3$–4. Residual mode helps but is optional if the instrument trends cleanly. $s=0.3$–0.6.
* Swing / HTF (4H–D): $N=80$–$150$, $q_0=0.10$–0.18, $k=3$–5. Consider `SMA` baseline for smoother residuals and moderate adaptation $s=0.2$–0.4.
Baseline choice.
Use EMA for responsiveness (fast trend shifts) and SMA for stability (smoother residuals). Turning residual mode on is advantageous when price exhibits persistent drift; turning it off is useful when you explicitly want absolute bands.
How to time entries.
Prefer bar-close validation for both band recaptures and latched signals. If you must act intrabar, accept that crosses can “un-cross” before close; compensate with tighter stops or reduced size.
Risk management.
Position size to a fixed fractional risk per trade (e.g., 0.5–1.0% of equity). Define invalidation using structure (swing points) plus ATR. Avoid chasing when distance to the opposite band is small; reward-to-risk degrades rapidly once you are deep inside the distribution.
Combos and filters.
* Pair with a higher-timeframe median slope as a regime filter (trade only in the direction of the HTF median).
* Use band width relative to ATR as a range/trend gauge: unusually narrow bands suggest compression (mean-reversion bias); expanding bands suggest breakout potential (favor latched continuation).
* Volume or session filters (e.g., avoid illiquid hours) can materially improve execution.
Alerts for discretion.
Enable “Cross above Buy Level” / “Cross below Sell Level” for early notices and “Latched BUY/SELL” for conviction entries. Set alerts to “Once per bar close” to avoid noise.
Common pitfalls.
Do not interpret band touches as automatic signals; context matters. A strong trend will often ride the far band (“band walking”) and punish counter-trend fades—use the median slope and latched logic to separate trend from range. Do not oversmooth levels; you will lag breaks. Do not set $q$ too small or too large; extremes reduce statistical meaning and practical distance for stops.
A concise checklist.
1. Is the median flat (range) or sloped (trend)?
2. Is band width expanding or contracting vs ATR?
3. Are we near the tail level aligned with the intended trade?
4. For continuation: did the 3 steps for a latched signal complete?
5. Do stops and targets produce acceptable $R$ (≥1.5–2.0)?
6. Are you trading during liquid hours for the instrument?
Summary. ARQB provides statistically grounded, regime-aware bands and a disciplined, latched confirmation engine. Use the bands as objective context, the median as your equilibrium line, ATR adaptation to stay calibrated across regimes, and the latched logic to time higher-quality discretionary entries.
Disclaimer
No indicator guarantees profits. Adaptive Rolling Quantile Bands is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Best regards
Chervolino
CAT FLD SmoothWhat is an FLD?
The FLD stands for Future Line of Demarcation, introduced by J.M. Hurst in his Cyclic Analysis work.
It is constructed by shifting the price forward in time by half the length of a given cycle. For example, if you want to analyze a 40-bar cycle, you would plot price shifted forward by 20 bars. This creates a projected line that acts as a dynamic reference for where the cycle rhythm should align.
In practice, each cycle has its own FLD (20, 40, 80 bars, etc.), and when price interacts with those FLDs, it often reveals the underlying rhythm of market waves.
How Traders Use the FLD
1. Cycle Detection
When price crosses its FLD, it is often the signal that a cycle trough or peak has recently formed. This allows the trader to recognize where one wave ends and the next begins.
Upward cross → suggests a new upward cycle has started.
Downward cross → suggests a downward cycle is unfolding.
2. Projection of Price Targets
One of Hurst’s key insights is that after crossing an FLD, price often travels a distance roughly equal to the recent cycle’s amplitude. This makes the FLD a tool not only for timing but also for projecting targets.
Example:
If price rises through the 40-bar FLD after a cycle trough, the expected move is often the same height as the move off the last trough to the point of a break through the FLD.
3. Support and Resistance
FLDs can act like invisible levels of support and resistance, but unlike static horizontal levels, they are dynamic and cycle-based. Price often hesitates, bounces, or accelerates when touching its FLD.
4. Multi-Cycle Confluence
Markets rarely move in just one cycle length. By plotting multiple FLDs (for example, 20-bar, 40-bar, and 80-bar), traders can see where several FLDs line up. These confluences are particularly powerful—they highlight high-probability turning points.
Why FLDs Matter?
They help separate noise from structure by focusing on repeating time rhythms.
They provide early signals of where cycles invert.
They give price targets that are not arbitrary, but cycle-derived.
They can be combined with other tools (trendlines, oscillators, volume) for confirmation.
👉 With this indicator, you can visualize Hurst’s FLDs directly on your TradingView charts, making it easier to detect cycles, project targets, and anticipate turning points before they become obvious to everyone else.
CastAway Trader LLC, the publisher of this indicator is not registered as an investment adviser nor a broker/dealer with either the U. S. Securities & Exchange Commission or any state securities regulatory authority.
CastAway Trader LLC reserves the right to un-publish this indicator or change it without any written notice.
Past results are not indicative of future profits.
US Presidents 1789–1916Description:
This indicator displays all U.S. presidential elections from 1789 to 1916 on your chart.
Features:
Vertical lines at the date of each presidential election.
Line color by party:
Red = Republican
Blue = Democrat
Gray = Other/None
Labels showing the name of each president.
Historical flag style: All presidents before 1900 are considered historical, providing visual distinction.
Fully overlayed on the price chart for timeline context.
Customizable: Label position (above/below bar) and line width.
Use case: Great for studying historical market behavior around elections or for general reference of U.S. presidents during the early history of the country.
US Presidents 1920–2024Description:
This indicator displays all U.S. presidential elections from 1920 to 2024 on your chart.
Features:
Vertical lines at the date of each presidential election.
Line color by party:
Red = Republican
Blue = Democrat
Gray = Other/None
Labels showing the name of each president.
Modern flag style: Presidents from 1900 onward are highlighted as modern, giving clear historical separation.
Fully overlayed on the price chart for timeline context.
Customizable: Label position (above/below bar) and line width.
Use case: Useful for analyzing modern U.S. presidential cycles, market reactions to elections, or quickly referencing recent presidents directly on charts.
FED Rate Decisions (Cuts & Hikes)This indicator highlights key moments in U.S. monetary policy by plotting vertical lines on the chart for Federal Reserve interest rate decisions.
Features:
Rate Cuts (red): Marks dates when the Fed reduced interest rates.
Rate Hikes (green): Marks dates when the Fed increased interest rates.
Configurable view: Choose between showing all historical decisions or only those from 2019 onwards.
Labels: Each event is tagged with “FED CUT” or “FED HIKE” above or below the bar (adjustable).
Alerts: You can set TradingView alerts to be notified when the chart reaches a Fed decision day.
🔧 Inputs:
Show decisions: Switch between All or 2019+ events.
Show rate cuts / hikes: Toggle visibility separately.
Colors: Customize line and label colors.
Label position: Place labels above or below the bar.
📈 Usage:
This tool helps traders and investors visualize how Fed policy shifts align with market movements. Rate cuts often signal economic easing, while hikes suggest tightening monetary policy. By overlaying these events on price charts, you can analyze historical reactions and prepare for similar scenarios.
Killzones High/Low [FD] - ITADESCRIPTION ENGLISH - ITALIAN
Killzones High/Low - ITA - Indicator Description
Advanced Pine Script v5 indicator designed for ICT (Inner Circle Trader) strategies that identifies trading killzones, key support/resistance levels and midnight prices with granular controls for every element.
SETTINGS
General controls that affect all indicator elements:
Session Drawings Limit (1): Determines how many historical sessions to keep on chart for each element type. Higher values show more history but may slow performance
Timeframe Limit (30): Drawings disappear on timeframes equal or higher to avoid visual overload
Time Zone: Select reference timezone for sessions. America/New_York automatically adjusts for daylight saving, GMT options are fixed
Label Size: Controls global size of all labels (from Tiny to Huge)
Drawings Cutoff Time: Stops extension of all pivots at specified time (useful for end of trading day)
KILLZONES
Manages critical trading sessions with colored boxes and pivot lines:
General Controls
Show Boxes/Text: Enables visualization and texts in session boxes
Transparency: Controls opacity of boxes and text (0=opaque, 100=transparent)
Available Sessions
Five configurable sessions with individual controls for enabling, custom text, times and colors:
Asia (18:00-00:00): Blue by default
London (02:30-05:30): Red by default
N.Y. AM (07:00-11:30): Green by default
Lunch (11:30-13:00): Golden yellow, enabled by default
N.Y. PM (13:00-16:00): Purple by default
PDH / PDL
Manages Previous Day High and Previous Day Low levels:
Show PDH/PDL: Enables previous day's maximum/minimum
Extension: "Until Mitigation" (stops when broken) or "Most Recent Candle" (continues always)
Colors/Thickness: Visual customization of lines (dark purple by default, 1px thickness)
Labels: Shows "PDH"/"PDL" texts with customizable color (white by default)
PWH / PWL
Manages Previous Week High and Previous Week Low levels:
Show PWH/PWL: Enables previous week's maximum/minimum
Extension: Independent control of line extension
Colors/Thickness: Orange by default for both, 2px thickness
Labels: Configurable "PWH"/"PWL" texts
PMH / PML
Manages Previous Month High and Previous Month Low levels:
Show PMH/PML: Enables previous month's maximum/minimum using security()
Extension: Independent control like other systems
Colors/Thickness: Blue by default for both, 1px thickness
Labels: Customizable "PMH"/"PML" texts
MIDNIGHT PRICE LEVEL
Advanced system for multiple midnight prices:
Base Controls
Show Midnight Price: Enables line at pre-00:00 closing price (ICT strategy)
Midnight -2/-3 Days: Extends system to 2 and 3 days prior
Extension/Mitigation: "Until Mitigation" or "Most Recent Candle" with "Once" or "Multiple" mode
Customization
Separate Colors: D-1, D-2, D-3 with progressive transparency (gold by default)
Style/Thickness: Customizable lines (Solid, Dotted, Dashed)
Labels: Configurable texts (🌙1, 🌙2, 🌙3) with customizable background/text colors
Alerts: Alerts when mitigated during active killzones
KILLZONE LEVEL
Controls pivot lines and killzone labels:
Line Controls
Show Lines: Enables horizontal lines on killzone highs/lows
Break Alerts: Alerts when pivots are exceeded
Midpoints: Dashed lines at range center with stop option after mitigation
Label Offset: Moves labels ahead by 5 candles (0-20 configurable), rejoining when mitigated
Label Controls
Text Customization: Configurable labels for each session (Asia_H/L, London_H/L, etc.)
Background/Colors: Transparent or visible labels with customizable colors
Broken Labels: Additional text (❌ by default) and special colors when pivots mitigated
Extension: "Until Mitigation" or "Beyond Mitigation" with session filter ("Most Recent" or "All")
LABEL STYLES
Four dedicated sections to customize label graphic shapes:
Killzone Line Label Styles: Separate controls for killzone High/Low
PDH/PDL Label Styles: Customizable shapes for Previous Day levels
PWH/PWL Label Styles: Customizable shapes for Previous Week levels
PMH/PML Label Styles: Customizable shapes for Previous Month levels
Each section offers 15+ shape options (Arrows, Center, Circle, Square, Diamond, Triangles, Crosses, Flags, etc.)
MIDNIGHT LINES
System for vertical lines at 00:00:
Show Lines/Labels: Vertical lines with upward arrow labels
Customization: Color (gray by default), style, thickness of vertical lines
Labels: Configurable text ("00:00" by default) with customizable text color (black by default)
Label Offset: Percentage control (-10000% to +10000%) for vertical positioning
Extension: Configurable directions (None, Above, Below, Both)
Limit: Maximum number of lines maintained (4 by default, max 50)
The indicator offers granular control over every visual and functional aspect, making it possible to adapt it to any ICT trading strategy or personal setup.
---ITALIANO---
Killzones High/L ow - ITA
Indicatore avanzato per Pine Script v5 progettato per strategie ICT (Inner Circle Trader) che identifica killzones di trading, livelli chiave di supporto/resistenza e prezzi di mezzanotte con controlli granulari per ogni elemento.
IMPOSTAZIONI
Controlli generali che influenzano tutti gli elementi dell'indicatore:
-Limite Disegni Sessione (1): Determina quante sessioni storiche mantenere sul grafico per ogni tipo di elemento. Valori più alti mostrano più cronologia ma possono rallentare le prestazioni
-Limite Timeframe (30): I disegni scompaiono su timeframe uguali o superiori per evitare sovraccarico visivo
-Fuso Orario: Seleziona il fuso di riferimento per le sessioni. America/New_York si regola automaticamente per l'ora legale, le opzioni GMT sono fisse
-Dimensione Etichette: Controlla la dimensione globale di tutte le etichette (da Minuscola a Enorme)
-Orario Limite Disegni: Ferma l'estensione di tutti i pivot all'orario specificato (utile per fine giornata di trading)
KILLZONES
Gestisce le sessioni di trading critiche con riquadri colorati e linee pivot:
Controlli Generali
-Mostra Riquadri/Testo: Abilita visualizzazione e testi nei riquadri delle sessioni
-Trasparenza: Controlla opacità di riquadri e testo (0=opaco, 100=trasparente)
Sessioni Disponibili
Cinque sessioni configurabili con controlli individuali per abilitazione, testo personalizzato, orari e colori:
Asia (18:00-00:00): Blu di default
London (02:30-05:30): Rosso di default
N.Y. AM (07:00-11:30): Verde di default
Lunch (11:30-13:00): Giallo dorato, abilitata di default
N.Y. PM (13:00-16:00): Viola di default
PDH / PDL
Gestisce i livelli Previous Day High e Previous Day Low:
-Mostra PDH/PDL: Abilita massimo/minimo del giorno precedente
-Estensione: "Fino a Mitigazione" (si ferma quando rotto) o "Candela Più Recente" (continua sempre)
-Colori/Spessore: Personalizzazione visiva delle linee (viola scuro di default, spessore 1px)
-Etichette: Mostra testi "PDH"/"PDL" con colore personalizzabile (bianco di default)
PWH / PWL
Gestisce i livelli Previous Week High e Previous Week Low:
-Mostra PWH/PWL: Abilita massimo/minimo della settimana precedente
-Estensione: Controllo indipendente dell'estensione delle linee
-Colori/Spessore: Arancione di default per entrambi, spessore 2px
-Etichette: Testi "PWH"/"PWL" configurabili
PMH / PML
Gestisce i livelli Previous Month High e Previous Month Low:
-Mostra PMH/PML: Abilita massimo/minimo del mese precedente utilizzando security()
-Estensione: Controllo indipendente come gli altri sistemi
-Colori/Spessore: Blu di default per entrambi, spessore 1px
-Etichette: Testi "PMH"/"PML" personalizzabili
MIDNIGHT PRICE LEVEL
Sistema avanzato per prezzi di mezzanotte multipli:
Controlli Base
-Mostra Midnight Price: Abilita linea al prezzo di chiusura pre-00:00 (strategia ICT)
-Midnight -2/-3 Giorni: Estende il sistema a 2 e 3 giorni precedenti
-Estensione/Mitigazione: "Fino a Mitigazione" o "Candela Più Recente" con modalità "Una Volta" o "Multipla"
Personalizzazione
-Colori separati: D-1, D-2, D-3 con trasparenza progressiva (giallo oro di default)
-Stile/Spessore: Linee personalizzabili (Solida, Punteggiata, Tratteggiata)
-Etichette: Testi configurabili (🌙1, 🌙2, 🌙3) con colori sfondo/testo personalizzabili
-Avvisi: Alert quando mitigati durante killzones attive
KILLZONE LEVEL
Controlla linee pivot e etichette delle killzones:
Controlli Linee
-Mostra Linee: Abilita linee orizzontali sui massimi/minimi delle killzones
-Avvisi Rottura: Alert quando pivot vengono superati
-Punti Medi: Linee tratteggiate al centro del range con opzione di stop dopo mitigazione
-Offset Etichette: Sposta etichette avanti di 5 candele (0-20 configurabile), ricongiungendole quando mitigate
Controlli Etichette
-Personalizzazione Testi: Etichette configurabili per ogni sessione (Asia_H/L, London_H/L, ecc.)
-Sfondo/Colori: Etichette trasparenti o visibili con colori personalizzabili
-Etichette Rotte: Testo aggiuntivo (❌ di default) e colori speciali quando pivot mitigati
-Estensione: "Fino a Mitigazione" o "Oltre Mitigazione" con filtro sessioni ("Più Recente" o "Tutte")
STILI ETICHETTE
Tre sezioni dedicate per personalizzare la forma grafica delle etichette:
-Stili Etichette Linee Killzones: Controlli separati per High/Low delle killzones
-Stili Etichette PDH/PDL: Forme personalizzabili per Previous Day levels
-Stili Etichette PWH/PWL: Forme personalizzabili per Previous Week levels
-Stili Etichette PMH/PML: Forme personalizzabili per Previous Month levels
Ogni sezione offre 15+ opzioni di forma (Frecce, Centro, Cerchio, Quadrato, Diamante, Triangoli, Croci, Bandiere, ecc.)
LINEE MEZZANOTTE
Sistema per linee verticali alle ore 00:00:
-Mostra Linee/Etichette: Linee verticali con etichette freccia verso l'alto
-Personalizzazione: Colore (grigio di default), stile, spessore delle linee verticali
-Etichette: Testo configurabile ("00:00" di default) con colore testo personalizzabile (nero di default)
-Offset Etichette: Controllo percentuale (-10000% a +10000%) per posizionamento verticale
-Estensione: Direzioni configurabili (Nessuna, Sopra, Sotto, Entrambe)
-Limite: Numero massimo linee mantenute (4 di default, max 50)
L'indicatore offre controllo granulare su ogni aspetto visivo e funzionale, rendendo possibile adattarlo a qualsiasi strategia di trading ICT o setup personale.
Smart Money Windows X6Smart Money Windows 📊💰 – See where the pros hide their orders! Spot liquidity traps, smart money zones, and session kill zones before price flips. 🚀🔥
Smart Money Windows- X7Smart Money Windows 📊💰
Unlock the secret moves of the big players! This indicator highlights key liquidity traps, smart money zones, and market kill zones for the Asian, London, and New York sessions. See where the pros hide their orders and spot potential price flips before they happen! 🚀🔥
Features:
Visual session boxes with high/low/mid levels 🟪🟫
NY session shifted 60 mins for precise timing 🕒
Perfect for spotting traps, inducements & smart money maneuvers 🎯
Works on Forex, crypto, and stocks 💹
Get in the “Smart Money Window” and trade like the pros! 💸🔑
By HH
Smart Money Windows- X7Smart Money Windows 📊💰
Unlock the secret moves of the big players! This indicator highlights key liquidity traps, smart money zones, and market kill zones for the Asian, London, and New York sessions. See where the pros hide their orders and spot potential price flips before they happen! 🚀🔥
Features:
Visual session boxes with high/low/mid levels 🟪🟫
NY session shifted 60 mins for precise timing 🕒
Perfect for spotting traps, inducements & smart money maneuvers 🎯
Works on Forex, crypto, and stocks 💹
Get in the “Smart Money Window” and trade like the pros! 💸🔑
By HH
EdgeFlow Pullback [CHE]EdgeFlow Pullback \ — Icon & Visual Guide (Deep Dive)
TL;DR (1-minute read)
⏳ Hourglass = Pending verdict. A countdown runs from the signal bar until your Evaluation Window ends.
✔ Checkmark (green) = OK. After the evaluation window, price (HLC3) is on the correct side of the EMA144 for that signal’s direction.
✖ Cross (red) = Fail. After the evaluation window, price (HLC3) is on the wrong side of the EMA144.
▲ / ▼ Triangles = the actual PB Long/Short signal bar (sequence completed in time).
Small lime/red crosses = visual markers when HLC3 crosses EMA144 (context, not trade signals).
Orange line = EMA144 (baseline/trend filter).
T3 line color = Context signal: green when T3 is below HLC3, red when T3 is above HLC3.
Icon Glossary (What each symbol means)
1) ⏳ Hourglass — “Pending / Countdown”
Appears immediately when a PB signal fires (Long or Short).
Shows `⏳ currentBars / EvaluationBars` (e.g., `⏳ 7/30`).
The label stays anchored at the signal bar and its original price level (it does not drift with price).
During ⏳ you get no verdict yet. It’s simply the waiting period before grading.
2) ✔ Checkmark (green) — “Condition met”
Appears after the Evaluation Window completes.
Logic:
Long signal: HLC3 (typical price) is above EMA144 → ✔
Short signal: HLC3 is below EMA144 → ✔
The label turns green and text says “✔ … Condition met”.
This is rules-based grading, not PnL. It tells you if the post-signal structure behaved as expected.
3) ✖ Cross (red) — “Condition failed”
Appears after the Evaluation Window completes if the condition above is not met.
Label turns red with “✖ … Condition failed”.
Again: rules-based verdict, not a guarantee of profit or loss.
4) ▲ “PB Long” triangle (below bar)
Marks the exact bar where the 4-step Long sequence completed within the allowed window.
That bar is your signal bar for Long setups.
5) ▼ “PB Short” triangle (above bar, red)
Same as above, for Short setups.
6) Lime/Red “+” crosses (tiny cross markers)
Lime cross (below bar): HLC3 crosses above EMA144 (crossover).
Red cross (above bar): HLC3 crosses below EMA144 (crossunder).
These crosses are context markers; they’re not entry signals by themselves.
The Two Clocks (Don’t mix them up)
There are two different time windows at play:
1. Signal Window — “Max bars for full sequence”
A pullback signal (Long or Short) only fires if the 4-step sequence completes within this many bars.
If it takes too long: reset (no signal, no triangle, no label).
Purpose: avoid stale setups.
2. Evaluation Window — “Evaluation window after signal (bars)”
Starts after the signal bar. The label shows an ⏳ countdown.
When it reaches the set number of bars, the indicator checks whether HLC3 is on the correct side of EMA144 for the signal direction.
Then it stamps the signal with ✔ (OK) or ✖ (Fail).
Timeline sketch (Long example):
```
→ ▲ PB Long at bar t0
Label shows: ⏳ 0/EvalBars
t0+1, t0+2, ... t0+EvalBars-1 → still ⏳
At t0+EvalBars → Check HLC3 vs EMA144
Result → ✔ (green) or ✖ (red)
(Label remains anchored at t0 / signal price)
```
What Triggers the PB Signal (so you know why triangles appear)
LONG sequence (4 steps in order):
1. T3 falling (the pullback begins)
2. HLC3 crosses under EMA144
3. T3 rising (pullback ends)
4. HLC3 crosses over EMA144 → PB Long triangle
SHORT sequence (mirror):
1. T3 rising
2. HLC3 crosses over EMA144
3. T3 falling
4. HLC3 crosses under EMA144 → PB Short triangle
If steps 1→4 don’t complete in time (within Max bars for full sequence), the sequence is abandoned (no signal).
Lines & Colors (quick interpretation)
EMA144 (orange): your baseline trend filter.
T3 (green/red):
Green when T3 < HLC3 (price above the smoothed path; often supportive in up-moves)
Red when T3 > HLC3 (price below the smoothed path; often pressure in down-moves)
HLC3 (gray): the typical price the logic uses ( (H+L+C)/3 ).
Label Behavior (anchoring & cleanup)
Each signal creates one label at the signal bar with ⏳.
The label is position-locked: it stays at the same bar index and y-price it was born at.
After the evaluation check, the label text and color update to ✔/✖, but position stays fixed.
The indicator keeps only the last N labels (your “Show only the last N labels” input). Older ones are deleted to reduce clutter.
What You Can (and Can’t) Infer from ✔ / ✖
✔ OK: Structure behaved as intended during the evaluation window (HLC3 finished on the correct side of EMA144).
Inference: The pullback continued in the expected direction post-signal.
✖ Fail: Structure ended up opposite the expectation.
Inference: The pullback did not continue cleanly (chop, reversal, or insufficient follow-through).
> Important: ✔/✖ is not profit or loss. It’s an objective rule check. Use it to identify market regimes where your entries perform best.
Input Settings — How they change the visuals
T3 length:
Shorter → faster turns, more signals (and more noise).
Longer → smoother turns, fewer but cleaner sequences.
T3 volume factor (0–1, default 0.7):
Higher → more curvature/smoothing.
Typical sweet spot: 0.5–0.9.
EMA length (baseline) default 144:
Smaller → faster baseline, more cross events, more aggressive signals.
Larger → slower, stricter trend confirmation.
Max bars for full sequence (signal window):
Smaller → only fresh, snappy pullbacks can signal.
Larger → allows slower pullbacks to complete.
Evaluation window (after signal):
Smaller → verdict arrives quickly (less tolerance).
Larger → gives the trade more time to prove itself structurally.
Show only the last N labels:
Controls chart clutter. Increase for more history, decrease for focus.
(FYI: The “Debug” toggle exists but doesn’t draw extra overlays in this version.)
Practical Reading Flow (how to use visuals in seconds)
1. Triangles catch your eye: ▲ for Long, ▼ for Short. That’s the setup completion.
2. ⏳ label starts—don’t judge yet; let the evaluation run.
3. Watch EMA slope and T3 color for context (trend + pressure).
4. After the window: ✔/✖ stamps the outcome. Log what the market was like when you got ✔.
Common “Why did…?” Questions
Q: Why did I get no triangle even though T3 turned and EMA crossed?
A: The 4 steps must happen in order and within the Signal Window. If timing breaks, the sequence resets.
Q: Why did my label stay ⏳ for so long?
A: That’s by design until the Evaluation Window completes. The verdict only happens at the end of that window.
Q: Why is ✔/✖ different from my PnL?
A: It’s a structure check, not a profit check. It doesn’t know your entries/exits/stops.
Q: Do the small lime/red crosses mean buy/sell?
A: No. They’re context markers for HLC3↔EMA crosses, useful inside the sequence but not standalone signals.
Pro Tips (turn visuals into decisions)
Entry: Use the ▲/▼ triangle as your trigger, in trend direction (check EMA slope/market structure).
Stop: Behind the pullback swing around the signal bar.
Exit: Structure levels, R-multiples, or a reverse HLC3↔EMA cross as a trailing logic.
Tuning:
Intraday/volatile: shorter T3/EMA + tighter Signal Window.
Swing/slow: default 144 EMA + moderate windows.
Learn quickly: Filter your chart to show only ✔ or only ✖ windows in your notes; see which sessions, assets, and volatility regimes suit the system.
Disclaimer
No indicator guarantees profits. Sweep2Trade Pro \ is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Happy trading
Chervolino
BRT T3 for BTC 1h [STRATEGY]## 📊 BRT T3 Adaptive Strategy for BTC 1H
STRATEGY DESCRIPTION
Professional trading strategy based on the adaptive T3 (Tillson T3) indicator with dynamic length controlled by the Relative Strength Index (RSI) . The strategy is specifically designed for Bitcoin trading on the hourly timeframe and includes a comprehensive filter system to minimize false signals.
═════════════════════════════════════════
🔥 UNIQUE CODE FEATURES
1. RSI-Adaptive Architecture:
• Innovative Approach: Unlike standard MA strategies with fixed periods, our code dynamically adjusts the moving average length based on RSI
• Smart Formula: len = minLen + (maxLen - minLen) * (1 - RSI/100) - automatically accelerates response in extreme zones
• Result: Strategy adapts to market conditions without manual reconfiguration
2. Modified Ichimoku Cloud:
• Unique Calculation: Instead of classic high/low, uses ATR-based method
• Dynamic Levels: Cloud is built based on volatility, not fixed periods
• Advantage: More accurate trend determination in highly volatile cryptocurrency markets
3. Hybrid Signal System:
• Dual-mode Generation: Switch between classic MA crossovers and volatility band breakouts
• Multi-stage Confirmation: Optional signal verification across N forward bars
• Effect: 40-60% reduction in false signals compared to simple MA strategies
4. All-in-One Solution:
• 8 MA Types in One Code: The only strategy on TradingView with complete implementation of T3, EMA, SMA, WMA, VWMA, HMA, RMA, DEMA
• Custom Functions: All MAs calculated through custom functions supporting series int
• Versatility: One code replaces 8 different strategies
5. Intelligent Filtering:
Combination of 4 independent filters:
├── Volume Filter (dynamic multiplier)
├── Trend Filter (adaptive period)
├── ATR Filter (volatility)
└── Ichimoku Filter (cloud trend)
• Unique Logic: Each filter can work independently or in combination
• Master Switch: Single control for all filters
6. Advanced Risk Management:
• Smart Stops: SL/TP levels are stored in variables and not recalculated on every bar
• Slippage Protection: Checks both close and high/low for stop triggers
• Visualization: Dynamic display of levels only for active positions
7. Performance Optimization:
• Efficient Loops: Minimized calculations through intermediate result storage
• Conditional Visualization: Element rendering only when necessary
• Clean Code: Structured organization with clear logical block separation
═════════════════════════════════════════
💎 TECHNICAL INNOVATIONS
Adaptation Algorithm (exclusive development):
// Dynamic length based on RSI
rsi_scale = 1.0 - rsi / 100.0
len_adaptive = minLen + (maxLen - minLen) * rsi_scale
ATR-based Ichimoku (unique modification):
// Instead of classic (highest + lowest) / 2
// Using ATR for dynamic levels
upper := close < upper ? min(hl2 + atr*mult, upper ) : hl2 + atr*mult
lower := close > lower ? max(hl2 - atr*mult, lower ) : hl2 - atr*mult
Multi-MA Architecture (complete implementation):
• Each MA type has its own optimized function
• Support for series int for dynamic length
• Unified selection interface via switch statement
═════════════════════════════════════════
🎯 KEY FEATURES
• Adaptive System: Moving average length automatically adjusts based on RSI, providing quick response in trending movements and stability in sideways markets
• 8 Moving Average Types: T3, EMA, SMA, WMA, VWMA, HMA, RMA, DEMA - ability to choose the optimal type for different market conditions
• Multi-level Filtering:
- Volume Filter - signal confirmation with increased activity
- Trend Filter - trading in the direction of the main trend
- ATR Filter - accounting for market volatility
- Ichimoku Cloud - additional trend direction confirmation
• Professional Risk Management: Customizable stop-loss and take-profit levels
═════════════════════════════════════════
⚙️ HOW IT WORKS
1. Signal Generation:
• Original Mode: Classic MA crossover signals with lagged version
• Band Break Mode: Volatility band breakouts (based on standard deviation)
2. RSI Adaptation:
• High RSI (overbought) → uses short MA length for quick response
• Low RSI (oversold) → uses long MA for noise smoothing
• Adaptation range is configured by Min/Max length parameters
3. Filter System:
• Each filter can be enabled/disabled independently
• Signal is generated only when passing all active filters
• Ichimoku filter blocks counter-trend trades
═════════════════════════════════════════
📈 STRATEGY PARAMETERS
Main Settings:
• Strategy Type: Long Only / Short Only / Both
• Data Source: Close, Open, High, Low, HL2, HLC3, OHLC4
RSI Settings:
• RSI Length: Calculation period (default 14)
• RSI Smoothing: Smoothing to reduce noise
T3/MA Settings:
• Min/Max Length: Adaptive length range (5-50)
• Volume Factor: T3 smoothing coefficient (0.7)
• MA Type: Moving average type selection
Filters:
• Volume Filter: Volume multiplier (1.5x average)
• Trend Filter: Trend MA period (200)
• ATR Filter: Minimum volatility for entry
• Ichimoku Filter: Cloud for trend determination
Risk Management:
• Stop Loss: Percentage from entry price (1.2%)
• Take Profit: Percentage from entry price (5.9%)
• Position Size: 50,000 USDT (effective leverage 5x)
═════════════════════════════════════════
💡 USAGE RECOMMENDATIONS
Optimal Conditions:
• Timeframe: 1H (developed and optimized)
• Instrument: BTC/USDT and other liquid cryptocurrencies
• Market Conditions: Trending and moderately volatile markets
Customize to Your Style:
1. Conservative: Increase signal confirmation period, enable all filters
2. Aggressive: Reduce filters, use Band Break mode
3. Scalping: Decrease Min/Max length, disable trend filter
═════════════════════════════════════════
📊 VISUALIZATION
Strategy displays:
• Main MA Line - changes color depending on direction
• Lag Line - for visualizing crossover moment
• Volatility Bands - upper and lower boundaries
• Trend MA - orange line (200 periods)
• SL/TP Levels - red and green lines for open positions
═════════════════════════════════════════
🔔 ALERTS
Strategy supports alert configuration for:
• Long position entry signals
• Short position entry signals
• Position exit signals
• Ichimoku line crossings
═════════════════════════════════════════
⚠️ RISK WARNING
IMPORTANT NOTICE: Trading in financial markets involves substantial risk of capital loss. Past performance presented in this strategy is based solely on historical data and under no circumstances constitutes a guarantee of future returns.
The strategy author is not responsible for:
• Any direct or indirect financial losses resulting from the use of this strategy
• Trading decisions made based on strategy signals
• Interpretation of backtesting results as a forecast of future performance
This strategy is provided exclusively for educational and research purposes. Backtesting results are affected by numerous factors including but not limited to: slippage, spread, commissions, market liquidity, and technical failures.
Before using the strategy in live trading:
• Conduct your own testing on a demo account
• Ensure understanding of all parameters and logic
• Only use funds you can afford to lose
• Consider consulting with a qualified financial advisor
DISCLAIMER: By using this strategy, you acknowledge and accept all risks associated with financial market trading and confirm that the author does not provide investment advice and bears no fiduciary responsibility to users.
═════════════════════════════════════════
🛠 TECHNICAL SUPPORT
For questions about setup and optimization:
• Leave comments under the publication
• Follow strategy updates
• Study the code for deep understanding of logic
═════════════════════════════════════════
📝 VERSION AND UPDATES
Version: 1.0.0
Pine Script: v6
Last Updated: 2025
Changelog:
• Added support for 8 MA types
• Integrated Ichimoku Cloud filter
• Optimized risk management system
• Improved signal visualization
═════════════════════════════════════════
© 2025 BRT Trading Systems
Strategy is protected by copyright. Commercial use without author's permission is prohibited.
TDI MTF Trend Grabber DELUXETDI MTF Trend Grabber DELUXE
2 fast MA
1 slow MA
Lot of options enjoy!
#BTMM #TR # PATTERNWATCH
20/40/60Displays three consecutive, connected range boxes showing high/low price ranges for customizable periods. Boxes are positioned seamlessly with shared boundaries for continuous price action visualization.
Features
Three Connected Boxes: Red (most recent), Orange (middle), Green (earliest) periods
Customizable Positioning: Set range length and starting offset from current bar
Individual Styling: Custom colors, transparency, and border width for each box
Display Controls: Toggle borders, fills, and line visibility
Use Cases
Range Analysis: Compare volatility across time periods, spot breakouts
Support/Resistance: Use box boundaries as potential S/R levels
Market Structure: Visualize recent price development and trend patterns
Key Settings
Range Length: Bars per box (default: 20)
Starting Offset: Bars back from current to position boxes (default: 0)
Style Options: Colors, borders, and visibility controls for each box
Perfect for traders analyzing consecutive price ranges and comparing current conditions to recent historical periods.
FVG Fusion – by EB | Smart Money ConceptsFVG Fusion – by EB is an advanced indicator based on Smart Money Concepts (SMC).
It automatically detects Fair Value Gaps (FVG) on multiple timeframes, along with key PDH/PDL (Daily Previous) and PWH/PWL (Weekly Previous) levels.
🔹 Key Features
Automatic detection of bullish and bearish FVGs
Multi-timeframe (M5 to D1)
PDH/PDL and PWH/PWL levels with lightning bolts
Configurable alerts when tapping on a FVG
Customizable colors, thicknesses, and automatic clearing.
💡 Ideal for traders who use Price Action and SMC to identify imbalances and high-probability zones.
Fano algorithmFano Algorithm is a powerful and minimalist Fair Value Gap (FVG) indicator designed for traders who follow Smart Money Concepts (SMC). Built to highlight potential areas of price inefficiency, this tool automatically detects FVGs across all timeframes and displays them cleanly on the chart – without clutter or distractions.
Core Features:
Automatic detection of Bullish and Bearish FVGs
Clean visual display with customizable color options
Alerts when price enters an FVG zone
Works on any asset and any timeframe
Optimized for precision and clarity