Triple Confirmation Scalper v2 - Alarm CompatibleTriple Confirmation Scalper Strategy
A high-probability scalping strategy combining trend momentum, overbought/sold conditions, and volume confirmation to filter low-noise signals.
📊 Strategy Logic
Trend Direction
Dual EMA crossover (9 & 21 periods) for momentum and trend bias.
Overbought/Oversold Zones
RSI (14-period) to avoid entries at extremes.
Volume Spike Filter
OBV + 20-period volume average to confirm breakout validity.
Dynamic Risk Management
Stop-loss: Adaptive to recent price action (5-candle low/high ±1%).
Take-profit: 1.5% target (1.5:1 risk/reward).
🔍 Advanced Features
Precision VWAP (20-period, HLC3-based) for dynamic S/R levels.
Visual Aids:
EMA/VWAP bands + trend-colored background.
Volume spike alerts.
TradingView Alerts pre-configured for long/short signals.
⚙️ Default Settings
Commission: 0.1% factored into backtests.
Mode: Supports both long/short positions.
⚠️ Disclaimer
This is a technical analysis tool, not financial advice.
Past performance ≠ future results. Test thoroughly in a demo account.
Adjust parameters (e.g., EMA periods, RSI thresholds) to match your risk tolerance.
✅ TradingView Compliance Notes:
No exaggerated claims (e.g., "100% win rate").
Clear disclaimer included.
Focus on objective strategy logic (no promotional language).
Trendanalyse
Stealth Trigger X🔰 Stealth Trigger X — Smart Divergence & Breakout Strategy with Trend Weakness Exit
Stealth Trigger X is a precision-engineered, non-repainting strategy designed for traders who rely on high-conviction breakouts and trend confirmation. Rather than relying on lagging or oversimplified signals, this strategy fuses divergence logic, volatility detection, volume filtering, and slope-based trend validation into one clean system — making it both responsive and reliable.
📌 Core Components (How It Works):
1. ZLEMA (Zero-Lag Exponential Moving Average):
Used as the primary trend baseline. Unlike a standard EMA, ZLEMA compensates for lag by using a double-smoothing technique that allows the strategy to detect trend direction changes sooner — especially useful in crypto and fast-moving markets.
2. Gradient Filter (Slope of ZLEMA):
Rather than waiting for price to cross a moving average, the strategy measures the slope of the ZLEMA itself. Positive slope = uptrend, negative slope = downtrend. This gives us early trend validation and exit signals based on weakening momentum.
3. Vortex Indicator (Directional Volatility):
A diff-based implementation of the Vortex Indicator is used to validate whether volatility is expanding in favor of the trend. This prevents false entries during indecision phases or low-momentum conditions.
4. White Line Bias Filter (Structural Trend):
The strategy calculates the midpoint of the highest high and lowest low over a user-defined period. This “White Line” serves as a structural trend bias, ensuring entries align with the broader context — not just momentary momentum.
5. Volume Spike Confirmation:
To avoid manipulation and choppy conditions, the strategy confirms breakouts only when the current bar’s volume exceeds the median volume of recent candles by a set multiplier. This filters out noise and ensures only high-conviction moves trigger entries.
6. Breakout with Divergence Timing:
A hybrid logic checks for price breaking previous range highs/lows (breakouts), combined with simulated divergence behavior based on RSI-like momentum. This helps align entry timing with areas where price is likely to accelerate.
⚙️ Trade Management Logic:
Entry Conditions:
Triggered when all conditions align: ZLEMA slope, Vortex confirmation, White Line bias, volume spike, and divergence-based breakout.
Take Profits:
TP1: 50% of position is closed using a limit order
TP2: Remaining 50% closed with another limit order
This split exit approach lets profits run while locking in gains early.
Exits on Trend Weakness:
If trend conditions weaken (slope flip or vortex flip), the position is exited before a full reversal occurs — helping protect capital during exhaustion phases.
Reentry Delay:
Enforces a 1-bar cooldown between exit and new entries to avoid “ping-pong” signals and maintain clean backtest results.
📊 Real-Time Dashboard (On-Chart):
Displays critical stats including:
Current position (Long, Short, or Flat)
Entry price
TP1 and TP2 hit status
Win rate (%)
Profit factor
Bars since entry
This makes live trading or visual backtesting easy to interpret and track.
✅ Key Facts:
Non-Repainting: All signals are calculated using confirmed bar data only. No future bars or security() functions are used.
Original Logic: This is not a generic mashup. Each component (ZLEMA slope, vortex diff, breakout divergence, volume spike filtering, White Line structure) is optimized to work in tandem.
Best Timeframes: 1H – 4H
Markets: Crypto, Forex, Indices — any market with trending behavior and measurable volume
⚠️ Disclaimer:
This strategy is for educational purposes only. It is not financial advice or a recommendation to trade. Past performance does not guarantee future results. Always trade with proper risk management and backtest strategies before live deployment.
🧠 Summary:
Stealth Trigger X is built for traders who want:
Precision entries
Early trend exits
Reliable backtest integrity
Clean logic with no repainting
It is especially effective in breakout environments where volume and momentum align — and excels at avoiding weak or manipulated trends.
Weekly Open (Current Week Only)📘 Indicator Name: Weekly Open (Current Week Only)
📝 Description:
This indicator plots a horizontal line representing the weekly open price, visible only during the current trading week. At the beginning of each new week (based on TradingView’s weekly time segmentation), the indicator captures the open price of the first candle and draws a constant line across the chart until the week ends. Once the new week begins, the line resets and updates with the new weekly open.
🎯 How to Use – ICT Concepts Integration (Weekly Profile):
This tool is designed to complement ICT (Inner Circle Trader) trading strategies, particularly within the weekly profile framework, by offering a clear and persistent visual of the weekly open, which is a critical reference point in ICT’s market structure theory.
✅ Use Cases:
Directional Bias:
According to ICT concepts, price trading above the weekly open suggests a bullish bias for the week, while trading below it implies bearish conditions.
Traders can use the weekly open line to align their intraweek trades with higher timeframe directional bias.
Dealing Ranges:
Weekly open helps frame the weekly dealing range, especially when combined with other levels like weekly high/low or previous week’s range.
It allows traders to identify potential liquidity pools or areas where price may seek to rebalance.
Mean Reversion Entries:
Price often reverts to or reacts from the weekly open. Traders may use this as a target or entry level, particularly during Monday/Tuesday setups.
Works well in conjunction with concepts like OTE (Optimal Trade Entry) and Judas Swings.
Risk Management:
Acts as a clean and visual anchor to structure stop losses or take-profits based on weekly bias shifts.
Volume & ATR Projection Tracker w/ Table & Alerts# README: Volume & ATR Projection Tracker (Pine Script Indicator)
## Overview
This Pine Script indicator for TradingView is designed to help traders analyze volume activity and potential short-term price volatility. It plots volume bars, calculates a moving average of volume, highlights unusual volume spikes (differentiating between up and down bars), and projects potential price ranges for upcoming hours based on Average True Range (ATR). It also provides a status table and configurable alerts.
**Disclaimer:** This indicator provides informational analysis and projections based on historical data and volatility. It does **not** provide guaranteed price predictions or financial advice. Trading involves substantial risk. Always do your own research and consult with a qualified financial advisor.
## Features
* **Volume Plotting:** Displays volume as a histogram in a separate panel.
* **Volume Moving Average:** Calculates and plots a configurable MA (SMA, EMA, WMA) of volume.
* **Unusual Volume Detection:** Identifies bars where volume significantly exceeds its moving average (based on a user-defined multiplier).
* **Differentiated Volume Analysis:**
* Colors volume bars differently based on whether unusual volume occurred on an up-bar (Close > Open), down-bar (Close < Open), or neutral bar (Close == Open).
* Plots different spike markers (up/down triangles) on the price chart for unusual volume on up/down bars.
* **ATR Volatility Projections:**
* Calculates the Average True Range (ATR) as a measure of recent volatility.
* Projects a potential price range (Close +/- ATR \* Multiplier) for a specified number of future hours.
* Plots these ranges as dashed lines and labels on the price chart.
* **Important:** These are volatility-based *ranges*, not directional predictions.
* **Status Table:** Displays a concise summary table on the chart including:
* Current Volume Status (Normal, High (Up), High (Down), High (Neut)).
* Current Volume compared to its MA (as a percentage).
* The projected ATR range for the next hour.
* **Configurable Alerts:** Provides alert conditions for:
* Unusual Volume detection.
* Volume crossing above its MA.
* Volume crossing below its MA.
* **Customizable Inputs:** Allows users to configure MA settings, volume threshold, ATR settings, projection hours, trading session times, and colors.
## How it Works
1. **Volume Analysis:**
* Calculates a Moving Average (SMA, EMA, or WMA) of the volume over a specified length (`MA Length`).
* Compares the current bar's volume to this MA. If `Volume > MA * Unusual Vol Multiplier`, the volume is flagged as "unusual".
* Checks if the unusual volume occurred on a bar where `Close > Open` (Up), `Close < Open` (Down), or `Close == Open` (Neutral).
* Colors the volume bars and plots spike markers based on this differentiated status.
2. **ATR Projections:**
* Calculates the ATR over a specified length (`ATR Length`).
* At the start of each hour *within the defined Trading Session*:
* Calculates an upper projection level: `Current Close + (Current ATR * ATR Multiplier)`.
* Calculates a lower projection level: `Current Close - (Current ATR * ATR Multiplier)`.
* Stores these levels for the specified number of `Projection Hours Ahead`.
* Draws dashed lines and labels on the price chart representing these hourly ranges for the future, but only if they are within TradingView's 500-bar drawing limit from the current bar.
3. **Status Table:**
* Updates on the last bar of the chart.
* Displays the current differentiated volume status, the percentage difference between current volume and its MA, and the calculated ATR range for the *next* hour.
4. **Alerts:**
* Uses `alertcondition()` to create trigger conditions based on `unusualVolumeBase`, `vol_cross_above`, and `vol_cross_below`. Users can create alerts based on these conditions in the TradingView UI.
## Input Settings
The indicator settings are organized into groups:
**Group 1: Volume Analysis Settings**
* **MA Length:** (Default: 20) Number of bars for the volume MA calculation.
* **MA Type:** (Default: SMA) Type of moving average (SMA, EMA, WMA).
* **Unusual Vol Multiplier:** (Default: 2.0) Threshold for detecting unusual volume (Volume > MA * Multiplier).
* **Show Volume Spikes:** (Default: true) Toggle visibility of triangle markers on the price chart.
* **Show Volume MA:** (Default: true) Toggle visibility of the MA line on the volume panel.
**Group 2: ATR Projection Settings**
* **ATR Length:** (Default: 14) Number of bars for the ATR calculation.
* **ATR Multiplier:** (Default: 1.5) Factor applied to ATR to determine the projection range width. Higher values create wider ranges.
* **Projection Hours Ahead:** (Default: 8) How many hours forward to calculate and display projections.
* **Show Projections:** (Default: true) Toggle visibility of projection lines and labels on the price chart.
**Group 3: Session & Colors**
* **Trading Session:** (Default: "0930-1600") Defines the hours during which projections are calculated. **Crucial:** Format is HHMM-HHMM based on the exchange timezone (see Timezone Note below).
* **Normal Vol Color:** (Default: blue) Color for volume bars when volume is not unusual.
* **Volume MA Color:** (Default: yellow) Color of the volume MA line.
* **Unusual Vol (Up Bar) Color:** (Default: light green) Color for unusual volume bars where Close > Open.
* **Unusual Vol (Down Bar) Color:** (Default: light red) Color for unusual volume bars where Close < Open.
* **Unusual Vol (Neutral Bar) Color:** (Default: light gray) Color for unusual volume bars where Close == Open.
* **Projection Line Color:** (Default: orange) Color of the dashed projection range lines.
* **Proj Label Bg Color:** (Default: semi-transparent gray) Background color for projection labels.
* **Proj Label Text Color:** (Default: white) Text color for projection labels.
## Timezone Note
The `Trading Session` input relies on a timezone setting within the `is_in_session` function in the code (currently hardcoded to `"UTC-4"` as an example for US Eastern Time). **You may need to edit the script code** to change this timezone string (e.g., `"America/New_York"`, `"Europe/London"`, `"Asia/Tokyo"`) to match the exchange time of the instrument you are trading. Consult Pine Script documentation for valid timezone strings.
## Limitations
* **Drawing Limit:** TradingView limits drawing objects (lines, labels) to a maximum of ~500 bars into the future from the current bar. On lower timeframes, the script automatically stops drawing projections that exceed this limit.
* **Projection vs. Prediction:** The ATR ranges are based on past volatility and are *not* price predictions. The market can easily move outside these projected ranges.
* **Alerts:** Alerts for price crossing the projected future levels are not implemented due to technical complexity in Pine Script.
## Disclaimer
Trading financial markets involves substantial risk of loss and is not suitable for all investors. The information provided by this indicator is for educational and informational purposes only and does not constitute financial advice, investment advice, trading advice, or any other sort of advice. You should not make any investment decision based solely on the information provided by this indicator. Past performance is not indicative of future results.
Moving Average Shift WaveTrend StrategyMoving Average Shift WaveTrend Strategy
🧭 Overview
The Moving Average Shift WaveTrend Strategy is a trend-following and momentum-based trading system designed to be overlayed on TradingView charts. It executes trades based on the confluence of multiple technical conditions—volatility, session timing, trend direction, and oscillator momentum—to deliver logical and systematic trade entries and exits.
🎯 Strategy Objectives
Enter trades aligned with the prevailing long-term trend
Exit trades on confirmed momentum reversals
Avoid false signals using session timing and volatility filters
Apply structured risk management with automatic TP, SL, and trailing stops
⚙️ Key Features
Selectable MA types: SMA, EMA, SMMA (RMA), WMA, VWMA
Dual-filter logic using a custom oscillator and moving averages
Session and volatility filters to eliminate low-quality setups
Trailing stop, configurable Take Profit / Stop Loss logic
“In-wave flag” prevents overtrading within the same trend wave
Visual clarity with color-shifting candles and entry/exit markers
📈 Trading Rules
✅ Long Entry Conditions:
Price is above the selected MA
Oscillator is positive and rising
200-period EMA indicates an uptrend
ATR exceeds its median value (sufficient volatility)
Entry occurs between 09:00–17:00 (exchange time)
Not currently in an active wave
🔻 Short Entry Conditions:
Price is below the selected MA
Oscillator is negative and falling
200-period EMA indicates a downtrend
All other long-entry conditions are inverted
❌ Exit Conditions:
Take Profit or Stop Loss is hit
Opposing signals from oscillator and MA
Trailing stop is triggered
🛡️ Risk Management Parameters
Pair: ETH/USD
Timeframe: 4H
Starting Capital: $3,000
Commission: 0.02%
Slippage: 2 pips
Risk per Trade: 2% of account equity (adjustable)
Total Trades: 224
Backtest Period: May 24, 2016 — April 7, 2025
Note: Risk parameters are fully customizable to suit your trading style and broker conditions.
🔧 Trading Parameters & Filters
Time Filter: Trades allowed only between 09:00–17:00 (exchange time)
Volatility Filter: ATR must be above its median value
Trend Filter: Long-term 200-period EMA
📊 Technical Settings
Moving Average
Type: SMA
Length: 40
Source: hl2
Oscillator
Length: 15
Threshold: 0.5
Risk Management
Take Profit: 1.5%
Stop Loss: 1.0%
Trailing Stop: 1.0%
👁️ Visual Support
MA and oscillator color changes indicate directional bias
Clear chart markers show entry and exit points
Trailing stops and risk controls are transparently managed
🚀 Strategy Improvements & Uniqueness
In-wave flag avoids repeated entries within the same trend phase
Filtering based on time, volatility, and trend ensures higher-quality trades
Dynamic high/low tracking allows precise trailing stop placement
Fully rule-based execution reduces emotional decision-making
💡 Inspirations & Attribution
This strategy is inspired by the excellent concept from:
ChartPrime – “Moving Average Shift”
It expands on the original idea with advanced trade filters and trailing logic.
Source reference:
📌 Summary
The Moving Average Shift WaveTrend Strategy offers a rule-based, reliable approach to trend trading. By combining trend and momentum filters with robust risk controls, it provides a consistent framework suitable for various market conditions and trading styles.
⚠️ Disclaimer
This script is for educational purposes only. Trading involves risk. Always use proper backtesting and risk evaluation before applying in live markets.
Heiken Ashi Supertrend ADX - StrategyHeiken Ashi Supertrend ADX Strategy
Overview
This strategy combines the power of Heiken Ashi candles, Supertrend indicator, and ADX filter to identify strong trend movements across multiple timeframes. Designed primarily for the cryptocurrency market but adaptable to any tradable asset, this system focuses on capturing momentum in established trends while employing a sophisticated triple-layer stop loss mechanism to protect capital and secure profits.
Strategy Mechanics
Entry Signals
The strategy uses a unique blend of technical signals to identify high-probability trade entries:
Heiken Ashi Candles: Looks specifically for Heiken Ashi candles with minimal or no wicks, which signal strong momentum and trend continuation. These "full-bodied" candles represent periods where price moved decisively in one direction with minimal retracement.
Supertrend Filter : Confirms the underlying trend direction using the Supertrend indicator (default factor: 3.0, ATR period: 10). Entries are aligned with the prevailing Supertrend direction.
ADX Filter (Optional) : Can be enabled to focus only on stronger trending conditions, filtering out choppy or ranging markets. When enabled, trades only trigger when ADX is above the specified threshold (default: 25).
Exit Signals
Positions are closed when either:
An opposing signal appears (Heiken Ashi candle with no wick in the opposite direction)
Any of the three stop loss mechanisms are triggered
Triple-Layer Stop Loss System
The strategy employs a sophisticated three-tier stop loss approach:
ATR Trailing Stop: Adapts to market volatility and locks in profits as the trend extends. This stop moves in the direction of the trade, capturing profit without exiting too early during normal price fluctuations.
Swing Point Stop : Uses natural market structure (recent highs/lows over a lookback period) to place stops at logical support/resistance levels, honoring the market's own rhythm.
Insurance Stop: A percentage-based safety net that protects against sudden adverse moves immediately after entry. This is particularly valuable when the swing point stop might be positioned too far from entry, providing immediate capital protection.
Optimization Features
Customizable Filters: All components (Supertrend, ADX) can be enabled/disabled to adapt to different market conditions
Adjustable Parameters: Fine-tune ATR periods, Supertrend factors, and ADX thresholds
Flexible Stop Loss Settings: Each of the three stop loss mechanisms can be individually enabled/disabled with customizable parameters
Best Practices for Implementation
Recommended Timeframes: Works best on 4-hour charts and above, where trends develop more reliably
Market Conditions: Performs well across various market conditions due to the ADX filter's ability to identify meaningful trends
Position Sizing: The strategy uses a percentage of equity approach (default: 3%) for position sizing
Performance Characteristics
When properly optimized, this strategy has demonstrated profit factors exceeding 3 in backtesting. The approach typically produces generous winners while limiting losses through its multi-layered stop loss system. The ATR trailing stop is particularly effective at capturing extended trends, while the insurance stop provides immediate protection against adverse moves.
The visual components on the chart make it easy to follow the strategy's logic, with position status, entry prices, and current stop levels clearly displayed.
This strategy represents a complete trading system with clearly defined entry and exit rules, adaptive stop loss mechanisms, and built-in risk management through position sizing.
RTH and ETH RangesKey Functions :
Visualizes Regular Trading Hours (RTH) and Extended Trading Hours (ETH) price ranges
Tracks session highs, lows, and 50% levels where significant market reactions occur
Detects breakouts beyond previous session extremes
Trading Applications :
Exposes potential liquidity raids at session boundaries where smart money targets stop orders
Identifies critical price thresholds where institutional activity concentrates
Highlights divergences between RTH and ETH behavior that precede directional moves
Provides measurement of session volatility differences
Maps key price levels for objective entry and exit parameters
Reveals market dynamics at session transitions where institutional positioning changes
Hyperion Crypto Matrix: Ultimate Market Sentinel
// 🔰 HYPERION CRYPTO MATRIX: ULTIMATE MARKET SENTINEL
// ─────────────────────────────────────────────────────────────────────────────
/*
The **Hyperion Crypto Matrix** is an advanced crypto trend-following strategy built from the ground up for precision, not just performance. Unlike traditional “mashups” of indicators, this system was **engineered around synergy**—each module is purpose-driven and non-redundant, delivering fast, filtered, high-probability signals in volatile crypto markets.
─────────────────────────────────────────────────────────────
📌 STRATEGY PURPOSE
─────────────────────────────────────────────────────────────
Hyperion is built for **1-hour crypto trading** and optimizes for:
- High Win Rate
- Early Exits on Trend Weakness
- Partial Position Scaling (TP1/TP2)
- Real-time trade performance tracking
It is ideal for traders who want **real-time trade logic** with:
- No repainting
- No overfitting
- Realistic entry/exit structure
- No same-bar entry & exit (enforces 1-bar delay)
─────────────────────────────────────────────────────────────
🧠 WHAT MAKES IT ORIGINAL
─────────────────────────────────────────────────────────────
Each component is **custom-integrated** with strict role separation:
- **Trend Direction:** Enhanced Wave Oscillator (EWO) with adaptive band filtering
- **Trend Strength Memory:** Relative Momentum Index (RMI) with threshold locking
- **Volume Confirmation:** Historical relative volume spike filter using SMA multiplier
- **Momentum Weakness Exit:** Combined ROC and CCI to detect early reversal before price turns
- **Position Tracking:** TP1 (50% exit), TP2 (100% close) with cooldown to prevent whipsaws
- **Dynamic Dashboard:** Real-time stats including win rate, PnL efficiency, and TP hit status
These aren’t just “plugged in” indicators—they are synchronized to **filter, confirm, and adapt** to price action with timing logic that prevents premature entries or late exits.
─────────────────────────────────────────────────────────────
📊 INDICATOR LOGIC OVERVIEW
─────────────────────────────────────────────────────────────
1. **📈 Enhanced Wave Oscillator (EWO):**
- Calculates the delta between a fast and slow EMA (5 vs. 34 by default)
- Uses a dynamic banding system to detect peaks/troughs and prevent entries during exhaustion
- Filters only active, accelerating trends — reducing false positives
2. **🧠 Relative Momentum Index (RMI):**
- Similar to RSI but with a forward-looking momentum comparison
- Confirms trend *persistence* over time, preventing entries on short-term flips
- Long entries only allowed when RMI > threshold (default 55), short if RMI < 45
3. **🔊 Volume Spike Filter:**
- Uses 20-bar SMA of volume and a multiplier (1.5x default) to detect **relative volume breakouts**
- Prevents trades in low-liquidity environments (e.g., chop, overnight sessions)
4. **📉 Weak Trend Close Logic:**
- Combines Rate of Change (ROC) and Commodity Channel Index (CCI)
- Detects early signs of momentum deterioration, often before the trend visually reverses
- Triggers exit before price falls into sideways zones
5. **🎯 Take Profit System (TP1/TP2):**
- TP1: 50% position closed at +2% (default)
- TP2: Full close at +4% (default)
- Uses `strategy.exit()` with limit orders based on entry price
6. **⏱️ Reentry Cooldown:**
- After TP2 or weak trend exit, system enforces a 1-bar delay before reentry
- Avoids frequent churn in flat or noisy environments
7. **📋 Real-Time Dashboard (Optional):**
- Displays live trade status, PnL metrics, TP1/TP2 hit status, bars since entry, win rate %, and profit factor
- Color-coded background to highlight active trade direction (green for long, red for short)
─────────────────────────────────────────────────────────────
⚙️ HOW TO USE
─────────────────────────────────────────────────────────────
1. Load on a 1H chart of a crypto asset with good liquidity (e.g., BTC, ETH, LINK)
2. Toggle between \"Long Only\", \"Short Only\", or \"Both\" in the settings
3. Use default TP1/TP2 percentages, or tune them for the asset’s volatility
4. Observe trade execution and live stats on the optional dashboard
5. Review the bar coloring for EWO trend bias confirmation
> Stop-loss logic is not included. This strategy assumes exits occur at TP2 or on trend/momentum failure.
─────────────────────────────────────────────────────────────
⚖️ TRADINGVIEW COMPLIANCE & USAGE DISCLAIMER
─────────────────────────────────────────────────────────────
This strategy does **not repaint**, is fully compatible with **TradingView backtesting**, and adheres to all known Pine Script execution rules.
⚠️ **Disclaimer:** This script is for educational purposes only and does not constitute financial advice. Trading cryptocurrencies involves significant risk. Always test strategies on a demo account and consult with a financial advisor before live trading.
─────────────────────────────────────────────────────────────
🧪 CONCLUSION
─────────────────────────────────────────────────────────────
The **Hyperion Crypto Matrix** is not a mashup—it’s a **modular, optimized, logic-driven system** crafted for real-world crypto trading. Every component has been tuned for function, not fluff. Whether you're backtesting or live trading, this system is designed to give you **structured, actionable edge** with live feedback every step of the way.
*/
POF🔶 Smoothed POF Profile – Multi-Session Market Structure Tool 🔶
The Smoothed POF Profile is a precision-engineered market structure indicator that identifies the Point of Focus (POF) — the price level where market participation was most active — across Daily, Weekly, and Monthly sessions and plots them with smoothed over form to avoid whipsaws.
🔍 Powered by a custom-built algorithm for session profiling, this tool highlights:
🔶 POF: The most frequently traded or accepted price during a session
🟩 VAH / VAL: Dynamic Value Area High and Low markers (no cluttered lines — clean label-only display)
📐 The core logic utilizes a proprietary data refinement method that adapts to session volatility and filters out insignificant noise to avoid false shifts in structure. This results in smoothed POF readings that remain stable and meaningful — even during high-volatility periods.
🧠 Designed for traders who want to track evolving value, this tool provides a high-level view of where the market is finding agreement — and where price is likely to revert or expand from.
✅ Key Features:
Fully automated: Tracks Daily, Weekly, and Monthly sessions in real-time
Session-aware calculation of key structure levels
Elegant, non-obtrusive chart visuals (no histogram or volume bars)
Fully configurable Value Area % and display toggles
Multi-session color-coding (🟧 Daily, 🔵 Weekly, 🟣 Monthly)
🧭 Trading Applications:
POF Bias: Use POF as an evolving balance point. Price above = bullish lean, price below = bearish tilt
VAH/VAL Zones: Anticipate rejection or consolidation when price re-enters the value area. Use breakouts for continuation bias
Session Stack Confluence: When Daily, Weekly, and Monthly POFs cluster, it often signals strong interest zones and potential turning points
🧩 Use alongside your preferred price action, volume, or trend confirmation tools. This is not a signal-based system — it’s a contextual framework to help you align with market intent and structure.
⚠️ Disclaimer: This tool is intended for educational and informational purposes only. It is not financial advice. Use with proper risk management and your own due diligence.
Machine Learning RSI ║ BullVisionOverview:
Introducing the Machine Learning RSI with KNN Adaptation – a cutting-edge momentum indicator that blends the classic Relative Strength Index (RSI) with machine learning principles. By leveraging K-Nearest Neighbors (KNN), this indicator aims at identifying historical patterns that resemble current market behavior and uses this context to refine RSI readings with enhanced sensitivity and responsiveness.
Unlike traditional RSI models, which treat every market environment the same, this version adapts in real-time based on how similar past conditions evolved, offering an analytical edge without relying on predictive assumptions.
Key Features:
🔁 KNN-Based RSI Refinement
This indicator uses a machine learning algorithm (K-Nearest Neighbors) to compare current RSI and price action characteristics to similar historical conditions. The resulting RSI is weighted accordingly, producing a dynamically adjusted value that reflects historical context.
📈 Multi-Feature Similarity Analysis
Pattern similarity is calculated using up to five customizable features:
RSI level
RSI momentum
Volatility
Linear regression slope
Price momentum
Users can adjust how many features are used to tailor the behavior of the KNN logic.
🧠 Machine Learning Weight Control
The influence of the machine learning model on the final RSI output can be fine-tuned using a simple slider. This lets you blend traditional RSI and machine learning-enhanced RSI to suit your preferred level of adaptation.
🎛️ Adaptive Filtering
Additional smoothing options (Kalman Filter, ALMA, Double EMA) can be applied to the RSI, offering better visual clarity and helping to reduce noise in high-frequency environments.
🎨 Visual & Accessibility Settings
Custom color palettes, including support for color vision deficiencies, ensure that trend coloring remains readable for all users. A built-in neon mode adds high-contrast visuals to improve RSI visibility across dark or light themes.
How It Works:
Similarity Matching with KNN:
At each candle, the current RSI and optional market characteristics are compared to historical bars using a KNN search. The algorithm selects the closest matches and averages their RSI values, weighted by similarity. The more similar the pattern, the greater its influence.
Feature-Based Weighting:
Similarity is determined using normalized values of the selected features, which gives a more refined result than RSI alone. You can choose to use only 1 (RSI) or up to all 5 features for deeper analysis.
Filtering & Blending:
After the machine learning-enhanced RSI is calculated, it can be optionally smoothed using advanced filters to suppress short-term noise or sharp spikes. This makes it easier to evaluate RSI signals in different volatility regimes.
Parameters Explained:
📊 RSI Settings:
Set the base RSI length and select your preferred smoothing method from 10+ moving average types (e.g., EMA, ALMA, TEMA).
🧠 Machine Learning Controls:
Enable or disable the KNN engine
Select how many nearest neighbors to compare (K)
Choose the number of features used in similarity detection
Control how much the machine learning engine affects the RSI calculation
🔍 Filtering Options:
Enable one of several advanced smoothing techniques (Kalman Filter, ALMA, Double EMA) to adjust the indicator’s reactivity and stability.
📏 Threshold Levels:
Define static overbought/oversold boundaries or reference dynamically adjusted thresholds based on historical context identified by the KNN algorithm.
🎨 Visual Enhancements:
Select between trend-following or impulse coloring styles. Customize color palettes to accommodate different types of color blindness. Enable neon-style effects for visual clarity.
Use Cases:
Swing & Trend Traders
Can use the indicator to explore how current RSI readings compare to similar market phases, helping to assess trend strength or potential turning points.
Intraday Traders
Benefit from adjustable filters and fast-reacting smoothing to reduce noise in shorter timeframes while retaining contextual relevance.
Discretionary Analysts
Use the adaptive OB/OS thresholds and visual cues to supplement broader confluence zones or market structure analysis.
Customization Tips:
Higher Volatility Periods: Use more neighbors and enable filtering to reduce noise.
Lower Volatility Markets: Use fewer features and disable filtering for quicker RSI adaptation.
Deeper Contextual Analysis: Increase KNN lookback and raise the feature count to refine pattern recognition.
Accessibility Needs: Switch to Deuteranopia or Monochrome mode for clearer visuals in specific color vision conditions.
Final Thoughts:
The Machine Learning RSI combines familiar momentum logic with statistical context derived from historical similarity analysis. It does not attempt to predict price action but rather contextualizes RSI behavior with added nuance. This makes it a valuable tool for those looking to elevate traditional RSI workflows with adaptive, research-driven enhancements.
Trend MatrixFinal TradingView-Compliant Description for Trend Matrix
Trend Matrix is a precision-engineered trend-following strategy built for high-confidence entries and tactical trade management.
This strategy combines multiple non-repainting filters, each with a distinct role, to form a unified "trend matrix" that confirms directional bias, volume commitment, and momentum strength — all before entry is considered.
🔍 Core Components & Why They’re Used
🧠 Gaussian Filter (Custom)
A smoothed Gaussian-weighted moving average is used to detect trend direction changes. Unlike standard EMAs, this filter minimizes lag while retaining smooth transitions — ideal for confirming trend shifts without false reversals.
📈 RMI Trend Memory
A Relative Momentum Index is used to validate trend direction persistence. RMI's ability to filter out short-term oscillations makes it ideal for confirming whether a trend is still active.
📊 Gradient Filter (ZLEMA-based)
Measures the slope of a ZLEMA-smoothed close. If slope flips, it signals a potential trend weakness. This provides real-time confirmation for entry or exit bias.
📉 Volume Spike Detection
Confirms that breakouts or trend continuations are supported by volume commitment. Uses a dynamic SMA-based volume filter with a user-defined multiplier.
🟦 White Line (Bias Midpoint)
This structural component calculates the midpoint of the highest high and lowest low over a range — providing directional context and helping eliminate trades in consolidation zones.
🎯 Entry Conditions
Long entries require:
Gaussian trend flip to the upside
RMI > 50 (bullish memory)
Volume spike confirmation
Positive gradient (ZLEMA slope)
Price above White Line (bias filter)
Short entries use the inverse logic.
All entries enforce a cooldown bar to prevent same-bar reversals or whipsaw trades.
🎯 Exit Conditions
Take Profit 1: 50% of position at +2%
Take Profit 2: Remaining 50% at +4%
Early Exit on Trend Weakness:
Position closes fully if the trend weakens (RMI flip or gradient reversal)
📊 Dashboard + Performance Tracking
The built-in dashboard shows:
Current Position
Entry Price
TP1/TP2 Hit Status
Bars Since Entry
Win Rate (%)
Profit Factor
Useful for manual tracking or live trading review.
🌐 Multi-Exchange Bot Compatibility
Trend Matrix is built with universal trade alerts using customizable comment= fields. This makes it compatible with any exchange-connected bot platform such as:
WunderTrading
3Commas
Alertatron
Cornix
Or any webhook-based trading system
Alerts are sent using the {{strategy.order.comment}} placeholder, allowing you to route entries and exits through your preferred exchange account on Binance, Bybit, OKX, Kraken, and others.
🛠️ Customization
All components are modular:
TP1/TP2 levels
Gaussian length & sigma
Volume spike filter sensitivity
Gradient & White Line length
RMI settings
You can tailor the strategy for different assets or timeframes — optimized for crypto 1H, but works with stocks, FX, or lower timeframes with adjusted parameters.
✅ Final Notes
Trend Matrix is not just a mashup — it's a synchronized system of filters with clear roles, designed to maximize trade confidence and minimize noise. Every layer of confirmation serves a purpose, making this a highly adaptive trend-following tool for any market environment.
⚠️ Disclaimer (as required by TradingView)
This script is for educational purposes only and does not constitute financial advice. Use at your own risk. Always test strategies thoroughly before applying them in live trading environments. Past performance is not indicative of future results.
TOMOs Consolidation Indicator using Bar Heightswhat this is: This indicator creates an alert (see green arrow) when there are periods of consolidation in the chart. YOU define what consolidation means. It looks at BOTH candle heights (wicks included by default) AND checks the lowest and highest of those candles.
> Number of candles to check: you define how many candles you want to use to calculate consolidation. For instance, if you select 3 candles and you're on a 5-min chart, that's 15 mins of consolidation.
> Max Candle Height: You define what consolidation height or range is considered consolidation to you. So if you put in a value of 15. That means the last X number of candles are examined for whether OR NOT they are at or below that height. If they are, then it checks to see if the lowest and highest point among those candles are within that height as well. IF they are, then you see a green arrow. That is consolidation in this indicator. And you can use it for an alarm.
> the blue shade just means consolidation is continuing BEYOND the green-arrow when it was indicated. It's just a visual indicator. that's it.
> Include Wicks in Candle Height? Maybe you just want the body of the candle and not it's wicks. Your call.
Trigger Starts and stops: hour/min. This is ALL Eastern time (NYSE's time) and NOT your own timezone. You can simply tell the script you ONLY want the trigger alert to happen between the the start and end time. So if you're using it to trigger a trade, maybe you don't want to trigger it too early or late in the day.
Inputs in Status Line: This is tradingview default. I can't remove it.
Return-to-Trend Wick Scalper — Full Control VersionReturn-to-Trend Wick Scalper — Modular Scalping Strategy for Gold (XAUUSD) & Indices
This is a precision-engineered scalping strategy designed primarily for high-volatility instruments such as Gold (XAUUSD), NASDAQ, and indices.
The system focuses on counter-trend pullbacks within the dominant daily trend, utilizing wick-based liquidity grabs (commonly referred to as “John Wick” candles) to identify high-probability return-to-trend opportunities.
Key Features:
✅ Dynamic Wick Reversal Detection: Detects reversal setups based on wick dominance and body ratio.
✅ Multiple Take Profit Levels: TP1, TP2, TP3 with individual enable/disable toggles and adjustable exit percentages.
✅ Time-Based Stop-Loss: Optional failsafe to close trades after exceeding a defined number of bars.
✅ VWAP Proximity Filter: Ensures entries happen near volume-weighted average price for precision.
✅ Pullback Depth Control: Filter for significant pullbacks using percentage of daily ATR.
✅ Dynamic Support & Resistance Validation: Confirms setups at key reactive levels.
✅ Volatility Filter: Avoids entries in overly volatile or dead market conditions.
✅ Aggressive Entry Mode: Optional early entry at pullback zones for faster fills.
✅ Paper Trading & Backtest Ready: Fully compatible with TradingView’s Paper Trading simulator.
Usage Notes:
Optimized for 5-minute chart entries.
Use in conjunction with Paper Trading for forward testing before live execution.
Can be connected to live brokers via alert webhooks and external bridges like PineConnector.
Instrument Focus:
Gold (XAUUSD) ✅
NASDAQ ✅
Dow Jones (US30) ✅
Other liquid indices ✅
Risk Note:
Always test thoroughly in Paper Trading before going live.
Optimize TP levels and filters according to market volatility conditions.
Designed for traders who want precision entries, flexibility in scaling out positions, and professional-grade risk control.
Market Structure - HH, HL, LH, LL with Trendlines & AlertsMarket Structure Script – HH, HL, LH, LL with Trendlines & Alerts
This Pine Script is designed to help identify key market structure patterns such as Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) on price charts. It also draws trendlines connecting the respective swing points and provides alerts when these important price patterns occur.
Key Features:
Swing High and Low Detection:
The script uses the ta.pivothigh and ta.pivotlow functions to identify significant swing highs and swing lows based on the pivot length (pivotLen). These points mark local peaks and troughs in the price action.
Dynamic Pivot Length:
The script adjusts the pivotLen (which defines the number of bars used to calculate swing points) based on the current timeframe of the chart. For example, for a 15-minute chart, it uses a pivot length of 5 bars, while for a daily chart, it uses 10 bars. This dynamic adjustment ensures that the script works across different timeframes.
Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), Lower Lows (LL):
Higher High (HH): Identifies a price peak that is higher than the previous swing high, indicating an uptrend.
Higher Low (HL): Identifies a price trough that is higher than the previous swing low, supporting the idea of an ongoing uptrend.
Lower High (LH): Identifies a price peak that is lower than the previous swing high, suggesting a potential reversal or downtrend.
Lower Low (LL): Identifies a price trough that is lower than the previous swing low, indicating a downtrend.
Trendlines:
For each identified Higher High, Higher Low, Lower High, or Lower Low, the script automatically draws a trendline connecting the corresponding swing points. These trendlines provide a visual representation of the market’s price structure, showing support and resistance levels.
Labels:
The script places labels on the chart next to the respective swing points. These labels mark whether the point is a Higher High (HH), Higher Low (HL), Lower High (LH), or Lower Low (LL). This helps traders easily visualize the price pattern at a glance.
Alerts:
Alert conditions are set for when a Higher High (HH), Higher Low (HL), Lower High (LH), or Lower Low (LL) is detected. Users can set up alerts to be notified whenever one of these key market structure patterns forms. Alerts are an essential feature for traders who want to act quickly when important trend changes are happening.
STH-MVRV Bollinger BandsSTH-MVRV Bollinger Bands
🛠️ Detailes
This proprietary indicator seamlessly integrates on-chain data with advanced volatility metrics to construct adaptive Bollinger Bands that overlay directly on the price chart. Here’s a breakdown of its technical components:
Data Integration:
On-chain & Index Data: Utilizes BTC_MVRV (on-chain metric) and INDEX:BTCUSD (market index) to compute the STH-MVRV ratio.
Smoothing: Data series are smoothed with a configurable SMA (Simple Moving Average) over a user-defined period to reduce noise.
Ratio Computation:
Forms: Calculates three ratio variants:
STH-MVRV (MVRV)
STH-MVRV (Price)
STH-MVRV (AVG)
Dynamic Selection: The user can select the desired ratio from a dropdown menu.
Bollinger Bands Construction:
Basis & Deviation:
The basis is derived using the SMA of the selected ratio (or price, if substituted).
The standard deviation is scaled by a multiplier to form the upper and lower bands.
🟢 Green: When the selected ratio is ≥ 1 (bullish condition).
🔴 Red: When the selected ratio is < 1 (bearish condition).
Usage Recommendations:
Parameter Tuning: Adjust the moving average period, band length, and standard deviation multiplier to tailor the indicator to specific market conditions.
Multi-Timeframe Analysis: Combine with other technical indicators for a comprehensive risk management and trade execution strategy.
Dskyz (DAFE) MAtrix with ATR-Powered Precision Dskyz (DAFE) MAtrix with ATR-Powered Precision
This cutting‐edge futures trading strategy built to thrive in rapidly changing market conditions. Developed for high-frequency futures trading on instruments such as the CME Mini MNQ, this strategy leverages a matrix of sophisticated moving averages combined with ATR-based filters to pinpoint high-probability entries and exits. Its unique combination of adaptable technical indicators and multi-timeframe trend filtering sets it apart from standard strategies, providing enhanced precision and dynamic responsiveness.
imgur.com
Core Functional Components
1. Advanced Moving Averages
A distinguishing feature of the DAFE strategy is its robust, multi-choice moving averages (MAs). Clients can choose from a wide array of MAs—each with specific strengths—in order to fine-tune their trading signals. The code includes user-defined functions for the following MAs:
imgur.com
Hull Moving Average (HMA):
The hma(src, len) function calculates the HMA by using weighted moving averages (WMAs) to reduce lag considerably while smoothing price data. This function computes an intermediate WMA of half the specified length, then a full-length WMA, and finally applies a further WMA over the square root of the length. This design allows for rapid adaptation to price changes without the typical delays of traditional moving averages.
Triple Exponential Moving Average (TEMA):
Implemented via tema(src, len), TEMA uses three consecutive exponential moving averages (EMAs) to effectively cancel out lag and capture price momentum. The final formula—3 * (ema1 - ema2) + ema3—produces a highly responsive indicator that filters out short-term noise.
Double Exponential Moving Average (DEMA):
Through the dema(src, len) function, DEMA calculates an EMA and then a second EMA on top of it. Its simplified formula of 2 * ema1 - ema2 provides a smoother curve than a single EMA while maintaining enhanced responsiveness.
Volume Weighted Moving Average (VWMA):
With vwma(src, len), this MA accounts for trading volume by weighting the price, thereby offering a more contextual picture of market activity. This is crucial when volume spikes indicate significant moves.
Zero Lag EMA (ZLEMA):
The zlema(src, len) function applies a correction to reduce the inherent lag found in EMAs. By subtracting a calculated lag (based on half the moving average window), ZLEMA is exceptionally attuned to recent price movements.
Arnaud Legoux Moving Average (ALMA):
The alma(src, len, offset, sigma) function introduces ALMA—a type of moving average designed to be less affected by outliers. With parameters for offset and sigma, it allows customization of the degree to which the MA reacts to market noise.
Kaufman Adaptive Moving Average (KAMA):
The custom kama(src, len) function is noteworthy for its adaptive nature. It computes an efficiency ratio by comparing price change against volatility, then dynamically adjusts its smoothing constant. This results in an MA that quickly responds during trending periods while remaining smoothed during consolidation.
Each of these functions—integrated into the strategy—is selectable by the trader (via the fastMAType and slowMAType inputs). This flexibility permits the tailored application of the MA most suited to current market dynamics and individual risk management preferences.
2. ATR-Based Filters and Risk Controls
ATR Calculation and Volatility Filter:
The strategy computes the Average True Range (ATR) over a user-defined period (atrPeriod). ATR is then used to derive both:
Volatility Assessment: Expressed as a ratio of ATR to closing price, ensuring that trades are taken only when volatility remains within a safe, predefined threshold (volatilityThreshold).
ATR-Based Entry Filters: Implemented as atrFilterLong and atrFilterShort, these conditions ensure that for long entries the price is sufficiently above the slow MA and vice versa for shorts. This acts as an additional confirmation filter.
Dynamic Exit Management:
The exit logic employs a dual approach:
Fixed Stop and Profit Target: Stops and targets are set at multiples of ATR (fixedStopMultiplier and profitTargetATRMult), helping manage risk in volatile markets.
Trailing Stop Adjustments: A trailing stop is calculated using the ATR multiplied by a user-defined offset (trailOffset), which captures additional profits as the trade moves favorably while protecting against reversals.
3. Multi-Timeframe Trend Filtering
The strategy enhances its signal reliability by leveraging a secondary, higher timeframe analysis:
15-Minute Trend Analysis:
By retrieving 15-minute moving averages (fastMA15m and slowMA15m) via request.security, the strategy determines the broader market trend. This secondary filter (enabled or disabled through useTrendFilter) ensures that entries are aligned with the prevailing market direction, thereby reducing the incidence of false signals.
4. Signal and Execution Logic
Combined MA Alignment:
The entry conditions are based primarily on the alignment of the fast and slow MAs. A long condition is triggered when the current price is above both MAs and the fast MA is above the slow MA—complemented by the ATR filter and volume conditions. The reverse applies for a short condition.
Volume and Time Window Validation:
Trades are permitted only if the current volume exceeds a minimum (minVolume) and the current hour falls within the predefined trading window (tradingStartHour to tradingEndHour). An additional volume spike check (comparing current volume to a moving average of past volumes) further filters for optimal market conditions.
Comprehensive Order Execution:
The strategy utilizes flexible order execution functions that allow pyramiding (up to 10 positions), ensuring that it can scale into positions as favorable conditions persist. The use of both market entries and automated exits (with profit targets, stop-losses, and trailing stops) ensures that risk is managed at every step.
5. Integrated Dashboard and Metrics
For transparency and real-time analysis, the strategy includes:
On-Chart Visualizations:
Both fast and slow MAs are plotted on the chart, making it easy to see the market’s technical foundation.
Dynamic Metrics Dashboard:
A built-in table displays crucial performance statistics—including current profit/loss, equity, ATR (both raw and as a percentage), and the percentage gap between the moving averages. These metrics offer immediate insight into the health and performance of the strategy.
Input Parameters: Detailed Breakdown
Every input is meticulously designed to offer granular control:
Fast & Slow Lengths:
Determine the window size for the fast and slow moving averages. Smaller values yield more sensitivity, while larger values provide a smoother, delayed response.
Fast/Slow MA Types:
Choose the type of moving average for fast and slow signals. The versatility—from basic SMA and EMA to more complex ones like HMA, TEMA, ZLEMA, ALMA, and KAMA—allows customization to fit different market scenarios.
ATR Parameters:
atrPeriod and atrMultiplier shape the volatility assessment, directly affecting entry filters and risk management through stop-loss and profit target levels.
Trend and Volume Filters:
Inputs such as useTrendFilter, minVolume, and the volume spike condition help confirm that a trade occurs in active, trending markets rather than during periods of low liquidity or market noise.
Trading Hours:
Restricting trade execution to specific hours (tradingStartHour and tradingEndHour) helps avoid illiquid or choppy markets outside of prime trading sessions.
Exit Strategies:
Parameters like trailOffset, profitTargetATRMult, and fixedStopMultiplier provide multiple layers of risk management and profit protection by tailoring how exits are generated relative to current market conditions.
Pyramiding and Fixed Trade Quantity:
The strategy supports multiple entries within a trend (up to 10 positions) and sets a predefined trade quantity (fixedQuantity) to maintain consistent exposure and risk per trade.
Dashboard Controls:
The resetDashboard input allows for on-the-fly resetting of performance metrics, keeping the strategy’s performance dashboard accurate and up-to-date.
Why This Strategy is Truly Exceptional
Multi-Faceted Adaptability:
The ability to switch seamlessly between various moving average types—each suited to particular market conditions—enables the strategy to adapt dynamically. This is a testament to the high level of coding sophistication and market insight infused within the system.
Robust Risk Management:
The integration of ATR-based stops, profit targets, and trailing stops ensures that every trade is executed with well-defined risk parameters. The system is designed to mitigate unexpected market swings while optimizing profit capture.
Comprehensive Market Filtering:
By combining moving average crossovers with volume analysis, volatility thresholds, and multi-timeframe trend filters, the strategy only enters trades under the most favorable conditions. This multi-layered filtering reduces noise and enhances signal quality.
-Final Thoughts-
The Dskyz Adaptive Futures Elite (DAFE) MAtrix with ATR-Powered Precision strategy is not just another trading algorithm—it is a multi-dimensional, fully customizable system built on advanced technical principles and sophisticated risk management techniques. Every function and input parameter has been carefully engineered to provide traders with a system that is both powerful and transparent.
For clients seeking a state-of-the-art trading solution that adapts dynamically to market conditions while maintaining strict discipline in risk management, this strategy truly stands in a class of its own.
****Please show support if you enjoyed this strategy. I'll have more coming out in the near future!!
-Dskyz
Caution
DAFE is experimental, not a profit guarantee. Futures trading risks significant losses due to leverage. Backtest, simulate, and monitor actively before live use. All trading decisions are your responsibility.
PBOC Balance Sheet (Approx USD Trillions)This indicator displays the People's Bank of China (PBOC) Balance Sheet in approximate USD trillions, converted from CNY data (ECONOMICS:CNCBBS) using a fixed exchange rate of 1 USD ≈ 7 CNY. The data is smoothed with a 3-month SMA and plotted as a black line in a separate pane, with a reference line at 6.0 USD trillions. Ideal for analyzing long-term macroeconomic trends and correlations with other financial metrics like bond yields or asset prices, it includes error handling for missing data to ensure reliable visualization.
China 10-Year Yield Inverted with Time Lead (Months)The "China 10-Year Yield Inverted with Time Lead (Months)" indicator is a Pine Script tool for TradingView that displays the inverted China 10-Year Government Bond Yield (sourced from TVC:CN10Y) with a user-defined time lead or lag in months. The yield is inverted by multiplying it by -1, making a rising yield appear as a downward movement and vice versa, which helps visualize inverse correlations with other assets. Users can input the number of months to shift the yield forward (lead) or backward (lag), with the shift calculated based on the chart’s timeframe (e.g., 20 bars per month on daily charts). The indicator plots the shifted, inverted yield as a blue line in a separate pane, with a zero line for reference, enabling traders to analyze leading or lagging relationships with other financial data, such as the PBOC Balance Sheet or Bitcoin price.
Relative Strength MatrixThe Relative Strength Matrix (RSPS M) is a powerful comparison tool that analyzes and ranks up to 10 selected assets based on their relative performance. It does this by calculating price ratios between all asset pairs and applying a consistent strength criterion across each comparison. The results are displayed in a live-updating matrix, showing how each asset performs relative to the rest of the group.
By default, the indicator uses a momentum-based approach (via RSI) to evaluate strength, but it’s fully customizable. Users can modify the valuation logic by replacing the built-in ta.rsi function under the “Inputs your criterion below” section in the code. This makes the tool highly flexible—allowing for different styles of comparison such as trend-following, volatility-adjusted, or custom factor-based ranking methods.
Each asset’s total dominance score is color-coded and ranked, making it easy to spot outperformers and underperformers within any chosen basket. Whether you're tracking crypto pairs, sectors, or other groups, RSPS M provides a clear, objective framework for relative strength monitoring and rotation strategies—perfect for spotting leaders, laggards, and shifts in momentum across markets.
ICT MACRO MAX RETRI ( ALERT )🖤 ICT Reversal Detector – Minimalist Edition
This indicator is designed for traders who follow Inner Circle Trader (ICT) concepts, particularly focused on liquidity sweeps and displacement reversals.
It detects:
• Swing Highs & Lows that occur during the most reactive windows of each hour
→ Specifically the last 20 minutes and first 15 minutes
(ICT teaches these moments often reveal macro-level reversals. I’ve expanded the window slightly to give the indicator more room to catch valid setups.)
• Liquidity Sweeps of previous highs/lows
• Displacement (State Change): defined as a manipulation wick followed by 1–3 strong candles closing in the opposite direction
Visually:
• Clean black lines pointing right from the liquidity sweep wick
• White triangle markers inside black label boxes only when valid displacement occurs
• No clutter, no unnecessary shapes — just focused signal
Built for:
• 5-minute charts, especially NASDAQ (NAS100) and S&P 500 (SPX500)
• Confirm setups manually on the 15-minute chart for extra precision
This is a partial automation tool for ICT-style reversal traders who prefer clarity, minimalism, and sharp intuition over noise.
Let it alert you to setups — then decide like a sniper.
FVG, Swing, Target, D/W/M High Low Detector Basic by Trader Riaz"FVG, Swing, Target, D/W/M High Low Detector Basic by Trader Riaz " is a powerful TradingView indicator designed to enhance your trading strategy by identifying key market structures and levels. This all-in-one tool detects Fair Value Gaps (FVGs), Swing Highs/Lows, and previous Day, Previous Week, and Previous Month Highs/Lows, helping traders make informed decisions with ease.
Key Features:
Bullish & Bearish FVG Detection: Highlights Fair Value Gaps with customizable colors, labels, and extension options.
Swing Highs & Lows: Automatically detects and marks Swing Highs and Lows with adjustable display settings and extensions.
Next Target Levels: Identifies potential price targets based on market direction (rising or falling).
Daily, Weekly, and Monthly High/Low Levels: Displays previous day, week, and month highs/lows with customizable colors.
Customizable Settings: Fully adjustable inputs for colors, number of levels to display, and extension periods.
Clean Visuals: Intuitive and non-intrusive design with dashed lines, labels, and tooltips for better chart readability.
This indicator is ideal for traders looking to identify key price levels, improve market structure analysis, and enhance their trading strategies.
Happy Trading,
Trader Riaz
Long Short Lien TucRSI Long Short Continuum
The RSI Long Short Continuum unveils a meticulously engineered paradigm for decoding market momentum, transcending the rudimentary confines of the traditional Relative Strength Index (RSI). By orchestrating a symphony of Exponential Moving Average (EMA) and Weighted Moving Average (WMA) dynamics, this indicator distills the chaotic oscillations of price action into a refined lattice of actionable signals. Its esoteric methodology probes the undercurrents of trend expansion and contraction, harnessing real-time price flux to illuminate pivotal junctures of market intent.
Core Constructs:
• RSI (Period 14): A sentinel of momentum, its chromatic transmutations—crimson at ≥80, verdant at ≤20—herald zones of exuberance or capitulation.
• EMA (Period 9) of RSI: A mercurial filter that tempers the RSI’s caprice, tracing the ephemeral shifts in market fervor with surgical precision.
• WMA (Period 45) of RSI: An anchor of gravitas, weaving a tapestry of long-term momentum to sieve transient noise from enduring trends.
• Trend Expansion Logic: A proprietary calculus that discerns anomalous divergences between RSI and WMA, auguring moments of kinetic eruption or subsidence.
• Real-Time Signal Nexus: By interrogating live candle data, the indicator conjures buy and sell sigils—triangular glyphs of intent—poised at the precipice of momentum reversal.
Operational Codex:
The Continuum operates as a dualistic oracle, simultaneously charting the ebb of momentum and the crescendo of trend potential. Its signals emerge from a confluence of arcane conditions:
• Buy Signals: Manifest when RSI ascends past the EMA in the wake of a downtrend’s distension, with the EMA’s curvature aligning toward convergence with the WMA. The slope of the EMA, ascending gently, corroborates the nascent resurgence, while a disciplined proximity between EMA and WMA ensures fidelity.
• Sell Signals: Crystallize as RSI descends beneath the EMA following an uptrend’s apogee, with the EMA’s declivity and narrowing EMA-WMA interstice heralding exhaustion. The antecedent trend’s vigor, now waning, validates the signal’s portent.
• Trend Divination: The EMA’s ascent above the WMA augurs a burgeoning momentum, while its descent portends enervation. The indicator’s vigilance over trend expansion—gauged through aberrant RSI-WMA disparities—unveils moments of latent reversal.
Distinction from Orthodoxy:
Unlike the prosaic RSI, tethered to static thresholds of overbought and oversold, the Continuum probes deeper strata of market dynamics. Its fusion of EMA slope analysis, WMA-referenced trend anchoring, and real-time divergence detection transcends conventional momentum paradigms. By eschewing the banal reliance on fixed levels, it navigates the liminal spaces of price flux, offering prescience where others falter.
Application Mandala:
• Optimal Context: The Continuum thrives in the crucible of short-term frameworks—5 to 15-minute charts—where its real-time alchemy captures fleeting dislocations in forex, equities, or volatile indices.
• Strategic Deployment: Seek buy signals in the aftermath of oversold retrenchments, corroborated by EMA-WMA convergence; deploy sell signals at the zenith of overbought exuberance, tempered by trend exhaustion cues.
• Complementary Synthesis: Augment with support/resistance confluences or volume surges to refine entry precision.
Caveat Emporium:
This construct serves as a lens for technical divination, not an infallible prophecy. Markets, in their probabilistic dance, elude certainty. Practitioners are adjured to wield robust risk protocols and seek confluence across manifold analytical vectors before committing capital.
Global M2 10-Week Lead (for bitcoin)This script displays a combined view of the Global M2 Money Supply, converted to USD and adjusted with a configurable forward lead (default 10 weeks). It is designed to help visualize macro liquidity trends and anticipate potential impacts on Bitcoin price movements across any timeframe.
🔹 Main Features:
- Aggregates M2 data from 18 countries and regions including the USA, Eurozone, China, Japan, and more.
- All M2 values are converted to USD using respective exchange rates.
- Customizable “Slide Weeks Forward” setting lets you project global liquidity data into the future.
- Works on all timeframes by adjusting the projection logic dynamically.
- Toggle each country’s data on or off to customize the liquidity model.
💡 Use Case:
Global liquidity is often a leading indicator for major asset classes. This tool helps traders and analysts assess macro-level trends and their potential influence on Bitcoin by looking at changes in M2 money supply worldwide.
💡 Inspired By:
This tool mimics the Global M2 10-Week Lead liquidity indicator often referenced by Raoul Pal of Real Vision and Global Macro Investor, used for macro analysis and Bitcoin movement prediction.
📊 Note:
All economic and FX data is sourced from TradingView’s built-in datasets (ECONOMICS and FX_IDC). Data availability may vary depending on your plan.
Heiken Ashi Supertrend ADXHeiken Ashi Supertrend ADX Indicator
Overview
This indicator combines the power of Heiken Ashi candles, Supertrend indicator, and ADX filter to identify strong trend movements across multiple timeframes. Designed primarily for the cryptocurrency market but adaptable to any tradable asset, this system focuses on capturing momentum in established trends while employing a sophisticated triple-layer stop loss mechanism to protect capital and secure profits.
Strategy Mechanics
Entry Signals
The strategy uses a unique blend of technical signals to identify high-probability trade entries:
Heiken Ashi Candles: Looks specifically for Heiken Ashi candles with minimal or no wicks, which signal strong momentum and trend continuation. These "full-bodied" candles represent periods where price moved decisively in one direction with minimal retracement. These are overlayed onto normal candes for more accuarte signalling and plotting
Supertrend Filter: Confirms the underlying trend direction using the Supertrend indicator (default factor: 3.0, ATR period: 10). Entries are aligned with the prevailing Supertrend direction.
ADX Filter (Optional) : Can be enabled to focus only on stronger trending conditions, filtering out choppy or ranging markets. When enabled, trades only trigger when ADX is above the specified threshold (default: 25).
Exit Signals
Positions are closed when either:
An opposing signal appears (Heiken Ashi candle with no wick in the opposite direction)
Any of the three stop loss mechanisms are triggered
Triple-Layer Stop Loss System
The strategy employs a sophisticated three-tier stop loss approach:
ATR Trailing Stop: Adapts to market volatility and locks in profits as the trend extends. This stop moves in the direction of the trade, capturing profit without exiting too early during normal price fluctuations.
Swing Point Stop: Uses natural market structure (recent highs/lows over a lookback period) to place stops at logical support/resistance levels, honoring the market's own rhythm.
Insurance Stop: A percentage-based safety net that protects against sudden adverse moves immediately after entry. This is particularly valuable when the swing point stop might be positioned too far from entry, providing immediate capital protection.
Optimization Features
Customizable Filters : All components (Supertrend, ADX) can be enabled/disabled to adapt to different market conditions
Adjustable Parameters : Fine-tune ATR periods, Supertrend factors, and ADX thresholds
Flexible Stop Loss Settings : Each of the three stop loss mechanisms can be individually enabled/disabled with customizable parameters
Best Practices for Implementation
[Recommended Timeframes : Works best on 4-hour charts and above, where trends develop more reliably
Market Conditions: Performs well across various market conditions due to the ADX filter's ability to identify meaningful trends
Performance Characteristics
When properly optimized, this has demonstrated profit factors exceeding 3 in backtesting. The approach typically produces generous winners while limiting losses through its multi-layered stop loss system. The ATR trailing stop is particularly effective at capturing extended trends, while the insurance stop provides immediate protection against adverse moves.
The visual components on the chart make it easy to follow the strategy's logic, with position status, entry prices, and current stop levels clearly displayed.
This indicator represents a complete trading system with clearly defined entry and exit rules, adaptive stop loss mechanisms, and built-in risk management through position sizing.