بو عمر//@version=5
indicator("بو عمر", overlay=true)
// SMA 1000 على إطار الدقيقة
sma_1min = request.security(syminfo.tickerid, "1", ta.sma(close, 1000), barmerge.gaps_off, barmerge.lookahead_on)
plot(sma_1min, title=" 1Min", color=color.blue, linewidth=2)
// SMA 1000 على إطار 5 دقائق
sma_5min = request.security(syminfo.tickerid, "5", ta.sma(close, 1000), barmerge.gaps_off, barmerge.lookahead_on)
plot(sma_5min, title=" 5Min", color=color.orange, linewidth=2)
// SMA 1000 على إطار 15 دقيقة
sma_15min = request.security(syminfo.tickerid, "15", ta.sma(close, 1000), barmerge.gaps_off, barmerge.lookahead_on)
plot(sma_15min, title=" 15Min", color=color.green, linewidth=2)
// ====== Labels ======
// نستخدم var حتى لا تُعاد إنشاء الملصقات كل شمعة، بل يتم تحديث موقعها فقط
var label lbl_1min = label.new(x=na, y=na, text="1Min", style=label.style_label_left, color=color.blue, textcolor=color.white)
label.set_xy(lbl_1min, bar_index, sma_1min)
label.set_text(lbl_1min, "1Min ")
label.set_color(lbl_1min, color.blue)
var label lbl_5min = label.new(x=na, y=na, text="5Min", style=label.style_label_left, color=color.orange, textcolor=color.white)
label.set_xy(lbl_5min, bar_index, sma_5min)
label.set_text(lbl_5min, "5Min")
label.set_color(lbl_5min, color.orange)
var label lbl_15min = label.new(x=na, y=na, text="15Min ", style=label.style_label_left, color=color.green, textcolor=color.white)
label.set_xy(lbl_15min, bar_index, sma_15min)
label.set_text(lbl_15min, "15Min ")
label.set_color(lbl_15min, color.green)
Candlestick analysis
BTCUSD Liquidity Pulse Divergence | Investing Crypto StrategyStrategy type: Daily on-chain liquidity trend-follower (long-only)
What it does
The strategy goes long BTCUSD only when fresh capital and whale accumulation line up with price‐action strength:
Stable-coin Supply Shock
7-day % change in combined USDT + USDC market-cap
• Trade regime is ON when today’s change ranks above the chosen percentile of the last perc_len days (default 35 th).
Whale Wallet Momentum
Rate-of-change in the number of wallets holding ≥ 10 000 BTC
• Must be positive to confirm stealth buying.
Trend & Timing Filters
• Daily close > EMA(ema_len) ⟶ only trade with the dominant trend.
• Same-bar RSI(14) > rsi_gate and close > VWAP ⟶ avoid dead-cat moves.
Risk Engine
• Entry size = min(risk cap, volatility-weight) % of equity.
• Stop-loss = weekly ATR × atr_mult below entry.
• Flat immediately if stable-coin Z-score turns < 0 or whale ROC flips < 0.
All calculations are forward-safe: every higher-timeframe request uses lookahead_off.
Default inputs
Parameter Purpose Default
Stable-Δ percentile >` Supply-shock threshold 35
Percentile window Look-back (days) 100
Whale ROC length Accumulation window (days) 40
RSI gate Momentum confirm 50
Trend EMA length Macro filter (days) 100
Weekly-ATR stop × Stop distance 3.0
Back-test properties (shown in “Properties” tab)
Setting Value
Initial capital 10 000 USD
Order size 5 % of equity
Pyramiding 1
Commission 0.10 %
Slippage 5 ticks
Fill orders Bar magnifier ✔ · On bar close ✔ · Standard OHLC ✔
How to use
Add the script to any BTCUSD 1-day chart (spot or perpetual). Can work with ETH and other crypto correlated assets with BTC.
Leave the chart timeframe at D; the code pulls weekly data internally.
Adjust inputs only if you understand their effect (hover each slider for a tooltip).
Keep commission/slippage realistic and forward-test on a demo account before risking live funds.
Important notes
Uses only publicly available on-chain feeds (CRYPTOCAP:USDT, CRYPTOCAP:USDC, BTC_ADDRESSESBALANCE10KUSD).
No request.security() look-ahead, no repainting, no intrabar assumptions.
Long-only by design—no hedging in bear markets.
Historical performance never guarantees future returns. Market micro-structure changes or data outages can affect results.
Credits
Written from scratch with TradingView built-ins; no external code reused. Special thanks to the TradingView community for the on-chain data feeds.
Trade smart, manage risk, and let the liquidity tide guide you!
DSPLN EMA Flip Strategy v6This script is part of the DSPLN Method, a rules-based trend-following system that trades price reactions around the 21 EMA with optional VWAP context and custom session filters.
🔹 Core Logic:
Enters long when price closes above the 21 EMA
Enters short when price closes below the 21 EMA
Exits when price closes back across the 21 EMA (trend shift)
Optional TP/SL levels can be toggled ON/OFF
Immediate re-entry in the opposite direction after exit (flips positions)
Stops trading for the session after a winning trade is hit
Max 5 trades per session
🛠️ Features:
21 EMA & VWAP visual overlays
Customizable session start/end time
TP/SL settings in points
Toggle for using or ignoring TP/SL
Auto-shutdown after first win (discipline enforcement)
Trade log reset at session close
Smart label displays “✅ WIN - No More Trades” when strategy locks in
Use this to master EMA momentum flips with clear logic, strict discipline, and no emotional overtrading. Part of the DSPLN Method — Do So Patiently Listening Now.
LONDON RIPPER Breakout · Daytrade EURUSDWhat it does
The script hunts for the first decisive break of the Tokyo range when London liquidity comes online. It fires long or short only if:
Price leaves the Asia box (05 : 00 – 06 : 55 GMT).
The break occurs inside the EU Entry Window (07 : 00 – 08 : 30 GMT).
Relative Volume (rVol) confirms momentum
- Longs: rVol ≥ 1 - Shorts: rVol < 1
Bollinger Band filter adds extra thrust confirmation
- Longs: close > upper band - Shorts: close < lower band.
Stop-loss is always the opposite side of the Asia box. No targets—let the move run.
All orders are sent on bar close with standard OHLC fills—no repaint, no intrabar peeking.
Default inputs
Anchor TF ………… 1 Day (volume baseline)
rVol Length ………… 9 bars (cumulative mode)
Tokyo Session …… 05 : 00-06 : 55 GMT
EU Session (full) … 07 : 00-13 : 00 GMT
EU Entry Window … 07 : 00-08 : 30 GMT
BB Length ………… 20 | Basis MA: SMMA (RMA) | StDev Mult: 2
All times are editable and use the Session Time-Zone = GMT by default.
Strategy properties used in the back-test
Initial capital: 100 000
Order size: 5 % of equity | Pyramiding: 1
Commission: 0.0001 USD per contract
Slippage: 3 ticks
Recalculate: none | Fill orders: On bar close + Standard OHLC
Feel free to adjust these values to match your broker’s conditions.
How to use
Add the script to any intraday EURUSD chart (≤ 30 min works best from our testings).
Check that your broker’s session times line up—modify if needed.
Keep risk sensible; the default 5 % per trade is a placeholder, not advice.
Let the strategy run only during the European session; it auto-flattens outside 07-13 GMT.
Important notes
Requires a feed that supplies real volume (needed for rVol).
No request.security() with look-ahead—this code is 100 % forward-safe.
Past results never guarantee future returns. London news spikes can still blow through stops. Test before you trade live.
Credits
Built from scratch using only TradingView built-in functions and the official ta library. No external code reused.
Trade disciplined, and may the Ripper be with you!
15m Engulfing MA Signal + Labelstrial script with changes required, difficult as of now to plot in chart with buy and sell signals
LilSpecCodes1. Killzone Background Highlighting:
It highlights 4 key market sessions:
Killzone Time (EST) Color
Silver Bullet 9:30 AM – 12:00 PM Light Blue
London Killzone 2:00 AM – 5:00 AM Light Green
NY PM Killzone 1:30 PM – 4:00 PM Light Purple
Asia Open 7:00 PM – 11:00 PM Light Red
These are meant to help you focus during high-probability trading times.
__________________________________________________
2. Previous Day High/Low (PDH/PDL):
Plots green line = PDH
Plots red line = PDL
Tracks the current day’s session high/low and sets it as PDH/PDL on a new trading day
CHANGES WITH ETH/RTH
3. Inside Bar Marker:
Plots a small black triangle under bars where the high is lower than the previous bar’s high and the low is higher than the previous bar’s low (inside bars)
Useful for spotting potential breakout or continuation setups
4. Vertical Time Markers (White Dashed Lines)
Time (EST) Label
4:00 AM End of London Silver Bullet
9:30 AM NYSE Open
10:00 AM Start of NY Silver Bullet
11:00 AM End of NY Silver Bullet
11:30 AM (Customizable Input)
3:00 PM PM Killzone Ends
3:15 PM Futures Market Close
7:15 PM Asia Session Watch
Candlestick + Pivot + VWAP Confluence Detector"Candlestick + Pivot + VWAP Confluence Detector" is a precision price action tool designed for intraday and swing traders who rely on high-probability trade setups around key market levels.
This indicator automatically detects powerful candlestick reversal patterns — like Bullish & Bearish Engulfing — and only marks them when they occur near major Pivot Points or the VWAP (Volume Weighted Average Price), where market reactions are statistically more significant.
Top Movers RSI StrategyEntry Signal (Buy): The script triggers a buy order when the chosen indicator(s) confirm a bullish trend or oversold condition, indicating a potential upward price movement.
Exit Signal (Sell): The script triggers a sell order when the indicator(s) signal a bearish trend or overbought condition, suggesting the price may decline.
Risk Management: The strategy includes stop-loss and take-profit levels to limit losses and secure profits.
Timeframe: The strategy operates on a chart to capture relevant price action.
Additional Filters: Optional filters like volume confirmation, moving average crossovers, or RSI thresholds can be included to reduce false signals.
Day Trading Strategy (Clean Signals)This strategy is designed for day trading, using a classic Exponential Moving Average (EMA) crossover system to find short-to-medium term trading opportunities. It plots a fast 8-period EMA (orange) and a slow 21-period EMA (blue). A "BUY" signal is generated and a long position is entered when the fast EMA crosses above the slow EMA, first closing any existing short position. Conversely, a "SELL" signal is generated and a short position is entered when the fast EMA crosses below the slow EMA, closing any existing long position. All trades use 10% of the account equity. The strategy visually marks these signals on the chart with green "BUY" triangles below the bars and red "SELL" triangles above the bars. Additionally, it can trigger alerts for both buy and sell signals, making it suitable for active traders looking for clear, trend-following entry and exit points on lower timeframes.
GWAPGVWAP = Genesis Vwap. It is a very useful buy the dip indicator for IPO's that have come to market in the past few years, crypto, memecoins etc. The history gives this vwap more power and it always is placed at the beginning of any chart.
Global MA + Oscillator Score, Vol-Rank Filter and HA candlesOVERVIEW
This strategy goes long when TradingView’s global Technical-Rating score
(MA plus Oscillator composite) is strong and exits on weak scores or
volatility spikes. Scores are calculated on Heikin-Ashi candles for noise
reduction, but every order is executed on standard OHLC data, so back-tests
use real-candle prices.
KEY POINTS
• Uses the global Technical Rating because tests showed better risk-adjusted
returns than MA-only or Oscillator-only variants.
• Vol-Rank percentiles (Larry Williams VIX-Fix adaptation) block trades when
short-term volatility is in the top 20 % of the last 252 bars and allow
re-entry once it falls below 60 %.
• End-of-month Thursday profit-lock rule exits open winners just before
monthly option expiry.
• Works on any timeframe and any liquid symbol; defaults are tuned for QQQ
daily.
ENTRY AND EXIT
Long entry: globalRating ≥ +0.4
Soft exit: globalRating < −0.6
Hard exit: Vol-Rank ≥ 80 % or last-Thursday of the month rule
Re-entry: Same bar if Vol-Rank ≤ 60 % after last-thursday hard exit
INPUTS
symbol_correlation default QQQ (editable)
ratingThresholdIn +0.4
ratingThresholdOut −0.6
DEFAULT STRATEGY PROPERTIES
Initial capital default
Order size 5 % of equity
Pyramiding 1 order
Commission 0.05 % per trade
Slippage 5 ticks
Margin requirement long 100 %
Margin requirement short 100 %
Fill orders bar magnifier ON, on bar close, using standard OHLC
LIMITATIONS
• Heikin-Ashi smoothing delays signals; real-time fills can differ.
• Vol-Rank is derived from price, not true options IV Rank.
• Past results never guarantee future performance.
CREDITS
TradingView Technical Rating library v3
Larry Williams VIX-Fix concept (adapted)
Breakout Confirmation🔍 Indicator Name: Breakout Confirmation (Body + Volume)
📌 Purpose:
This indicator is designed to detect high-probability breakout setups based on price structure and volume strength. It identifies moments when the market breaks through a key support or resistance level, confirmed by two consecutive strong candles with large real bodies and high volume.
⚙️ How It Works
1. Support and Resistance Detection
The indicator uses pivot points to identify potential horizontal support and resistance levels.
A pivot high or pivot low is considered valid if it stands out over a configurable number of candles (default: 50).
Only the most recent valid support and resistance levels are tracked and displayed as horizontal lines on the chart.
2. Breakout Setup
The breakout condition is defined as:
First Candle (Breakout Candle):
Large body (compared to the recent body average)
High volume (compared to the recent volume average)
Must close beyond a resistance or support level:
Close above resistance (bullish breakout)
Close below support (bearish breakout)
Second Candle (Confirmation Candle):
Also must have a large body and high volume
Must continue in the direction of the breakout (i.e., higher close in bullish breakouts, lower close in bearish ones)
3. Signal Plotting
If both candles meet the criteria, the indicator plots:
A green triangle below the candle for bullish breakouts
A red triangle above the candle for bearish breakouts
📈 How to Interpret the Signals
✅ Green triangle below a candle:
Indicates a confirmed bullish breakout.
The price has closed above a recent resistance level with strength.
The trend may continue higher — possible entry for long positions.
🔻 Red triangle above a candle:
Indicates a confirmed bearish breakout.
The price has closed below a recent support level with strength.
Potential signal to enter short or exit long positions.
⚠️ The plotted horizontal lines show the last key support and resistance levels. These are the zones being monitored for breakouts.
📊 How to Use It
Timeframe: Works best on higher timeframes (1H, 4H, Daily), but can be tested on any chart.
Entry: Consider entries after the second candle confirms the breakout.
Stop Loss:
For longs: Below the breakout candle or the broken resistance
For shorts: Above the breakout candle or broken support
Take Profit:
Based on previous structure, risk:reward ratios, or using trailing stops.
Filter with Trend or Other Indicators (optional):
You can combine this with moving averages, RSI, or market structure for confluence.
🛠️ Customization Parameters
lengthSR: How many candles to look back for identifying support/resistance pivots.
volLength: Length of the moving average for volume and body size comparison.
bodyMultiplier: Multiplier threshold to define a “large” body.
volMultiplier: Multiplier threshold to define “high” volume.
✅ Ideal For:
Price action traders
Breakout traders
Traders who use volume analysis
Anyone looking to automate the detection of breakout + confirmation setups
Canuck Trading Trader StrategyCanuck Trading Trader Strategy
Overview
The Canuck Trading Trader Strategy is a high-performance, trend-following trading system designed for NASDAQ:TSLA on a 15-minute timeframe. Optimized for precision and profitability, this strategy leverages short-term price trends to capture consistent gains while maintaining robust risk management. Ideal for traders seeking an automated, data-driven approach to trading Tesla’s volatile market, it delivers strong returns with controlled drawdowns.
Key Features
Trend-Based Entries: Identifies short-term trends using a 2-candle lookback period and a minimum trend strength of 0.2%, ensuring responsive trade signals.
Risk Management: Includes a configurable 3.0% stop-loss to cap losses and a 2.0% take-profit to lock in gains, balancing risk and reward.
High Precision: Utilizes bar magnification for accurate backtesting, reflecting realistic trade execution with 1-tick slippage and 0.1 commission.
Clean Interface: No on-chart indicators, providing a distraction-free trading experience focused on performance.
Flexible Sizing: Allocates 10% of equity per trade with support for up to 2 simultaneous positions (pyramiding).
Performance Highlights
Backtested from March 1, 2024, to June 20, 2025, on NASDAQ:TSLA (15-minute timeframe) with $1,000,000 initial capital:
Net Profit: $2,279,888.08 (227.99%)
Win Rate: 52.94% (3,039 winning trades out of 5,741)
Profit Factor: 3.495
Max Drawdown: 2.20%
Average Winning Trade: $1,050.91 (0.55%)
Average Losing Trade: $338.20 (0.18%)
Sharpe Ratio: 2.468
Note: Past performance is not indicative of future results. Always validate with your own backtesting and forward testing.
Usage Instructions
Setup:
Apply the strategy to a NASDAQ:TSLA 15-minute chart.
Ensure your TradingView account supports bar magnification for accurate results.
Configuration:
Lookback Candles: Default is 2 (recommended).
Min Trend Strength: Set to 0.2% for optimal trade frequency.
Stop Loss: Default 3.0% to cap losses.
Take Profit: Default 2.0% to secure gains.
Order Size: 10% of equity per trade.
Pyramiding: Allows up to 2 orders.
Commission: Set to 0.1.
Slippage: Set to 1 tick.
Enable "Recalculate After Order is Filled" and "Recalculate on Every Tick" in backtest settings.
Backtesting:
Run backtests over March 1, 2024, to June 20, 2025, to verify performance.
Adjust stop-loss (e.g., 2.5%) or take-profit (e.g., 1–3%) to suit your risk tolerance.
Live Trading:
Use with a compatible broker or TradingView alerts for automated execution.
Monitor execution for slippage or latency, especially given the high trade frequency (5,741 trades).
Validate in a demo account before deploying with real capital.
Risk Disclosure
Trading involves significant risk and may result in losses exceeding your initial capital. The Canuck Trading Trader Strategy is provided for educational and informational purposes only. Users are responsible for their own trading decisions and should conduct thorough testing before using in live markets. The strategy’s high trade frequency requires reliable execution infrastructure to minimize slippage and latency.
FVG fill with immediate rebalance [LuciTech]The "FVG fill with immediate rebalance AKA Golden Arrow" indicator is designed to identify Fair Value Gaps (FVGs) and detect immediate rebalances to highlight potential trading opportunities. It uses colored boxes to mark FVGs and triangular markers to signal bullish or bearish setups, helping traders pinpoint key price levels where imbalances occur and price reactions are likely.
Key Features
FVG Detection: Spots bullish and bearish Fair Value Gaps based on price action, with customizable width settings.
Golden Arrow Signals: Displays triangular markers when price fills an FVG and immediately rebalances, indicating potential reversal or continuation zones.
Customizable Colors: Bullish FVGs appear in green and bearish FVGs in red by default, with options to tweak colors in the settings.
Time Filter: Allows signals to be restricted to a specific time window, highlighted by a background fill for clarity.
Alert System: Supports TradingView alerts for "Bullish Golden Arrow" and "Bearish Golden Arrow" signals to keep traders updated on setups.
How It Works
FVG Calculation: Analyzes gaps between candles to identify FVGs, with user-defined minimum width options (points, percentages, or ATR-based).
Signal Generation: Triggers a Golden Arrow signal when price fills the FVG and rebalances immediately, based on wick penetration and closing conditions.
Visual Aids:
Bullish FVGs are shown as green boxes, bearish FVGs as red boxes.
Upward triangles mark bullish signals, downward triangles mark bearish signals.
Time-Based Filtering: Optionally limits signals to specific hours, with a background fill showing the active period.
GCM Heikin Ashi with PivotsTitle: GCM Heikin Ashi with Pivots
Description:
Overview
This indicator provides a powerful combination of trend visualization, precise reversal signals, and volume confirmation in a clean, customizable sub-chart. It is designed to help traders identify trend momentum using Heikin Ashi candles, pinpoint confirmed swing highs and lows (pivots), and spot surges in buying pressure with our unique Volume Rate-of-Change (VROC) highlighter.
The key feature of this script is its non-repainting pivot signals. A pivot high or low is only confirmed and plotted after a specific number of subsequent bars have closed, ensuring the signals are reliable and do not change after they appear.
Key Features
Heikin Ashi Sub-Chart: Displays smoothed Heikin Ashi candles in a separate pane to clearly visualize trend strength and direction without cluttering the main price chart.
Non-Repainting Pivot Signals: Uses ta.pivothigh and ta.pivotlow to identify confirmed swing points. The signals will not repaint or move once they are printed on the chart.
Smart Volume Spike Analysis (VROC): A Heikin Ashi candle will be highlighted in a distinct bright green (#2dff00) when the volume increases significantly on a bullish price candle. This "volume-confirmed" candle can signal strong conviction behind a move.
Complete Label Customization: Take full control over the look and feel of your signals:
Label Mode: Choose between "High & Low" (H/L) or "Buy & Sell" (B/S) to match your trading terminology.
Custom Colors: Set unique colors for both the high and low pivot labels.
Label Style: Select from various shapes like boxes, circles, diamonds, or squares.
Label Size: Adjust the size of the labels from Tiny to Huge for perfect visibility.
Adjustable Pivot Sensitivity: Fine-tune the pivot detection algorithm by setting the number of bars required to the left (strength) and right (confirmation) of a pivot point.
How to Use & Interpret the Signals
Assess the Trend with Heikin Ashi:
A series of green HA candles with little to no lower wicks indicates strong bullish momentum.
A series of red HA candles with little to no upper wicks indicates strong bearish momentum.
Look for Volume Confirmation:
A bright green highlighted candle signals a surge in buying pressure (VROC spike). This adds significant weight to bullish moves and can act as a leading indicator for a new leg up.
Identify Entry/Exit Points with Pivot Labels:
An "L" or "B" label marks a confirmed swing low. This is a potential buying opportunity, especially if it is followed by green Heikin Ashi candles and, ideally, a bright green VROC spike candle.
An "H" or "S" label marks a confirmed swing high. This is a potential selling/shorting opportunity, especially as HA candles turn red.
Example Strategy (High-Confluence)
A powerful way to use this indicator is to look for a sequence of events:
Wait for a "Buy" (B) or "Low" (L) signal to appear, confirming a bottom has likely formed.
Wait for the first bright green VROC spike candle to appear after the signal. This confirms that buyers are stepping in with conviction.
Consider an entry based on this high-confluence setup, using the swing low as a potential stop-loss area.
Settings Explained
Pivot Detection:
Left Bars (Strength): Number of bars to the left of a pivot. A higher number finds more significant pivots.
Right Bars (Confirmation): Number of bars to the right required to confirm a pivot. This creates a lag for reliability.
Volume Spike Detection (VROC):
Enable Volume Spike Highlighting: Turn the bright green candle highlight on or off.
VROC Length: The lookback period for calculating the volume's rate of change.
VROC Threshold %: The percentage volume must increase to trigger a highlight.
Label Customization:
Label Text Mode: Choose between "High & Low" or "Buy & Sell".
Label Color, Style, and Size: Full cosmetic control for the pivot labels.
Final Note
This indicator is a tool to aid in technical analysis and should not be used as a standalone trading system. Always use it in conjunction with other analysis methods, proper risk management, and a sound trading plan.
Enjoy!
Frahm FactorIntended Usage of the Frahm Factor Indicator
The Frahm Factor is designed to give you a rapid, at-a-glance assessment of how volatile the market is right now—and how large the average candle has been—over the most recent 24-hour window. Here’s how to put it to work:
Gauge Volatility Regimes
Volatility Score (1–10)
A low score (1–3, green) signals calm seas—tight ranges, low risk of big moves.
A mid score (4–6, yellow) warns you that volatility is picking up.
A high score (7–10, red) tells you to prepare for disorderly swings or breakout opportunities.
How to trade off it
In low-volatility periods, you might favor mean-reversion or range-bound strategies.
As the score climbs into the red zone, consider widening stops, scaling back position size, or switching to breakout momentum plays.
Monitor Average Candle Size
Avg Candle (ticks) cell shows you the mean true-range of each bar over that 24h window in ticks.
When candles are small, you know the market is consolidating and liquidity may be thin.
When candles are large, momentum and volume are driving strong directional bias.
The optional dynamic color ramp (green→yellow→red) immediately flags when average bar size is unusually small or large versus its own 24h history.
Customize & Stay Flexible
Timeframes: Works on any intraday chart—from 1-minute scalping to 4-hour swing setups—because it always looks back exactly 24 hours.
Toggles:
Show or hide the Volatility and Avg-Candle cells to keep your screen uncluttered.
Turn on the dynamic color ramp only when you want that extra visual cue.
Alerts: Built-in alerts fire automatically at meaningful thresholds (Volatility ≥ 8 or ≤ 3), so you’ll never miss regime shifts, even if you step away.
Real-World Applications
Risk Management: Automatically adjust your stop-loss distances or position sizing based on the current volatility band.
Strategy Selection: Flip between range-trading and momentum strategies as the volatility regime changes.
Session Analysis: Pinpoint when during the day volatility typically ramps—perfect for doorway sessions like London opening or the US midday news spikes.
Bottom line: the Frahm Factor gives you one compact dashboard to see the pulse of the market—so you can make choices with conviction, dial your risk in real time, and never be caught off guard by sudden volatility shifts.
Logic Behind the Frahm Factor Indicator
24-Hour Rolling Window
On every intraday bar, we append that bar’s True Range (TR) and timestamp to two arrays.
We then prune any entries older than 24 hours, so the arrays always reflect exactly the last day of data.
Volatility Score (1–10)
We count how many of those 24 h TR values are less than or equal to the current bar’s TR.
Dividing by the total array size gives a percentile (0–1), which we scale and round into a 1–10 score.
Average Candle Size (ticks)
We sum all TR values in the same 24 h window, divide by array length to get the mean TR, then convert that price range into ticks.
Optionally, a green→yellow→red ramp highlights when average bar size is unusually small, medium or large versus its own 24 h history.
Color & Alerts
The Volatility cell flips green (1–3), yellow (4–6) or red (7–10) so you see regime shifts at a glance.
Built-in alertcondition calls fire when the score crosses your high (≥ 8) or low (≤ 3) thresholds.
Modularity
Everything—table location, which cells to show, dynamic coloring—is controlled by simple toggles, so you can strip it back or layer on extra visual cues as needed.
That’s the full recipe: a true 24 h look-back, a percentile-ranked volatility gauge, and a mean-bar-size meter, all wrapped into one compact dashboard.
Failed 2U/2D + 50% Retrace Scanner📈 Multi-Ticker Failed 2U/2D Scanner with Daily Retrace & Market Breadth Table
This TradingView indicator is a multi-symbol price action scanner designed to catch high-probability reversal signals using The Strat’s failed 2U/2D patterns and daily 50% retrace logic, while also displaying market breadth metrics ( USI:TICK and USI:ADD ) for context.
Monitored Symbols:
SPY, SPX, QQQ, IWM, NVDA, AMD, AAPL, META, MSTR
🔍 Detection Logic
1. Failed 2U / Failed 2D Setups
Failed 2U: Price breaks above the previous candle’s high but closes back below the open → Bearish reversal
Failed 2D: Price breaks below the previous candle’s low but closes back above the open → Bullish reversal
Timeframes Monitored:
🕐 1-Hour (1H)
⏰ 4-Hour (4H)
2. Daily 50% Candle Retrace
Checks if price has retraced 50% or more of the previous day’s candle body
Highlights potential trend exhaustion or reversal confluence
3. Market Breadth Metrics (Display Only)
USI:TICK : Measures real-time NYSE up vs. down ticks
USI:ADD : Advance-Decline Line (net advancing stocks)
Not used in signal logic — just displayed in the table for overall market context
🖼️ Visual Elements
✅ Chart Markers
🔺 Red/Green Arrows for 1H Failed 2U/2D
🟨 Yellow Squares for 4H Failed 2U/2D
Visual markers are plotted directly on the relevant candles
📊 Signal Table
Lists all 9 tickers in rows
Columns for:
1H Signal
4H Signal
Daily 50% Retrace
USI:TICK Value
USI:ADD Value
Color-Coded Cells:
🔴 Red = Failed 2U
🟢 Green = Failed 2D
⚠️ Highlight if 50% Daily Retrace condition is true
🟦 Neutral-colored cells for TICK/ADD numeric display
🔔 Alerts
Hardcoded alerts fire when:
A 1H or 4H Failed 2U/2D is detected
The Daily 50% retrace condition is met
Each alert is labeled clearly by symbol and timeframe:
"META 4H Failed 2D"
"AAPL Daily 50% Retrace"
🎯 Use Case
Built for:
Reversal traders using The Strat
Swing or intraday traders watching hourly setups
Traders wanting quick visual context on market breadth without relying on it for confirmation
Monitoring multiple tickers in one clean view
This is scan 2
Add scan 1 for spx, spy, iwm, qqq, aapl
This indicator is not financial advice. Use the alerts to check out chart and when tickers trigger.
Impulsive Candle Detector TRW [3-in-1]Impulsive Candle Detector
Description: professor Michael impulsive candle but 3 -1 code by me
The Impulsive Candle Detector is a powerful tool designed to identify and highlight three different types of impulsive candles on your TradingView chart—all in a single, customizable indicator. Each impulsive candle type uses its own configurable settings, allowing traders to easily visualize various market dynamics without crowding their charts with multiple indicators.
How it works:
The indicator detects “impulsive” candles based on custom thresholds for candle range, volume, and body-to-wick ratio.
Each of the three types is independently configurable with its own parameters (length for averages, size multiplier, volume multiplier, body ratio, and color).
When an impulsive candle is detected, the corresponding bar is colored and can optionally display a label above the candle indicating its type.
Separate alerts can be set for each impulsive candle type, enabling you to react to different market conditions instantly.
Features:
Three independent impulsive candle detection types, all in one indicator
Adjustable settings for each type (range, volume, body ratio, and color)
Clean, uncluttered chart view
Custom bar coloring and optional labels for instant visual recognition
Supports individual alert notifications for each impulsive candle type
Perfect for:
Traders looking to spot strong market moves or volatility spikes
Those who want to monitor multiple impulsive candle patterns without overlapping indicators
Anyone who values clean and customizable charting solutions
Percent Change IndicatorThe Percent Change Indicator helps you see how much the price of an asset has changed over a specific number of bars (or candles) on the chart. You get to decide how many bars to look back — for example, the last 10 candles. The indicator takes the current closing price and compares it to the closing price from 10 bars ago, then calculates the percentage difference between the two.
If the price has increased, the indicator shows a positive value and displays it in green. If the price has dropped, the value is negative and shown in red. A horizontal zero line helps you quickly see whether the market is gaining or losing value over the selected period.
On your chart, this indicator appears as a line that moves up or down with the price trend. It updates in real time and works on all timeframes — so whether you're trading on the 1-minute chart or analyzing the daily chart, it always tells you how much the price has changed over the number of bars you chose.
This tool is especially useful for spotting trends, measuring price momentum, or identifying when the market is starting to reverse direction.
SHYY-TFC-Horizontal V2SHYY-TFC-Horizontal V2 – Multi-Timeframe Clarity for The Strat Traders
SHYY-TFC-Horizontal V2 is a powerful, clean, and efficient overlay designed for serious traders who use Rob Smith’s The Strat.
This real-time table gives you instant visual insight across all key timeframes – from 5 minutes to monthly – with:
Candle direction (bullish, bearish, neutral)
Strat bar type (1, 2U, 2D, 3)
Live countdown to bar close
Compact horizontal layout that saves space and enhances clarity
Fully customizable table position to fit any chart setup
Built with no lookahead bias, this version meets TradingView’s script publishing standards and is optimized for actionable, real-time decisions.
Ideal for:
Scalpers who need fast confirmation
Swing traders aligning entries with time frame continuity
Price action traders following The Strat methodology
Trade with confidence. See the full picture. React faster.
SHYY-TFC-Horizontal V2 – built to make you faster, sharper, and more in control.
Metatron Lines (Highs & Lows Geometry)Metatron Lines
Hey TradingView community! 👋
I wanted to share something I've been working on that might help you see market structure from a different angle. This indicator connects pivot highs and lows using geometric patterns, creating what I call "Metatron Lines."
What it does (simply put):
- Finds significant highs and lows on your chart
- Draws lines connecting these points to reveal hidden geometric relationships
- Shows you the underlying structure that price tends to respect
Why I built this:
I noticed that markets often move in patterns that aren't immediately obvious. Sometimes the most important levels aren't the obvious support and resistance lines, but the intersections and angles created by connecting multiple pivot points. This tool helps visualize those relationships.
How it might help you:
- Pattern Recognition : Spot geometric formations that traditional analysis might miss
- Support/Resistance : See where multiple geometric lines converge to create strong levels
- Market Structure : Better understand how price flows and where it might find obstacles
- Confluence Areas : Identify zones where multiple geometric elements align
A few honest thoughts:
This isn't a magic bullet or a guaranteed profit maker (nothing is!). It's simply another lens through which to view price action. Some traders find geometric analysis helpful, others prefer different approaches - and that's perfectly fine.
I've tried to make it customizable so you can adjust it to fit your trading style and timeframe. The default settings work well for most instruments, but feel free to experiment.
Settings you can adjust:
- Pivot detection sensitivity
- Number of connection points
- Line colors and styles
- Which connections to show (highs, lows, or both)
I hope some of you find this useful! I'm always learning from this community, so if you have suggestions for improvements or different ways to use it, I'd love to hear them.
Trade safe and trust your process! 📈
---
This indicator is provided as-is for educational and analysis purposes. Please practice proper risk management and never risk more than you can afford to lose.