Minervini breakout - AndurilThis indicator checks the Mark Minerivini trend template as well checks consolidation areas and breakout.
Checks the highest closing price of last x days (default 20 days), exluding current day and draws a white dashed line, Calculates the relative volume of the current day. Calculates EMA 21, EMA50 and EMA200 and draws on the graph to define trend.
Gives a buy signal in green (writing relative strength of that day inside of green arrow) if:
1) Current price> breakout price* 0.98
2) Current price > EMA21 >EMA50>EMA200
3) Current price > 52 week high*0.75
4) Current price > 52 week low*1.3
5) EMA 200 of today > EMA 200 of 10 bar ago > EMA 200 of 20 bar ago
6) Relative volume of the day > 1.5
Indikatoren und Strategien
Gann Angles by Calendar DateA script that draws Gann angles. 1x1/1x2/1x3/1x4/1x8
Manually enter the date and price.
Gann often wrote that if the price is above the 1x1 angle, the trend is strong. If it is below, the trend is weak.
Preference is given to charts with trading days.
The color of the angles can be changed as desired.
Structure Pro by MurshidfxInspired by the 'mentfx Structure' indicator created by Anton (mentfx) on TradingView,
## Overview
Structure Pro tracks market structure by maintaining an adaptive dealing range and its midpoint. Swing highs and lows become structural boundaries, and the script responds to confirmed breakouts by recalculating the active range. Labels highlight the latest trend flip so the chart stays readable while the range evolves.
## Core Logic
- Detects swing highs/lows using a configurable pivot strength and promotes confirmed pivots to structural levels.
- Applies a percentage buffer to decide when price truly breaks structure; once triggered, the opposite boundary is recalculated with an anchor search that looks back through historical bars.
- Computes equilibrium as the midpoint between the current structural high and low so you can gauge premium versus discount zones.
- Emits a single BULL or BEAR label when the trend state changes, keeping only the most recent signal on the chart.
## How to Use
1. Open a clean chart and apply only this script.
2. Select a swing strength that matches the scale you want to monitor (lower values for responsive intraday swings, higher values for broader moves).
3. Tune the structure sensitivity percentage if you prefer tighter or looser confirmation before declaring a breakout.
4. Track DRH/DRL for the current dealing range, use the equilibrium line as a mean-reversion guide, and look to the BULL/BEAR label for structure confirmation.
5. Combine the levels with your own execution, risk, and position rules—this script does not manage orders.
## Inputs
- Swing Point Strength: bars required on both sides to confirm a pivot.
- Structure Break Sensitivity: percentage buffer applied to the range before calling a breakout.
- Dealing Range display: toggles for visibility, line width/color, label text, and label size.
- Equilibrium display: line style, width, and color controls.
- Trend Signals: enable/disable labels, adjust text size, and pick label colors.
## Notes
- Designed for live structure tracking; the script relies on confirmed pivots and does not peek into future data.
- Built to be chart-agnostic for standard candles; non-standard chart types can distort the measurements.
- Published open-source so traders can review and verify the implementation details.
Mean Reversion Indicator — Buy the (DCA) Dip Signal (unbiased)Description
The Mean Reversion Signal — Buy the Dip (unbiased) indicator is designed to detect high-probability reversion points within Bitcoin’s cyclical market structure. These signals only appear when momentum has either fully reset on the Stochastic RSI (SRSI) or when a positive momentum reversal is beginning to form.
It combines 6H Relative Strength Index (RSI) data with 2-Week Stochastic RSI (SRSI) dynamics to identify exhaustion and early accumulation phases.
Core logic:
A buy signal appears when the 6H RSI closes below 30, indicating local oversold conditions.
The 2W Stochastic RSI confirms momentum alignment when both K & D are below 20 (deep oversold), above 80 (strong ongoing rally), or when K crosses above D (positive reversal).
The indicator is cycle-aware — active only after a defined date (e.g., 2023-01-01) to ensure it aligns with current market structure and avoids noise from pre-cycle conditions.
Additionally, green signals from previous bull cycles (e.g., 2015, 2019, 2020) are also displayed to highlight historically similar accumulation phases, allowing for cross-cycle comparison.
Color zones:
🟩 High probability of a durable new rally
🟧 Moderate probability zone
🔴 Momentum already extended; potential continuation but weaker signal
Recommended combinations:
For a deeper confirmation framework, this signal pairs well with:
- CoinGlass: Derivatives Risk Index Chart (to assess market (de)leveraging and derivatives pressure)
- BTC Futures Sentiment Index (Axel Adler Jr.) — (to monitor directional sentiment shifts)
- CheckonChain: Bitcoin — Short-Term Holder SOPR (to track realized profit-taking activity)
- CheckonChain: Bitcoin — Short-Term Holder MVRV (to evaluate valuation risk relative to cost basis)
Use case:
This tool helps traders identify favorable mean-reversion opportunities while considering broader cycle context and momentum structure.
It is not financial advice — best used alongside macro structure analysis, derivatives positioning, and on-chain behavior for comprehensive decision-making.
First Candle of the Day - PavThis indicator detects and marks the first candle of each new day for that timeframe.
Works in any timeframe (1m, 5m, 15m, 1h, etc.)
Works automatically when the date changes
Manish 3 EMA with Auto Lines + Numbers//@version=5
indicator("Manish 3 EMA with Auto Lines + Numbers", overlay=true)
// === Input for EMAs ===
ema9Length = input.int(9, title="EMA 9")
ema15Length = input.int(15, title="EMA 15")
ema44Length = input.int(44, title="EMA 44")
// === Calculate EMAs ===
ema9 = ta.ema(close, ema9Length)
ema15 = ta.ema(close, ema15Length)
ema44 = ta.ema(close, ema44Length)
// === Plot EMAs ===
plot(ema9, color=color.new(color.green, 0), title="EMA 9", linewidth=2)
plot(ema15, color=color.new(color.red, 0), title="EMA 15", linewidth=2)
plot(ema44, color=color.new(color.yellow,0), title="EMA 44", linewidth=2)
// === Variables for lines and labels ===
var line line9 = na
var line line15 = na
var line line44 = na
var label label9 = na
var label label15 = na
var label label44 = na
if barstate.islast
// Delete previous lines and labels
line.delete(line9)
line.delete(line15)
line.delete(line44)
label.delete(label9)
label.delete(label15)
label.delete(label44)
// Draw new solid lines (1px)
line9 := line.new(bar_index - 1, ema9, bar_index, ema9, extend=extend.right, color=color.new(color.green, 0), width=1)
line15 := line.new(bar_index - 1, ema15, bar_index, ema15, extend=extend.right, color=color.new(color.red, 0), width=1)
line44 := line.new(bar_index - 1, ema44, bar_index, ema44, extend=extend.right, color=color.new(color.yellow, 0), width=1)
// Add small number labels near lines
label9 := label.new(bar_index, ema9, "9", style=label.style_label_left, color=color.new(color.green, 0), textcolor=color.white, size=size.tiny)
label15 := label.new(bar_index, ema15, "15", style=label.style_label_left, color=color.new(color.red, 0), textcolor=color.white, size=size.tiny)
label44 := label.new(bar_index, ema44, "44", style=label.style_label_left, color=color.new(color.yellow, 0), textcolor=color.black, size=size.tiny)
FDL Horizontal Levels + EMAs YM1Plots institutional horizontal levels on US30 and YM1, with 100 & 200 EMAs for trend guidance.
ice tea//@version=6
indicator("ICT + ICC Combined Strategy", overlay=true)
// === INPUTS ===
bosSensitivity = input.int(3, "BOS Sensitivity", minval=1)
showDashboard = input.bool(true, "Show Dashboard")
dashCorner = input.string("top_right", "Dashboard Corner", options= )
// === COLORS ===
bosColorBull = color.new(color.green, 0)
bosColorBear = color.new(color.red, 0)
// === STRUCTURE & BOS LOGIC (example) ===
var bool bullishBOS = false
var bool bearishBOS = false
// Extract function calls for consistency
highestClose = ta.highest(close, bosSensitivity)
lowestClose = ta.lowest(close, bosSensitivity)
// Dummy BOS detection (replace with your actual logic)
if close > highestClose
bullishBOS := true
bearishBOS := false
else if close < lowestClose
bearishBOS := true
bullishBOS := false
else
bullishBOS := false
bearishBOS := false
// === BOS PLOTTING ===
if bullishBOS
line.new(bar_index - bosSensitivity, low , bar_index, low, color=bosColorBull, style=line.style_dotted)
label.new(bar_index, low, "BOS ↑", style=label.style_label_up, color=bosColorBull, textcolor=color.white)
if bearishBOS
line.new(bar_index - bosSensitivity, high , bar_index, high, color=bosColorBear, style=line.style_dotted)
label.new(bar_index, high, "BOS ↓", style=label.style_label_down, color=bosColorBear, textcolor=color.white)
// === ICC / SHORT-TERM DEALING RANGE LOGIC (simplified example) ===
var float stHigh = na
var float stLow = na
if bullishBOS
stLow := low
stHigh := high
else if bearishBOS
stLow := low
stHigh := high
plot(stHigh, title="ST High", color=color.orange, linewidth=1)
plot(stLow, title="ST Low", color=color.orange, linewidth=1)
// === DASHBOARD PANEL ===
if showDashboard
// choose table position
dashPosition = switch dashCorner
"top_left" => position.top_left
"bottom_left" => position.bottom_left
"bottom_right" => position.bottom_right
=> position.top_right
var table dash = table.new(dashPosition, 2, 2, bgcolor=color.new(color.black, 85), frame_color=color.new(color.white, 70))
// Higher time frame bias placeholder (replace with actual HTF logic)
htfBias = bullishBOS ? "bullish" : bearishBOS ? "bearish" : "neutral"
htfTxtColor = htfBias == "bullish" ? color.new(color.green, 0) : htfBias == "bearish" ? color.new(color.red, 0) : color.new(color.yellow, 0)
sigTxtColor = bullishBOS ? color.new(color.green, 0) : bearishBOS ? color.new(color.red, 0) : color.new(color.yellow, 0)
table.cell(dash, 0, 0, "1H Bias:", text_color=color.white, text_size=size.small)
table.cell(dash, 1, 0, str.upper(htfBias), text_color=htfTxtColor, text_size=size.small)
table.cell(dash, 0, 1, "15M Signal:", text_color=color.white, text_size=size.small)
table.cell(dash, 1, 1, sigTxtColor == color.new(color.green, 0) ? "Buy Setup" : sigTxtColor == color.new(color.red, 0) ? "Sell Setup" : "Waiting", text_color=sigTxtColor, text_size=size.small)
Intraday Perpetual Premium & Z-ScoreThis indicator measures the real-time premium of a perpetual futures contract relative to its spot market and interprets it through a statistical lens.
It helps traders detect when funding pressure is building, when leverage is being unwound, and when crowding in the futures market may precede volatility.
How it works
• Premium (%) = (Perp – Spot) ÷ Spot × 100
The script fetches both spot and perpetual prices and calculates their percentage difference each minute.
• Rolling Mean & Z-Score
Over a 4-hour look-back, it computes the average premium and standard deviation to derive a Z-Score, showing how stretched current sentiment is.
• Dynamic ±2σ Bands highlight statistically extreme premiums or discounts.
• Rate of Change (ROC) over one hour gauges the short-term directional acceleration of funding flows.
Colour & Label Interpretation
Visual cue Meaning Trading Implication
🟢 Green bars + “BULL Pressure” Premium rising faster than mean Leverage inflows → momentum strengthening
🔴 Red bars + “BEAR Pressure” Premium shrinking Leverage unwind → pull-back or consolidation
⚠️ Orange “EXTREME Premium/Discount” Crowded trade → heightened reversal risk
⚪ Grey bars Neutral Balanced conditions
Alerts
• Bull Pressure Alert → funding & premium rising (momentum building)
• Bear Pressure Alert → premium falling (deleveraging)
• Extreme Premium Alert → crowded longs; potential top
• Extreme Discount Alert → capitulation; possible bottom
Use case
Combine this indicator with your Heikin-Ashi, RSI, and MACD confluence rules:
• Enter only when your oscillators are low → curling up and Bull Pressure triggers.
• Trim or exit when Bear Pressure or Extreme Premium appears.
• Watch for Extreme Discount during flushes as an early bottoming clue.
MPI Burst Regime by CoryP1990 – Quant ToolkitThe Microstructure Pressure Index (MPI) Burst Regime indicator detects rare, clustered volume bursts (Percentile + Z-score), converts them into an MPI (% of bursts over a rolling window), then signals and shades short-term up-pressure regimes only when structural filters (VWMA slope, Close > VWMA / Bollinger Upper) align. Includes Anchored VWAP end-detector to spot regime neutralization.
Microstructure Pressure Index (MPI) — Burst → Cluster → Regime
Why this is different
Most volume tools flag single high-volume bars. MPI requires repeated bursts within a cluster window and then promotes them into a persistent regime (MPI%). This reduces noise and signals regime or campaign-style pressure rather than one-off spikes.
How it works
Burst gate: bar is a candidate if volume ≥ Xth percentile of recent history and/or Z-score ≥ threshold (user selectable).
Clustering: require ≥ minBursts within a clusWin window to avoid lone spikes.
MPI: percent of burst bars within lenMPI via SMA% or EMA%.
RegimeUp: MPI ≥ mpiTrig + cluster OK + structural filters (VWMA slope, Close > VW/BB) + optional session filter.
End detector: optional Session/Anchored VWAP + pin/flat/slope/volume collapse + IIP neutralization triggers regime end.
Recommended settings
Start: 5-minute charts.
Auto-tune: ON (recommended) - script adapts windows to timeframe.
If you want more sensitivity: lower mpiTrig or shorten lenMPI.
To be stricter/rarer: raise pctVol and zThr, increase minBursts.
Inputs
Auto-adapt - toggle timeframe auto-tuning.
MPI window, Percentrank lookback, Volume percentile, Z-score lookback, Z threshold, MPI trigger
Bollinger (len, mult), VWMA length
Structural filters: Close>VW, Close>UB, VWMA slope requirement
Clustering: minBursts, clusWin and SMA% / EMA% choice for MPI
Visualization: markers, shading, cooldown, confirm on close
VWAP: Session / Anchored (auto/manual) and end-detector thresholds
Alerts
Use the built-in alerts: MPI Burst Trigger (Up), MPI Regime Active (Up), MPI Regime END (VWAP), Single Burst Bar. The indicator supports “Confirm on close” gating to avoid intrabar noise.
Example - (BYND, 5min)
On BYND, MPI flagged multiple clustered volume bursts hours before the vertical move and maintained a shaded up-regime as price rode the Bollinger upper band and VWMA sloped up. The regime reliably ended as VWMA flattened, volume collapsed and VWAP neutralized.
What you’re looking at (walkthrough):
Pre-run clustering: several green MPI markers appear before the large gap/rally... these are clustered percentile+Z bursts (not one-offs).
Regime persistence: once MPI% crosses the threshold and structural filters (VWMA slope, Close>VWMA) hold, the indicator shades the regime (lime). This shading persisted through the main thrust.
Price structure confirmation: price tracks the BB upper band during the push - classic accumulation → expansion behavior.
Regime END: after the top, VWMA slopes down, volume collapses and VWAP conditions trend toward neutralization - end detector flags the regime end.
Settings used in this demo (recommended start):
Chart: 5-min (demo)
Auto-Tune: ON (recommended)
lenMPI = 60, lenRank = 300, pctVol = 98, zLen = 300, zThr = 1.96, mpiTrig = 25
minBursts = 3, clusWin = 10, mpiMode = SMA%
confirmOnClose = true, session only = true for the screenshot
Why this matters:
Most volume tools flag single prints. MPI requires repeated bursts within a window and converts that density into an MPI% regime. That reduces false positives and surfaces regime or campaign-style pressure you can act upon or study.
Part of the Quant Toolkit — transparent, open-source indicators for modern quantitative analysis. Built by CoryP1990.
HEK Dinamik Fiyat Kanalı Stratejisi v1HEK Dynamic Price Channel Strategy
Concept
The HEK Dynamic Price Channel provides a channel structure that expands and contracts according to price momentum and time-based equilibrium.
Unlike fixed-band systems, it evaluates the interaction between price and its balance line through an adaptive channel width that dynamically adjusts to changing market conditions.
How It Works
When the price reacts to the midline, the channel bands automatically reposition themselves.
Touching the upper band indicates a strengthening trend, while touching the lower band signals weakening momentum.
This adaptive mechanism helps filter out false signals during sudden directional changes, enhancing overall signal quality.
Advantages
✅ Maintains trend continuity while avoiding overtrading.
✅ Automatically adapts to changing volatility conditions.
✅ Detects early signals of short- and mid-term trend reversals.
Applications
Directional confirmation in spot and futures markets.
A supporting tool in channel breakout strategies.
Identifying price consolidation and equilibrium zones.
Note
This strategy is intended for educational and research purposes only.
It should not be considered financial advice. Always consult a professional financial advisor before making investment decisions.
© HEK — Adaptive Channel Approach on Dynamic Market Structures
6 gün önce
Sürüm Notları
HEK Dynamic Price Channel Strategy
Concept
The HEK Dynamic Price Channel provides a channel structure that expands and contracts according to price momentum and time-based equilibrium.
Unlike fixed-band systems, it evaluates the interaction between price and its balance line through an adaptive channel width that dynamically adjusts to changing market conditions.
How It Works
When the price reacts to the midline, the channel bands automatically reposition themselves.
Touching the upper band indicates a strengthening trend, while touching the lower band signals weakening momentum.
This adaptive mechanism helps filter out false signals during sudden directional changes, enhancing overall signal quality.
Advantages
✅ Maintains trend continuity while avoiding overtrading.
✅ Automatically adapts to changing volatility conditions.
✅ Detects early signals of short- and mid-term trend reversals.
Applications
Directional confirmation in spot and futures markets.
A supporting tool in channel breakout strategies.
Identifying price consolidation and equilibrium zones.
Note
This strategy is intended for educational and research purposes only.
It should not be considered financial advice. Always consult a professional financial advisor before making investment decisions.
© HEK — Adaptive Channel Approach on Dynamic Market Structures
StarterPack MAsThe Starter Moving Averages indicator is a clean and efficient tool designed to help traders identify market direction, momentum, and potential reversal points using dynamic moving averages. Built for clarity and precision, it combines multiple timeframes and visual signals to simplify decision-making without overloading your chart.
You can choose between EMA or SMA and set up to four custom lengths — by default: 9, 21, 50, and 200. These settings cover short-, medium-, and long-term trends, allowing you to analyze price behavior from scalping setups to major market cycles.
The script also includes optional higher-timeframe MAs, so you can align lower-timeframe entries with the overall market bias. For example, a bullish crossover on the 5-minute chart becomes more powerful when the higher timeframe MAs also point upward.
To make it even more intuitive, the indicator offers:
Automatic bar coloring based on MA alignment (green for uptrend, red for downtrend).
Crossover signals (MA1 crossing MA2) plotted directly on the chart, highlighting potential entry or exit zones.
Alert conditions ready to use — so you can be notified instantly when bullish or bearish crosses occur.
This indicator is highly adaptable for different trading styles — whether you’re a scalper, day trader, or swing trader. Its main goal is to help you quickly read the market structure and follow price action with discipline and consistency.
How to use:
Choose your preferred MA type (EMA or SMA).
Adjust the four MA lengths to fit your strategy.
(Optional) Activate the Higher Timeframe MAs for confluence.
Use color changes and cross signals as a visual guide to confirm trend direction or momentum shifts.
Set alerts to stay informed when a new cross occurs.
The Starter MAs indicator was created to bring simplicity, accuracy, and structure to your trading approach — a clean tool that helps you focus on what really matters: reading the market clearly and trading with confidence.
Pivot Points High Low (%-Auslenkung)Marks swing highs and lows only when the price deviation between opposite pivots exceeds a user-defined percentage threshold.
📊 Multi-Timeframe High/Low Strategy Pro v40.0📊 Multi-Timeframe High/Low Strategy Pro v40.0 (Mustang Algo)
🎯 OVERVIEW
Advanced trading strategy that identifies and trades breakouts of key support and resistance levels across multiple timeframes. Features intelligent pyramiding, ATR-based risk management, and comprehensive backtesting capabilities. Now upgraded to Pine Script v6 for enhanced performance and compatibility.
✨ KEY FEATURES
📈 Multi-Timeframe Levels:
- Yesterday's High/Low
- Today's High/Low (intraday)
- Last Week's High/Low
- Last Month's High/Low
- Last Year's High/Low
🔥 Advanced Position Management:
- Pyramiding up to 100 simultaneous positions
- Configurable equity allocation per trade (0.1% - 100%)
- Daily trade limiter to control overtrading
- Smart position sizing with percentage-based allocation
🎯 Flexible Entry Signals:
- 10 Long entry options (breakouts above key levels)
- 10 Short entry options (breakdowns below key levels)
- Mix and match any combination of signals
- Real-time alerts for all level breaks
🛡️ Risk Management:
- ATR-based or Percentage-based Stop Loss
- ATR-based or Percentage-based Take Profit
- Time-based exits (exit after X bars)
- Precise price-based exits using limit/stop orders
- Entry price calculation for accurate TP/SL placement
📊 Visual Features:
- Clean, modern design with color-coded levels
- Customizable labels with emojis for easy identification
- ATR bands and histogram visualization
- Real-time position information panel
- Adjustable line lookback period (10-500 bars)
⚙️ HOW TO USE
1️⃣ Enable Strategy:
• Check "▶️ Enable Strategy" in Backtesting Settings
• Optionally set date range filter for testing specific periods
2️⃣ Select Entry Signals:
• Choose which level breaks trigger Long entries (⬆️)
• Choose which level breaks trigger Short entries (⬇️)
• Can combine multiple signals for complex strategies
3️⃣ Configure Exits:
• Enable Take Profit and/or Stop Loss
• Choose between Percentage or ATR-based calculations
• Set percentage values (e.g., 10% TP, 5% SL)
• Optionally enable time-based exit (bars)
4️⃣ Advanced Options:
• Enable Pyramiding for multiple concurrent positions
• Set max number of trades per day (1-1000)
• Adjust position sizing per trade (0.1-100%)
📋 CONFIGURATION PARAMETERS
Visual Settings:
- Toggle individual levels on/off
- Line lookback length (10-500 bars)
- Label size (large/normal/small/tiny)
- Label color customization
- Label positioning offset (0-50)
ATR Settings:
- ATR Period (default: 14, range: 1-200)
- ATR Multiplier (default: 2.0, range: 0.1-10.0)
- Optional ATR bands visualization
- Optional ATR histogram display
Entry Signals:
- 10 Long entry triggers (crossover signals)
- 10 Short entry triggers (crossunder signals)
- Individual activation for each signal
Exit Settings:
Take Profit:
- Enable/Disable TP
- Type: Percent (0.1-100%) or ATR (0.1-20x)
- Percent: 0.1% to 100% gain target
- ATR: 0.1 to 20 ATR multipliers
Stop Loss:
- Enable/Disable SL
- Type: Percent (0.1-100%) or ATR (0.1-20x)
- Percent: 0.1% to 100% loss limit
- ATR: 0.1 to 20 ATR multipliers
Time Exit:
- 0-1000 bars (0 = disabled)
Multi-Trade Settings:
- Enable/Disable Pyramiding
- Max concurrent trades (1-100)
- Equity % per trade (0.1-100%)
Daily Limit:
- Enable/Disable daily trade limit
- Max trades per day (1-1000)
Backtesting:
- Date range filtering
- From/To Year, Month, Day selection
🎨 VISUAL DESIGN
Modern, clean interface featuring:
- Color-coded levels with transparency:
- 📗📕 Yesterday (bright green/red)
- 🟢🔴 Today (cyan/magenta)
- 🔵🟠 Last Week (blue/orange)
- 🟣🔷 Last Month (purple/light blue)
- 🟤🟫 Last Year (brown)
- Different line styles per timeframe
- Compact emoji labels (Y-High, T-Low, W-High, M-Low, Yr-High)
- Dynamic info panel showing active settings
- Semi-transparent fills for ATR zones
⚡ PERFECT FOR
- Breakout trading strategies
- Multi-timeframe analysis
- Systematic algorithmic trading
- Range breakout systems
- Support/Resistance trading
- Scalping with pyramiding
- Day trading with level breaks
📊 BACKTESTING ENGINE
Comprehensive backtesting with:
- Date range filtering for precise periods
- Accurate entry/exit execution
- Multiple position management
- Detailed performance metrics
- Trade-by-trade analysis
- Pyramiding simulation
🔔 ALERTS AVAILABLE
Set custom alerts for:
- Any level breakout (10 different levels)
- Crossover and crossunder events
- All timeframe combinations
- Entry and exit signals
- Position management events
🆕 VERSION 40.0 UPDATES
- Upgraded to Pine Script v6
- Enhanced compatibility and performance
- Improved input system (input.bool, input.int, input.float)
- Updated security function (request.security)
- Fixed ta.barssince calculations
- Optimized strategy.close implementation
- Shorter title for TradingView compliance
⚠️ IMPORTANT TECHNICAL NOTES
- Uses precise limit/stop prices for TP/SL (not ticks)
- Entry price-based calculations (not current close)
- Pyramiding controlled via strategy declaration
- Daily trade counter resets at midnight
- ATR calculated on each bar for consistency
- Works best on intraday timeframes for daily levels
- Time-based exits use global scope calculations
💡 USAGE TIPS
- Start with single signal testing to understand behavior
- Use percentage-based exits for consistent risk/reward ratios
- Enable daily limit to prevent overtrading volatile days
- Combine ATR-based stops with percentage targets
- Test different level combinations for your specific asset
- Lower pyramiding percentage for safer multi-position trading
- Consider market volatility when setting ATR multipliers
📈 STRATEGY LOGIC EXPLANATION
The strategy identifies critical support/resistance levels from multiple timeframes (yesterday, today, week, month, year) and generates trading signals when price breaks through these levels.
**Entry Logic:**
- LONG: Price crosses above selected high/low levels
- SHORT: Price crosses below selected high/low levels
**Exit Logic:**
- Take Profit: Fixed percentage or ATR-based target
- Stop Loss: Fixed percentage or ATR-based stop
- Time Exit: Maximum bars in position
**Position Management:**
- Pyramiding allows building multiple positions
- Daily limiter prevents excessive trading
- Per-trade allocation controls risk per entry
🎓 BEST PRACTICES
1. **Risk Management:** Never risk more than 1-2% per trade
2. **Pyramiding:** Use smaller percentages (0.5-2%) when enabled
3. **Daily Limits:** Set realistic limits based on market volatility
4. **TP/SL Ratio:** Aim for minimum 1:1.5 risk/reward ratio
5. **Backtesting:** Test thoroughly across different market conditions
6. **Timeframes:** Use appropriate timeframes for your trading style
7. **Level Selection:** Choose relevant levels for your asset class
📊 RECOMMENDED SETTINGS
**Conservative (Low Risk):**
- Pyramiding: Disabled
- TP: 5% or 3 ATR
- SL: 2% or 1.5 ATR
- Daily Limit: 3-5 trades
- Signals: Week/Month highs only
**Moderate (Balanced):**
- Pyramiding: Enabled (max 3)
- Per Trade: 2%
- TP: 3% or 2.5 ATR
- SL: 1.5% or 1 ATR
- Daily Limit: 5-10 trades
- Signals: Yesterday + Week levels
**Aggressive (High Risk):**
- Pyramiding: Enabled (max 5)
- Per Trade: 1%
- TP: 2% or 2 ATR
- SL: 1% or 0.75 ATR
- Daily Limit: 10-20 trades
- Signals: All levels enabled
⚠️ RISK DISCLAIMER
This indicator is for educational and informational purposes only. Trading involves substantial risk of loss and is not suitable for every investor. Past performance does not guarantee future results. Always:
- Test thoroughly in paper trading first
- Use proper risk management
- Never risk more than you can afford to lose
- Understand the strategy before live trading
- Consider transaction costs and slippage
- Consult a financial advisor if needed
🔧 TROUBLESHOOTING
- **No trades executing:** Check if "Enable Strategy" is ON
- **Too many trades:** Reduce signals or enable daily limit
- **TP/SL not working:** Verify percentage/ATR settings
- **Pyramiding not working:** Check max trades and % per trade
- **Labels not showing:** Ensure "Show Labels" is enabled
📞 SUPPORT & FEEDBACK
For questions, suggestions, bug reports, or feature requests:
- Comment below this indicator
- Contact the author through TradingView
- Report any issues with specific examples
🌟 FEATURES SUMMARY
✅ Multi-timeframe level detection
✅ Customizable breakout signals
✅ ATR and percentage-based exits
✅ Advanced pyramiding system
✅ Daily trade limiting
✅ Time-based exits
✅ Modern visual design
✅ Comprehensive backtesting
✅ Real-time alerts
✅ Pine Script v6 compatible
📚 VERSION HISTORY
- v40.0 - Pine Script v6 upgrade + bug fixes
- v39.3 - Fixed TP/SL with limit/stop prices
- v39.2 - Entry price-based calculations
- v39.1 - Fixed daily trade counter
- v39.0 - Pyramiding + daily limiter
- v38.0 - Multi-trade capability (100 positions)
- v37.0 - ATR-based exits
- v36.0 - Backtesting integration
- v35.0 - Added yearly levels
🚀 GET STARTED
1. Add indicator to your chart
2. Open settings panel
3. Enable "▶️ Enable Strategy"
4. Select your preferred entry signals
5. Configure TP/SL settings
6. Run backtest on historical data
7. Optimize parameters for your asset
8. Set up alerts for live trading
Happy Trading! 🎯💰📈
---
© 2025 Multi-Timeframe High/Low Strategy Pro
Built with precision. Tested with care. Trade with confidence.
Daily/Weekly/Monthlyplotting the multi sma indicator (dialy, weekly and monthly) along with the current time frame in the same indicator
Crash Stats 15m (ETH) — X% | prev RTH min(VWAP, Close)# Crash Stats 15m (ETH) — X% Drawdown Event Analyzer
A 15-minute indicator that scans up to the last 5 years to find **crash events** where the close falls by at least **X%** relative to the **lower of** the prior day’s **RTH VWAP** and **RTH close**. It then measures recovery and follow-through behavior, tags the market regime around each event, and summarizes everything in a table.
---
## What the script detects
**Crash event (trigger):**
* On a 15-minute bar, `close <= refPrice * (1 - X%)`.
* `refPrice = min(previous RTH VWAP, previous RTH close)`.
* First touch only: subsequent bars below the threshold on the same trading day are ignored.
* Extended hours (ETH) are supported; if ETH is off, the script safely infers the previous RTH reference.
**Per-event measurements**
1. **Time to “turn up”** – first close **above the event-anchored AVWAP** (AVWAP cumulated from the trigger bar onward).
2. **Time to recover the reference price** – first close ≥ `refPrice`.
3. **Time to recover Y% above the crash-day average price** – first close ≥ `crashDayVWAP * (1+Y%)`.
4. **Post-crash lowest price & timing** – the lowest low and how long after the event it occurs, within a user-defined horizon (default 10 trading days, approximated in calendar days).
5. **Intraday RTH low timing** – on the crash day’s RTH session, when did the day’s intraday low occur, and **was it on the first 15-minute bar**?
6. **First 15-minute low of the RTH day** – recorded for context.
All durations are shown as **D days H hours M minutes**.
---
## Regime tagging (A / B)
For each event the script classifies the surrounding trend using daily closes:
* Let `r6m = (prevClose – close_6mAgo) / close_6mAgo`,
`r12m = (prevClose – close_12mAgo) / close_12mAgo`.
* **A**: both `r6m > 0` and `r12m > 0` (uptrend across 6m & 12m).
* **B**: one positive, one negative, and `r6m + r12m ≥ 0` (mixed but net non-negative).
* Otherwise: **—**.
This helps separate selloffs in strong uptrends (A) from mixed regimes (B) and others.
---
## Inputs
* **X — Crash threshold (%)**: default 5.
* **Y — Recovery above crash-day average (%)**: default 5.
* **Lookback years**: default 5 (bounded by data availability).
* **Horizon for post-crash lowest (trading days)**: default 10 (approximated as calendar days).
* **RTH session**: default `09:30–16:00` (exchange timezone).
* **Show markers**: plot labels on triggers.
* **Rows to display**: last N events in the table.
---
## Table columns
* Index, **Trigger time**, **Drop %**, **Ref price**, **Regime (A/B/—)**
* **Time to turn up** (above anchored AVWAP)
* **Time to ref price**, **Time to day VWAP + Y%**
* **Window lowest price**, **Time to window low**
* **RTH first-15m low**, **RTH lowest time**, **Was RTH low on first 15m?**
* **Crash-day VWAP**
---
## How to use
1. **Set chart to 15-minute** and **enable extended hours** for equities (recommended).
2. Keep defaults (**X=5%, Y=5%**) to start; tighten to 3–4% for more frequent events on less volatile symbols.
3. For non-US symbols or futures, adjust the **RTH session** if needed.
4. Read the table (top-right) for per-event diagnostics and aggregate averages (bottom row).
---
## Notes & implementation details
* Works whether ETH is on or off. If ETH is off, the script back-fills “previous RTH” references at the next RTH open and uses the prior daily close as a fallback.
* The “turn up” definition uses **event-anchored AVWAP**, a robust, price–volume anchor widely used for post-shock mean reversion analysis.
* Events are **de-duplicated**: only one event per trading day (per target RTH cycle).
* Lookback is limited by your plan and the data vendor. The script requests deep history (`max_bars_back=50000`), but availability varies by symbol.
* Durations use minute precision and are rendered as **days–hours–minutes** for readability.
---
## Quick troubleshooting
* **No events found**: lower **X%**, enable **ETH**, or ensure sufficient history is loaded (scroll back, or briefly switch to a higher timeframe to force deeper backfill, then return to 15m).
* **RTH boundaries off**: check the **RTH session** input matches the venue.
* **Few rows in table**: increase **Rows to display**.
---
## Typical use cases
* Back-test how fast different symbols tend to stabilize after a sharp gap-down or intraday shock.
* Compare recovery behavior across regimes **A / B** for sizing and risk timing.
* Build playbooks: e.g., if the RTH low occurs on the first 15m bar X% of the time, plan entries accordingly.
---
## Changelog
* **v1.0**: Initial public release with crash detection, anchored-AVWAP reversal, reference & VWAP+Y recovery timers, regime tagging, window-low timing, RTH low timing, and first-15m low capture.
Multi-Sigma Bands [fmb]Multi-Sigma Bands
What It Is
Multi-Sigma Bands is a volatility-based statistical channel that visualizes how far price deviates from its long-term mean in standard deviation (σ) units. It offers a high-signal, low-noise view of trend strength, volatility regimes, and statistical extremes directly on price, keeping the chart clean and focused without any secondary pane.
What It Does
The indicator calculates a central basis line—using SMA, EMA, RMA, or Linear Regression—and surrounds it with multi-sigma envelopes, typically at ±1σ, ±2σ, and ±3σ. These bands represent the statistically expected ranges of price movement. The blue zone (±1σ) reflects normal volatility where roughly two-thirds of price activity occurs. The yellow zone (±2σ) captures moderate extensions that account for most of the remaining moves, while the red zone (±3σ) marks rare extremes that fall outside the 99% probability boundary. Each region is color-coded for immediate visual interpretation, allowing you to see at a glance when price is trading in calm, stretched, or extreme conditions.
Why It Was Built
Conventional Bollinger Bands tend to compress and expand too aggressively over short windows, making it difficult to read structural volatility changes. Multi-Sigma Bands addresses this by providing a longer statistical view. It helps distinguish mean reversion from sustained breakouts, quantifies trend acceleration or exhaustion, and highlights when markets move into statistically unusual zones that often precede reversals or volatility resets. It is particularly effective on monthly or weekly charts for assessing where a market sits within its long-term distribution. For instance, when the S&P 500 trades above +2σ for several months, risk-reward conditions often tighten.
How It Works
You can choose your preferred basis type—SMA, EMA, RMA, or Linear Regression—and decide whether to force monthly data even on lower timeframes for consistent macro analysis. Adjustable parameters include length, sigma multipliers, and standard deviation smoothing for fine-tuning sensitivity. The script automatically fills the space between the bands, creating a layered color map that clearly shows each volatility zone.
How To Use
When price remains above +1σ, it often confirms strong upside momentum. Consistent rejections at ±2σ or ±3σ zones can suggest exhaustion and potential mean reversion. Narrowing bands often precede volatility expansion, signaling that a breakout or trend change may be near. Multi-Sigma Bands can be used on its own for macro context or as an overlay with directional systems to refine entries and exits.
Credits
Created by Fullym0bile
Enhanced with leading trend detection logic.
www.fullymobile.ca
Local Hurst Slope [Dynamic Regime]1. HOW THE INDICATOR WORKS (Math → Market Edge)Step
Math
Market Intuition
1. Log-Returns
r_t = log(P_t / P_{t-1})
Removes scale, makes series stationary
2. R/S per τ
R = max(cum_dev) - min(cum_dev)
S = stdev(segment)
Measures memory strength over window τ
3. H(τ) = log(R/S) / log(τ)
Di Matteo (2007)
H > 0.5 → Trend memory
H < 0.5 → Mean-reversion
4. Slope = dH/d(log τ)
Linear regression of H vs log(τ)
Slope > 0.12 → Trend accelerating
Slope < -0.08 → Reversion emerging
LEADING EDGE: The slope changes 3–20 bars BEFORE price confirms
→ You enter before the crowd, exit before the trap
Slope > +0.12 + Strong Trend = Bullish = Long
Slope +0.05 to +0.12 = Weak Trend = Cautious = Hold/Trail
Slope -0.05 to +0.05 = Random = No Edge
Slope-0.08 to -0.05 = Weak Reversion = Bearish setup = Prepare Short
Slope < -0.08 = Strong Reversion = Bearish= Short
PRO TIPS
Only trade in direction of 200-day SMA
Filters false signals
Avoid trading 3 days before/after earnings
Volatility kills edge
Use on ETFs (SPY, QQQ)
Cleaner than single stocks
Combine with RSI(14)
RSI < 30 + Hurst short = nuclear reversal
ממוצעים נעים דינמיים – קצר / בינוני / ארוךMA - L/M/S
dynamic ma across different time frame
5m, 30m, d, w, m
Dual Harmonic-based AHR DCA (Default :BTC-ETH)A panel indicator designed for dual-asset BTC/ETH DCA (Dollar Cost Averaging) decisions.
It is inspired by the Chinese community indicator "AHR999" proposed by “Jiushen”.
How to use:
Lower HM-based AHR → cheaper (potential buy zone).
Higher HM-based AHR → more expensive (potential risk zone).
Higher than Risk Threshold → consider to sell, but not suitable for DCA.
When both AHR lines are below the Risk threshold → buy the cheaper one (or split if similar).
If one AHR is above Risk → buy the other asset.
If both are above Risk → simulation shows “STOP (both risk)”.
Not limited to BTC/ETH — you can freely change symbols in the input panel
to build any dual-asset DCA pair you want (e.g., BTC/BNB, ETH/SOL, etc.).
What you’ll see:
Two lines: AHR BTC (HM) and AHR ETH (HM)
Two dashed lines: OppThreshold (green) and RiskThreshold (red)
Colored fill showing which asset is cheaper (BTC or ETH)
Buy markers:
- B = Buy BTC
- E = Buy ETH
- D = Dual (split budget)
Top-right table: prices, AHRs, thresholds, qOpp/qRisk%, simulation, P&L
Labels showing last-bar AHR values
Core idea:
Use an AHR based on Harmonic Moving Average (HM) — a ratio that measures how “cheap or expensive” price is relative to both its short-term mean and long-term trend.
The original AHR999 used SMA and was designed for BTC only.
This indicator extends it with cross-exchange percentile mapping, allowing the empirical “opportunity/risk” zones of the AHR999 (on Bitstamp) to adapt automatically to the current market pair.
The indicator derives two adaptive thresholds:
OppThreshold – opportunity zone
RiskThreshold – risk zone
These thresholds are compared with the current HM-based AHR of BTC and ETH to decide which asset is cheaper, and whether it is good to DCA or not, or considering to sell(When it in risk area).
This version uses
Display base: Binance (default: perpetual) with HM-based AHR
Percentile base: Bitstamp spot SMA-AHR (complete, stable history)
Rolling window: 2920 daily bars (~8 years) for percentile tracking
Concept summary
AHR measures the ratio of price to its long-term regression and short-term mean.
HM replaces SMA to better reflect equal-fiat-cost DCA behavior.
Cross-exchange percentile mapping (Bitstamp → Binance) keeps thresholds consistent with the original AHR999 interpretation.
Recommended settings (1D):
DCA length (harmonic): 200
Log-regression lookback: 1825 (≈5 years)
Rolling window: 2920 (≈8 years)
Reference thresholds: 0.45 / 1.20 (AHR999 empirical priors)
Tie split tolerance (ΔAHR): 0.05
Daily budget: 15 USDT (simulation)
All display options can be toggled: table, markers, labels, etc.
Notes:
When the rolling window is filled (2920 bars by default), thresholds are first calculated and then visually backfilled as left-extended lines.
The “buy markers” and “decision table” are light simulations without fees or funding costs — for rhythm and relative analysis, not backtesting.
Aibuyzone Elliott Wave SuiteOverview
This study approximates Elliott-style wave structure using swing pivots. It labels primary waves (1–5), tracks subwaves (1–5) inside them, and plots future projection bands derived from the size of a recent primary leg. A small floating dashboard summarizes the current wave number, bias (bullish/bearish) based on the last leg, and a projection price range.
Note: This tool is educational. Wave detection is algorithmic and approximate; it does not identify textbook Elliott patterns or validate rule sets. Manage risk independently.
What it draws
Primary wave labels (1–5): Based on higher swing length pivots (major turns).
Subwave labels (1–5): Based on shorter swing length pivots (minor turns).
Zigzag connectors: Simple lines between the latest primary pivots for structure visualization.
Projection bands: Three dotted horizontal levels forward from the last primary pivot, using user-defined extension multipliers.
Floating dashboard:
Current Wave: Latest primary wave count (1–5).
Bias: “Bullish Leg” (last pivot was a low) or “Bearish Leg” (last pivot was a high), or “Unknown” if insufficient data.
Proj Range: Min–max of the three projection levels.
Key Inputs
Swing Structure
Primary Swing Length: Pivot left/right bars for major swings. Larger values = fewer, cleaner waves.
Subwave Swing Length: Pivot left/right bars for minor swings. Smaller values = more frequent subwave labels.
Max Saved Swing Points: Memory limit to prevent clutter.
Future Projections
Show Projection Levels: Toggle projection lines on/off.
Use Last Nth Leg For Size: Which recent primary leg to use for measuring projection distance (1 = most recent).
Extension 1 / 2 / 3: Multipliers applied to the measured leg (e.g., 1.0, 1.618, 2.0).
Style
Colors and text sizes for primary and subwave labels, and projection lines.
Dashboard
Show Dashboard: Toggle table on/off.
Dashboard Position: Top-Left / Top-Right / Bottom-Left / Bottom-Right.
How projections are computed
The script measures the price distance of a recent primary leg (from pivot A to pivot B).
If the last pivot is a low, projections extend upward; if the last pivot is a high, projections extend downward.
The three extension inputs (e.g., 1.0 / 1.618 / 2.0) are applied to that leg distance to create dotted forward levels.
The dashboard’s Proj Range displays the min–max of those three levels.
Using the study (suggested workflow)
Choose timeframe appropriate for your style (e.g., higher timeframes for cleaner structure; lower timeframes for detail).
Tune swing lengths:
Increase Primary Swing Length on noisy charts to stabilize wave counts.
Adjust Subwave Swing Length to reveal or simplify internal moves.
Read the dashboard:
Current Wave shows where the latest primary count sits (1–5).
Bias summarizes the direction of the last measured leg only; it is not a trend system.
Proj Range offers a coarse price band derived from your extensions.
Context check: Combine wave labeling with your own market context (trend, structure, volatility) before making decisions.
Risk management: Use your own stop/target methods. The projection lines are not signals.
Practical tips
Clutter control: If labels overlap on volatile symbols, try larger swing lengths or reduce label text sizes in Style.
Scaling: On very small tick sizes, increasing the internal label price offset can improve label readability.
Projection sensitivity: Changing Use Last Nth Leg can materially alter levels; confirm they match your intent.
Non-determinism across timeframes: Different timeframes and symbols will produce different pivot sequences and counts.
Limitations & important notes
Approximation: This does not enforce all Elliott rules (e.g., alternation, wave 4 overlap constraints, channeling). It only labels swings numerically.
Repainting of labels: Pivot-based waves confirm after enough bars have printed to the right of a high/low. Labels are placed when pivots confirm; they don’t predict pivots.
Not a signal generator: No entries/exits/alerts are included; add your own trade plan and risk controls.
Data sufficiency: Early bars or sparse data may show “Unknown” bias or “N/A” projections until adequate pivots exist.
Clean-chart publishing guidance (to stay compliant)
Use a chart that clearly shows this script’s outputs without unrelated indicators.
Keep the description educational. Avoid performance claims, guarantees, or language implying certainty.
Do not include links, promotions, prices, giveaways, contact details, or solicitations.
Disclose that labels and projections are algorithmic approximations and for educational use.
Risk disclosure
This script is for educational purposes only. It does not provide financial, investment, or trading advice and does not guarantee outcomes. Markets involve risk, including the potential loss of capital. Always do your own research and use independent judgment.






















