RSI Mean-Reversion StrategyLong entry when RSI ≤ 30; exit at RSI ≥ 70. 100% equity per trade, 0.1% commission + 1 tick slippage. Optional 2% stop-loss. Visual buy/sell signals, dynamic SL line, and background highlight on oversold zones. Clean, backtest-ready Pine Script v5. Everything is easily adjustable to suit your liking.
Grafik Desenleri
Auto Fib Retracement-custom lines📈 Auto Fib Retracement (with Custom Line Thickness)
This indicator provides an automatic application of Fibonacci Retracement and Extension levels based on key Pivot points on the chart. It uses advanced logic to identify relevant momentum based on user-defined parameters, ensuring dynamic and accurate level drawing without the need for manual measurement.
Key Features of the Indicator ✨
Automatic Drawing: Fibonacci levels are automatically drawn based on the last significant Pivot swing detected by the indicator.
Fibonacci Retracement and Extension: Displays classic retracement levels (such as 0.382, 0.5, 0.618) and extensions (such as 1.272, 1.618, 2.618, etc.), with the option to individually toggle the visibility of each level.
Custom Line Width (New Feature): This is the key added functionality! For every Fibonacci level, an option has been included to individually adjust the line thickness (width). This allows traders to visually highlight (bold) critical support/resistance levels (like 0, 0.618, 1, etc.) to make them more noticeable on the chart.
Pivot Customization: Control the sensitivity of Pivot detection using the "Deviation" and "Depth" parameters.
Line Extension: Options to extend the Fibonacci lines to the left, right, or both sides.
Detail Display: Ability to show/hide Fibonacci values (levels) and prices on the labels.
⚙️ Input Parameters
This indicator offers complete control over how the Fibonacci levels are displayed:
Deviation: A multiplier that affects how much the price must deviate from the previous pivot for a new pivot to be formed. Increasing the value makes the indicator less sensitive; decreasing it makes it more sensitive.
Depth: The minimum number of bars considered when calculating the pivots.
Reverse: Option to reverse the drawing direction (from top to bottom or vice-versa).
Extend Left/Right: Controls the extension of the Fibonacci lines.
Level Settings (0, 0.236, 0.382, 0.5, 0.618, etc.):
Checkbox: Turn the display of each individual Fibonacci level on or off.
Value: Customize the Fibonacci value (e.g., you can change 0.618 to 0.65).
Color: Adjust the line color.
Line Width: Crucial option! Allows you to set the line thickness from 1 to 5. Use this to emphasize the most important levels.
Background Transparency: Adjust the transparency of the background fill between the Fibonacci levels.
How to Use It 💡
This tool is ideal for traders who use Fibonacci Retracement to determine potential areas of support and resistance, profit targets (extensions), and entry zones. Use the Custom Line Width option to visually set apart the key levels you believe have the most significant impact on the market (e.g., 0, 0.5, 0.618, and 1).
PDHL Breakout SMA50 By Ajit TiwariThis indicator help you to find buy sell from previous day high low basis
FVG Strategy with One Trade Per Hour and Tick-based TP/SLThis strategy hunts for Fair Value Gaps (FVGs)—three-bar displacement gaps that mark imbalances where price moved so fast it left a “void.” It detects bullish (green) and bearish (red) FVGs on the chart timeframe or a higher timeframe you choose via the Timeframe input. Each detected zone is stored and optionally drawn as a box (static or “dynamic” that tightens with price). A simple threshold lets you filter out tiny gaps: either set a fixed percent (Threshold %) or let the script estimate it automatically. As price trades later, the engine watches for interaction with any stored zone.
Entries are taken on a touch/retest of the zone: buy when price intersects a green (bullish) FVG; short when it intersects a red (bearish) FVG. Risk management is manual and straightforward—your stop loss and take profit are set in ticks, placed off the signal bar’s close. To avoid over-trading, there’s a cap of one trade per hour (it resets when the clock hour changes). In short, it’s an intraday “gap fill / bounce” system: identify an imbalance, wait for price to revisit it, and take a directional trade with fixed tick targets and stops.
A+ Trade Checklist (Bullish + Bearish Mode + Alerts) – Fixed v61. Trend direction (EMA alignment)
2. Relative Strength vs SPY (is your stock stronger than the market?)
3. Volume confirmation
4. RSI strength
5. Candle momentum
Orderflow [Pro+] (DeadCat)This indicator introduces a sophisticated, multi-timeframe approach to detecting and visualizing Fair Value Gaps (FVGs)—also known as price imbalances—in order flow analysis. FVGs represent inefficiencies in price delivery where rapid buying or selling pressure creates a "gap" between candles, often signaling areas where price is likely to return to "fill" the imbalance due to unfilled liquidity. Unlike basic single-timeframe FVG tools that simply highlight gaps without context, this script layers in hierarchical time-based rules (HTF influencing LTF) to filter noise, enforce directional bias, and project dynamic support/resistance levels post-mitigation.
The core innovation lies in its bias-driven ecosystem: Higher timeframes (HTF) establish a "master bias" (bullish or bearish) upon FVG mitigation, which then governs lower timeframes (LTF) by suppressing conflicting FVGs or deleting overlapping ones. This creates a cascading structure where, for example, a bullish daily FVG might invalidate bearish 15-minute gaps above its bottom edge, promoting confluence across scales. Additionally, it incorporates dynamic swing tracking (updating highs/lows in real-time post-mitigation) and overlapping liquidity lines (projecting prior swings trapped within the FVG), turning static gap detection into a proactive order flow mapper.
This isn't a mere mashup of standard FVG logic (e.g., 3-candle imbalance checks) or swing detectors; the components synergize to simulate institutional order flow dynamics—prioritizing liquidity sweeps and bias alignment—reducing false signals in choppy markets. It's designed for traders seeking edge in scalping, swing, or position trading without repainting or lookahead bias in historical data.
Key Concepts Underlying the Calculations
FVG Detection Mechanism:
Uses a classic 3-candle imbalance filter: For a bullish FVG, the low of the current bar must gap above the high of the bar two periods ago (low > high ), with the prior bar's low dipping below that high (low < high ) to confirm inefficiency. The inverse applies for bearish FVGs (high < low , high > low ).
Introduces a BAG filter (Bias-Aligned Gap): Checks if the close of the confirming candle aligns with the gap's midpoint (e.g., close > midpoint for bullish), discarding "weak" gaps where price closes against the expected direction. This refines raw imbalances to those backed by momentum.
Swing Identification and Projection:
Tracks fixed swings (static high/low from the FVG formation bar) and dynamic swings (updating to new extremes post-mitigation, e.g., highest high since a bullish FVG touch).
Equal Range Lines (ERL): Post-mitigation, projects horizontal lines from fixed/dynamic swings as potential support (bullish) or resistance (bearish). These extend rightward until breached, with optional pre-tap visibility for anticipation.
Overlapping Liquidity: Scans the 5-bar lookback within the FVG range for trapped highs/lows, drawing a dotted line to highlight "engineered liquidity" zones where stops might cluster.
Hierarchical Bias Rules (HTF-LTF Interaction):
Once an FVG is mitigated (price touches its opposite edge, e.g., low piercing a bullish FVG's top), it activates a bias state for that timeframe (bullish: +1; bearish: -1), storing the gap's bounds as a reference.
LTF Suppression: New LTF FVGs opposing the HTF bias are blocked if they form in invalid zones (e.g., bearish LTF FVG bottom > bullish HTF bottom). Existing LTF FVGs are deleted if engulfed, partially overlapped, or directionally misaligned (6 overlap rules, including full engulfment or same-direction displacement).
Reset Triggers: Bias resets on opposing swing breaks (e.g., low < fixed swing in bullish state) or exhaustive mitigation (all FVGs filled), ensuring adaptability.
Mitigation and Extension Logic:
FVGs extend as semi-transparent boxes until fully mitigated (price closes beyond the far edge), then halt extension and optionally change color (e.g., red tint for filled zones).
Current-timeframe FVGs shift left by 2 bars to align with real-time bar indexing, avoiding visual lag.
These concepts draw from ICT (Inner Circle Trader) order flow principles—focusing on liquidity voids and bias hierarchies—but implement them programmatically with cross-TF validation, which isn't standard in most FVG scripts.
How It Works: Step-by-Step Signal Generation
Data Fetching: Pulls OHLCV from up to 6 user-defined timeframes (default: 15m, 1H, 4H, D, W, M) using request.security with barmerge to sync HTF bars to LTF without gaps.
FVG Formation: On each HTF bar close, scans for imbalances. If valid (post-bias filter), initializes state: clears prior opposing data, sets fixed/dynamic swings, and draws the box from formation time to infinity.
Ongoing Updates:
Boxes/labels/midlines extend rightward.
Swings update dynamically if new highs/lows form post-mitigation.
HTF bias propagates downward, pruning LTF noise in real-time.
Mitigation Check: On every LTF bar, tests if price pierces the nearest FVG edge. If so, activates bias, projects ERLs/overlaps, and cascades deletions.
Visualization: Boxes (FVGs) with midlines/labels; solid/dashed ERLs for swings; dotted overlaps. Optional table summarizes bias status (e.g., "▲ bullish IRL reacting" if price respects the level).
No future data is used—calculations are historical and real-time safe. Max limits (500 boxes/lines/labels) prevent overload.
How to Use It: Practical Application
Setup: Add to your chart (overlay=true). Enable 2-4 timeframes for confluence (e.g., 15m for entries, 1H/4H for bias). Set biases to "Auto" for dynamic detection, or "▲"/"▼" to force bullish/bearish filtering. Use universal colors for clean multi-TF overlays; tweak line styles/widths for visibility.
Interpretation:
Watch for FVGs: Bullish (upward gap, blue box) suggests buy-side inefficiency—expect pullbacks to fill from above. Bearish (downward gap) indicates sell pressure.
Bias Alignment: Green table status (e.g., "▲ reacting") signals strength; red ("failing") warns of reversal. Prioritize trades where LTF FVGs align with HTF bias.
Entry/Exit Ideas: Enter longs on bullish FVG mitigation (low touches top, ERL projects support). Target the box bottom or dynamic swing. Exit on bias reset (opposing break).
Risk Management: FVGs act as dynamic S/R. Use overlaps for stop placement (e.g., below trapped low). Avoid non-standard charts (Heikin Ashi) as signals distort.
Backtest with realistic slippage (0.1-0.5%) and risk <2% per trade. Past fills don't guarantee future ones—always combine with discretion.
Disclaimer: For educational purposes. Not financial advice. Verify in a demo account.
Borsium MFI SignalsI'll add strong buy/sell signals to your indicator. You can use MFI values and momentum changes to create more specific buy/sell points.
davidqqq//@version=5
indicator('CD', overlay=false, max_bars_back=500)
// 输入参数
S = input(12, title='Short EMA Period')
P = input(26, title='Long EMA Period')
M = input(9, title='Signal Line Period')
// 计算DIFF, DEA和MACD值
fastEMA = ta.ema(close, S)
slowEMA = ta.ema(close, P)
DIFF = fastEMA - slowEMA
DEA = ta.ema(DIFF, M)
MACD = (DIFF - DEA) * 2
// 计算N1和MM1
N1 = ta.barssince(ta.crossunder(MACD, 0))
MM1 = ta.barssince(ta.crossover(MACD, 0))
// 确保长度参数大于0
N1_safe = na(N1) ? 1 : math.max(N1 + 1, 1)
MM1_safe = na(MM1) ? 1 : math.max(MM1 + 1, 1)
// 计算CC和DIFL系列值
CC1 = ta.lowest(close, N1_safe)
CC2 = nz(CC1 , CC1)
CC3 = nz(CC2 , CC2)
DIFL1 = ta.lowest(DIFF, N1_safe)
DIFL2 = nz(DIFL1 , DIFL1)
DIFL3 = nz(DIFL2 , DIFL2)
// 计算CH和DIFH系列值
CH1 = ta.highest(close, MM1_safe)
CH2 = nz(CH1 , CH1)
CH3 = nz(CH2 , CH2)
DIFH1 = ta.highest(DIFF, MM1_safe)
DIFH2 = nz(DIFH1 , DIFH1)
DIFH3 = nz(DIFH2 , DIFH2)
// 判断买入条件
AAA = CC1 < CC2 and DIFL1 > DIFL2 and MACD < 0 and DIFF < 0
BBB = CC1 < CC3 and DIFL1 < DIFL2 and DIFL1 > DIFL3 and MACD < 0 and DIFF < 0
CCC = (AAA or BBB) and DIFF < 0
LLL = not CCC and CCC
XXX = AAA and DIFL1 <= DIFL2 and DIFF < DEA or BBB and DIFL1 <= DIFL3 and DIFF < DEA
JJJ = CCC and math.abs(DIFF ) >= math.abs(DIFF) * 1.01
BLBL = JJJ and CCC and math.abs(DIFF ) * 1.01 <= math.abs(DIFF)
DXDX = not JJJ and JJJ
DJGXX = (close < CC2 or close < CC1) and (JJJ or JJJ ) and not LLL and math.sum(JJJ ? 1 : 0, 24) >= 1
DJXX = not(math.sum(DJGXX ? 1 : 0, 2) >= 1) and DJGXX
DXX = (XXX or DJXX) and not CCC
// 判断卖出条件
ZJDBL = CH1 > CH2 and DIFH1 < DIFH2 and MACD > 0 and DIFF > 0
GXDBL = CH1 > CH3 and DIFH1 > DIFH2 and DIFH1 < DIFH3 and MACD > 0 and DIFF > 0
DBBL = (ZJDBL or GXDBL) and DIFF > 0
DBL = not DBBL and DBBL and DIFF > DEA
DBLXS = ZJDBL and DIFH1 >= DIFH2 and DIFF > DEA or GXDBL and DIFH1 >= DIFH3 and DIFF > DEA
DBJG = DBBL and DIFF >= DIFF * 1.01
DBJGXC = not DBJG and DBJG
DBJGBL = DBJG and DBBL and DIFF * 1.01 <= DIFF
ZZZZZ = (close > CH2 or close > CH1) and (DBJG or DBJG ) and not DBL and math.sum(DBJG ? 1 : 0, 23) >= 1
YYYYY = not(math.sum(ZZZZZ ? 1 : 0, 2) >= 1) and ZZZZZ
WWWWW = (DBLXS or YYYYY) and not DBBL
// plot买入和卖出信号
if DXDX
label.new(bar_index, low, text='抄底', style=label.style_label_up, color=color.red, textcolor=color.white, size=size.small)
if DBJGXC
label.new(bar_index, high, text='卖出', style=label.style_label_down, color=color.green, textcolor=color.white, size=size.small)
ATR Trend Table with DI both waysThis indicator is used confirm entry point whether it has met ATR and DI direction criterias
INTRA DAY BEAST The Intraday Beast doesn’t follow trends… it detects them before they roar.
It watches the market’s rhythm, waits in silence, and strikes only when the odds are loaded in its favor.
This isn’t your average flashy indicator — it doesn’t bark at every candle.
When it moves, it means business.
Each signal is a calculated attack — clean, disciplined, and deadly precise.
But listen carefully…
⚠️ The Beast hates boredom.
If your stock has no volume, no volatility, no life — it won’t even wake up.
Feed it only the hottest stocks, the wildest moves, and the loudest markets.
Then, and only then, you’ll see what this creature can do.
💬 Trade smart. Stay patient. Wait for chaos — then let the Beast strike.
STEVEN Breakout Scalper (M1/M5)# ✅ Checklist for Trading with the Breakout Indicator + VWAP
> **Designed for scalping/M5 in crypto using your breakout indicator and VWAP**
> Objective: trade only valid breakouts with confirmation and discipline
---
## 🕒 PRE-MARKET / PRE-SESSION
**General context**
* ☐ Identified major trend (H1 / M15)
* ☐ Reviewed relevant news
* ☐ Price relative to VWAP:
* ☐ Above → LONG bias
* ☐ Below → SHORT bias
* ☐ DO NOT trade if the price is “crushed” above the VWAP with no direction
* ☐ Marked supports and resistances for the day
* ☐ Identified liquidity zones / swings
---
## 🎯 ENTRY SETUP (Breakout Setup)
**Indicator Conditions**
* ☐ Breakout signal appears
* ☐ Previous marked line (light blue) was broken with a strong candle
* ☐ It is not a false breakout (long wick without body)
**Additional Confirmation (minimum 2 of these)**
* ☐ Candle close outside the level
* ☐ Retest at broken level (pullback)
* ☐ Increasing volume
* ☐ RSI > 50 for long / < 50 for short
* ☐ Trade in favor of VWAP (NOT against VWAP trend)
**VWAP Rules**
* ☐ Do not trade breakouts against VWAP
* ☐ If breakout coincides with bounce in VWAP = strong entry
* ☐ Price far from VWAP = take more aggressive partial
**Initial Management**
* ☐ Stop Loss placed below/above the broken level
* ☐ Minimum TP 1:1.5
* ☐ Calculated position size
* ☐ No FOMO — if it breaks without me, I let it go
---
## 📈 DURING THE TRADE
* ☐ I keep the stop until I see a clear structure
Translated with DeepL.com (free version)
TrendRebel.pro SMA 🆓Welcome to Trend Rebel!
This 🆓 Indicator will help guide you through boundaries across multiple timeframes.
Seamlessly watch your 4 Hour or any other timeframe while being able to plot aand or just view other important SMA's.
Add this with a FREE subscription to Trend Rebels Bootcamp and you can master the boundaries that SMA"s provide giving you an edge.
SMA's provide you with the boundaries that define how technicals move, while they are based on previous candles, future candles respect them with patterns and institutions use them to guide their trading as well. This of it as a cheat sheet to awareness of whats to come.
This Free version is somewhat limited, so make sure you get a free trial to trend rebel and explore the many Indicators we use to navigate the market with precision.
For instance our Pivot Indicator which is based on charting techniques that Trading View cannot duplicate, therefore we manually update our Pivots DAILY and deliver them to your screen!
For a Paid Subscription to TrendRebel copy paste this link to your browser:
whop.com
For a FREE subscription to Bootcamp copy paste this link to your browser:
whop.com
For more information go to:
www.trendrebel.pro
Ravio This indicator identifies false breakouts and confirmed breakouts on any timeframe. It automatically analyzes price action around key levels (such as recent highs and lows) to detect when the price temporarily breaks above or below a level but then quickly returns — signaling a false breakout.
When a breakout is confirmed (price holds beyond the level with strong volume or momentum), the indicator highlights it with a different color.
Sumit Infusion of DARVAS with EMASumit Infusion indicator is made to make trading easier and simpler
Multi-Timeframe Pattern TrackerKey Features
• Objective Top & Bottom Detection
The algorithm mathematically defines potential market turning points, removing emotional bias from your trading decisions.
• Clear Trading Signals
Receive precise alerts for potential entry and exit opportunities based on swing reversals and continuation setups.
• Built-in Trade Management
Each signal comes with entry levels, stop-loss placement, and multiple take-profit targets, helping you plan trades effectively.
• Comprehensive Monitor Panel
Stay on top of your trades with an on-chart panel displaying entry type, trade strength, and signal direction in real time.
• Fully Automated Analysis
The Avramis Swing automates complex technical analysis, freeing you to focus on trade execution and strategy.
52 Week High/Low with Custom Levels + Dotted LookStockEdge 52Week High and Low Zone
Data at web.stockedge.com
OverBought & OverSold [SwissAlgo]OverBought & OverSold
Statistical analysis of momentum extremes
----------------------------------------------------------
Purpose
This indicator was built to answer three questions:
Is the current price move statistically extreme? - By comparing current momentum to historical distribution
What is the current market regime? - By combining trend position and momentum direction
Is momentum accelerating or decelerating? - By analyzing weekly momentum shifts
----------------------------------------------------------
What You Can Do With This Indicator
Identify Statistical Extremes
See when price momentum seems to have reached levels that historically preceded reversals
Compare the current Rate of Change to its historical mean and standard deviation
Spot when readings exceed ±1σ, ±2σ, or higher thresholds
Monitor Market Regime/State
Track whether the market seems to be in BULL, WEAK BULL, BEAR, or WEAK BEAR state
Observe potential transitions between regimes as they occur
Understand the relationship between price position and momentum
Assess Momentum Quality
Distinguish between potentially accelerating momentum (lime/red bars) and decelerating momentum (green/maroon bars)
Watch for possible momentum deterioration within established trends
Track weekly momentum patterns that filter out daily noise
Measure Distance from Trend
Monitor how far the price is from its long-term moving average (EMA 350)
Identify when price approaches trend support/resistance
Contextualize current position relative to historical distance patterns
----------------------------------------------------------
Overview
This indicator calculates a volume-weighted Rate of Change (ROC) and displays it with statistical Z-Score bands. It combines ROC analysis with market regime detection using weekly MACD and EMA positioning.
Key Features
Volume-weighted ROC calculation with 5-bar smoothing
Dynamic Z-Score bands (±0.5σ to ±6σ)
Four-state market regime classification
Weekly Stochastic RSI-based histogram coloring
Visual markers for extreme readings
Information table with current statistics
Calculations
Volume-Weighted ROC
The indicator compares two 5-bar volume-weighted average prices separated by the ROC
Length period:
Recent VWAP = Σ(Price × Volume) / Σ(Volume) for last 5 bars
Past VWAP = Σ(Price × Volume) / Σ(Volume) for 5 bars at lookback
ROC = ((Recent VWAP - Past VWAP) / Past VWAP) × 100
Default ROC Length: 30 periods
Why volume-weighted:
Single price points can be affected by temporary spikes
Volume weighting emphasizes legitimate price moves
5-bar averaging reduces single-bar noise
Z-Score Bands
The indicator maintains separate statistical distributions for positive and negative ROC values:
For positive ROC values:
Calculates mean and standard deviation of all positive ROC readings
Plots bands at +0.5σ, +1σ, +2σ, +3σ, +4σ, +5σ, +6σ above the mean
For negative ROC values:
Calculates mean and standard deviation of all negative ROC readings
Plots bands at -0.5σ, -1σ, -2σ, -3σ, -4σ, -5σ, -6σ below the mean
Z-Score formula:
If ROC > 0: Z = (ROC - Positive Mean) / Positive Std Dev
If ROC < 0: Z = (ROC - Negative Mean) / Negative Std Dev
Why separate distributions:
Upward and downward momentum often have different statistical properties
Separate analysis provides more accurate extreme identification
Each side maintains its own mean and volatility characteristics
The ±1σ bands use thicker lines (linewidth=2) as these levels are most frequently tested.
Market Regime States
Four states based on weekly MACD (10, 24, 8) and EMA 350:
BULL
Conditions: Price > EMA 350, Weekly MACD > 0, MACD > Signal, ROC histogram lime
Background: Lime (85% transparency)
Interpretation: Price above long-term trend with accelerating momentum
WEAK BULL
Conditions: Price > EMA 350 AND (MACD < Signal OR ROC histogram green)
Background: Green (95% transparency)
Interpretation: Price above trend, but momentum seems to be decelerating
BEAR
Conditions: Price < EMA 350, Weekly MACD < 0, MACD < Signal, ROC histogram red
Background: Red (85% transparency)
Interpretation: Price below long-term trend with accelerating downward momentum
WEAK BEAR
Conditions: Price < EMA 350 AND (MACD > Signal OR ROC histogram maroon)
Background: Maroon (95% transparency)
Interpretation: Price below trend, but downward momentum seems to be decelerating
NEUTRAL
Conditions: None of the above met
Background: Gray (95% transparency)
Interpretation: Transitional state between regimes
Why weekly MACD:
Filters daily volatility and noise
Provides more stable regime classification
Reduces false regime switches
Histogram Colors
Colors determined by Weekly Stochastic RSI (14, 14, 3, 3):
Lime: ROC > 0 and K > D (rising positive momentum)
Green: ROC > 0 and K < D (falling positive momentum)
Red: ROC < 0 and K < D (falling negative momentum)
Maroon: ROC < 0 and K > D (rising negative momentum)
Why weekly Stochastic RSI:
Shows momentum direction independent of absolute level
Weekly timeframe provides stable readings
K/D crossover indicates momentum shifts
Visual Markers
Red arrows (↓): Display when ROC ≥ +1σ (overbought zone)
Lime arrows (↑): Display when ROC ≤ -0.5σ (oversold zone)
These markers highlight when readings reach statistical extremes.
Information Table
Located at the top-right, displays four rows:
Row 1 - Market State
Shows current regime text (BULL/WEAK BULL/BEAR/WEAK BEAR/NEUTRAL)
Color matches regime state
Row 2 - Current Z-Score
Shows Z-Score value with 2 decimal places
Lime when Z ≤ -0.5 (statistically oversold)
Red when Z ≥ +1 (statistically overbought)
White for values between -0.5 and +1 (normal range)
Adds bullet (●) for extreme values
Row 3 - Price ROC %
Shows current ROC percentage
Lime when positive
Red when negative
Row 4 - Distance % EMA
Shows percentage distance from EMA 350
Calculates Z-score of distance
Red with ● when close to EMA in bull market (|Z| < 0.5)
Lime with ● when close to EMA in bear market (|Z| < 0.5)
Standard colors otherwise (lime when above EMA, red when below)
Why distance matters:
A price approaching EMA 350 in a bull market can signal a support test
Price near EMA 350 in a bear market can signal a resistance test
Z-score of distance shows if the current proximity is statistically unusual
----------------------------------------------------------
Settings
ROC Length (Integer, default: 30, minimum: 1)
Number of periods for ROC lookback
Higher values = slower response, smoother
Lower values = faster response, more sensitive
Source (Source, default: close)
Price data input for calculations
Can use close, open, high, low, hl2, hlc3, ohlc4
Show Info Table (Boolean, default: true)
Toggle table visibility
----------------------------------------------------------
Technical Details
Uses lookahead=barmerge.lookahead_off for all request.security() calls
Accumulates all historical ROC values in arrays for Z-Score calculation
Weekly timeframe data retrieved via request.security() on "1W" resolution
EMA length hardcoded to 350 periods
All plots use Pine Script v6 syntax
Data Requirements
Minimum bars required: ROC Length + 5 bars
Works on any timeframe
Applicable to any instrument with volume data
Historical data used: All available bars on the chart
Display Elements
Plots:
ROC histogram (plotcandle format)
Zero line (horizontal line)
14 standard deviation lines (7 positive, 7 negative)
13 filled regions between bands
14 sigma labels (displayed on last bar only)
Extreme zone markers (arrows)
Color Scheme:
Positive bands: Lime with varying transparency
Negative bands: Red with varying transparency
Fills: Green (positive) and Red (negative) with high transparency
Bands beyond 3σ use increased transparency (85%, 90%, 93%)
Visual Hierarchy
±1σ bands: Thicker lines (most important levels)
±0.5σ to ±3σ: Standard visibility
±4σ to ±6σ: Faded (visible only during extreme events)
Notes
This is an oscillator-type indicator (overlay=false)
Displays in a separate pane below the price chart
Does not generate automatic buy/sell signals
Does not include alert conditions
Does not repaint (all calculations use confirmed data)
Limitations
Requires sufficient historical data for meaningful statistics
Z-Score bands recalculate as new data accumulates
Market regime requires weekly MACD calculation (may show neutral on insufficient data)
Volume-weighting requires volume data availability
EMA 350 is fixed (not adjustable via inputs)
Statistical extremes do not guarantee reversals
Past distribution patterns do not predict future behavior
----------------------------------------------------------
Disclaimer
Educational Purpose Only
This indicator is provided for educational and informational purposes only. It is a technical analysis tool that displays statistical calculations and historical data patterns.
Not Financial Advice
This indicator does not provide financial, investment, trading, or any other type of professional advice. All content and calculations are for informational purposes only and should not be construed as a recommendation to buy, sell, or hold any security or financial instrument.
No Guarantee of Results
Past performance and historical statistical patterns do not guarantee future results. Markets are inherently unpredictable, and statistical analysis cannot predict future price movements with certainty. The appearance of statistical extremes does not ensure that reversals will occur.
User Responsibility
Users of this indicator are solely responsible for their own trading and investment decisions. You should conduct your own research and due diligence and consult with qualified financial professionals before making any investment decisions.
Risk Warning
Trading and investing in financial markets involves substantial risk of loss. You should only trade with capital you can afford to lose. The use of technical indicators does not eliminate market risk.
No Warranty
This indicator is provided "as is" without warranty of any kind, either expressed or implied, including but not limited to warranties of accuracy, reliability, or fitness for a particular purpose. The author makes no guarantees regarding the accuracy of calculations or the absence of errors.
Limitation of Liability
The author and publisher of this indicator shall not be held liable for any losses, damages, or claims arising from the use or inability to use this indicator, including but not limited to trading losses, lost profits, or any other financial losses.
Data Accuracy
While efforts have been made to ensure calculation accuracy, users should independently verify all outputs. The indicator relies on data provided by TradingView, and the author is not responsible for data feed errors or interruptions.
User Agreement
By using this indicator, you acknowledge that you have read, understood, and agree to this disclaimer. If you do not agree with any part of this disclaimer, you should not use this indicator.
MEREEP version 2 of air gap scannerMEREEP version 2 of air gap scanner – SummaryThis Pine Script (v6) detects and counts "air gaps" on the 4-hour timeframe, then displays the results in a clean on-chart table — exactly like the Pine Screener in your screenshot.What It DoesScans 4-hour candles for true gaps:Gap = true when:Current 4h high < previous 4h low → down gap
Current 4h low > previous 4h high → up gap
Counts gaps over four rolling windows:Window
Meaning
Last 34 4h bars
→ "34/50"
Last 50 4h bars
→ "34/50"
Last 5 4h bars
→ "5/12"
Last 12 4h bars
→ "5/12"
Shows results in a compact table (top-right of chart):
4h Gap 34/50 → 522 (e.g. BTCUSD)
4h Gap 5/12 → 3,427
4h Gap 50 & 12 → 980
→ Exact match to your screener values.
Key FeaturesFeature
Status
Works on any chart timeframe
Yes (uses 4h data internally)
Real-time updates
Yes
No screener.add_column errors
Yes (uses table)
No ta.sum errors
Yes (uses sum() / math.sum)
shorttitle ≤ 10 chars
Yes ("GapScan")
No syntax errors
Yes
Example Output (BTCUSD)Metric
Value
Gaps in last 34 of 50 4h bars
522
Gaps in last 5 of 12 4h bars
3,427
Gaps in last 50 & 12 4h bars
980
→ Identical to your TradingView Pine ScreenerUse CaseScan any symbol for unusual 4h gap activity
Spot potential volatility or institutional moves
Works on stocks, crypto, forex, futures
Willy ORB for Gold – Session Presets (NY 5m)What it does:
Plots the opening-range high/low for the main Gold sessions (Shanghai, Tokyo, Sydney, Frankfurt, London, New York 5-minute OR by default). It projects TP1/TP2 expansion targets, supports a timezone offset so opens line up with your broker, and includes breakout alerts on confirmed closes.
⸻
Why it’s Gold-friendly
• New York (COMEX pit): 5-minute opening range at ~20:20 local (via your offset) to capture the most active burst.
• London / Frankfurt: strong European volatility windows for XAU/USD.
• Shanghai / Tokyo / Sydney: structure-setting sessions before momentum builds.
⸻
Features
• Session presets: SH, TK, SY, FR, LDN, NY (5m) — toggle individually
• 15m OR for all sessions except NY (5m) by default (editable per session)
• TP1 / TP2 expansion targets (user-defined multiples)
• Labels for 15m/5m range and targets; customizable styles
• Timezone offset control (aligns lines to your local clock)
• Daily auto-reset for clean levels
• Alerts: “Closed Above Range High” / “Closed Below Range Low” per session
⸻
How to use
1. Add to chart (best on 1–15m).
2. In settings → Gold Sessions, toggle the sessions you want.
3. Set “My time offset from chart (hours)” so session lines match your broker time.
4. Trade the breakouts: when price closes beyond the session high/low, TP levels plot automatically.
⸻
Parameters (quick guide)
• Targets: TP1/TP2 multiples (e.g., 1.0 and 2.0).
• Labels: left/right label placement, line styles/colors.
• Sessions: enable/disable + choose each session’s OR length (NY defaults to 5m).
⸻
Tips for XAU/USD
• London often gives the cleanest first breakout.
• New York tends to drive continuation after data releases.
• Consider pairing with volume/volatility or HTF trend for confluence.
⸻
Notes
• Built in Pine Script v6.
• Indicator (not a strategy). For backtests, use a companion strategy that trades the closes beyond the OR with SL at the opposite side and TP by R.
⸻
Disclaimer
For educational purposes only. Not financial advice. Always backtest and manage risk.






















