NoProcess PivotsNoProcess Pivots
Visualize the structural framework of price action with NoProcess Pivots, a precision tool for multi-timeframe confluence trading.
Pivots are mathematically derived levels where price statistically finds support, resistance, or equilibrium. Institutional order flow respects these levels as key decision points where liquidity pools form and inefficiencies seek rebalancing.
NoProcess Pivots displays historical pivot ranges as period-bounded zones across Daily, Weekly, and Quarterly timeframes—allowing you to observe how price has respected or violated these levels over time. By projecting ±33% extensions beyond R1/S1, traders can identify targets, retracement levels, and key reversal points.
Cross-reference pivots across multiple timeframes to find confluence zones where Daily, Weekly, and Quarterly levels stack. These high-conviction areas offer the clearest setups for entries and exits.
Features:
Multi-timeframe pivots: Daily, Weekly, Quarterly
Historical levels with adjustable depth
Period-bounded zones
±33% extensions
Adaptive light/dark mode table
Real-time Δ PP percentage
Pivot cross alerts
Built for traders who respect the math behind the markets.
インジケーターとストラテジー
5% Move Counter (Up vs Down)5% Move Counter (Up vs Down)
This indicator tracks how many times a stock has made a 5% or larger move in a single session, and shows the count separately for up days and down days. It’s meant for traders who want quick context on whether a stock has a history of making large moves, instead of manually scrolling through years of price action.
Most tools only tell you what’s happening right now. This one helps you understand what the stock is capable of.
What it shows
Number of 5%+ up days
Number of 5%+ down days
Optional display modes:
All
Up Only
Down Only
Why it’s useful
Different stocks behave differently. Some give clean, powerful bursts when they break out, while others rarely move big even when the setup looks perfect. This tool helps you gauge a stock’s historical “explosiveness” so you can decide whether your strategy fits its behavior.
If your setups depend on volatility or momentum, it helps to know whether the stock has produced big moves before. This gives you that information instantly.
Customization
You can place the stats box anywhere on the chart using a simple 1–9 selector.
You can hide the rows you don’t need through a dropdown.
When a row is hidden, its background becomes fully transparent so the chart stays clean.
Who it’s for
Short-term traders, breakout traders, swing traders, and anyone who wants a quick read on whether a stock moves enough to justify certain types of trades.
Fed Rate ProbabilityFed Rate Probability – Simple & Clean v2.0
Real-time composite score (0–100) for the next Fed move: Rate Cut, Hike or Hold
Overview
A clean, all-in-one indicator that combines the most reliable market signals into two easy-to-read lines:
• Red line → Probability of RATE CUT
• Blue line → Probability of RATE HIKE
• Hold score = 100 – max(cut, hike)
The dominant signal (CUT / HOLD / HIKE) is highlighted in the information table.
Key Features
Automatic daily data from FRED (DFF, 3M/1M/2Y/10Y yields)
Smart fallback to TradingView native symbols (US01MY, US03MY, US02Y, US10Y) when FRED is unavailable
Manual CME FedWatch probability override (perfect for weekends/holidays)
Historical Fed rate cut/hike markers with background shading and labels
Colored probability zones + customizable threshold lines
Threshold-crossing labels and full alert suite
Special alert on 2Y-10Y yield curve un-inversion (strong historical precursor to rate cuts)
Detailed summary table with current spreads, scores and dominant signal
Fully customizable: enable/disable each component, adjust weights indirectly via toggles, change smoothing, thresholds, colors, etc.
Score Composition (0–100 points)
T-bills vs Fed Funds spread – max 50 pts (with persistence & 1M confirmation bonus)
2-Year Treasury vs Fed Funds spread – max 30 pts (or direct CME probability input)
2Y-10Y yield curve behavior – max 20 pts (inversion depth + large bonus on steepening after un-inversion)
Interpretation
0–40 → Low probability
40–60 → Moderate
60–75 → High
75–100 → Very High / Almost certain
Why this indicator?
Instead of checking FRED, CME FedWatch, yield curves and T-bill spreads separately, get everything in one pane with a clear, smoothed composite score and instant alerts when the market starts pricing a Fed move aggressively.
Disclaimer
This is a decision-support tool based on historical relationships and current market pricing. It is not financial advice and past performance is no guarantee of future results.
Enjoy and trade safe! 🚀
Imbalance Heatmap (Free) – pc75A clean, efficient visualisation of liquidity voids, 3-bar imbalances, and price inefficiency zones.
This indicator highlights where the market left gaps in the order flow — areas price often revisits to rebalance.
Imbalances are displayed as stacked horizontal “heatmap strips,” making it easy to see:
Where aggressive buying/selling left a void
Whether multiple voids overlap (stronger zones)
Whether price is likely to return to fill the imbalance
How old a void is (older zones are marked differently)
This is a refined v6 rewrite based on a script I liked, completely modernised with cleaner logic, better performance, and optional labels.
🔍 Features
3-bar liquidity void detection (ICT-style logic)
Bullish imbalance when price displaces upward with no wick overlap
Bearish imbalance for downward displacement
✔ Heatmap-style visualisation
Each imbalance is sliced into multiple thin horizontal bands to create a visual density effect.
✔ Stacking intelligence
If a new void overlaps previous ones, the heatmap is drawn brighter, showing areas where the market left multiple inefficiencies.
✔ “Void xN” labels
Optional labels show how many overlapping voids existed at the moment the imbalance formed.
✔ Automatic deletion when filled
As soon as price trades back through a slice, that slice is removed.
This keeps the chart clean and focuses only on active inefficiencies.
✔ Smart ageing
Older voids are marked with a subtle border so you can distinguish freshly formed inefficiencies from historical ones.
✔ Alerts
Set alerts for when price taps a stacked imbalance zone (“Void x2” and above).
⚙ Inputs & Customisation
ATR threshold (optional)
Minimum tick size gap
Number of heatmap slices
Bullish / bearish toggles
Label toggles
Colour and transparency configuration
Max slice memory for performance
💡 How to Use
Imbalance zones often behave as:
Magnets → price gravitates toward them
Support/resistance → structure respects inefficiencies
Continuity points → used with market structure shifts
Targets → for both scalpers and swing traders
Strong (stacked) voids typically represent areas of institutional displacement, where the market is more likely to return for rebalancing.
📢 Notes
This is the free version.
Educational only — not financial advice.
Indicator ***TuYa*** V8.2 – HH/HL MTF + Peak Mid ZoneIndicator TuYa V8.0 – HH/HL MTF + Peak Mid Zone
TuYa V8.0 combines multi-timeframe market structure with a Peak Reaction midline to create clean, rule-based reversal and trend entries – designed primarily for 1-minute execution with 1-hour bias.
🧠 Core Concept
This indicator fuses three ideas:
HTF Peak Reaction Midline (1H)
Uses a Peak Reaction style logic on the higher timeframe (HTF, default: 1H).
Identifies a reaction high and reaction low, then calculates their midpoint → the Peak Mid Zone.
This midline acts as a dynamic sentiment divider (above = premium / below = discount).
Multi-Timeframe HH/HL/LH/LL Structure
HTF structure (1H): detects HH, HL, LH, LL using pivot highs/lows.
LTF structure (1m): detects HH, HL, LH, LL on the execution timeframe (chart TF, intended for 1m).
HTF → LTF Confirmation Window
After a 1H structure event (HH, HL, LL, LH), the indicator opens a confirmation window of up to N LTF candles (default: 10 x 1m bars).
Within that window, the required 1m structure event must occur to confirm an entry.
🎯 Signal Logic
All entries are generated on the LTF (e.g. 1m chart), using HTF (e.g. 1H) bias + Peak Mid Zone:
1️⃣ Price ABOVE Peak Mid (Bullish premium zone)
Reversal SELL
HTF: HH (Higher High)
Within N 1m bars: LTF HH
→ SELL signal (fading HTF strength near premium)
Trend/Bullish BUY
HTF: HL (Higher Low)
Within N 1m bars: LTF LL
→ BUY signal (buying dips in an uptrend above midline)
2️⃣ Price BELOW Peak Mid (Bearish discount zone)
Reversal BUY
HTF: LL (Lower Low)
Within N 1m bars: LTF LL
→ BUY signal (catching potential reversal from discount)
Trend/Bearish SELL
HTF: LH (Lower High)
Within N 1m bars: LTF HH
→ SELL signal (shorting strength in a downtrend below midline)
Signals are plotted as small BUY/SELL triangles on the chart and exposed via alert conditions.
🧾 Filters & Options
⏳ HTF → LTF Delay Window
Input: “Max 1m bars after HTF trigger” (default: 10)
After a 1H HH/HL/LL/LH event, the indicator waits up to N LTF candles for the matching 1m structure pattern.
If no match occurs within the window, no signal is generated.
📉 RSI No-Trade Zone (HTF)
Toggle: Use RSI no-trade zone
Inputs:
RSI Length (HTF)
No-trade lower bound (default 45)
No-trade upper bound (default 65)
If HTF RSI is inside the defined band (e.g. 45–65), signals are blocked (no-trade regime), helping to avoid noisy mid-range conditions.
You can turn this filter ON/OFF and adjust the band dynamically.
🧱 5m OB / Direction Filter (Optional)
Toggle: Use 5m OB direction filter
Timeframe: Configurable (default: 5m).
Uses a simple directional proxy on the OB timeframe:
For BUY signals → require a bullish candle on OB timeframe.
For SELL signals → require a bearish candle on OB timeframe.
When enabled, this adds an extra layer of confluence by aligning entries with the short-term directional context.
⚙️ Key Inputs (Summary)
Timeframes
HTF (Peak Reaction & Structure): default 60 (1H)
Peak Reaction
Lookback bars (HTF)
ATR multiplier for zones
Show/Hide Peak Mid line
Structure
Pivot left/right bars (for HH/HL/LH/LL swings)
Toggle structure labels (HTF & LTF)
Confirmation
Max LTF bars after HTF trigger (default 10, fully configurable)
RSI Filter
Use filter (on/off)
RSI length
No-trade range (low/high)
5m OB Filter
Use filter (on/off)
OB timeframe (default 5m)
📡 Alerts & Automation
The script includes alertconditions for both BUY and SELL signals, with JSON-formatted alert messages suitable for routing to external bridges (e.g. bots, MT5/MT4, n8n, etc.).
Each alert includes:
Symbol
Side (BUY / SELL)
Price / Entry
SL & TP placeholders (from hidden plots, ready to be wired to your own logic)
Time
Performance tag
CommentCode (for strategy/type tagging on the receiver side)
You can attach these alerts to a webhook and let your execution engine handle SL/TP and order management.
📌 How to Use
Attach the indicator to a 1-minute chart.
Set HTF timeframe to 60 (or your preferred higher timeframe).
Optionally enable:
RSI regime filter
5m OB direction filter
Watch for:
Price relative to the Peak Mid line
BUY/SELL triangles that respect HTF structure + LTF confirmation + filters.
For automation, create alerts using the built-in conditions and your preferred JSON alert template.
⚠️ Disclaimer
This tool is for educational and informational purposes only.
It is not financial advice and does not guarantee profits. Always test thoroughly in replay / paper trading before using with live funds, and trade at your own risk.
Advanced Bollinger Bands Optimized - Precision SignalsThis indicator creates an advanced Bollinger Bands system with integrated ATR bands and intelligent trading signals. It features:
**Core Components:**
- Standard Bollinger Bands (20-period SMA with 1.382 standard deviations)
- ATR-based outer bands expanding on the Bollinger Bands
- Dynamic bandwidth analysis using Z-Score to measure current volatility relative to historical levels
**Market State Detection:**
Identifies five market conditions based on bandwidth Z-Score:
- Extreme Squeeze (ultra-low volatility)
- Squeeze (low volatility)
- Normal (average volatility)
- Expansion (high volatility)
- Extreme Expansion (ultra-high volatility)
**Signal System:**
Generates 5 bullish and 5 bearish signals:
*Bullish Signals:*
1. Bottom Divergence - Price makes new lows while Z-Score is relatively high
2. Width Reversal - Bandwidth rebounds from extreme squeeze
3. Extreme Squeeze Reversal - Recovery from extreme volatility compression
4. Squeeze Breakout Up - Price breaks above upper band during squeeze
5. State Transition - Market transitions from squeeze to expansion
*Bearish Signals:*
1. Top Divergence - Price makes new highs while Z-Score is relatively low
2. Width Reversal - Bandwidth declines from extreme expansion
3. Extreme Expansion Reversal - Contraction from extreme volatility expansion
4. Squeeze Breakout Down - Price breaks below lower band during squeeze
5. State Transition - Market transitions from expansion to squeeze
**Features:**
- Real-time signal table showing active signals
- Adjustable sensitivity parameters for divergence, reversal, and breakout signals
- Signal cooldown system to prevent duplicate alerts
- Clean visual display with band fills and alert markers
- No additional external indicators required
This tool helps traders identify volatility changes, trend reversals, and breakout opportunities using only price data and bandwidth analysis.
FOR CRT SMT – 4 CANDLEFOR CRT SMT – 4 CANDLE Indicator
This indicator detects SMT (Smart Money Technique) divergence by comparing the last 4 candle highs and lows of two different assets.
Originally designed for BTC–ETH comparison, but it works on any market, including Forex pairs.
You can open EURUSD on the chart and select GBPUSD from the settings, and the indicator will detect SMT divergence between EUR and GBP the same way it does between BTC and ETH. This makes it useful for analyzing correlated markets across crypto, forex, and more.
🔴 Upper SMT (Bearish Divergence – Red)
Occurs when:
The main chart asset makes a higher high,
The comparison asset makes a lower high.
This may signal a liquidity grab and potential reversal.
🟢 Lower SMT (Bullish Divergence – Green)
Occurs when:
The main chart asset makes a lower low,
The comparison asset makes a higher low.
This may indicate the market is sweeping liquidity before reversing upward.
📌 Features
Uses the last 4 candles of both assets.
Automatically draws divergence lines.
Shows clear “SMT ↑” or “SMT ↓” labels.
Works on Crypto, Forex, and all correlated assets.
Madrid Ribbon with ST/TEMA FilterHow the Combination Works
The script is combined by:
Porting to Pine Script v6: The Madrid Ribbon code was updated from v4 to v6 syntax (mainly changing study() to indicator(), change() to ta.change(), and using ta. prefixes for built-in functions like ema and sma).
Integrating SuperTrend Logic: The full calculation for the Zero-lag TEMA filtered SuperTrend's final_trend was copied into the combined script. This logic determines if the market is in a confirmed 1 (Uptrend) or -1 (Downtrend) based on the combined signal of the TEMA cross and the SuperTrend.
Filtering the Ribbon Color: The Madrid Ribbon's custom coloring function, maColor, was modified to include the final_trend as a filter:
If i_st_enabled is true, the original Madrid Ribbon color (LIME/GREEN for bullish, RUBI/MAROON for bearish) is only displayed if the final_trend confirms that direction.
If the final_trend is neutral or contradicts the ribbon's direction, the MA is colored GRAY.
Input Simplification: The numerous input options for the SuperTrend's source and MA type were simplified to use close and EMA by default to avoid excessive complexity, but the main parameters like TEMA periods, ATR Multiplier, and MA length were kept as inputs.
This results in a Madrid Ribbon that only shows its standard color signals when the longer-term, double-filtered SuperTrend confirms the same trend.
CRR - Candlestick Pattern PRO + HUD Analyze each candlestick in detail:
Calculate:
Body size (bodyPct)
Upper wick (upPct)
Lower wick (lowPct)
Total range of the candlestick.
Detect important candlestick patterns:
Hammer
Inverted Hammer
Doji
Strong Bullish Candle
Strong Bearish Candle
Bullish Engulfing
Bearish Engulfing
Optional: Use the EMA 200 as a trend filter
If useTrend is enabled:
Above the EMA200 → “Trend: Bullish”
Below the EMA200 → “Trend: Bearish”
In between → “Trend: Sideways”
Color and mark the candlesticks:
If useColorCandles is active:
Color the candlestick according to the detected pattern.
If showLabels is active:
Write the name of the pattern above or below the candlestick (Hammer, Doji, Engulfing, etc.).
HUD in the upper right corner:
Name of the current pattern (or “None”).
Bias: bullish reversal, bearish reversal, momentum, indecision, etc.
EMA200 status (trend).
Candlestick body and wick percentages.
Pattern “Strength”: Low / Medium / High.
🧠 In simple terms:
This is a professional candlestick pattern radar, with colors, labels, and a HUD that tells you which pattern is present, what the trend is, and how strong the signal is.
Kurtosis with Skew Crossover Focused OscillatorDescription:
This indicator highlights Skewness/Kurtosis crossovers for short-term trading:
Green upward arrows: Skew crosses above Kurtosis → potential long signal.
Red downward arrows: Skew crosses below Kurtosis → potential short signal.
Yellow upward arrows: Extreme negative skew (skew ≤ -1.7) → potential oversold/reversal opportunity.
Oscillator Pane:
Orange = Skewness (smoothed)
Blue = Kurtosis (adjusted, smoothed)
Zero line = visual reference
Usage:
Primarily for 2–5 minute charts, highlighting statistical anomalies and potential short-term reversals that can be used in conjunction with OBV and/or CVD
Arrows signal potential entries based on skew/kurt dynamics.
Potential ideas???????
---------------------------------------
Add Supporting Market Context
---------------------------------------
Currently, signals are purely based on skew/kurt crossovers. Adding supporting indicators could improve reliability:
Volume / CVD: Identify when crossovers occur with real buying/selling pressure.
Wick Imbalance: Detect forced moves in price structure.
Volatility Regime (Parkinson / ATR): Filter signals during high volatility spikes or compressions.
Experimentation: Try weighting these supporting signals to dynamically confirm or filter skew/kurt crossovers and see if false signals decrease on 2–5 minute charts.
--------------------------------------
Dynamic Thresholds & Scaling
--------------------------------------
Right now, the extreme skew signal is triggered at a fixed level (skew ≤ -1.7). Future improvements could include:
Adaptive thresholds: Scale extreme skew levels based on recent standard deviation or intraday volatility.
Kurtosis thresholds: Introduce a cutoff for kurtosis to identify “fat-tail” events.
Experimentation: Backtest different adaptive thresholds for both skew and kurt, and see how it affects the precision vs. frequency of signals.
--------------------------------------------------
Multi-Timeframe or Combined Oscillator
--------------------------------------------------
Skew/kurt signals could be combined across multiple intraday timeframes (e.g., 1-min, 3-min, 5-min) to improve confirmation.
Create a composite oscillator that blends short-term and slightly longer-term skew/kurt values to reduce noise.
Experimentation: Compare a single timeframe approach vs multi-timeframe composite, and measure signal reliability and lag.
I'm leaving this open so anyone can experiment with it as this project may be on the backburner, but these are my thoughts so far
ZigZag + Fibonacci
⚙️ Main Features
• Automatic ZigZag: Detects the latest high and low pivots based on an adjustable period.
• Dynamic Fibonacci: Automatically draws the 38.2%, 50%, and 61.8% levels based on the last ZigZag movement.
• Display Control:
o Enable or disable the blue line connecting the pivots (ZigZag line).
o Adjust the horizontal length of the Fibonacci lines (in number of bars).
• Customizable Colors:
o Choose different colors for each Fibonacci level.
o Customize the color of the ZigZag line.
________________________________________
🧑🏫 How to Use
1. Add the indicator to your chart on TradingView.
2. Configure the parameters according to your strategy:
o ZigZag Period: defines the sensitivity of the pivots (higher values = wider movements).
o Fibonacci Line Length: how many bars the horizontal lines should extend.
o Show ZigZag Line: check or uncheck to display the blue line between pivots.
o Colors: customize the visual appearance of the Fibonacci levels and ZigZag line.
3. Interpret the Fibonacci levels:
o Use the levels as possible support and resistance zones.
o Combine with other technical signals for more assertive entries and exits.
Institutional Trend & Liquidity Nexus [Pro]Concept & Methodology
The core philosophy of this script is "Confluence Filtering." It does not simply overlay indicators; it forces them to work together. A signal is only valid if it aligns with the macro trend and liquidity structure.
Key Components:
Trend Engine: Uses a combination of EMA (7/21) for fast entries and SMA (200) for macro trend direction. The script includes a logical filter that invalidates Buy signals below the SMA 200 to prevent counter-trend trading.
Liquidity Imbalance (FVG): Automatically detects Fair Value Gaps to identify areas where price is likely to react. Unlike standalone FVG scripts, this module is visually optimized to show support/resistance zones without obscuring price action.
Smart Confluence Zones (Originality):
The script calculates a background "State" based on multiple factors.
Bullish Zone (Green Background): Triggers ONLY when Price > SMA 200 AND RSI > 50 AND Price > Baseline EMA.
Bearish Zone (Red Background): Triggers ONLY when Price < SMA 200 AND RSI < 50 AND Price < Baseline EMA.
This visual aid helps traders stay out of choppy markets and only focus when momentum and trend are aligned.
█ How to Use
Entry: Wait for a "Triangle" signal (Buy/Sell).
Validation: Check the Background Color. Is it highlighting a Confluence Zone?
Example: A Buy Signal inside a Green Confluence Zone is a high-probability setup.
Example: A Buy Signal with no background color suggests weak momentum and should be taken with caution.
Targets: Use the plotted FVG boxes as potential take-profit targets or re-entry zones.
Trade Setup A+ [v.8 Fixed Lines]🚀 Trade Setup A+ : Liquidity Hunter System (XAUUSD)
This indicator is an "All-in-One" trading system designed specifically for XAUUSD (Gold) Scalping and Swing trading. It combines Smart Money Concepts (SMC) with Price Action to identify high-probability setups by tracking liquidity pools and institutional order blocks.
💎 Key Features (v.8 Updated):
Auto Order Blocks (Clean View):
Automatically detects and draws Bullish (Green) and Bearish (Red) Order Blocks based on swing points.
Clean Look: Limits display to the last 5 active zones to keep the chart clutter-free.
Liquidity Levels (Fixed Lines):
D-High / D-Low: Thin lines representing Previous Day’s High & Low.
W-High / W-Low: Thick lines representing Previous Week’s High & Low (Strong Support/Resistance).
Dual Entry Signals:
Method 1 (Sniper): Shows a Diamond Icon (💎) when price touches an Order Block zone (Reversal setup).
Method 2 (Follow): Shows a Triangle Arrow (🔼/🔽) when price crosses EMA 14 with trend confirmation from EMA 49.
Macro Time Zones:
Highlights high-volume trading sessions (Asia, London, NY) on the background to identify "Killzones".
📈 How to Trade:
BUY Signal: Look for a Green Diamond (Touch OB) or Green Triangle (Price > EMA 14 & 49).
SELL Signal: Look for a Red Diamond (Touch OB) or Orange Triangle (Price < EMA 14).
Best Time: Trade when signals align with highlighted Macro Time zones.
⚠️ Disclaimer: This tool is for educational purposes only. Always use proper risk management.
🚀 Trade Setup A+ : ระบบเทรดล่าสภาพคล่อง (สำหรับทองคำ)
อินดิเคเตอร์ชุดนี้ออกแบบมาเพื่อเทรด XAUUSD (ทองคำ) โดยเฉพาะ ผสมผสานเทคนิค SMC (Smart Money Concepts) และ Price Action เพื่อหาจุดเข้าที่มีความแม่นยำสูง (High Probability) โดยเน้นการดักจับสภาพคล่องของรายใหญ่ค่ะ
💎 ฟีเจอร์หลัก (อัปเดตล่าสุด v.8):
Auto Order Blocks (แบบคลีน):
สร้างกล่องโซนซื้อขาย (Supply/Demand) ให้อัตโนมัติ (สีเขียว = โซน Buy, สีแดง = โซน Sell)
Clean Look: ระบบจะโชว์เฉพาะ 5 กล่องล่าสุดเท่านั้น เพื่อไม่ให้กราฟรกสายตา
Liquidity Levels (เส้นแนวรับต้าน):
D-High / D-Low: เส้นบาง แสดงราคาสูงสุด/ต่ำสุดของ "เมื่อวาน" (Day)
W-High / W-Low: เส้นหนา แสดงราคาสูงสุด/ต่ำสุดของ "สัปดาห์ที่แล้ว" (Week) ซึ่งเป็นแนวรับต้านที่แข็งแกร่ง
สัญญาณเข้าเทรด 2 แบบ (Dual Signals):
วิธีที่ 1 (Sniper): แสดงรูป เพชร (💎) เมื่อราคาวิ่งชนขอบกล่อง Order Block (ดักจุดกลับตัวปลายไส้)
วิธีที่ 2 (Follow Trend): แสดงรูป ลูกศรสามเหลี่ยม (🔼/🔽) เมื่อราคาตัดเส้น EMA ตามเงื่อนไข (Buy ต้องยืนเหนือ EMA 14 และ 49)
Macro Time (ช่วงเวลาทำเงิน):
ระบายสีพื้นหลังบอกช่วงเวลาที่ตลาดวิ่งแรง (Asia, London, NY) เพื่อให้โฟกัสถูกจุด
📈 วิธีใช้งาน:
ขา BUY: รอสัญญาณ เพชรสีเขียว (ชนกล่องรับ) หรือ ลูกศรเขียว (ตามเทรนด์)
ขา SELL: รอสัญญาณ เพชรสีแดง (ชนกล่องต้าน) หรือ ลูกศรส้ม (ตามเทรนด์)
คำแนะนำ: ประสิทธิภาพสูงสุดเมื่อสัญญาณเกิดในช่วงเวลา Macro Time (แถบสีพื้นหลัง)
AlphaStrike: Volatility & Pinbar Reversion SystemDescription:
The Concept: Solving the "Context" Problem One of the hardest challenges in trading is identifying whether the market is in a "Trend State" or a "Mean Reversion State." Using trend indicators in a range leads to false breakouts, while using reversal indicators in a strong trend leads to catching falling knives.
This script solves this issue by combining an ATR-based Trend Filter with a conditional Price Action Reversion engine. It does not simply overlay two indicators; it uses a filtering logic to ensure that Reversal signals are only generated when Momentum, Volatility, and Candle Geometry all align at the same time.
How It Works (The Logic) This script functions as a "Hybrid" system with two distinct engines running simultaneously:
1. The Trend Engine (Bias Filter) We use an ATR-based SuperTrend calculation to determine the dominant market direction.
Purpose: This acts as a "No Trade Zone" filter.
Logic: If the Trend Line is Green, the statistical bias is bullish. If Red, the bias is bearish. This helps traders avoid shorting strong uptrends or buying weak downtrends.
2. The Reversal Engine (Signal Generator) This is where the script differentiates itself from standard "Bollinger + RSI" mashups. A signal is NOT generated just because price hits a band. The script requires a specific "Pinbar" candle pattern to validate the move.
The "Blue Dot" (Bullish Reversal) Logic:
Condition A: Price must be below the Lower Bollinger Band (2 Standard Deviations).
Condition B: RSI (14) must be Oversold (< 35).
Condition C (The Filter): The candle must form a Bullish Pinbar. The script calculates the ratio of the lower wick to the body. If the wick is 2x longer than the body, it confirms that buyers actively rejected the lower prices.
The "Orange Dot" (Bearish Reversal) Logic:
Condition A: Price must be above the Upper Bollinger Band.
Condition B: RSI (14) must be Overbought (> 65).
Condition C (The Filter): The candle must form a Bearish Pinbar (long upper wick), indicating buyer exhaustion.
Visual Guide & Usage
Green/Red Line: Use this to trail your Stop Loss or determine trend direction.
Triangles (Breakouts): These marks indicate a shift in volatility where the trend officially flips.
Dots (Reversals): These are high-probability zones for scalps or entering on pullbacks.
Built-In Risk Management To assist with position sizing, a "Smart Risk" table is included in the bottom right corner.
It automatically detects the nearest market structure (Swing Highs/Lows).
It calculates the distance from the current price to that structure.
It displays the suggested position size to maintain a fixed risk percentage (configurable in Settings).
Note: You must input your Account Balance in the settings for this to work.
Settings
Crypto: Default settings (Factor 3.5) are optimized for high-volatility assets like BTC/ETH to reduce noise.
TradFi: For Forex or Stocks, consider lowering the Factor to 3.0.
Disclaimer This tool is designed for educational analysis and risk management assistance. It does not constitute financial advice. Past performance of signals (like those shown on the chart) does not guarantee future results. Always manage your risk.
MTF OB & FVG detector w/ Alerts v2# MTF Order Blocks & Fair Value Gaps Detector with Alerts v2
## Overview
This indicator combines **Multi-Timeframe Order Blocks (OB)** and **Fair Value Gaps (FVG)** detection with integrated bounce alerts. It displays Order Blocks and Fair Value Gaps across multiple timeframes simultaneously and generates real-time alerts when price bounces from these critical zones.
## Key Features
### 🎯 Multi-Timeframe Order Blocks Detection
- **Volumetric Analysis**: Each Order Block displays total volume and dominant side percentage
- **Multiple Timeframes**: Supports 1min, 3min, 5min, 15min, and 60min timeframes
- **Smart Combining**: Automatically merges overlapping Order Blocks from different timeframes into powerful confluence zones
- **Dynamic Extension**: Order Blocks extend until broken, providing clear visual guidance
- **Volume Distribution**: Shows bullish vs bearish volume breakdown with percentage
### 📊 Fair Value Gaps (FVG) Detection
- **Lightweight Processing**: Works on current chart timeframe only for optimal performance
- **Volume Metrics**: Displays FVG volume and dominant side percentage
- **Mitigation Tracking**: Automatically tracks when FVGs are filled or broken
- **Customizable Mitigation Source**: Choose between close price or high/low wicks
### 🔔 Comprehensive Alert System
- **Bounce Alerts**: Get notified when price bounces from OB or FVG zones
- **New Formation Alerts**: Alerts when new Order Blocks or Fair Value Gaps form
- **Combined Zone Alerts**: Special alerts when multiple Order Blocks merge into strong confluence zones
- **Customizable Thresholds**: Set minimum number of combined OBs required for strong zone alerts
### 🎨 Visual Customization
- **Inverted Color Schemes**: Optional inverted colors for both OB and FVG
- OB: Choose between traditional (Bullish=Blue, Bearish=Red) or inverted (Bullish=Red, Bearish=Blue)
- FVG: Choose between Bullish=Orange/Bearish=Aqua or inverted
- **Clean Labels**: Shows timeframe, zone type, volume, and dominant percentage
- **Combined Tags**: Optional labels for merged zones
- **Adjustable Extension**: Control how far zones extend into the future
## How It Works
### Order Blocks
Order Blocks identify institutional trading zones where large players have placed significant orders. The indicator:
1. Detects swing highs/lows using configurable swing length
2. Identifies the last opposing candle before a strong move
3. Analyzes volume distribution (bullish vs bearish)
4. Tracks zone validity until price breaks through
5. Combines overlapping zones from multiple timeframes
### Fair Value Gaps
Fair Value Gaps represent price imbalances that often get filled. The indicator:
1. Identifies 3-candle patterns with gaps between candles
2. Filters gaps by size percentile to show only significant ones
3. Calculates volume distribution within the gap
4. Tracks mitigation when price returns to fill the gap
5. Extends gaps dynamically until filled
### Bounce Detection
The indicator detects bounces using a two-step process:
1. **Touch Phase**: Tracks when price enters a zone (touchedInside flag)
2. **Bounce Phase**: Confirms bounce when price exits the zone in the expected direction
- Bullish zones: Price closes above top after touching inside
- Bearish zones: Price closes below bottom after touching inside
## Settings Guide
### General Configuration
- **Show Historic Zones**: Display invalidated/broken zones
- **Zone Invalidation**: Choose between wick or close for break detection
- **Combine Overlapping Order Blocks**: Merge OBs from different timeframes
- **Swing Length**: Controls sensitivity (smaller = more OBs, larger = fewer OBs)
- **Zone Count**: Choose from High/Medium/Low/One per timeframe
- **Invert Colors OB**: Swap bullish/bearish color scheme
### Alert Settings
- **Enable Alerts**: Master switch for all alerts
- **Alert on Bullish/Bearish Bounce**: Choose which bounce directions to monitor
- **Alert on New OB Formation**: Get notified when new Order Blocks form
- **Alert on Combined OBs**: Alerts for strong confluence zones
- **Min OBs for Strong Zone Alert**: Threshold for combined zone alerts (default: 2)
### Fair Value Gaps
- **Show Fair Value Gaps**: Toggle FVG display
- **FVG Mitigation Source**: Choose close or high/low for mitigation detection
- **Bullish/Bearish FVG**: Enable/disable each type
- **Invert FVG Colors**: Swap FVG color scheme
### Multi-Timeframe
- **Show Lower Timeframes**: Display OBs from timeframes lower than chart
- **Individual Timeframe Toggles**: Enable/disable 1min, 3min, 5min, 15min, 60min
### Style
- **Text Color**: Customize label text color
- **Extend Zones**: Set extension length in bars (default: 40)
- **Show Tag**: Display combined indicator in merged zone labels
## Usage Tips
### For Day Trading
- Enable 1min, 3min, and 5min timeframes
- Use "High" zone count for more trading opportunities
- Watch for bounces from combined zones (highest probability)
### For Swing Trading
- Enable 15min, 60min, and higher timeframes
- Use "Medium" or "Low" zone count for major zones only
- Focus on combined zones with 3+ timeframes
### For Scalping
- Use current timeframe only (disable MTF)
- Enable both OB and FVG
- Set up alerts for quick bounce notifications
### Alert Setup
1. Click "Create Alert" in TradingView
2. Choose from available alert conditions:
- **Bullish Bounce (OB/FVG)**: Long entry opportunities
- **Bearish Bounce (OB/FVG)**: Short entry opportunities
- **New OB Formation**: Early zone identification
- **Strong Combined Zone**: High-probability confluence areas
3. Set alert frequency to "Once Per Bar Close" to avoid false signals
## Technical Details
### Performance Optimizations
- Maximum 100 boxes/labels for efficient rendering
- Lightweight FVG processing on current timeframe only
- Dynamic memory management with array size limits
- Selective rendering of active zones only
### Calculations
- **ATR Multiplier**: Zones exceeding 3.5x ATR are filtered out
- **Volume Percentage**: `max(bullVol, bearVol) / totalVolume × 100`
- **FVG Size Filter**: Uses 100th percentile of last 1000 gaps
- **Overlap Detection**: Uses intersection/union ratio for combining zones
## Credits & License
This indicator combines and enhances concepts from:
- "Volumized Order Blocks" methodology
- "Volumatic Fair Value Gaps" approach
**License**: Mozilla Public License 2.0 (MPL-2.0)
## Disclaimer
This indicator is provided for **educational and informational purposes only**. Trading involves substantial risk of loss and is not suitable for every investor. Past performance is not indicative of future results. Always do your own research and consult with a licensed financial advisor before making trading decisions.
## Version History
**v2 (Current)**
- Combined OB and FVG into single indicator
- Added comprehensive alert system
- Improved performance with lightweight FVG processing
- Enhanced bounce detection with touch-inside logic
- Added volume metrics to zone labels
- Implemented dynamic zone extension until broken
- Added combined zone detection with configurable thresholds
---
### Chart Examples
The indicator displays:
- **Red Zones** (Inverted): Bullish Order Blocks / Bearish FVGs
- **Blue Zones** (Inverted): Bearish Order Blocks / Bullish FVGs
- **Orange Zones** (Inverted): Bullish Fair Value Gaps
- **Aqua Zones** (Inverted): Bearish Fair Value Gaps
Each zone shows:
- Timeframe label (e.g., "5m", "15m", "1H")
- Zone type (OB or FVG)
- Total volume in millions (e.g., "12.5M")
- Dominant side percentage (e.g., "85%")
**Example Label**: ` 5m & 15m OB 45.2M (78%)`
- Combined zone from 5min and 15min timeframes
- Order Block type
- 45.2 million total volume
- 78% volume on dominant side
---
## Support & Updates
For issues, suggestions, or questions, please leave a comment on the indicator page.
**Author**: © rasukaru666
**Compatible with**: TradingView Pine Script v6
ADX Trend VisualizerThis is an enhanced version of the excellent indicator created by ⓒ BeikabuOyaji (Thank You!).
I've made it more visually intuitive by improving the ADX DI line crossover visualization and adding signal alerts.
This indicator utilizes standard ADX calculations and focuses on intuitive visual separation of signals.
It serves as an excellent reference tool for comparison with existing indicators.
Tamil | MTF DashboardThe Tamil | MTF Dashboard is a powerful multi-timeframe (MTF) market strength and trend-bias analyzer designed to give traders a fast, at-a-glance understanding of market conditions across 7 timeframes.
This dashboard consolidates essential indicators into a clean table plus a dynamic bias label that updates live with the chart timeframe.
⸻
✅ What This Dashboard Shows
1. RSI (Multi-Timeframe)
• Uses custom color logic:
• Green: RSI > 55
• Red: RSI < 45
• Gray: Neutral zone (45–55)
• Quickly identifies momentum shifts across multiple timeframes.
2. Stochastic (Multi-Timeframe)
• Values clamped to 0–100
• Color-coded:
• Oversold (<20): Green
• Overbought (>80): Red
• Neutral: Gray
3. Supertrend Direction
• Returns Buy / Sell / Neutral per timeframe
• Color-coded trend bias for quick directional confirmation.
4. Moving Average Trend (SMA or EMA)
• Choose between SMA or EMA
• Shows whether price is above/below MA
• Above MA → Bullish (Buy)
• Below MA → Bearish (Sell)
5. Combined Score (-4 to +4)
A powerful numeric sentiment summarizing 4 trend components:
• RSI score
• Stochastic score
• Supertrend score
• MA trend score
Each indicator contributes -1, 0, or +1, giving a total score:
• +2 to +4 = Bullish
• -2 to -4 = Bearish
• Between -1 and +1 = Neutral
Includes Trend Strength:
• Very Weak
• Weak
• Moderate
• Strong
All shown inside the Score cell per timeframe.
⸻
📌 Bias Label (Chart Timeframe Only)
Displays real-time information for the active chart timeframe:
• Bias (Bullish / Bearish / Neutral)
• Combined Score
• ATR value
• ADX value (0–100, DI-based calculation)
Perfect for gauging trend strength without cluttering the chart.
⸻
🧩 Supported Timeframes
The dashboard updates the following timeframes simultaneously:
• 1m, 3m, 5m, 15m, 1H, 4H, 1D
⸻
🎯 Designed For
• Intraday traders
• Swing traders
• Scalpers
• Multi-timeframe analysts
• Traders who want instant visual confirmation of market strength
⸻
⭐ Why This Dashboard Is Unique
• True multi-timeframe aggregation
• Custom, realistic scoring engine
• Accurate ADX (0–100) matching textbook DI calculation
• Clean color logic for fast interpretation
• Zero repainting (uses standard indicators + request.security)
• Works on any market: Stocks, Crypto, Forex, Futures
CRR BUY/SELL This is a dual engine (BUY and SELL) for scalping/micro trading on XAUUSD (10–20 pips), all in a single indicator:
Reads 1m, 5m, 15m, 30m (trend + momentum).
It has separate BUY and SELL engines.
It shows you in a central HUD:
Left side → BUY status.
Right side → SELL status.
Bottom → indicators + extra info + NY time.
1️⃣ Internal Engines
🔹 Shared Multi-TF
On 1m, 5m, 15m, 30m it calculates:
EMA 15/30/200 → bullish/bearish trend.
MACD → momentum.
RSI → strength.
From this comes:
t1, t2, t3, t4 =
1 = bullish,
-1 = bearish,
0 = neutral.
bullScore = how many TFs are bullish.
bearScore = how many TFs are bearish.
2️⃣ BUY Engine (BUY BOX)
Own Inputs:
Mode: aggressiveMicroBuy → yes/no.
Sensitivity: Normal / High / Turbo.
Filter for:
strong upward candle (ticks ≈ pips),
minimum ATR in pips,
minimum 1m bullish candle body.
Calculations:
Converts ATR to pips (atrPipsBuy) and validates sufAtrBuy.
Calculates momentumBull1 (1m):
large bullish candle in pips,
MACD bullish,
RSI bullish.
1m Micro signal “BUY WITHOUT PULLBACK” (buyNoPull):
EMA 15 > EMA 30 > EMA 200 (strong bullish trend on 1m),
MACD crosses upwards,
Price above EMA 30 1m.
Multi-TF Bull (multiTfBull):
Normal Mode: 1m bullish and 5-15-30m not against. High/Turbo Mode: bullScore >= 2.
Final BUY condition:
Conservative:
buyNoPull + multiTfBull + sufAtrBuy + momentumBull1
Aggressive:
(t1 == 1 or bigPumpBuy) + 15m not bearish + sufAtrBuy
condBuyFinal chooses between conservative/aggressive based on aggressiveMicroBuy.
3️⃣ SELL Engine (SELL BOX)
It's the bearish mirror of the BUY:
Own inputs:
aggressiveMicroSell, SELL Sensitivity, strong drop in ticks, ATR SELL, minimum bearish body.
Calculations:
ATR → pips (atrPipsSell) and sufAtrSell.
momentumBear1: strong red candle in 1m + MACD bear + RSI bear.
1m Micro signal “SELL WITHOUT PULLBACK” (sellNoPull):
EMA 15 < EMA 30 < EMA 200 (strong bearish trend 1m),
MACD crosses downwards,
Price below EMA 30 1m.
Multi–TF Bear (multiTfBear):
Normal: 1m bearish and 5–15–30m not against.
High/Turbo: bearScore >= 2.
Final SELL condition:
Conservative:
sellNoPull + multiTfBear + sufAtrSell + momentumBear1
Aggressive:
(t1 == -1 or bigDropSell) + 15m not bullish + sufAtrSell
condSellFinal based on aggressiveMicroSell.
4️⃣ Clock and Sessions
Calculates New York time.
Classifies session:
TOKYO (20–03),
LONDON (03–08),
NEW YORK (08–17).
Displays clockText (NY time) in the HUD.
5️⃣ Central HUD (double)
Table at the top center with 6 columns:
Columns 0–2 → BUY
Row 1: STATUS: MICRO BUY / NORMAL BUY / NEUTRAL.
Row 2: Light bulb + text:
STRONG RISE,
MULTI TF BULLISH,
NO SETUP. Columns 3–5 → SELL
Row 1: STATUS: MICRO SELL / NORMAL SELL / NEUTRAL
Row 2: Lightbulb + text:
SHARP DROP,
MULTI TF BEARISH,
NO SETUP.
In BUY, column 2 of the last row shows the NY time.
6️⃣ Footprint on the chart
Only when a new signal appears (not repeated):
buySignal = condBuyFinal and not condBuyFinal .
sellSignal = condSellFinal and not condSellFinal .
Draw:
Bar color:
Green on BUY candle.
Red on SELL candle.
Triangles:
BUY below the candle.
SELL above the candle.
7️⃣ Alerts
CRR BUY SCALPING → when condBuyFinal is true.
CRR SELL SCALPING → when condSellFinal is true.
🧩 In a sentence:
This is your master micro-scalping BUY/SELL panel, which combines multi-timeframe analysis, 1m momentum, ATR in pips, and strong candles, and summarizes it for you in a dual HUD (BUY on the left, SELL on the right) + clear markers on the exact trigger candle.
3-Bar Inversion Pattern (Entry & Invalidation Levels)Very simple 3-bar inversion pattern looking for a bar that extends in the previous bar's direction, bar 2 having a body no bigger than 50% of bar 1's. and Bar 3 having a body close beyond the open of bar 1. Invalidation is set to the highest point of the 3 par pattern.
CRR Birgua HUD (HH-HL / LL-LH)CRR Birgua HUD (HH-HL / LL-LH) essentially does three things:
Detects price structure using pivots.
Marks highs as:
HH = Higher High
LH = Lower High
Marks lows as:
HL = Higher Low
LL = Lower Low
It uses a pivot length (pivotLen, default 3) to find these turning points.
Measures the “Birgua” (impulse correction).
In a downtrend:
When an LH appears, it measures how much the retracement rose from the last low to that LH.
In an uptrend:
When an HL appears, it measures how much the retracement fell from the last high to that HL.
It calculates two things:
% correction (birgua_lastPct)
ATR multiples (birgua_lastAtrMult)
It only considers it “valid” if:
% correction ≥ birgua_minBirguaPc (e.g., 25%)
ATR multiple ≥ birgua_minAtrMult (e.g., 0.5)
If valid: it labels it with OK; otherwise: SMALL.
Creates a HUD and a “Birgua Score.”
Calculates a Birgua Score (0–100):
Starts at 50.
If the last Birgua was at an HL (strong bullish), it increases from 50.
If it was at an LH (strong bearish), it decreases from 50.
It can draw a line at the bottom with this score if you enable Show Birgua Score.
At the top of the screen, it displays a HUD with:
Direction: BULL (HL), BEAR (LH), or NEUTRAL.
B: XX.X% (Birgua percentage).
ATR: X.XX (ATR multiples).
Strength: Strong / Weak / N/A based on the minimums you defined.
🧠 Quick Use:
HL + strong Birgua → probable bullish continuation.
LH + strong Birgua → probable bearish continuation.
The HUD summarizes whether the last correction was strong or weak and on which side (bull or bear).
US Market Long Horizon Momentum Summary in one paragraph
US Market Long Horizon Momentum is a trend following strategy for US index ETFs and futures built around a single eighteen month time series momentum measure. It helps you stay long during persistent bull regimes and step aside or flip short when long term momentum turns negative.
Scope and intent
• Markets. Large cap US equity indices, liquid US index ETFs, index futures
• Timeframes. 4h/ Daily charts
• Default demo used in the publication. SPY on 4h timeframe chart
• Purpose. Provide a minimal long bias index timing model that can reduce deep drawdowns and capture major cycles without parameter mining
• Limits. This is a strategy. Orders are simulated on standard candles only
Originality and usefulness
• Unique concept or fusion. One unscaled multiple month log return of an external benchmark symbol drives all entries and exits, with optional volatility targeting as a single risk control switch.
• Failure mode addressed. Fully passive buy and hold ignores the sign of long horizon momentum and can sit through multi year drawdowns. This script offers a way to step down risk in prolonged negative momentum without chasing short term noise.
• Testability. All parameters are visible in Inputs and the momentum series is plotted so users can verify every regime change in the Tester and on price history.
• Portable yardstick. The log return over a fixed window is a unit that can be applied to any liquid symbol with daily data.
Method overview in plain language
The method looks at how far the benchmark symbol has moved in log return terms over an eighteen month window in our example. If that long horizon return is positive the strategy allows a long stance on the traded symbol. If it is negative and shorts are enabled the strategy can flip short, otherwise it goes flat. There is an optional realised volatility estimate on the traded symbol that can scale position size toward a target annual volatility, but in the default configuration the model uses unit leverage and only the sign of momentum matters.
Base measures
Return basis. The core yardstick is the natural log of close divided by the close eighteen months ago on the benchmark symbol. Daily log returns of the traded symbol feed the realised volatility estimate when volatility targeting is enabled.
Components
• Component one Momentum eighteen months. Log of benchmark close divided by its close mom_lookback bars ago. Its sign defines the trend regime. No extra smoothing is applied beyond the long window itself.
• Component two Realised volatility optional. Standard deviation of daily log returns on the traded symbol over sixty three days. Annualised by the square root of 252. Used only when volatility targeting is enabled.
• Optional component Volatility targeting. Converts target annual volatility and realised volatility into a leverage factor clipped by a maximum leverage setting.
Fusion rule
The model uses a simple gate. First compute the sign of eighteen month log momentum on the benchmark symbol. Optionally compute leverage from volatility. The sign decides whether the strategy wants to be long, short, or flat. Leverage only rescales position size when enabled and does not change direction.
Signal rule
• Long suggestion. When eighteen month log momentum on the benchmark symbol is greater than zero, the strategy wants to be long.
• Short suggestion. When that log momentum is less than zero and shorts are allowed, the strategy wants to be short. If shorts are disabled it stays flat instead.
• Wait state. When the log momentum is exactly zero or history is not long enough the strategy stays flat.
• In position. In practice the strategy sits IN LONG while the sign stays positive and flips to IN SHORT or flat only when the sign changes.
Inputs with guidance
Setup
• Momentum Lookback (months). Controls the horizon of the log return on the benchmark symbol. Typical range 6 to 24 months. Raising it makes the model slower and more selective. Lowering it makes it more reactive and sensitive to medium term noise.
• Symbol. External symbol used for the momentum calculation, SPY by default. Changing it lets you time other indices or run signals from a benchmark while trading a correlated instrument.
Logic
• Allow Shorts. When true the strategy will open short positions during negative momentum regimes. When false it will stay flat whenever momentum is negative. Practical setting is tied to whether you use a margin account or an ETF that supports shorting.
Internal risk parameters (not exposed as inputs in this version) are:
• Target Vol (annual). Target annual volatility for volatility targeting, default 0.2.
• Vol Lookback (days). Window for realised volatility, default 63 trading days.
• Max Leverage. Cap on leverage when volatility targeting is enabled, default 2.
Usage recipes
Swing continuation
• Signal timeframe. Use the daily chart.
• Benchmark symbol. Leave at SPY for US equity index exposure.
• Momentum lookback. Eighteen months as a default, with twelve months as an alternative preset for a faster swing bias.
Properties visible in this publication
• Initial capital. 100000
• Base currency. USD
• Default order size method. 5% of the total capital in this example
• Pyramiding. 0
• Commission. 0.03 percent
• Slippage. 3 ticks
• Process orders on close. On
• Bar magnifier. Off
• Recalculate after order is filled. Off
• Calc on every tick. Off
• All request.security calls use lookahead = barmerge.lookahead_off
Realism and responsible publication
The strategy is for education and research only. It does not claim any guaranteed edge or future performance. All results in Strategy Tester are hypothetical and depend on the data vendor, costs, and slippage assumptions. Intrabar motion is not modeled inside daily bars so extreme moves and gaps can lead to fills that differ from live trading. The logic is built for standard candles and should not be used on synthetic chart types for execution decisions.
Performance is sensitive to regime structure in the US equity market, which may change over time. The strategy does not protect against single day crash risk inside bars and does not model gap risk explicitly. Past behavior of SPY and the momentum effect does not guarantee future persistence.
Honest limitations and failure modes
• Long sideways regimes with small net change over eighteen months can lead to whipsaw around the zero line.
• Very sharp V shaped reversals after deep declines will often be missed because the model waits for momentum to turn positive again.
• The sample size in a full SPY history is small because regime changes are infrequent, so any test must be interpreted as indicative rather than statistically precise.
• The model is highly dependent on the chosen lookback. Users should test nearby values and validate that behavior is qualitatively stable.
Legal
Education and research only. Not investment advice. You are responsible for your own decisions. Always test on historical data and in simulation with realistic costs before any live use.
ATR ZigZag BreakoutATR ZigZag Breakout
This strategy uses my ATR ZigZag indicator (powered by the ZigZagCore library) to scalp breakouts at volatility-filtered highs and lows.
Everyone knows stops cluster around clear swing highs and lows. Breakout traders often pile in there, too. These levels are predictable areas where aggressive orders hit the tape. The idea here is simple:
→ Let ATR ZigZag define clean, volatility-filtered pivots
→ Arm a stop market order at those pivots
→ Join the breakout when the crowd hits the level
The key to greater success in this simple strategy lies in the ZigZag. Because the pivots are filtered by ATR instead of fixed bar counts or fractals, the levels tend to be more meaningful and less noisy.
This approach is especially suited for intraday trading on volatile instruments (e.g., NQ, GC, liquid crypto pairs).
How It Works
1. Pivot detection
The ATR ZigZag uses an ATR-based threshold to confirm swing highs and lows. Only when price has moved far enough in the opposite direction does a pivot become “official.”
2. Candidate breakout level
When a new swing direction is detected and the most recent high/low has not yet been broken in the current leg, the strategy arms a stop market order at that pivot.
• Long candidate → most recent swing high
• Short candidate → most recent swing low
These “candidate trades” are shown as dotted lines.
3. Entry, SL, and TP
If price breaks through the level, the stop order is filled and a bracket is placed:
• Stop loss = ATR × SL multiplier
• Take profit = SL distance × RR multiplier
Once a level has traded, it is not reused in the same swing leg.
4. Cancel & rotate
If the market reverses and forms a new swing in the opposite direction before the level is hit, the pending order is cancelled and a new candidate is considered in the new direction.
Additional Features
• Optional session filter for backtesting specific trading hours
FVG Maxing - Fair Value Gaps, Equilibrium, and Candle Patterns
What this script does
This open-source indicator highlights 3-candle fair value gaps (FVGs) on the active chart timeframe, draws their midpoint ("equilibrium") line, tracks when each gap is mitigated, and optionally marks simple candle patterns (engulfing and doji) for confluence. It is intended as an educational tool to study how price interacts with imbalances.
3-candle bullish and bearish FVG zones drawn as forward-extending boxes.
Equilibrium line at 50% of each gap.
Different styling for mitigated vs unmitigated gaps.
Compact statistics panel showing how many gaps are currently active and filled.
Optional overlays for bullish/bearish engulfing patterns and doji candles.
1. FVG logic (3-candle gaps)
The script focuses on a strict 3-candle definition of a fair value gap:
Three consecutive candles with the same body direction.
The wick of candle 3 is separated from the wick of candle 1 (no overlap).
A bullish gap is created when price moves up fast enough to leave a gap between candle 1 and 3. A bearish gap is the mirror case to the downside.
In Pine, the core detection looks like this:
// Three candles with the same body direction
bull_seq = close > open and close > open and close > open
bear_seq = close < open and close < open and close < open
// Wick gap between candle 1 and candle 3
bull_gap = bull_seq and low > high
bear_gap = bear_seq and high < low
// Final FVG flags
is_bull_fvg = bull_gap
is_bear_fvg = bear_gap
For each detected FVG:
Bullish FVG range: from high up to low (gap below current price).
Bearish FVG range: from low down to high (gap above current price).
Each zone is stored in a custom FVGData structure so it can be updated when price later trades back inside it.
2. Equilibrium line (0.5 of the gap)
Every FVG box gets an optional equilibrium line plotted at the midpoint between its top and bottom:
eq_level = (top + bottom) / 2.0
right_index = extend_boxes ? bar_index + extend_length_bars : bar_index
bx = box.new(bar_index - 2, top, right_index, bottom)
eq_ln = line.new(bar_index - 2, eq_level, right_index, eq_level)
line.set_style(eq_ln, line.style_dashed)
line.set_color(eq_ln, eq_color)
You can use this line as a neutral “fair value” reference inside the zone, or as a simple way to think in terms of premium/discount within each gap.
3. Mitigation rules and styling
Each FVG stays active until price trades back into the gap:
Bullish FVG is considered mitigated when the low touches or moves below the top of the gap.
Bearish FVG is considered mitigated when the high touches or moves above the bottom of the gap.
When that happens, the script:
Marks the internal FVGData entry as mitigated.
Softens the box fill and border colors.
Optionally updates the label text from "BULL EQ / BEAR EQ" to "BULL FILLED / BEAR FILLED".
Can hide mitigated zones almost completely if you only want to see unfilled imbalances.
This allows you to distinguish between current areas of interest and zones that have already been traded through.
4. Candle pattern overlays (engulfing and doji)
For additional confluence, the script can mark simple candle patterns on top of the FVG view:
Bullish engulfing — current candle body fully wraps the previous bearish body and is larger in size.
Bearish engulfing — current candle body fully wraps the previous bullish body and is larger in size.
Doji — candles where the real body is small relative to the full range (high–low).
The detection is based on basic body and range geometry:
curr_body = math.abs(close - open)
prev_body = math.abs(close - open )
curr_range = high - low
body_ratio = curr_range > 0 ? curr_body / curr_range : 1.0
bull_engulfing = close > open and close < open and open <= close and close >= open and curr_body > prev_body
bear_engulfing = close < open and close > open and open >= close and close <= open and curr_body > prev_body
is_doji = curr_range > 0 and body_ratio <= doji_body_ratio
On the chart, they appear as:
Small triangle markers below bullish engulfing candles.
Small triangle markers above bearish engulfing candles.
Small circles above doji candles.
All three overlays are optional and can be turned on or off and recolored in the CANDLE PATTERNS group of inputs.
5. Inputs overview
The script organizes settings into clear groups:
DISPLAY SETTINGS : Show bullish/bearish FVGs, show/hide mitigated zones, box extension length, box border width, and maximum number of boxes.
EQUILIBRIUM : Toggle equilibrium lines, color, and line width.
LABELS : Enable labels, choose whether to label unmitigated and/or mitigated zones, and select label size.
BULLISH COLORS / BEARISH COLORS : Separate fill and border colors for bullish and bearish gaps.
MITIGATED STYLE : Opacity used when a gap is marked as mitigated.
STATISTICS : Toggle the on-chart FVG statistics panel.
CANDLE PATTERNS : Show engulfing patterns, show dojis, colors, and the body-to-range threshold that defines a doji.
6. Statistics panel
An optional table in the corner of the chart summarizes the current state of all tracked gaps:
Total number of FVGs still being tracked.
Number of bullish vs bearish FVGs.
Number of unfilled vs mitigated FVGs.
Simple fill rate: percentage of tracked FVGs that have been marked as mitigated.
This can help you study how a particular market tends to treat gaps over time.
7. How you might use it (examples)
These are usage ideas only, not recommendations:
Study how often your symbol mitigates gaps and where inside the zone price tends to react.
Use higher-timeframe context and then refine entries near the equilibrium line on your trading timeframe.
Combine FVG zones with basic candle patterns (engulfing/doji) as an extra visual anchor, if that fits your process.
Hope you enjoy, give your feedback in the comments!
- officialjackofalltrades






















