50-Candle Look-Back MarkerIt simply redraws one vertical dotted line that always sits exactly 50 bars behind the current bar, so you can check at a glance that any trend-line you draw has at least 50 candles of data to the right of it.
Indicators and strategies
FVG + IFVG Gap (ULTRA) by Aditya NejeThis Indicator shows Fair Value Gap and Inverse Fair Value gaps
100-Candle Look-Back MarkerIt simply redraws one vertical dotted line that always sits exactly 100 bars behind the current bar, so you can check at a glance that any trend-line you draw has at least 100 candles of data to the right of it.
Hawkes Volatility Exit IndicatorOverview
The Hawkes Volatility Exit Indicator is a powerful tool designed to help traders capitalize on volatility breakouts and exit positions when momentum fades. Built on the Hawkes process, it models volatility clustering to identify optimal entry points after quiet periods and exit signals during volatility cooling. Designed to be helpful for swing traders and trend followers across markets like stocks, forex, and crypto.
Key Features Volatility-Based Entries: Detects breakouts when volatility spikes above the 95th percentile (adjustable) after quiet periods (below 5th percentile).
This indicator is probably better on exits than entries.
Smart Exit Signals: Triggers exits when volatility drops below a customizable threshold (default: 30th percentile) after a minimum hold period.
Hawkes Process: Uses a decay-based model (kappa) to capture volatility clustering, making it responsive to market dynamics.
Visual Clarity: Includes a volatility line, exit threshold, percentile bands, and intuitive markers (triangles for entries, X for exits).
Status Table: Displays real-time data on position (LONG/SHORT/FLAT), volatility regime (HIGH/LOW/NORMAL), bars held, and exit readiness.
Customizable Alerts: Set alerts for breakouts and exits to stay on top of trading opportunities.
How It Works Quiet Periods: Identifies low volatility (below 5th percentile) that often precede significant moves.
Breakout Entries: Signals bullish (triangle up) or bearish (triangle down) entries when volatility spikes post-quiet period.
Exit Signals: Suggests exiting when volatility cools below the exit threshold after a minimum hold (default: 3 bars).
Visuals & Table: Tracks volatility, position status, and signals via lines, shaded zones, and a detailed status table.
Settings
Hawkes Kappa (0.1): Adjusts volatility decay (lower = smoother, higher = more sensitive).
Volatility Lookback (168): Sets the period for percentile calculations.
ATR Periods (14): Normalizes volatility using Average True Range.
Breakout Threshold (95%): Volatility percentile for entries.
Exit Threshold (30%): Volatility percentile for exits.
Quiet Threshold (5%): Defines quiet periods.
Minimum Hold Bars (3): Ensures positions are held before exiting.
Alerts: Enable/disable breakout and exit alerts.
How to Use
Entries: Look for triangle markers (up for long, down for short) and confirm with the status table showing "ENTRY" and "LONG"/"SHORT."
Exits: Exit on X cross markers when the status table shows "EXIT" and "Exit Ready: YES."
Monitoring: Use the status table to track position, bars held, and volatility regime (HIGH/LOW/NORMAL).
Combine: Pair with price action, support/resistance, or other indicators for better context.
Tips : Adjust thresholds for your market: lower breakout thresholds for more signals, higher exit thresholds for earlier exits.
Test on your asset to ensure compatibility (best for markets with volatility clustering).
Use alerts to automate signal detection.
Limitations Requires sufficient data (default: 168 bars) for reliable signals. Check "Data Status" in the table.
Focuses on volatility, not price direction—combine with trend tools.
May lag slightly due to the smoothing nature of the Hawkes process.
Why Use It?
The Hawkes Volatility Exit Indicator offers a unique, data-driven approach to timing trades based on volatility dynamics. Its clear visuals, customizable settings, and real-time status table make it a valuable addition to any trader’s toolkit. Try it to catch breakouts and exit with precision!
This indicator is based on neurotrader888's python repo. All credit to him. All mistakes mine.
This conversion published for wider attention to the Hawkes method.
Weekly 8 EMA Horizontal Linethis will automatically track the WEEKLY 8EMA on your chart so you can know where the Weekly 8EMA is on lower timeframes
Fibonacci Range Detector ║ BullVision🔬 Overview
The Fibonacci Range Mapper is a dynamic technical tool designed to identify, track, and visualize price ranges using Fibonacci levels. Whether you're trading manually or prefer automated structure recognition, this indicator helps you contextualize market moves and locate key price zones with precision.
⚙️ Core Logic
🔍 Range Detection (Auto & Manual Modes)
In Auto mode, the indicator uses an advanced ZigZag system based on ATR or percentage thresholds to confirm market swings and construct Fibonacci-based ranges.
In Manual mode, traders can define their own swing low and high to generate precise custom ranges.
📐 Fibonacci Mapping
Each detected range is automatically plotted with key Fibonacci retracement levels — 0%, 25%, 50%, 75%, 100% — along with optional extensions (127.2% and 161.8%) to anticipate price continuations or reversals.
📋 Live Data Table
An integrated info panel dynamically displays crucial metrics:
• Range size
• Current price zone (Discount / Mid / Premium)
• Position within range (%)
• Distance to range extremes
• Range status (Pending or Confirmed)
🕰️ Historical Memory
Up to 20 past ranges can be stored and visualized simultaneously, helping traders recognize repeated price behaviors and contextual support/resistance levels.
🎨 Visual Highlights
Zones of interest (0–25% = Discount, 75–100% = Premium) are color-coded with custom transparency, and labels can be toggled for clarity. The current active range updates in real time as structure evolves.
🔧 User Customization
• Detection Method: Choose between ATR or % ZigZag for automated swing identification
• Confirmation Delay: Set how many bars to wait before confirming a new high
• Manual Overrides: Select exact price levels when you want full control
• Extensions & Labels: Toggle additional lines and info to suit your charting style
• Visual Table Position: Customize where the data table appears on screen
• Color Scheme: Define your own zone gradients for better visual interpretation
📈 Use Cases
This indicator is ideal for traders who want to:
• Identify value zones within local or macro price structures
• Plan trades around Fibonacci retracement and extension levels
• Detect shifts in market structure using an adaptive ZigZag logic
• Track recurring price ranges and historical reaction points
• Enhance technical confluence with clean, visual price mapping
⚠️ Important Notes
This tool is not a buy/sell signal generator — it is a visual framework for structure-based analysis.
Use it in conjunction with your existing strategy and risk management process.
Always confirm with broader context and multi-timeframe alignment.
Hypothesis TF Strategy EvaluationThis script provides a statistical evaluation framework for trend-following strategies by examining whether mean returns (measured here as 1-period Rate of Change, ROC) differ significantly across different price quantile groups.
Specifically, it:
Calculates rolling 25th (Q1) and 75th (Q3) percentile levels of price over a user-defined window.
Classifies returns into three groups based on whether price is above Q3, between Q1 and Q3, or below Q1.
Computes mean returns and sample sizes for each group.
Performs Welch's t-tests (which account for unequal variances) between groups to assess if their mean returns differ significantly.
Displays results in two tables:
Summary Table: Shows mean ROC and number of observations for each group.
Hypothesis Testing Table: Shows pairwise t-statistics with significance stars for 95% and 99% confidence levels.
Key Features
Rolling quantile calculations: Captures local price distributions dynamically.
Robust hypothesis testing: Welch's t-test allows for heteroskedasticity between groups.
Significance indicators: Easy visual interpretation with "*" (95%) and "**" (99%) significance levels.
Visual aids: Plots Q1 and Q3 levels on the price chart for intuitive understanding.
Extensible and transparent: Fully commented code that emphasizes the evaluation process rather than trading signals.
Important Notes
Not a trading strategy: This script is intended as a tool for research and validation, not as a standalone trading system.
Look-ahead bias caution: The calculation carefully avoids look-ahead bias by computing quantiles and ROC values only on past data at each point.
Users must ensure look-ahead bias is removed when applying this or similar methods, as look-ahead bias would artificially inflate performance and statistical significance.
The statistical tests rely on the assumption of independent samples, which might not fully hold in financial time series but still provide useful insights
Usage Suggestions
Use this evaluation framework to validate hypotheses about the behavior of returns under different price regimes.
Integrate with your strategy development workflow to test whether certain market conditions produce statistically distinct return distributions.
Example
In this example, the script was run with a quantile length of 20 bars and a lookback of 500 bars for ROC classification.
We consider a simple hypothetical "strategy":
Go long if the previous bar closed above Q3 the 75th percentile).
Go short if the previous bar closed below Q1 (the 25th percentile).
Stay in cash if the previous close was between Q1 and Q3.
The screenshot below demonstrates the results of this evaluation. Surprisingly, the "long" group shows a negative average return, while the "short" group has a positive average return, indicating mean reversion rather than trend following.
The hypothesis testing table confirms that the only statistically significant difference (at 95% or higher confidence) is between the above Q3 and below Q1 groups, suggesting a meaningful divergence in their return behavior.
This highlights how this framework can help validate or challenge intuitive assumptions about strategy performance through rigorous statistical testing.
IV PercentileIV Percentile Indicator - Brief Description
What It Does
The IV Percentile Indicator measures where current implied volatility ranks compared to the past year, showing what percentage of time volatility was lower than today's level.
How It Works
Data Collection:
Tracks implied volatility (or historical volatility as proxy) for each trading day
Stores the last 252 days (1 year) of volatility readings
Uses VIX data for SPY/SPX, historical volatility for other stocks
Calculation:
IV Percentile = (Days with IV below current level) ÷ (Total days) × 100
Example: If IV Percentile = 75%, it means current volatility is higher than 75% of the past year's readings.
Visual Output
Main Display:
Blue line showing percentile (0-100%)
Reference lines at key levels (20%, 30%, 50%, 70%, 80%)
Color-coded backgrounds for quick identification
Info table with current readings
Key Levels:
80%+ (Red): Very high IV → Sell premium
70-79% (Orange): High IV → Consider selling
30-20% (Green): Low IV → Consider buying
<20% (Bright Green): Very low IV → Buy premium
Trading Application
When IV Percentile is HIGH (70%+):
Options are expensive relative to recent history
Good time to sell premium (iron condors, credit spreads)
Expect volatility to decrease toward normal levels
When IV Percentile is LOW (30%-):
Options are cheap relative to recent history
Good time to buy premium (straddles, long options)
Expect volatility to increase from compressed levels
Core Logic
The indicator helps answer: "Is this a good time to buy or sell options based on how expensive/cheap they are compared to recent history?" It removes the guesswork from volatility timing by providing historical context for current option prices.
Current Hourly Open Liquidity with Sweep DetectionStatistics indicate that if the current hourly candle reaches the high or low of the previous hourly candle, there is a strong likelihood that the price will return to the current hour's open, depending on how quickly the previous hour's high or low was swept. If the sweep occurs within the first 20 minutes, there is a 75% chance the current hour's open will be reached; if it takes between 21 and 40 minutes, the probability decreases to 50%; and if it takes longer than 41 minutes, the chance drops to 25%.
These statistics can help identify manipulation on the hourly timeframe and guide trade decisions accordingly. For instance, if the previous hourly high is taken within the first 20 minutes but the current hour's open is not reached, it may be wise to avoid long positions until it happens or consider short positions in the direction of the open liquidity, using your existing entry rules and risk management.
The indicator highlights the current hour's open with a line and label to visually represent that liquidity pool, adjusting the line's color based on whether and when the previous hour's high or low was tapped. Once the open is reached, the indicator can, depending on settings, remove the line and label from the chart (this is enabled by default) since the liquidity pool is no longer relevant, preventing chart clutter.
All colors, line widths, label text sizes, and colors can be customized.
Moving Average Exponential (Daily Frozen EMA)This script plots an Exponential Moving Average (EMA) based on the daily timeframe, but with a unique twist:
✅ The EMA value is frozen for the entire current daily session, only updating when a new daily candle begins.
🔍 How it works:
The EMA is calculated using the 1-day timeframe, regardless of the chart's current timeframe.
This EMA value remains fixed throughout the day — it doesn't fluctuate intrabar.
It updates only once the daily candle has closed, providing a stable and reliable reference point during the trading day.
The default is the 5 day EMA but can be changed to any EMA timeframe you desire such as 9, 21, 50, 100. 200, etc.
✨ Additional Features:
✅ Optional smoothing with various moving average types (SMA, EMA, WMA, SMMA, VWMA).
✅ Optional Bollinger Bands on top of the smoothed EMA.
✅ Adjustable settings for EMA length, smoothing type, Bollinger Band deviation, and display options.
🛠️ Use Cases:
Ideal for traders who want a non-reactive EMA during intraday trading.
Helps reduce signal noise by anchoring EMA to higher timeframe structure.
Useful for strategy development where EMA should represent confirmed daily bias only.
Hope this helps, happy trading!
Day‑trade Long/Short Signalsday trade Long\Short signals idskator
Displays EMA 5, 8, and 13 to track the trend.
Signals LONG when EMA5 crosses above EMA8 and the MACD line is above the signal line.
Signals SHORT when EMA5 crosses below EMA8 and the MACD line is below the signal line.
Dr. Keith Wade Momentum SignalsThis is a heikin Ashli strategy combined with an 18 moving average crossover. Entry at cross of 18 EMA and exit at change of heikin Ashi
Enhanced Market Structure StrategyATR-Based Risk Management:
Stop Loss: 2 ATR from entry (configurable)
Take Profit: 3 ATR from entry (configurable)
Dynamic Position Sizing: Based on ATR stop distance and max risk percentage
Advanced Signal Filters:
RSI Filter:
Long trades: RSI < 70 and > 40 (avoiding overbought)
Short trades: RSI > 30 and < 60 (avoiding oversold)
Volume Filter:
Requires volume > 1.2x the 20-period moving average
Ensures institutional participation
MACD Filter (Optional):
Long: MACD line above signal line and rising
Short: MACD line below signal line and falling
EMA Trend Filter:
50-period EMA for trend confirmation
Long trades require price above rising EMA
Short trades require price below falling EMA
Higher Timeframe Filter:
Uses 4H/Daily EMA for multi-timeframe confluence
Enhanced Entry Logic:
Regular Entries: IDM + BOS + ALL filters must pass
Sweep Entries: Failed breakouts with tighter stops (1.6 ATR)
High-Probability Focus: Only trades when multiple confirmations align
Visual Improvements:
Detailed Entry Labels: Show entry, stop, target, and risk percentage
SL/TP Lines: Visual representation of risk/reward
Filter Status: Bar coloring shows when all filters align
Comprehensive Statistics: Real-time performance metrics
Key Strategy Parameters:
pinescript// Recommended Settings for Different Markets:
// Forex (4H-Daily):
// - CHoCH Period: 50-75
// - ATR SL: 2.0, ATR TP: 3.0
// - All filters enabled
// Crypto (1H-4H):
// - CHoCH Period: 30-50
// - ATR SL: 2.5, ATR TP: 4.0
// - Volume filter especially important
// Indices (4H-Daily):
// - CHoCH Period: 50-100
// - ATR SL: 1.8, ATR TP: 2.7
// - EMA and MACD filters crucial
Expected Performance Improvements:
Win Rate: 55-70% (improved filtering)
Profit Factor: 2.0-3.5+ (better risk/reward with ATR)
Reduced Drawdown: Stricter filters reduce false signals
Consistent Risk: ATR-based stops adapt to volatility
This enhanced version provides much more robust signal filtering while maintaining the core market structure edge, resulting in higher-probability trades with consistent risk management.
Cassures Tokyo pendant New York//@version=5
indicator("Cassures Tokyo pendant New York", overlay=true)
// Paramètres de sessions
// Début et fin de Tokyo (00h00 - 08h00 GMT)
tokyo_start = timestamp("GMT+0", year(timenow), month(timenow), dayofmonth(timenow), 0, 0)
tokyo_end = timestamp("GMT+0", year(timenow), month(timenow), dayofmonth(timenow), 8, 0)
// Début et fin de New York (13h30 - 22h00 GMT)
ny_start = timestamp("GMT+0", year(timenow), month(timenow), dayofmonth(timenow), 13, 30)
ny_end = timestamp("GMT+0", year(timenow), month(timenow), dayofmonth(timenow), 22, 0)
// Initialisation des variables persistantes
var float tokyo_high = na
var float tokyo_low = na
var bool ny_started = false
var bool high_broken = false
var bool low_broken = false
// Reset des valeurs à chaque nouvelle journée
if (time >= tokyo_start and time < tokyo_end)
tokyo_high := na
tokyo_low := na
high_broken := false
low_broken := false
ny_started := false
// Détection du high/low Tokyo
if (time >= tokyo_start and time < tokyo_end)
tokyo_high := na(tokyo_high) ? high : math.max(tokyo_high, high)
tokyo_low := na(tokyo_low) ? low : math.min(tokyo_low, low)
// Détection des cassures pendant New York
if (time >= ny_start and time < ny_end)
ny_started := true
if not na(tokyo_high) and high > tokyo_high
high_broken := true
if not na(tokyo_low) and low < tokyo_low
low_broken := true
// Affichage des niveaux Tokyo
plot(tokyo_high, "Tokyo High", color=color.green, linewidth=1, style=plot.style_linebr)
plot(tokyo_low, "Tokyo Low", color=color.red, linewidth=1, style=plot.style_linebr)
// Surlignage visuel en session NY selon cassure
bgcolor(ny_started and high_broken and low_broken ? color.orange : ny_started and high_broken ? color.new(color.green, 80) : ny_started and low_broken ? color.new(color.red, 80) : na)
// Affichage texte sur le graphique
label_id = label.new(x=bar_index, y=high, text="", style=label.style_label_down, textcolor=color.white, size=size.tiny, color=color.gray)
if (ny_started)
label_text = high_broken and low_broken ? "Cassure HIGH & LOW Tokyo" :
high_broken ? "Cassure HIGH Tokyo" :
low_broken ? "Cassure LOW Tokyo" :
"Aucune cassure"
label.set_text(label_id, label_text)
label.set_xy(label_id, bar_index, high + syminfo.mintick * 10)
BTC Breakout Bot (TP/SL + Alerts) 🚀This strategy targets Bitcoin (BTC/USDT) breakout trades by detecting price moves beyond recent highs and lows, with built-in risk management and alerts.
How it works:
📈 Long Entry: When price breaks above the highest high of the last N candles (default 20)
📉 Short Entry: When price breaks below the lowest low of the last N candles
🎯 Take Profit: Automatically set at a percentage from entry price (default 5%)
⚠️ Stop Loss: Automatically set at a percentage from entry price (default 2%)
🔔 Alerts: Triggered on every long and short breakout trade, compatible with Telegram/webhook notifications
Parameters:
⏳ Breakout Lookback: Number of candles used to identify breakout levels (default 20)
💰 Take Profit (%): Profit target as % from entry (default 5%)
🛑 Stop Loss (%): Maximum allowed loss as % from entry (default 2%)
Simple SMA StrategyThis strategy uses two Simple Moving Averages (SMAs) to spot trend changes and generate trade signals on any market or timeframe.
How it works:
➡️ Long Entry: When the fast SMA (default 14) crosses above the slow SMA (default 28), enter a long position.
⬇️ Short Entry: When the fast SMA crosses below the slow SMA, enter a short position.
🔄 Exit: Positions close when the opposite crossover happens, capturing trend reversals.
Features:
⚙️ Adjustable SMA lengths for different markets or styles
💰 Position sizing as % of equity (default 1%) for risk management
📊 Plots fast (blue) and slow (orange) SMAs on the chart
🔔 Alerts on every long & short entry crossover for automation or notifications
Use Cases:
Perfect for trend-following traders in crypto, stocks, forex, and more — simple and effective.
⚠️ Disclaimer
Backtests and alerts are based on historical data and don’t guarantee future results. Always test carefully and manage your risk!
My strategyThis strategy is designed for BTC/USDT breakout trading on short-to-medium timeframes. It enters positions when price breaks out above recent highs or below recent lows, using automated risk management and alerts.
🔍 Core Logic
Long entry: When price breaks above the highest high of the last N candles (default: 20).
Short entry: When price breaks below the lowest low of the last N candles.
This logic helps detect momentum-driven breakout moves based on recent price consolidation.
⚙️ Strategy Settings
Capital: $10,000
Order size: 1% of equity per trade
Commission: 0.1% per trade (simulating exchange fees)
Slippage: 3 ticks (for realism)
Take Profit: 3% from entry
Stop Loss: 1.5% from entry
These settings aim to provide realistic, risk-conscious backtest results, suitable for individual traders.
📊 Visual Features
Green line = Breakout High
Red line = Breakout Low
Entry/exit markers are plotted on the chart
🔔 Alerts
Alerts are integrated for:
Long Entry
Short Entry
You can create TradingView alerts using this script to automate notifications or connect to external bots (e.g., via webhook for Telegram or Discord).
🧠 How This Strategy Is Different
While many breakout bots use standard Donchian channels, this version allows you to:
Tune the breakout sensitivity (via the adjustable lookback period)
Customize TP/SL without external inputs
Integrate alerts for real-time decision making or automation
The simplicity and flexibility make it useful as both a live tool and a framework for further development.
⚠️ Disclaimer
This script is for educational purposes only. Backtests are based on historical data and do not guarantee future results. Always test thoroughly before using in live trading. Risk only what you can afford to lose.
Dubic Dual EMA IndicatorThe Dual EMA Indicator combines two exponential moving averages (EMAs) to identify trend-based buy and sell signals. A buy signal is generated when the price closes above both EMAs suggesting strong bullish momentum. A sell signal appears when the price closes below both EMAs indicating bearish pressure.
FTM → SONIC Combined Candlesticksthis script combines the chart of FTM and SONIC to get a better overview of the entire price action
Institutional Footprint + RSIPurpose
Detect early signs of institutional activity (accumulation, distribution, shakeouts) using price and volume behavior, combined with RSI for confirmation.
How It Works
Footprint Score (0–100):
Above 70 → Possible accumulation
Below 30 → Possible distribution
Around 50 → Neutral
Shakeout signals: False breakdowns followed by strong recoveries
RSI Line: Plotted for confirmation
Why It Matters
Catches smart money moves before price reacts. Helps identify stealth accumulation or quiet exits not visible in price alone.
Features
Institutional Footprint + RSI
Shakeout markers
Visual zones
Usage Tips
Combine with RSI, VWAP, or support/resistance. For example: if Footprint shows accumulation and RSI is low, this may signal a high-probability buy setup
Best on 1H, 4H, or Daily timeframes
Not a standalone entry/exit signal
ORB Scalp setup by UnenbatDescription
ORB Scalp Setup by Unenbat is a precise breakout scalping tool that identifies short-term price ranges at the transition between hourly sessions.
📌 Core Features:
Draws a dynamic box using the price range from the last 3 minutes of the previous hour and the first 3 minutes of the new hour (total 5m59s range).
Automatically plots:
Box representing the selected range.
Opening Price Line at the start of the hour.
TP Lines (Take Profit) above and below the box at customizable distances.
BE Lines (Break-Even) above and below the box at customizable distances.
Box and line lengths are user-defined (default: 60 minutes).
Works across historical data (up to the last 100 days).
Fully customizable visuals (colors, offsets, visibility toggles).
🎯 How to Use:
Ideal for scalp traders using breakout strategies.
Enter trades when price breaks above or below the box range.
Use TP and BE lines as clear reference levels for exits or trailing stop logic.
⚙️ Custom Settings:
Enable/disable each component (box, open line, TP line, BE line).
Set your own offset in pips for TP/BE lines.
Adjust the box duration to match your trading style.
Modify start and end times of the range as needed.