RSI-Price Strength Box (Quant-Stable v4 - corrected sign)This indicator shows Price Sensitivity with RSI Movement
Indicators and strategies
One cushion backward movement① The price breaks through the MA at the body, confirming that it is there.
② After that, a reversal candlestick is confirmed, triggering a sign and alert.
*If the reversal candlestick returns to the MA at the body, no sign or alert will be issued.
*In other words, this is Granville's guideline #2. Or #1.
Camarilla Pivots + 20 EMA StrategyThis is an intraday volatility and trend-following system for commodities like Natural Gas, combining dynamic pivot levels (Camarilla) with a trend filter (20-period EMA) to improve risk-reward and reduce false breakouts.
Core Components
1. Camarilla Pivots:
These are special support and resistance levels (H3, H4, L3, L4) calculated each day based on the previous day's high, low, and close.
The pivots adapt to daily volatility, giving more relevant breakout and bounce zones than static lines.
H4: Aggressive resistance (used for breakout LONG entry)
H3: Moderate resistance/support (used for bounce or stoploss)
L4: Aggressive support (used for breakout SHORT entry)
L3: Moderate support/resistance (used for bounce or stoploss)
2. 20 EMA (Exponential Moving Average):
Plotted on the 30-minute chart, this acts as a trend filter.
If the price is above 20 EMA: Only look for long trades (bullish bias).
If below 20 EMA: Only look for short trades (bearish bias).
How the Strategy Works
Setup (30-Min Chart):
Camarilla pivots for the day are drawn on the chart.
20 EMA is also plotted.
Trade Filter:
Bullish: Trade ONLY if price is above 20 EMA.
Bearish: Trade ONLY if price is below 20 EMA.
Entry:
LONG: Enter when price breaks and closes above the H4 pivot AND is above 20 EMA.
SHORT: Enter when price breaks and closes below the L4 pivot AND is below 20 EMA.
Stop Loss:
LONG: Place stoploss at H3 (the next lower Camarilla resistance).
SHORT: Place stoploss at L3 (the next higher Camarilla support).
Target:
Always set a profit target at 2x the distance (risk) between entry and stoploss (strict R:R 2).
For example, if your entry is at H4 and stoploss at H3, your target is entry + 2*(entry - stoploss).
Alerts & Visuals:
The strategy plots entry arrows, stoploss and target lines for immediate visual reference.
Alerts trigger on breakout signals so you never miss a trade.
Why This Works Well for Natural Gas
Adapts to volatility: The pivots change daily, handling wide-ranging and choppy price moves better than fixed breakouts.
Trend filter: EMA prevents counter-trend whipsaws, only trades with market momentum.
Risk control: Every trade must meet strict risk-reward criteria, so losses are contained and winners can outweigh losers.
Adaptive Volume Delta Map---
📊 Adaptive Volume Delta Map (AVDM)
What is Adaptive Volume Delta Map (AVDM)?
The Adaptive Volume Delta Map (AVDM) is a smart, multi-timeframe indicator that visualizes buy and sell volume imbalances directly on the chart.
It adapts automatically to the best available data resolution (tick, second, minute, or daily), allowing traders to analyze market activity with micro-level precision .
In addition to calculating volume delta (the difference between buying and selling pressure), AVDM can display a Volume Distribution Map — a per-price-level visualization showing how volume is split between buyers and sellers.
Key Features
✅ Adaptive Resolution Selection — Automatically chooses the highest possible data granularity — from tick to daily timeframe.
✅ Volume Delta Visualization — Displays delta candles reflecting the dominance of buyers (green), sellers (red), and delta (orange).
✅ Per-Level Volume Map (optional) — Shows detailed buy/sell volume distribution per price level, grouped by `Ticks Per Row`.
✅ Bid/Ask Classification — When enabled, AVDM uses bid/ask logic to classify trade direction with greater accuracy.
✅ Smart Auto-Disable Protection — Automatically disables volume map if too many price levels (>50) are detected — preventing performance degradation.
Inputs Overview
Use Seconds Resolution — Enables use of second-level data (if your TradingView subscription allows it).
Use Tick Resolution — Enables tick-based analysis for the most detailed view. If available, enable both tick and seconds resolution.
Use Bid/Ask Calculated — Uses bid/ask midpoint logic to classify trades.
Show Volume Distribution — Toggles per-price-level buy/sell volume visualization.
Ticks Per Row — Controls how many ticks are grouped per volume level. Reduce this value for finer detail, or increase it to reduce visual load.
Calculated Bars — Sets how many historical bars the indicator should process. Higher value increases accuracy but may impact performance.
How to Use
1. Add the indicator to your chart.
2. Ensure that your symbol provides volume data (and preferably tick or second-level data).
3. The indicator will automatically select the optimal timeframe for detailed calculation.
4. If your TradingView subscription allows second-level data , enable “Use Seconds Resolution.”
5. If your subscription allows tick-level data , enable both “Use Tick Resolution” and “Use Seconds Resolution.”
6. Adjust the “Calculated Bars” input to set how many historical bars the indicator should process.
7. Observe the Volume Delta Candles :
* Green = Buy pressure dominates
* Red = Sell pressure dominates
8. To see buy/sell clustering by price, enable “Show Volume Distribution.”
9. If the indicator disables the map and shows:
" Volume Distribution disabled: Too many price levels detected (>50). Try decreasing 'Ticks Per Row' or using a lower chart resolution. If you don’t care about the map, just turn off 'Show Volume Distribution'. "
— follow the instructions to reduce chart load.
Notes
* Automatically adapts to your chart’s resolution and data availability.
* If your symbol doesn’t provide volume data, a runtime warning will appear.
* Works best on futures , FX , and crypto instruments with high-frequency volume streams.
Why Traders Love It
AVDM combines adaptive resolution , volume delta analysis , and visual distribution mapping into one clean, efficient tool.
Perfect for traders studying:
* Market microstructure
* Aggressive vs. passive participation
* Volume absorption
* Order flow imbalance zones
* Delta-based divergence signals
Technical Highlights
* Built with Pine Script v6
* Adaptive resolution logic (`security_lower_tf`)
* Smart memory-safe map rendering
* Dynamic bid/ask classification
* Automatic overload protection
---
Market Structure Report Library [TradingFinder]🔵 Introduction
Market Structure is one of the most fundamental concepts in Price Action and Smart Money theory. In simple terms, it represents how price moves between highs and lows and reveals which phase of the market cycle we are currently in uptrend, downtrend, or transition.
Each structure in the market is formed by a combination of Breaks of Structure (BoS) and Changes of Character (CHoCH) :
BoS occurs when the market breaks a previous high or low, confirming the continuation of the current trend.
CHoCH occurs when price breaks in the opposite direction for the first time, signaling a potential trend reversal.
Since price movement is inherently fractal, market structure can be analyzed on two distinct levels :
Major / External Structure: represents the dominant macro trend.
Minor / Internal Structure: represents corrective or smaller-scale movements within the larger trend.
🔵 Library Purpose
The “Market Structure Report Library” is designed to automatically detect the current market structure type in real time.
Without drawing or displaying any visuals, it analyzes raw price data and returns a series of logical and textual outputs (Return Values) that describe the current structural state of the market.
It provides the following information :
Trend Type :
External Trend (Major): Up Trend, Down Trend, No Trend
Internal Trend (Minor): Up Trend, Down Trend, No Trend
Structure Type :
BoS : Confirms trend continuation
CHoCH : Indicates a potential trend reversal
Consecutive BoS Counter : Measures trend strength on both Major and Minor levels.
Candle Type : Returns the current candle’s condition(Bullish, Bearish, Doji)
This library is specifically designed for use in Smart Money–based screeners, indicators, and algorithmic strategies.
It can analyze multiple symbols and timeframes simultaneously and return the exact structure type (BoS or CHoCH) and trend direction for each.
🔵 Function Outputs
The function MS() processes the price data and returns seven key outputs,
each representing a distinct structural state of the market. These values can be used in indicators, strategies, or multi-symbol screeners.
🟣 ExternalTrend
Type : string
Description : Represents the direction of the Major (External) market structure.
Possible values :
Up Trend
Down Trend
No Trend
This is determined based on the behavior of Major Pivots (swing highs/lows).
🟣 InternalTrend
Type : string
Description : Represents the direction of the Minor (Internal) market structure.
Possible values :
Up Trend
Down Trend
No Trend
🟣 M_State
Type : string
Description : Specifies the type of the latest Major Structure event.
Possible values :
BoS
CHoCH
🟣 m_State
Type : string
Description : Specifies the type of the latest Minor Structure event.
Possible values :
BoS
CHoCH
🟣 MBoS_Counter
Type : integer
Description : Counts the number of consecutive structural breaks (BoS) in the Major structure.
Useful for evaluating trend strength :
Increasing count: indicates trend continuation.
Reset to zero: typically occurs after a CHoCH.
🟣 mBoS_Counter
Type : integer
Description : Counts the number of consecutive structural breaks in the Minor structure.
Helps analyze the micro structure of the market on lower timeframes.
Higher value : strong internal trend.
Reset : indicates a minor pullback or reversal.
🟣 Candle_Type
Type : string
Description : Represents the type of the current candle.
Possible values :
Bullish
Bearish
Doji
import TFlab/Market_Structure_Report_Library_TradingFinder/1 as MSS
PP = input.int (5 , 'Market Structure Pivot Period' , group = 'Symbol 1' )
= MSS.MS(PP)
Adaptive Square Levels (Prev + Curr Month, Configurable)
The Adaptive Square Levels (Configurable Edition) indicator dynamically plots price levels based on perfect squares — a concept derived from harmonic market behavior and geometric scaling.
Each month, the script automatically detects the new monthly open and generates square levels both above and below the opening price.
This version introduces full configurability, allowing traders to adjust how many square levels they want to visualize on either side of the base level. The indicator also visually separates previous and current month levels for easy reference.
⚙️ Features
🔢 User-Configurable Range: Choose how many levels to plot above and below the base level.
🧮 Mathematically Derived Levels: Based on perfect squares up to a user-defined max price.
📅 Monthly Auto-Reset: Automatically refreshes at the start of each new month.
🎨 Color-Coded Levels:
Orange → Major levels (square roots divisible by 3)
Yellow → Regular levels
Star (★) → Base level (nearest to monthly open)
🕰️ Dual Month Display: Shows both current and previous month levels for trend comparison.
💡 How to Use
Add the indicator to any symbol and timeframe (preferably daily or higher).
Adjust:
Max Price Level → The upper bound of your price universe.
Number of Levels Each Side → Controls the density of levels.
Observe how price reacts around these mathematically significant zones.
Use in confluence with your own price action, volume, or support/resistance analysis.
📊 Ideal For
Swing traders analyzing monthly trend reversals
Price structure and geometry enthusiasts
Traders exploring market harmonics or square-of-nine–based frameworks
🧠 Note
The script doesn’t provide buy/sell signals — it offers a structural map of key levels derived from square relationships.
Use it as a visual guide to align entries and exits with natural market geometry.
Market Regime IndexThe Market Regime Index is a top-down macro regime nowcasting tool that offers a consolidated view of the market’s risk appetite. It tracks 32 of the world’s most influential markets across asset classes to determine investor sentiment by applying trend-following signals to each independent asset. It features adjustable parameters and a built-in alert system that notifies investors when conditions transition between Risk-On and Risk-Off regimes. The selected markets are grouped into equities (7), fixed income (9), currencies (7), commodities (5), and derivatives (4):
Equities = S&P 500 E-mini Index Futures, Nasdaq-100 E-mini Index Futures, Russell 2000 E-mini Index Futures, STOXX Europe 600 Index Futures, Nikkei 225 Index Futures, MSCI Emerging Markets Index Futures, and S&P 500 High Beta (SPHB)/Low Beta (SPLV) Ratio.
Fixed Income = US 10Y Treasury Yield, US 2Y Treasury Yield, US 10Y-02Y Yield Spread, German 10Y Bund Yield, UK 10Y Gilt Yield, US 10Y Breakeven Inflation Rate, US 10Y TIPS Yield, US High Yield Option-Adjusted Spread, and US Corporate Option-Adjusted Spread.
Currencies = US Dollar Index (DXY), Australian Dollar/US Dollar, Euro/US Dollar, Chinese Yuan/US Dollar, Pound Sterling/US Dollar, Japanese Yen/US Dollar, and Bitcoin/US Dollar.
Commodities = ICE Brent Crude Oil Futures, COMEX Gold Futures, COMEX Silver Futures, COMEX Copper Futures, and S&P Goldman Sachs Commodity Index (GSCI) Futures.
Derivatives = CBOE S&P 500 Volatility Index (VIX), ICE US Bond Market Volatility Index (MOVE), CBOE 3M Implied Correlation Index, and CBOE VIX Volatility Index (VVIX)/VIX.
All assets are directionally aligned with their historical correlation to the S&P 500. Each asset contributes equally based on its individual bullish or bearish signal. The overall market regime is calculated as the difference between the number of Risk-On and Risk-Off signals divided by the total number of assets, displayed as the percentage of markets confirming each regime. Green indicates Risk-On and occurs when the number of Risk-On signals exceeds Risk-Off signals, while red indicates Risk-Off and occurs when the number of Risk-Off signals exceeds Risk-On signals.
Bullish Signal = (Fast MA – Slow MA) > (ATR × ATR Margin)
Bearish Signal = (Fast MA – Slow MA) < –(ATR × ATR Margin)
Market Regime = (Risk-On signals – Risk-Off signals) ÷ Total assets
This indicator is designed with flexibility in mind, allowing users to include or exclude individual assets that contribute to the market regime and adjust the input parameters used for trend signal detection. These parameters apply to each independent asset, and the overall regime signal is smoothed by the signal length to reduce noise and enhance reliability. Investors can position according to the prevailing market regime by selecting factors that have historically outperformed under each regime environment to minimise downside risk and maximise upside potential:
Risk-On Equity Factors = High Beta > Cyclicals > Low Volatility > Defensives.
Risk-Off Equity Factors = Defensives > Low Volatility > Cyclicals > High Beta.
Risk-On Fixed Income Factors = High Yield > Investment Grade > Treasuries.
Risk-Off Fixed Income Factors = Treasuries > Investment Grade > High Yield.
Risk-On Commodity Factors = Industrial Metals > Energy > Agriculture > Gold.
Risk-Off Commodity Factors = Gold > Agriculture > Energy > Industrial Metals.
Risk-On Currency Factors = Cryptocurrencies > Foreign Currencies > US Dollar.
Risk-Off Currency Factors = US Dollar > Foreign Currencies > Cryptocurrencies.
In summary, the Market Regime Index is a comprehensive macro risk-management tool that identifies the current market regime and helps investors align portfolio risk with the market’s underlying risk appetite. Its intuitive, color-coded design makes it an indispensable resource for investors seeking to navigate shifting market conditions and enhance risk-adjusted performance by selecting factors that have historically outperformed. While it has proven historically valuable, asset-specific characteristics and correlations evolve over time as market dynamics change.
SequencerLibraryLibrary "SequencerLibrary"
SequencerLibrary v1 is a Pine Script™ library for identifying, tracking, and visualizing
sequential bullish and bearish patterns on price charts.
It provides a complete framework for building sequence-based trading systems, including:
• Automatic detection and counting of setup and countdown phases.
• Real-time tracking of completion states, perfected setups, and exhaustion signals.
• Dynamic support and resistance thresholds derived from recent price structure.
• Customizable visual highlighting for both setup and countdown sequences.
method doSequence(s, src, config, condition)
Updates the sequence state based on the source value, and user configuration.
Namespace types: Sequence
Parameters:
s (Sequence) : The sequence object containing bullish and bearish setups.
src (float) : The source value (e.g., close price) used for evaluating sequence conditions.
config (SequenceInputs) : The user-defined settings for sequence analysis.
condition (bool) : When true, executes the sequence logic.
Returns:
highlight(s, css, condition)
Highlights the bullish and bearish sequence setups and countdowns on the chart.
Parameters:
s (Sequence) : The sequence object containing bullish and bearish sequence states.
css (SequenceCSS) : The styling configuration for customizing label appearances.
condition (bool) : When true, the function creates and displays labels for setups and countdowns.
Returns:
SequenceState
A type representing the configuration and state of a sequence setup.
Fields:
setup (series int) : Current count of the setup phase (e.g., how many bars have met the setup criteria).
countdown (series int) : Current count of the countdown phase (e.g., bars meeting countdown criteria).
threshold (series float) : The price threshold level used as support/resistance for the sequence.
priceWhenCompleted (series float) : The closing price when the setup or countdown phase is completed.
indicatorWhenCompleted (series float) : The indicator value when the setup or countdown phase is completed.
setupCompleted (series bool) : Indicates if the setup phase has been completed (i.e., reached the required count).
countdownCompleted (series bool) : Indicates if the countdown phase has been completed (i.e., reached exhaustion).
perfected (series bool) : Indicates if the setup meets the "perfected" condition (e.g., aligns with strict criteria).
highlightSetup (series bool) : Determines whether the setup phase should be visually highlighted on the chart.
highlightCountdown (series bool) : Determines whether the countdown phase should be visually highlighted on the chart.
Sequence
A type containing bullish and bearish sequence setups.
Fields:
bullish (SequenceState) : Configuration and state for bullish sequences.
bearish (SequenceState) : Configuration and state for bearish sequences.
SequenceInputs
A type for user-configurable input settings for sequence-based analysis.
Fields:
showSetup (series bool) : Enables or disables the display of setup sequences.
showCountdown (series bool) : Enables or disables the display of countdown sequences.
setupFilter (series string) : A comma‐separated string containing setup sequence counts to be highlighted (e.g., "1,2,3,4,5,6,7,8,9").
countdownFilter (series string) : A comma‐separated string containing countdown sequence counts to be highlighted (e.g., "1,2,3,4,5,6,7,8,9,10,11,12,13").
lookbackSetup (series int) : Defines the lookback period for evaluating setup conditions (default: 4 bars).
lookbackCountdown (series int) : Defines the lookback period for evaluating countdown conditions (default: 2 bars).
lookbackSetupPerfected (series int) : Defines the lookback period to determine a perfected setup condition (default: 6 bars).
maxSetup (series int) : The maximum count required to complete a setup phase (default: 9).
maxCountdown (series int) : The maximum count required to complete a countdown phase (default: 13).
SequenceCSS
A type defining the visual styling options for sequence labels.
Fields:
bullish (series color) : Color used for bullish sequence labels.
bearish (series color) : Color used for bearish sequence labels.
imperfect (series color) : Color used for labels representing imperfect sequences.
Multi-Currency Price Comparison[nakano]# Multi-Currency Price Comparison
## Description
A comprehensive Pine Script indicator that displays multiple cryptocurrency prices in different currencies (USD, JPY, KRW) on a single chart. Perfect for traders who want to compare how their base asset performs across different markets and currencies.
複数の通貨(USD、JPY、KRW)での暗号通貨価格を単一チャート上に表示する包括的なPine Scriptインジケーター。異なる市場や通貨でのベースアセットのパフォーマンスを比較したいトレーダーに最適です。
**Features / 機能:**
- **Multi-Currency Display / マルチ通貨表示**: Show USD, JPY, and KRW price lines simultaneously / USD、JPY、KRW価格ラインを同時表示
- **Flexible Display Modes / 柔軟な表示モード**: Line, Bars, or Candles rendering / ライン、バー、ローソク足での描画
- **Custom Ticker Support / カスタムティッカー対応**: Use any base symbol (BTC, ETH, etc.) instead of current chart / 現在チャート以外の任意のベース銘柄(BTC、ETH等)を使用可能
- **Exchange Selection / 取引所選択**: Choose from multiple exchanges (Binance, Coinbase, Kraken, etc.) / 複数の取引所(Binance、Coinbase、Kraken等)から選択
- **Price Labels / 価格ラベル**: Display original prices with optional deviation percentages / 元の価格を表示、オプションで乖離率も表示
- **Exchange Rate Table / 為替レートテーブル**: Show real-time USD/JPY/KRW exchange rates / リアルタイムのUSD/JPY/KRW為替レートを表示
- **Performance Optimized / パフォーマンス最適化**: Only fetches data when needed / 必要な時のみデータを取得
- **K/M Notation / K/M表記**: Large numbers displayed as 1.5K, 2.3M for better readability / 大きな数値を1.5K、2.3Mとして表示し、可読性を向上
**Use Cases / 使用例:**
- Compare Bitcoin performance in USD vs JPY markets / ビットコインのUSD市場とJPY市場でのパフォーマンス比較
- Monitor altcoin prices across different currency pairs / 異なる通貨ペアでのアルトコイン価格の監視
- Analyze currency impact on crypto valuations / 通貨が暗号通貨評価に与える影響の分析
- Track exchange rate correlations with crypto prices / 為替レートと暗号通貨価格の相関関係の追跡
## Settings
### Currencies / 通貨設定
- **USD**: Toggle USD/USDT line display, choose color and exchange / USD/USDTラインの表示、色、取引所を設定
- **JPY**: Toggle JPY line display, choose color and exchange / JPYラインの表示、色、取引所を設定
- **KRW**: Toggle KRW line display, choose color and exchange / KRWラインの表示、色、取引所を設定
### General / 一般設定
- **Display Mode**: Choose Line, Bars, or Candles rendering / 表示方法を選択(ライン/バー/ローソク足)
- **Plot Style**: Line rendering style (only applies to Line mode) / 価格ラインの描画スタイル(Display ModeがLineの時のみ適用)
- **Use Custom Ticker**: Enable to use custom base symbol / カスタムベース銘柄の使用を有効化
- **Show same-quote currency lines**: Display lines for chart's quote currency / 現チャートと同一通貨建てのラインも表示
- **Show Price Labels**: Display original prices as labels / 最新バーに元の価格をラベルで表示
- **Show Deviation (%)**: Show deviation percentage from current chart price / ラベルに現在チャート価格からの乖離率を表示
### Table / テーブル設定
- **Show Price Table**: Toggle info table display / 価格情報テーブルの表示を切り替え
- **Show Exchange Rates**: Display USD/JPY/KRW exchange rates row / テーブルに為替レート行(USD/JPY/KRW)を表示
- **Position**: Table position (9 positions available) / テーブルの表示位置(9箇所から選択可能)
- **Text Size**: Table text size / テーブルの文字サイズ
## Support
For issues or feature requests, please contact the developer.
問題や機能リクエストについては、開発者にお問い合わせください。
---
**Version**: 1.0
**Author**: nakano
**Pine Script Version**: 6
**Last Updated**: 2025.10.07
Risk Recommender — (Heatmap)📊 Risk Recommender — Per-Trade & Annualized (Heatmap Columns)
Estimate the optimal risk percentage for any market regime.
This tool dynamically recommends how much of your account equity to risk — either per trade or at a portfolio (annualized) level — using volatility as the guide.
⚙️ How it works
Two distinct modes give you flexibility:
1️⃣ Per-Trade (ATR-based)
• Calculates the current Average True Range (ATR) compared to its long-term baseline.
• When volatility is high (ATR ↑), risk per trade decreases to maintain constant dollar risk.
• When volatility is low (ATR ↓), risk per trade increases within your defined floor and ceiling.
• The display is normalized by stop distance (× ATR) and smoothed to avoid noise.
2️⃣ Annualized (Volatility Targeting)
• Computes realized volatility (standard deviation of log returns) and an EWMA forecast of future volatility.
• Blends current and forecast volatilities to estimate “effective” volatility.
• Scales your base risk so that portfolio volatility converges toward your chosen annual target (e.g., 20%).
• Useful for portfolio-level or systematic strategies that maintain constant volatility exposure.
🎨 Heatmap Visualization
The vertical column graph acts like a thermometer:
• 🟥 Red → “Reduce risk” (volatility high).
• 🟩 Green → “Increase risk” (volatility low).
• Smoothed and bounded between your Floor and Ceiling risk levels.
• Optional dotted guides mark those bounds.
• Label shows the current mode, recommended risk %, and key metrics (ATR ratio or effective volatility).
🔧 Key Inputs
• Base max risk per trade (%) — your normal per-trade risk budget.
• ATR length / Baseline ATR length — control sensitivity to short- vs. long-term volatility.
• Target annualized volatility (%) — portfolio volatility target for quant mode.
• λ (lambda) — smoothing factor for the EWMA volatility forecast (0.90–0.99 typical).
• Floor & Ceiling — clamps the output to avoid extreme sizing.
• Smoothing & Hysteresis — prevent rapid changes in risk recommendations.
🧮 Interpreting the Output
• “Recommended Risk (%)” = suggested portion of equity to risk on the next trade (or current exposure).
• In Per-Trade mode: reflects current ATR ÷ baseline ATR .
• In Annualized mode: reflects target volatility ÷ effective volatility .
• Use the color and height of the column as a quick visual cue for aggressiveness.
💡 Typical Use Cases
• Position-sizing overlay for discretionary traders.
• Volatility-targeting component for algorithmic or multi-asset systems.
• Educational tool to understand how volatility governs prudent risk management.
📘 Notes
• This indicator provides risk suggestions only ; it does not place trades.
• Works on any symbol or timeframe.
• Combine with your own strategy or alerts for full automation.
• All calculations use built-in Pine functions; no proprietary logic.
Tags:
#RiskManagement #ATR #Volatility #Quant #PositionSizing #SystematicTrading #AlgorithmicTrading #Portfolio #TradingStrategy #Heatmap #EWMA #Risk
LSVR - Liquidity Sweep & Volume ReversalLSVR condenses a pro workflow into one visual overlay: Higher-Timeframe (HTF) Trend → Liquidity Sweep & Reclaim → Volume Confirmation. A signal only prints when all three gates align at bar close, and the chart shows everything you need—trend context, the sweep “trap” candle, and a projected Entry/SL/TP based on your chosen R multiple.
How it works
HTF Trend Filter: Projects a smoothed KAMA/EMA from a higher timeframe to the chart using a safe, lookahead-off request. Long signals are considered only above the HTF line; shorts only below.
Liquidity Sweep & Reclaim: Finds confirmed swing highs/lows, then detects an ATR-scaled overshoot through that swing followed by a reclaim (close back inside a configurable % of the bar range).
Volume Confirmation: Requires either a volume spike over Volume SMA × multiplier or optional OBV divergence. No participation = no signal.
Score: Each setup is scored: trend (0/1) + overshoot strength (0..1.5) + conviction (0/1). Signals fire only when the score ≥ Min Signal Score.
What you see
HTF Ribbon (subtle green/red backdrop) for bias.
Sweep Box on the signal candle (green = long, red = short).
Signal markers (“L” / “S”) with a small score label.
Projected lines that persist until the next signal: Entry (close), Stop (beyond swept swing), Target (R multiple).
Heatmap that intensifies when the score crosses your threshold.
Dashboard (top-right): HTF direction, Volume×SMA, current Score, gate pass status.
Tooltip on the last bar with quick stats.
Quick start
Apply to any liquid symbol and set HTF to ~3–6× your chart timeframe (e.g., 15m chart → 1H–4H).
Trade with the HTF trend: take L signals above the HTF line and S signals below it.
Entry = signal bar close, SL = beyond the swept swing, TP = your Projected Take-Profit (R).
Tighten or loosen selectivity with Min Signal Score, Reclaim %, Overshoot (ATR×), and Cooldown.
Recommended presets
Choppy/crypto 15m: minScore 1.25, reclaimPct 0.60–0.65, overshootATR 1.0–1.2, useOBVDiv=false, cooldown 8.
FX 5m / session trend: minScore 1.0–1.1, reclaimPct 0.50–0.55, overshootATR 0.8–1.0, useOBVDiv=true, cooldown 5.
Indices 1m (RTH): minScore 1.2, reclaimPct 0.55–0.60, useOBVDiv=false, cooldown 10.
Non-repainting by design
HTF values use lookahead_off with realtime offset.
Swings are confirmed pivots (no “forming” pivots).
Signals print at bar close only.
Notes
OBV divergence can add sensitivity on liquid markets; keep it off for stricter filtering.
Use Cooldown to avoid clustered sweeps.
This is an overlay/analysis tool, not financial advice. Test settings in Replay/Paper Trading before using live.
LA - MACD EMA BandsOverview of the "LA - MACD EMA Bands" Indicator
For Better view, use this indicator along with "LA - EMA Bands with MTF Dashboard"
The "LA - MACD EMA Bands" is a custom technical indicator written in Pine Script v6 for TradingView. It builds on the traditional Moving Average Convergence Divergence (MACD) oscillator by incorporating additional smoothing via Exponential Moving Averages (EMAs) and Bollinger Bands (BB) applied directly to the MACD line. This creates a multi-layered momentum and volatility tool displayed in a separate pane below the price chart (not overlaid on the price itself).
The indicator allows for customization, such as selecting a different timeframe (for multi-timeframe analysis) and adjusting period lengths. It fetches data from the specified timeframe using request.security with lookahead enabled to avoid repainting issues. The core idea is to provide insights into momentum trends, crossovers, and volatility expansions/contractions in the MACD's behavior, making it suitable for identifying potential trend reversals, continuations, or ranging markets.
Unlike a standard MACD, which focuses primarily on momentum via a single line, signal line, and histogram, this version emphasizes longer-term smoothing and volatility boundaries. It uses visual fills between lines to highlight bullish/bearish conditions, aiding quick interpretation. Below, I'll break down each component, its calculation, visual representation, and practical uses.
Detailed Breakdown of Each Component and Its Uses
MACD Line (Blue Line, Labeled 'MACD Line')
Calculation: This is the core MACD value, computed as the difference between a fast EMA (default length 12) and a slow EMA (default length 144) of the input source (default: close price). The EMAs are calculated on data from the selected timeframe.
Visuals: Plotted as a solid blue line.
Uses:
Measures momentum: When above zero, it indicates bullish momentum (prices rising faster in the short term); below zero, bearish momentum.
Trend identification: Rising MACD suggests strengthening uptrends; falling suggests downtrends.
Divergence spotting: Compare with price action—e.g., if price makes higher highs but MACD makes lower highs, it signals potential bearish reversal (and vice versa for bullish divergence).
In trading: Often used for entry/exit signals when crossing the zero line or other lines in the indicator.
MACD EMA (Red Line, Labeled 'MACD EMA')
Calculation: A 12-period EMA applied to the MACD Line itself.
Visuals: Plotted as a solid red line.
Uses:
Acts as a signal line for the MACD, smoothing out short-term noise.
Crossover signals: When the MACD Line crosses above the MACD EMA, it can signal a bullish buy opportunity; crossing below suggests a bearish sell.
Trend confirmation: Helps filter false signals in choppy markets by requiring confirmation from this slower-moving average.
In trading: Useful for momentum-based strategies, like entering trades on crossovers in alignment with the overall trend.
Fill Between MACD Line and MACD EMA (Green/Red Shaded Area, Titled 'MACD Fill')
Calculation: The area between the MACD Line and MACD EMA is filled with color based on their relative positions.
Color Logic: Green (with 57% transparency) if MACD Line > MACD EMA (bullish); red if MACD Line < MACD EMA (bearish).
Visuals: Semi-transparent fill for easy visibility without overwhelming the lines.
Uses:
Quick visual cue for momentum shifts: Green areas highlight bullish phases; red for bearish.
Enhances readability: Makes crossovers more apparent at a glance, especially in fast-moving markets.
In trading: Can be used to time entries/exits or as a filter (e.g., only take long trades in green zones).
Bollinger Bands on MACD (BB Upper: Black Dotted, BB Basis: Maroon Dotted, BB Lower: Black Dotted)
Calculation: Bollinger Bands applied to the MACD Line.
BB Basis: 144-period EMA of the MACD Line.
BB Standard Deviation: 144-period stdev of the MACD Line.
BB Upper: BB Basis + (2.0 * BB Stdev)
BB Lower: BB Basis - (2.0 * BB Stdev)
Visuals: Upper and lower bands as black dotted lines; basis as maroon dotted
Uses:
Volatility measurement: Bands expand during high momentum volatility (strong trends) and contract during low volatility (ranging or consolidation).
Mean reversion: When MACD Line touches or exceeds the upper band, it may signal overbought conditions (potential sell); lower band for oversold (potential buy).
Squeeze detection: Narrow bands (squeeze) often precede big moves—watch for breakouts.
In trading: Combines momentum with volatility; e.g., a MACD Line breakout above the upper band could confirm a strong uptrend.
BB Basis EMA (Green Line, Labeled 'BB Basis EMA')
Calculation: A 72-period EMA applied to the BB Basis (which is already a 144-period EMA of the MACD Line).
Visuals: Solid green line.
Uses:
Further smoothing: Provides a longer-term view of the MACD's average behavior, reducing noise from the BB Basis.
Trend direction: Acts as a baseline for the BB system—above it suggests bullish bias in momentum volatility; below, bearish.
Crossover with BB Basis: Can signal shifts in volatility trends (e.g., BB Basis crossing above BB Basis EMA indicates increasing bullish volatility).
In trading: Useful for confirming longer-term trends or as a filter for BB-based signals.
Fill Between BB Basis and BB Basis EMA (Gray Shaded Area, Titled 'BB Basis Fill')
Calculation: The area between BB Basis and BB Basis EMA is filled.
Color Logic: Currently set to a constant semi-transparent gray regardless of position.
Visuals: Semi-transparent gray fill.
Uses:
Highlights divergence: Shows when the shorter-term BB Basis deviates from its longer-term EMA, indicating potential volatility shifts.
Visual aid for crossovers: Makes it easier to spot when BB Basis crosses its EMA.
In trading: Could be used to identify overextensions in volatility (e.g., wide gray areas might signal impending mean reversion).
Zero Line (Black Horizontal Line)
Calculation: A simple horizontal line at y=0.
Visuals: Solid black line.
Uses:
Reference point: Divides bullish (above) from bearish (below) territory for all MACD-related lines.
In trading: Crossovers of the zero line by the MACD Line or BB Basis can signal major trend changes.
How It Differs from a Normal MACD
A standard MACD (e.g., the built-in TradingView MACD with defaults 12/26/9) consists of:
MACD Line: EMA(12) - EMA(26).
Signal Line: EMA(MACD Line, 9).
Histogram: MACD Line - Signal Line (bars showing convergence/divergence).
Key differences in "LA - MACD EMA Bands":
Periods: Uses a much longer slow EMA (144 vs. 26), making it more sensitive to long-term trends but less reactive to short-term price action. The MACD EMA is 12 periods (vs. 9), further emphasizing smoothing.
No Histogram: Replaces the histogram with fills and bands for visual emphasis on crossovers and volatility.
Added Bollinger Bands: Applies BB directly to the MACD Line (with a long 144-period basis), introducing volatility analysis absent in standard MACD. This helps detect "squeezes" or expansions in momentum.
Additional EMA Layer: The BB Basis EMA (72-period) adds a secondary smoothing level to the BB system, providing a hierarchical view of momentum (short-term MACD → mid-term BB → long-term EMA).
Multi-Timeframe Support: Built-in option for higher timeframes, unlike basic MACD.
Focus: Standard MACD is purely momentum-focused; this version integrates volatility (via BB) and multi-layer smoothing, making it better for trend-following in volatile markets but potentially overwhelming for beginners.
Overall, this indicator transforms the MACD from a simple oscillator into a comprehensive momentum-volatility hybrid, reducing false signals in trending markets but introducing lag.
Overall Pros and Cons
Pros:
Enhanced Visualization: Fills and bands make trends, crossovers, and volatility easier to spot without needing multiple indicators.
Reduced Noise: Longer periods (144, 72) smooth out whipsaws, ideal for swing or position trading in trending assets like stocks or forex.
Volatility Integration: BB adds a dimension not in standard MACD, helping identify breakouts or consolidations.
Customizable: Inputs for timeframes and lengths allow adaptation to different assets/timeframes.
Multi-Layered Insights: Combines short-term signals (MACD crossovers) with long-term confirmation (BB EMA), improving signal reliability.
Cons:
Lagging Nature: Long periods (e.g., 144) delay signals, missing early entries in fast markets or leading to late exits.
Complexity: Multiple lines and fills can clutter the pane, requiring experience to interpret; beginners might misread it.
Potential Overfitting: Custom periods (12/144/12/144/72) may work well on historical data but underperform in live trading without backtesting.
No Built-in Alerts/Signals: Relies on visual interpretation; users must manually set alerts for crossovers.
Resource Intensive: On lower timeframes or with lookahead, it might slow chart loading on Trading View.
This indicator shines in strategies combining momentum and volatility, like trend-following with BB squeezes, but test it on your assets (e.g., via backtesting) to ensure it fits your style.
For Better view, use this indicator along with "LA - EMA Bands with MTF Dashboard"
15-Min RSI Scalper [SwissAlgo]15-Min RSI Scalper
Tracks RSI Momentum Loss and Gain to Generate Signals
-------------------------------------------------------
WHAT THIS INDICATOR CALCULATES
This indicator attempts to identify RSI directional changes (RSI momentum) using a step-by-step "ladder" method. It reads RSI(14) from the next higher timeframe relative to your chart. On a 15-minute chart, it uses 1-hour RSI. On a 5-minute chart, it uses 15-minute RSI, and so on.
How the ladder logic works:
The indicator doesn't track RSI all the time. It only starts tracking when RSI crosses into potentially extreme territory (these are called "events" in the code):
For sell signals : when RSI crosses above a dynamic upper threshold (typically between 60-80, calculated as the 90th percentile of recent RSI)
For buy signals : when RSI crosses below a dynamic lower threshold (typically between 20-40, calculated as the 10th percentile of recent RSI)
Once tracking begins, RSI movement is divided into 2-point steps (boxes). The indicator counts how many boxes RSI climbs or falls.
A signal generates only when:
RSI reverses direction by at least 2 boxes (4 RSI points) from its extreme
RSI holds that reversal for 3 consecutive confirmed bars
Example: Dynamic threshold is at 68. RSI crosses above 68 → tracking starts. RSI climbs to 76 (4 boxes up). Then it drops back to 72 and stays below that level for 3 bars → sell signal prints. The buy signal works the same way in reverse.
-------------------------------------------------------
SIGNAL GENERATION METHODOLOGY
Sell Signal (Red Triangle)
RSI crosses above a dynamic start level (calculated as the 90th percentile of the last 1000 bars, constrained between 60-80)
Indicator tracks upward progression in 2-point boxes
RSI reverses and drops below a boundary 2 boxes below the highest box reached
RSI remains below that boundary for 3 confirmed bars
Red triangle plots above price
Reset condition: RSI returns below 50
Buy Signal (Green Triangle)
RSI crosses below a dynamic start level (10th percentile of last 1000 bars, constrained between 20-40)
Indicator tracks downward progression in 2-point boxes
RSI reverses and rises above a boundary 2 boxes above the lowest box reached
RSI remains above that boundary for 3 confirmed bars
Green triangle plots below price
Reset condition: RSI returns above 50
-------------------------------------------------------
TECHNICAL PARAMETERS
All parameters are hardcoded:
RSI Period: 14
Box Size: 2 RSI points
Reversal Threshold: 2 boxes (4 RSI points)
Confirmation Period: 3 bars
Reset Level: RSI 50
Sell Start Range: 60-80 (dynamic)
Buy Start Range: 20-40 (dynamic)
Lookback for Percentile: 1000 bars
Note: Since the code is open source, users can modify these hardcoded values directly in the script to adjust sensitivity. For example, increasing the confirmation period from 3 to 5 bars will produce fewer but more conservative signals. Decreasing the box size from 2 to 1 will make the indicator more responsive to smaller RSI movements.
-------------------------------------------------------
KEY FEATURES
Automatic Higher Timeframe RSI
When applied to a 15-minute chart, the indicator automatically reads 1-hour RSI data. This is the next standard timeframe above 15 minutes in the indicator's logic.
Dynamic Adaptive Start Levels
Sell signals use the 90th percentile of RSI over the last 1000 bars, constrained between 60-80. Buy signals use the 10th percentile, constrained between 20-40. These thresholds recalculate on each bar based on recent data.
Ladder Box System
RSI movements are tracked in 2-point boxes. The indicator requires a 2-box reversal followed by 3 consecutive bars maintaining that reversal before generating a signal.
Dual Signal Output
Red down-triangles plot above price when the sell signal conditions are met. Green up-triangles plot below the price when buy signal conditions are met.
-------------------------------------------------------
REPAINTING
This indicator does not repaint. All calculations use "barstate.isconfirmed" to ensure signals appear only on closed bars. The request.security() call uses lookahead=barmerge.lookahead_off to prevent forward-looking bias.
-------------------------------------------------------
INTENDED CHART TIMEFRAME
This indicator is designed for use on 15-minute charts. The visual reminder table at the top of the chart indicates this requirement.
On a 15-minute chart:
RSI data comes from the 1-hour timeframe
Signals reflect 1-hour momentum shifts
3-bar confirmation equals 45 minutes of price action
Using it on other timeframes will change the higher timeframe RSI source and may produce different behavior.
-------------------------------------------------------
WHAT THIS INDICATOR DOES NOT DO
Does not predict future price movements
Does not provide entry or exit advice
Does not guarantee profitable trades
Does not replace comprehensive technical analysis
Does not account for fundamental factors, news events, or market structure
Does not adapt to all market conditions equally
-------------------------------------------------------
EDUCATIONAL USE
This indicator demonstrates one approach to momentum reversal detection using:
Multi-timeframe analysis
Adaptive thresholds via percentile calculation
Step-wise momentum tracking
Multi-bar confirmation logic
It is designed as a technical study, not a trading system. Signals represent calculated conditions based on RSI behavior, not trade recommendations. Always do your own analysis before taking market positions.
-------------------------------------------------------
RISK DISCLOSURE
Trading involves substantial risk of loss. This indicator:
Is for educational and informational purposes only
Does not constitute financial, investment, or trading advice
Should not be used as the sole basis for trading decisions
Has not been tested across all market conditions
May produce false signals, late signals, or no signals in certain conditions
Past performance of any indicator does not predict future results. Users must conduct their own analysis and risk assessment before making trading decisions. Always use proper risk management, including stop losses and position sizing appropriate to your account and risk tolerance.
MIT LICENSE
This code is open source and provided as-is without warranties of any kind. You may use, modify, and distribute it freely under the MIT License.
Cantana Algo | ES - NQ - YMCantana Algo | CME_MINI:ES1! CME_MINI:NQ1! CBOT_MINI:YM1!
Cantana Algo is a market structure and volume analysis tool for the S&P 500 (ES), Nasdaq 100 (NQ), and Dow Jones (YM) futures. It combines POE boxes, multi-VWAP analysis, volatility profiling, and a compact info panel to provide a clear and structured market overview.
🔹 Key Features
Dynamic POE Boxes – automatically highlight relevant price areas.
POE Breaks & Retest Attention on the 70% Value Area – informs the user that a manually drawn Fixed Volume Profile is recommended to monitor price action around the 70% Value Area.
Multi-VWAP Framework – session, weekly, and monthly VWAPs with tolerance bands for bias detection.
Daily & Weekly Bias Detection – color-coded overview for quick orientation.
Volatility Analysis – displays minimum, maximum, average, and quartile statistics of current market volatility.
Alert on Volatility Reversal – optional alert triggers when the market drops back below the average ATR after a period of high volatility. Works with any alert function call.
Risk-On / Risk-Off Dashboard – provides a high-level market view, showing overall risk sentiment based on Gold, S&P, and Dollar Index.
⚙️ Customizable
Info and statistics panels can be freely positioned.
Modules (Market Profile / Volume Profile / tables) can be toggled individually.
Alerts can be activated according to user preference.
📜 Note
The script does not draw a Fixed Volume Profile – the “Retest Attention on 70% VA” message serves solely as a reminder for the user to manually add a profile in order to detect setups based on the Value Area. Additionally, this script only works on the 1-minute timeframe (1M).
This script is currently available for free. It may become a paid version in the future.
⚠️ Disclaimer
This script is provided for educational and analytical purposes only. It does not constitute financial advice, a trading strategy, or a recommendation to buy or sell any financial instrument.
All decisions based on this script are solely the responsibility of the user.
Trading involves risks, including the potential loss of invested capital.
FVG Scanner ProFVG Scanner Pro — Smart Fair Value Gap Detector (with HTF context & proximity alerts)
What it does
FVG Scanner Pro automatically finds Fair Value Gaps (FVGs) on your current chart and (optionally) on a higher timeframe (HTF), draws them as color-coded zones, and notifies you when price comes close to a gap boundary using an ADR-based proximity trigger and (optional) volume confirmation. It’s designed for ICT-style gap trading, confluence building, and clean visual execution.
How it works:
FVG definition
* Bullish FVG (gap up): low > high (the current candle’s low is above the high 2 bars ago).
* Bearish FVG (gap down): high < low (the current candle’s high is below the low 2 bars ago).
* Gaps smaller than your Min FVG Size (%) are ignored. (Gap size = (top-bottom)/bottom * 100.)
Higher-timeframe logic (auto-selected)
The script auto picks a sensible HTF:
1–5m → 15m, 15m → 1H, 1H → 4H, 4H → 1D, 1D → 1W, 1W → 1M, small 1M → 3M, big ≥3M → 12M.
You can display HTF FVGs and even filter so current-TF FVGs only show when they overlap an HTF gap.
Proximity alerts (ADR-based)
The script computes ADR on the current chart timeframe over a user-set lookback (default 20 bars).
An alert fires when price moves toward the closest actionable boundary and comes within ADR × Multiplier:
Bullish: price moving down, within distance of the bottom of a bullish FVG.
Bearish: price moving up, within distance of the top of a bearish FVG.
Yellow ▲/▼ markers show where a proximity alert triggered.
Volume filter (optional)
Require volume to be greater than SMA(20) × multiplier to accept a newly formed FVG.
Lifecycle
Each gap remains active for Extend FVG Box (Bars) bars.
You can delete the box after fill, or keep filled gaps visible as gray zones, or hide them.
Color legend
Current-TF Bullish: Pink/Magenta box
Current-TF Bearish: Cyan/Turquoise box
HTF Bullish: Gold box
HTF Bearish: Orange box
Filled (if shown): Gray box
Alert markers: Yellow ▲ (bullish), Yellow ▼ (bearish)
Inputs (what to tweak)
Show FVGs: Bullish / Bearish / Both
Max Bars Back to Find FVG: collection window & cleanup guard
Extend FVG Box (Bars): how long a zone stays tradable/active
Min FVG Size (%): ignore micro gaps
Delete Box After Fill & Show Filled FVGs: choose how you want completed gaps handled
Show Alert Markers: show/hide the yellow proximity arrows
Show Higher Timeframe FVG: overlay HTF gaps (auto TF)
HTF Filter: only display current-TF gaps that overlap an HTF gap
ADR Lookback & Proximity Multiplier: tune alert sensitivity to your market & timeframe
Volume Filter & Volume > MA Multiple: require above-average volume for new gaps
Built-in alerts (ready to use)
Create alerts in TradingView (⚠️ “Once per bar” or “Once per bar close”, your choice) and select from:
🟢 Bullish FVG Proximity — price approaching a bullish gap bottom
🔴 Bearish FVG Proximity — price approaching a bearish gap top
✅ New Bullish FVG Formed
⚠️ New Bearish FVG Formed
The alert messages include the symbol and price; proximity markers are also plotted on chart.
Tips & best practices
Use FVGs with market structure (break of structure, swing points), order blocks, or liquidity pools for confluence.
On very low timeframes, raise Min FVG Size and/or lower Max Bars Back to reduce noise and keep things fast.
Extend FVG Box controls how long a zone is considered valid; align it with your holding horizon (scalp vs swing).
Information panel (top-right)
Shows your mode, current HTF, number of gaps in memory, active bull/bear counts, and current-TF ADR.
Find explosive candlesDefault values
Candles that are at least (2) times larger than the average of the previous (20) candles.
Candles where the body represents (80)% or more of the total candle size.
Visualization
Bullish and bearish candles that meet or exceed the default values are displayed in a different color.
The percentage of the body relative to the entire candle is displayed.
The number of times the candle is larger than the average of the previous (20) candles is displayed.
Note
The values in parentheses can be adjusted by the user and are therefore subject to change.
Gann Square Levels 1 to infinity by NishantGann Square Levels 1 to infinity by Nishant
This indicator plots dynamic horizontal price levels based on the squares of whole numbers (1², 2², 3², …) with a small adjustment rule: if a square ends with an even digit, 1 is added to make it odd (for example, 4² = 16 → 17). The script displays a configurable number of the nearest levels above and below the current price and updates automatically as price moves.
Key features • Dynamic: shows N levels above and below the current price (default 5 each) and updates live.
• Adjustment rule: every square that ends with an even digit is incremented by 1 to make it odd.
• Highly configurable: customize number of levels, colors, line width, line style, and line extension (None / Left / Right / Both).
• Labels: optional labels show level values.
• Efficient: searches near sqrt(price) to keep calculations fast and avoid TradingView object limits.
• Safe object handling: the script deletes and recreates lines/labels safely to avoid runtime errors.
Inputs / user controls • Number of Levels Above/Below — how many levels are shown on each side of price.
• Above Price Line Color / Below Price Line Color — choose distinct colors for clarity.
• Line Width — thickness of plotted lines.
• Line Style — Solid, Dashed, Dotted, Arrow Left/Right/Both.
• Line Extension — None, Left, Right, Both (choose how lines extend across the chart).
• Auto Update — toggle live updates on/off.
• Show Level Labels — toggle numeric labels.
Recommended usage • Best used as a reference grid for support/resistance planning, confluence studies, and alert generation.
• Works on any timeframe and instrument, but consider increasing Number of Levels for instruments with very high price scales (or leave default and let the script pick nearest levels).
• Combine with volume, momentum, or price-action signals for higher-probability setups.
Dynamic Support & Resistance (DSR)tndicator description: Dynamic Support & Resistance (DSR)
What it does
Plots dynamic support and resistance that adapt to any timeframe. In bullish phases it highlights resistances; in bearish phases it highlights supports. Works for scalping, binary options, and day trading.
How it works
Detects recent swing highs/lows with noise filtering.
Merges nearby levels into “zones” with configurable tolerance.
Promotes a zone after a valid break-and-close.
Classifies context as trend, channel, or range via slope and move strength.
Shows only context-relevant zones to reduce clutter.
Inputs
Swing length (pivot high/low).
Merge tolerance (%, ticks, or ATR fraction).
Lookback depth.
Trend filter (EMA or optional ADX).
Minimum touches to validate a zone.
Display mode: lines, bands, or blocks.
Break sensitivity (close condition, wick allowance, body %).
Visual outputs
Resistance zones during bullish phases.
Support zones during bearish phases.
Dual zones in ranges/channels.
Labels: touch count, zone strength, last test timestamp.
Signals and rules (suggested)
Reversal: rejection candle at a valid zone + momentum/volume confirmation.
Continuation: strong close through the zone + successful retest.
Invalidation: two full closes back inside the zone in the opposite direction.
Alerts (templates)
“Price touched DSR Resistance .”
“Break of DSR Support with close > sensitivity.”
“Successful retest at DSR Zone. Possible continuation.”
Timeframe guidance
1–5m: higher sensitivity, tighter tolerance. For scalping and binaries.
15–60m: balance between frequency and reliability.
4H–D: anchor levels for intraday planning.
Risk management
Technical stop: beyond the opposite zone + tolerance buffer.
Scaled TP: first at mid-range, second at next DSR zone.
Avoid trading into high-impact news.
Advantages
Auto-adapts to trend, channel, and range without constant tuning.
Reduces noise by merging redundant levels.
Focus on zones with verified touches and strength.
Limitations
Not predictive. Use with price/volume confirmation.
In high volatility, zones can update quickly. Tune tolerance accordingly.
Disclaimer
Educational only. Not financial advice. Test on demo before live use.
London Midpoint Raid [Plazo Sullivan Roche Capital]London Midpoint BOS AI™ – User Manual
By Plazo Sullivan Roche Capital
Core Strategy in a Nutshell
The London Midpoint BOS AI™ is a precision intraday tool built on ICT and Smart Money Concepts (SMC) principles. It identifies London session reversal-to-continuation setups that align with higher-timeframe (HTF) bias and true market intent.
In essence:
When the Daily and 4H structure is bullish, the market often dips below equilibrium during London’s early volatility to grab liquidity before resuming upward.
Conversely, in a bearish structure, it typically spikes above equilibrium before continuing downward.
The tool automatically detects:
HTF Bias (Daily + H4) via EMA or structure logic
Yesterday’s mid-range (equilibrium)
Intraday Break of Structure (BOS) on your 2–5-minute chart
Volume expansion, confirming institutional displacement
Optional VWAP confluence for extra precision
When all filters align, the script marks BUY or SELL signals during the London Killzone (02:30–04:30 NY time) — when 70% of the day’s institutional liquidity is set.
What’s in It for You
Benefit Description
🎯 Ultra-High Precision Entries
Trades only when price sweeps the prior day’s equilibrium and confirms BOS with real volume expansion.
🧩 Institutional Logic, Simplified
Combines ICT, SMC, and Goldbach bias confirmation without clutter — showing only signals that matter.
⚙️ Adaptive Multi-Timeframe Bias
Auto-syncs with your Daily & H4 direction, ensuring you only trade with macro momentum.
🔔 Alert-Ready for Automation
BUY and SELL alert conditions are pre-built for webhook integration with cTrader or brokers.
📊 Clean Dashboard Interface
Real-time HTF bias panel keeps you aligned with the larger market context.
⏱ Session-Specific Smart Filtering
Restricts signals to the London Killzone for maximum precision and volatility efficiency.
Best Usage Guide
✅ Recommended Chart & Assets
Chart timeframe 2-minute to 5-minute
Higher timeframes monitored 4H and Daily
Pairs & Assets EURUSD, GBPUSD, XAUUSD (Gold), DXY, NAS100
Session London Killzone – 02:30 to 04:30 New York time
Ideal Market Conditions
Asian session forms a narrow, defined range (low volatility).
Price sweeps below or above yesterday’s midpoint during early London volatility.
HTF bias is clear and unconflicted (both Daily and 4H agree).
A strong BOS candle with volume expansion appears immediately after sweep.
VWAP alignment supports the intended direction.
Avoid trading:
Mixed HTF signals (Daily bullish, H4 bearish).
Large fundamental days (CPI, NFP, FOMC).
Markets already heavily trending with no retracement.
Tool Settings Breakdown
Session Control
Limit to London Killzone Filters signals only between 02:30–04:30 NY time.
HTF Bias Method
EMA or Structure Choose how Daily/H4 bias is determined.
Midpoint Logic
Require Sweep of Yesterday’s Midpoint Only triggers signals after liquidity sweep around yesterday’s mid-level.
Volume Confirmation
Volume SMA Length, Volume Expansion ≥ Confirms BOS with a spike in relative volume.
VWAP Confluence
Require VWAP alignment Adds institutional volume reference for more accurate trades.
Display Options
Show Dashboard, Show Midpoint, Show Labels Customize visibility of components for clarity.
How to Interpret Signals
BUY Signal (Bullish Setup)
HTF (Daily & H4) bias = Bullish
Price sweeps below yesterday’s midpoint
A BOS up forms on the 2–5m chart
Volume expansion confirms displacement
Optional VWAP confluence: Price above VWAP
deal Entry:
Buy on retracement to the BOS candle midpoint or a micro Fair Value Gap (FVG).
Target:
First partial at 1R or prior high
Final target near London session high or daily liquidity level
SELL Signal (Bearish Setup)
HTF (Daily & H4) bias = Bearish
Price sweeps above yesterday’s midpoint
A BOS down forms on the 2–5m chart
Volume expansion confirms displacement
Optinal VWAP confluence: Price below VWAP
Ideal Entry:
Sell on retracement to BOS candle midpoint or micro FVG fill.
🎯 Target:
First partial at 1R or session equilibrium
Final target at London low or key liquidity pocket
Best Setup Configuration
Parameter Recommended Value
Timeframe 2-minute or 3-minute
HTF Bias Method EMA (20)
Require Sweep of Midpoint ✅ Enabled
Volume Expansion ≥ 1.5x to 2.0x average
VWAP Filter ✅ Enabled
Session Limit ✅ London Killzone (02:30–04:30 NY)
Display Dashboard ON, Midpoint ON, Labels ON
This configuration yields an excellent balance of signal clarity, precision, and frequency — typically 2–4 valid trades per week per pair, with average R:R of 2.5–4.0.
Pro Tips for Maximum Edge
Bias Confirmation: Always double-check that Daily and H4 structure are aligned before entering.
Session Timing: Wait for the London open (02:30–03:00 NY). Avoid early pre-London signals.
Volume Clues: The best trades come when BOS candles show clear displacement — wide-range, high-volume bars.
Liquidity Targets: Focus on previous day’s high/low, session highs/lows, or obvious liquidity pools.
Psychological Precision: Don’t chase; let the tool print the signal after the sweep, then wait for confirmation.
🔔 Alerts & Automation
Pre-built alert conditions:
BUY: London Midpoint BOS
SELL: London Midpoint BOS
Use them for:
Webhook connections (e.g., cTrader, MT5, or Discord alerts).
External trade execution bots or journaling tools.
🏁 Summary
The London Midpoint BOS AI™ distills institutional concepts into a clean, actionable framework for traders who want to:
Trade only high-probability London setups
Filter out noise and fake reversals
Align entries with HTF direction and real liquidity intent
It’s your daily edge to capture the most profitable 90-minute window in global forex — the London Killzone, where precision beats volume every time.
RSI and EMA Crossover Buy with Exit Conditions and Re-entryRSI WITH MOVING AVERAGES..
RSI and EMA Crossover Buy with Exit Conditions and Re-entry
VCP + TTM Squeeze Breakout StrategyOverview
This strategy combines Mark Minervini’s Volatility Contraction Pattern (VCP) with the TTM Squeeze momentum framework to detect explosive breakouts in strong trending markets.
It identifies periods of volatility contraction within up-trending stocks and executes only when price, momentum, and volume confirm a valid breakout.
The system was designed to be robust and non-optimized, using one set of parameters that performs consistently across multiple stocks and indices without overfitting.
This strategy is based on the previously published “VCP + TTM Squeeze Breakout Detection Tool”, which is a public indicator by the same author.
The strategy expands upon that indicator by adding position management, ATR-based stop logic, Supertrend trailing, and full backtesting functionality.
Core Concept
VCP detects volatility contraction using ATR and volume.
TTM Squeeze measures compression between Bollinger Bands and Keltner Channels.
EMA filter ensures that trades only occur in established uptrends.
Pivot logic tracks recent highs and resets automatically after failed attempts.
Breakout triggers when price closes above pivot, volume exceeds its average, momentum is positive, and—if enabled—the TTM Squeeze releases (green).
Stop-loss is ATR-based and transitions to a Supertrend trailing stop once profits exceed ≈ 1 %.
This creates a mechanical system that mirrors institutional-style breakout trading while minimizing noise and false signals.
Input Parameters
🔹 VCP Settings
VCP Period (10) – ATR lookback for volatility contraction
Pivot Lookback (5) – number of bars used to define resistance
Volatility Tolerance (1.1) – ATR compression threshold
Volume & TrueRange Comparisons (5) – lookbacks for breakout validation
Max Days Active (50) – how long the pattern remains valid
EMA 50 / 100 / 200 – trend filter; must be aligned upward
Use TTM Squeeze (true) – activates compression filter
🔹 TTM Squeeze Settings
Length (20) – core period for BB and KC calculations
Bollinger STD (2.0) – standard deviation multiplier
Keltner Channels (1.5 / 2 / 3) – three compression zones
Green = No Squeeze
Orange/Red/Black = Compression levels
🔹 ATR Stop Loss
ATR Length (14)
Smoothing (RMA)
Multiplier (1.0) – defines distance below swing low
Show Lines (true) – optional visualization
🔹 Trailing Stop (Supertrend)
ATR Length (10)
Factor (3.0) – standard Supertrend setting
Active after ≈ 1 % profit – replaces initial ATR stop
Entry Conditions
Price > EMA 50/100/200 and EMAs in ascending order
ATR indicates volatility contraction (≤ lowest ATR × 1.1)
A Pivot High is set over the last 5 bars
Breakout occurs when:
• Close > Pivot High
• Volume > average of past 5 bars
• Momentum > 0
• (If enabled) TTM Squeeze = No Squeeze (green)
• Price > Supertrend
A new position is entered the next bar when all conditions are true.
Exit Logic
Initial Stop-Loss: Low − ATR × Multiplier
Trailing Stop: Supertrend (ATR 10 × Factor 3) after ≈ 1 % gain
Exit Condition: Triggered if price hits stop or volume/TR drops below average.
Stops are handled through strategy.exit() to ensure immediate execution.
Visualization
Yellow dots = VCP setup (active contraction)
Green dots = active breakout
Red/Blue lines = current stop loss
Green line = entry price
Colored bars (top) = momentum strength
Bottom squares = Squeeze status (green = free, orange/red = compressed)
Performance and Risk Considerations
Designed for daily or 4-hour charts of trending equities or ETFs.
Best results in high-momentum stocks (e.g., tech, growth sectors).
Avoid using on range-bound or low-volume assets.
Typical backtests show a high profit factor (> 2) with controlled drawdowns.
Each trade risks ≈ 1 – 2 % of equity when sized per ATR.
Disclaimer
This strategy is for educational purposes only and does not constitute financial advice.
Past performance from backtesting does not guarantee future results.
Use responsibly and adjust risk according to your account size and broker conditions.
BBDXY-9 (SAXO) - riseofatrader📊 BBDXY-9 (SAXO) – riseofatrader Dollar Strength Index
The BBDXY-9 is a custom, geometrically weighted U.S. Dollar Index, inspired by the Bloomberg Dollar Spot Index (BBDXY) — but redesigned for modern markets and real-world global exposure.
Unlike the outdated DXY (which only includes six mainly European currencies), the BBDXY-9 is built from a diverse basket of nine major and emerging FX pairs, calculated using Bloomberg-style geometric weighting:
EURUSD (inv) – 29.45%
USDJPY – 12.59%
USDCAD – 11.52%
GBPUSD (inv) – 10.17%
USDMXN – 9.39%
USDCNH – 6.98%
USDCHF – 4.70%
AUDUSD (inv) – 4.37%
USDSGD – 2.78%
Each candle represents the true, weighted price movement of the USD across these global pairs — not just Europe.
The index is rebased to 100 at a selected reference date (e.g., Dec 31 2019), providing a clean, scalable, and visually precise representation of dollar strength across all timeframes (1m → 12M).
💡 Why It’s Better Than the DXY
Modern and globally diversified:
Includes Asian and emerging-market currencies (CNH, MXN, SGD) for a more realistic reflection of global USD flows.
Geometric calculation (Bloomberg standard):
Measures proportional price changes more accurately, avoiding the distortions of the arithmetic DXY model.
True OHLC candles:
Not a line indicator — the BBDXY-9 generates full candlestick data (Open, High, Low, Close) so you can apply price action, SMC, or liquidity-based analysis directly on the chart.
Fully customizable:
Adjust the base date, weighting, data feed (SAXO, OANDA, FXCM), and visual styling to fit your analysis framework.
⚙️ Technical Features
Daily-close rebasing at any chosen date (default: Dec 31 2019)
Works consistently across all timeframes (1m → 12M)
Geometrically weighted OHLC construction
Optional rebased arithmetic comparison line
Custom up/down candle colors, transparency, and styling
✨ Tagline (Short Version for TV Listing)
A modern, candle-based Dollar Index — broader, more accurate, and globally balanced than the DXY.
Built for traders who want to measure true USD strength across the entire FX landscape.
Created by riseofatrader.
LA - EMA Bands with MTF DashboardDetailed Explanation of the LA - EMA Bands with MTF Dashboard Indicator
This custom Pine Script v6 indicator, designed for Trading View, overlays EMA-based price channels on the chart while incorporating a multi-timeframe (MTF) dashboard for broader market context. It focuses on visualizing trend direction and momentum through three sets of EMA bands, each representing different time horizons, and extends this with a tabular dashboard that summarizes signals across user-selected timeframes. The bands help identify support, resistance, and trend shifts, while the dashboard provides at-a-glance alignment across multiple periods, aiding in confirming trades or spotting divergences. Unlike volatility-based channels (e.g., Bollinger or Keltner), it relies solely on EMAs for simplicity and lag-reduced responsiveness.
Inputs Section
The script begins with user-configurable options grouped for ease. A timeframe input allows specifying a resolution for the EMA bands' data fetching, defaulting to the chart's timeframe if left empty—this enables higher-timeframe overlays on lower charts for context.
Next, a shared source input defines the price data for all midlines, defaulting to the midpoint of high and low (hl2) but customizable to close, open, or others.
The EMA bands have dedicated toggles and length inputs for each of the three sets: the first (long-term) defaults to 144 periods, the second (medium-term) to 72, and the third (short-term) to 12. These are inlined for compact settings panels, with minimum lengths of 1 to prevent errors.
A boolean toggle controls the visibility of the MTF dashboard. Following this are nine pairs of inputs for dashboard timeframes: each pair includes a show/hide toggle and an editable timeframe string (e.g., '1' for 1-minute, 'D' for daily). Defaults progress from short (1, 3, 5 minutes) to longer (15, 30, 60 minutes, daily, weekly, monthly), grouped in inlines for organization. Only enabled and non-empty timeframes appear in the dashboard.
Helpers Section
Two utility functions are defined here. The first computes an EMA on any source series over a specified length using Trading View's built-in function, reused throughout for midlines and bands.
The second function generates a signal string ("B" for buy/bullish, "S" for sell/bearish, or "-" for neutral) based on the direction of an EMA applied to high prices. It compares the current EMA value to the previous one, mirroring the band fill logic for consistency in the dashboard.
Core Components per Band Set:
Midline: An EMA calculated on a user-selectable source price (default: hl2, which is the midpoint between high and low prices). This acts as the central trend line.
Upper Band: An EMA applied directly to the high prices of each bar.
Lower Band: An EMA applied to the low prices of each bar.
These form a channel that captures the smoothed range of price action, highlighting potential support (lower band), resistance (upper band), and overall trend direction (midline).
Multiple Band Sets: The indicator includes three independent EMA band sets, each with its own length parameter for customization:
EMA1 (default length: 144) – Focuses on long-term trends.
EMA2 (default length: 72) – Targets medium-term trends.
EMA3 (default length: 12) – Emphasizes short-term momentum.
Each set can be toggled on or off via input checkboxes, allowing users to reduce chart clutter if needed.
Visual Elements:
Midline Plot: Displayed as a line colored based on its direction compared to the previous bar: green for rising (bullish), red for falling (bearish), and black for neutral (flat).
Band Fill: The area between the upper and lower bands is filled with a semi-transparent color indicating the trend of the upper band: light green for rising (suggesting expanding highs/upward momentum) and light pink for falling (contracting highs/downward pressure). The bands themselves are plotted in blue with a thin linewidth.
Multi-Timeframe Support: Users can input a custom timeframe (e.g., 'D' for daily), and the indicator fetches data from that resolution. This enables higher-timeframe context on lower-timeframe charts, such as viewing daily EMA bands on a 1-hour chart.
Calculation Mechanics:
All EMAs are computed using Trading View's built-in ta.ema() function.
Data is retrieved in a single request.security() call for efficiency, with lookahead enabled to avoid repainting.
No multipliers or volatility adjustments are included, making it a simple EMA-based envelope rather than a true volatility channel.
In practice, this indicator helps traders identify trend strength, potential breakouts (price crossing bands), or mean-reversion opportunities (price bouncing within bands). It's particularly useful for swing or position trading where multi-period alignment (e.g., all midlines green) signals conviction.
Pros
Multi-Period Insight: By combining short (12), medium (72), and long (144) periods, it offers a layered view of trends across time horizons, helping confirm alignments or divergences without needing multiple separate indicators.
Visual Clarity: Color-coded trends and fills make it easy to spot bullish/bearish shifts at a glance, reducing analysis time.
Flexibility: Custom timeframe input allows for multi-timeframe analysis, while shared source and toggles provide user control.
Simplicity and Efficiency: Purely EMA-based, it's computationally light and avoids overcomplication, making it accessible for beginners while still useful for spotting channel-based setups like squeezes or expansions.
No Repainting: With lookahead, plots are stable once bars close.
Cons
Lagging Nature: EMAs inherently lag price action, especially longer ones like 144-period, which may cause delayed signals in fast-moving or ranging markets.
Lack of Volatility Adjustment: Unlike Keltner Channels or Bollinger Bands, it doesn't incorporate ATR or standard deviation, so bands may not accurately reflect true volatility—potentially leading to false breakouts in high-volatility environments.
Chart Clutter: Displaying all three band sets simultaneously can overcrowd the chart, particularly on lower timeframes or volatile assets.
Subjective Interpretation: Color changes and band interactions require trader discretion; there's no built-in alerting or quantitative signals, which might lead to inconsistent results.
Market Dependency: Defaults may not suit all assets (e.g., stocks vs. crypto); shorter periods like 12 could whipsaw in noisy markets, while 144 might be too slow for intraday trading.
Justification for Default Values (12, 72, and 144)
The default lengths of 12, 72, and 144 are not arbitrary but draw from established trading principles, particularly W.D. Gann's geometric and numerical theories, as well as Fibonacci sequences, to create a harmonic progression for short-, medium-, and long-term analysis. Here's the rationale:
12 (Short-Term): This is a common period for capturing recent momentum in technical indicators, often seen in setups like the MACD (which uses 12- and 26-day EMAs). It aligns with natural cycles, such as the 12 months in a year, and in Gann theory, 12 serves as a base unit for squaring price and time (e.g., in the "Square of 12" where multiples like 12, 24, etc., measure cycles in days, weeks, or months). At 12 periods, the EMA reacts quickly to price changes without excessive noise, making it ideal for short-term trend detection.
72 (Medium-Term): This acts as an intermediate bridge, derived from Gann's divisions of the 360-degree circle (a key Gann concept representing a full cycle). Specifically, 72 is 360/5 (relating to pentagonal geometry and natural harmonics) and appears in Gann's time cycle measurements (e.g., as a multiple in the Square of 12: 12×6=72). It's roughly half of 144, providing a balanced midpoint for medium-term trends without overlapping too closely with the others. In practice, 72 periods smooth out short-term fluctuations while still responding to developing trends.
144 (Long-Term): This is a powerhouse number in trading lore, being both 12 squared (12×12=144, central to Gann's "Square of 144" for monthly charts and major cycle turns, as there are 12 months in a year) and a Fibonacci sequence value (1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144...). Fibonacci periods are popular in moving averages for their alignment with natural growth patterns in markets, and 144 is often used for long-term regime definition (e.g., confirming trends over 144 bars). It helps identify major support/resistance in extended cycles.
Overall, these values form a geometric/harmonic series (12, 72=12×6, 144=12×12), promoting alignment with market cycles as per Gann and Fibonacci principles, rather than generic lengths like 50 or 200. They can be adjusted based on the asset or timeframe, but the defaults provide a starting point rooted in time-tested trading numerology for balanced multi-period analysis.
Please use this along with other indicators (eg. Pivot, MACD, etc) for better results.