Session Liquidity Reversion Strategy (Asia Range False Breakout)Overview
This strategy is based on a session-driven liquidity hypothesis rather than a simple indicator combination.
During the Asian trading session, many markets enter a low-liquidity equilibrium, forming a relatively narrow price range. When higher-volume participants enter during the London and New York sessions, price often performs false expansions beyond this Asian range before reverting back toward fair value.
This script systematically identifies and trades those failed session expansions.
Core Concept
The strategy operates in three distinct phases:
Asia Session Range Formation
The high and low of the Asian session are recorded.
This range represents a temporary balance area formed under reduced participation.
Range Locking
Once the Asian session ends, the range is frozen.
No repainting or forward-looking calculations are used.
False Breakout Detection & Reversion
During the London/New York session, price must break beyond the Asia range and fail to hold.
A momentum filter (RSI) confirms rejection strength.
Trades are entered only after price closes back inside the range, targeting reversion rather than continuation.
This approach avoids chasing breakouts and instead focuses on liquidity traps and failed expansions.
Risk Management & Assumptions
Risk parameters are intentionally conservative and realistic:
Position sizing uses percentage of equity
Default risk per trade is approximately 2%
Stop losses are ATR-based, adapting to volatility
Risk-to-reward is fixed and configurable
Realistic commission and slippage are included
One trade per session is allowed to avoid over-exposure
No martingale, grid, or averaging logic is used.
Usage Notes
Recommended timeframes: 5m – 30m
Designed for: Forex, Indices, Crypto
Performance will vary by instrument and session volatility
All parameters are configurable for research and optimization
This strategy is intended for educational and research purposes, demonstrating how session-based liquidity behavior can be tested systematically using Pine Script.
지표 및 전략
Naked POCThis indicator is designed for precision traders who need to identify Institutional Footprints and Naked POCs (nPOC) without cluttering the chart. It solves the common problem of "too many signals" during trend continuations while preserving critical reversal signals (like high-volume Dojis).
🚀 Key Features
1. Fusion Technology (Global Liquidity View)
Unlike standard indicators that only look at your current chart's volume, Fusion aggregates real-time Spot volume from major exchanges (Binance, Coinbase, OKX, Bybit) simultaneously.
Why? Futures follow Spot. This reveals the true liquidity wall across the entire market, filtering out fake pump/dump moves on a single derivative exchange.
Supports BTC & ETH pairs automatically.
2. Peak Hunter Algorithm (Smart Noise Filtering)
This is the core upgrade. Instead of marking every high-volume candle (which creates a mess during waterfalls/rallies), the Peak Hunter logic only marks a level if:
The volume is a Local Peak (higher than the past $N$ candles).
Result: It ignores "follow-through" candles in a trend but perfectly captures the Start (Ignition) and the End (Stopping Volume / Doji) of a move.
3. Micro-Structure POC (The "Microscope")
When a 30m or 4H candle triggers a signal, where exactly is the support?
This script scans the internal 1-minute or 15-second data (Lower Timeframe) inside that candle to find the exact price level with the highest volume.
Note: 15s scanning requires a Premium plan; 1m works for all.
4. Smart Lifecycle Management
nPOC Lines: Support/Resistance lines extend automatically until price tests them.
Touch Limit: Once price touches a line $X$ times (configurable), the line "dies" and becomes dotted/expired, keeping your chart clean.
ROC-WMA bull bear indicatorROC-Weighted MA Oscillator
By Ludovic B
Modified source code of SeerQuant
The ROC-Weighted MA Oscillator (ROCWMA) is a momentum-driven oscillator designed to expose hidden acceleration and deceleration phases in price action by dynamically weighting a moving average with the normalized Rate of Change (ROC).
Instead of treating all price deviations equally, this indicator amplifies meaningful moves and suppresses low-energy noise, making it particularly effective in scalping, intraday trading, and momentum reversals.
🔧 Core Concept
A base moving average (SMA, EMA, TEMA, DEMA, HMA, ALMA, etc.)
Weighted by normalized ROC
Transformed into a Z-score oscillator for comparability across assets
Smoothed with a signal line for timing precision
Result: a context-aware oscillator that adapts to market intensity.
📊 What the Oscillator Shows
Bullish momentum when histogram is positive and expanding
Bearish momentum when histogram is negative and expanding
Neutral zone to filter chop and avoid over-trading
Automatic color logic to highlight regime changes
Optional candle coloring reflects the active momentum state.
🎯 Signal-Based Price Markers (Advanced Feature)
This script includes price-chart markers when:
The signal line retraces to X% of the maximum oscillator bar of the current momentum phase
AND the signal slope confirms exhaustion (rising or falling)
Key characteristics:
Adaptive thresholds (relative, not fixed)
Separate logic for bullish and bearish phases
Reset on each neutral-zone transition
Configurable number of markers per momentum cycle
This makes the indicator particularly useful for:
Pullback entries
Momentum fading
Timing partial exits
⚙️ Customization
Fully adjustable ROC length, MA type, signal length
Neutral zone threshold control
Multiple color schemes
Optional candle coloring
Adaptive signal-to-oscillator percentage logic
🧠 Best Use Cases
Scalping (M1–M5)
Intraday momentum confirmation
Pullback and exhaustion detection
Cross-asset trading (FX, indices, crypto, metals)
ROCWMA is not a lagging oscillator.
It is a momentum intensity detector built to reveal when price moves matter.
PowerGaps - Multi-Timeframe Fair Value GapsPowerGaps — Multi‑Timeframe Fair Value Gap Engine
PowerGaps is a precision‑built, multi‑timeframe Fair Value Gap (FVG) engine designed for traders who rely on clean, reliable market structure signals without noise, repainting, or clutter.
It automatically detects and plots institutional FVGs from higher timeframes directly onto your current chart, giving you a clear view of premium/discount imbalances and liquidity inefficiencies that matter most.
What PowerGaps Does
• Scans four customizable timeframes (e.g., M5, M15, H1, H4) for valid bullish and bearish FVGs
• Projects those HTF gaps onto any lower timeframe chart
• Colors and labels each gap by timeframe for instant visual recognition
• Tracks each gap until it is mitigated by wick touch, then automatically closes and removes it
• Ensures no repainting, no duplicates, and no phantom gaps
• Maintains perfect alignment across timeframes using a robust, cross‑TF‑safe architecture
Why It’s Different
PowerGaps is engineered with a strict validation and mitigation system that prevents the common issues seen in many FVG indicators:
• No repeated stacking of the same gap
• No gaps disappearing when switching timeframes
• No false mitigation signals
• No stale or corrupted objects left behind
Every plotted gap is intentional, accurate, and actionable.
Ideal For
• ICT‑style traders
• Liquidity and imbalance‑based strategies
• HTF bias mapping
• Scalpers who rely on HTF inefficiencies
• Swing traders looking for clean continuation or reversal zones
Inputs & Customization
• Enable/disable each timeframe independently
• Choose custom colors for bullish and bearish gaps
• Full control over which timeframes you want projected onto your chart
VWMA 200 (HTF) + Fibonacci BandsVWMA 200 (HTF) + Fibonacci Bands + VWAP Trend Dashboard
This indicator combines a Higher Timeframe VWMA (default: 200) with volatility bands and Fibonacci-based internal levels, plus anchored VWAPs (Daily / Weekly / Monthly) and an optional trend dashboard table.
It was designed to help you quickly spot:
where price is relative to a major HTF VWMA mean
whether price is trading in normal / extreme zones
how price is positioned versus session/period VWAPs
a simple “at-a-glance” trend bias across multiple anchors
What’s included
1) VWMA 200 (HTF)
VWMA is calculated on a locked timeframe (HTF) using request.security.
Default source is HLC3, but you can change the source.
2) Volatility bands + Fibonacci levels
The outer bands are based on a scaled standard deviation (mult * stdev) around the HTF VWMA.
Internal bands use Fibonacci ratios:
11.8% / 23.6% / 38.2% / 50% / 61.8% / 76.4% / 88.6% / 100%
Clean labels on the right side show each level as a percentage.
3) Extreme candle highlighting
Candles can be highlighted when the close is beyond the 76.4% band (upper or lower).
Helps identify potential stretched conditions / breakout zones.
4) Anchored VWAPs
Optional Daily / Weekly / Monthly VWAP (anchored by period change).
Optional VWAP labels on the right side (toggle separately).
5) Trend Dashboard Table
Optional table showing Bullish / Bearish / Neutral for:
VWAP D, VWAP W, VWAP M, and VWMA HTF
Displays distance from each reference in points (price units).
Includes a Confluence row:
Bullish if price is above all references
Bearish if price is below all references
Mixed otherwise
Table position can be customized (Top Right / Top Left / Bottom Right / Bottom Left).
How to use (quick guide)
Mean reversion / structure: Use the HTF VWMA as the central “mean” reference.
Zones: Fibonacci bands show progressively stronger deviation zones from the mean.
Extremes: Candle coloring beyond 76.4% can highlight stretched price action.
Trend bias: The dashboard helps confirm whether price is aligned above or below key anchors (VWAPs + VWMA HTF).
Confluence: When multiple anchors agree, trend conviction tends to be higher.
Notes / Disclaimer
This tool is intended for context and decision support, not as a standalone strategy.
VWAP behavior may differ across markets/sessions depending on symbol and exchange rules.
Always combine with your own risk management and confirmation tools.
Delta Flow Profile [Ham]Variation of LuxAlgo original. The "Show Values" options allows you to turn off volume values printed on each bar. Also increased number of rows available
Mizan v7.8-S: Pure PSI ObserverDescription:
1. General Overview The Mizan v7.8-S is a specialized high-precision market observer designed to quantify the "Ontological Stability" of financial assets. Unlike traditional indicators that rely solely on price action, this tool projects market data onto a proprietary "PSI Scale" to measure the potential energy and structural integrity of a trend. It operates on the "Pure Justice" (Mizan) theoretical framework, distinguishing between constructive stability and chaotic degradation.
2. Key Features
Proprietary PSI Scoring: A unique algorithm that converts market momentum into a standardized stability score (0 - 310,000 Scale).
Stability Protocol Visualization: Automatically colors the trend line to indicate the current state of the asset (Green for Stable/Constructive, Red for Unstable/Chaotic).
Cyclic Time Markers: Includes deterministic time-cycle markers ("Pulse" and "Reset" points) to identify theoretical inflection points in the market rhythm.
Axiom Floor & Peak: Visual references for the theoretical limits of the analyzed asset.
3. How to Use
Trend Analysis: Observe the color of the PSI line. A transition from Red to Green indicates that the asset has crossed the critical threshold and entered a stable trend structure.
Cycle Timing: Use the geometric markers (Diamonds and Circles) to anticipate potential shifts in market rhythm or exhaustion points based on the Mizan temporal constants.
Risk Assessment: The distance of the PSI score from the "Axiom Peak" or "Axiom Floor" provides a perspective on the asset's current potential relative to its theoretical limits.
4. Invite-Only Access This script is a closed-source implementation of a proprietary algorithmic kernel ("Mizan Universal Kernel"). It contains protected logic and experimental constants derived from private research.
Access: Access to this indicator is restricted. To request access or learn more about the methodology, please contact me via private message on TradingView.
Note: This tool is intended for advanced cycle analysis and experimental observation.
TradeAxis Trendlines - Full RangeOverview
TradeAxis Trendlines is an overlay indicator that automatically builds and maintains diagonal support/resistance trendlines from confirmed swing pivots, ranks candidates to reduce clutter, and provides optional breakout-based risk framing (TP/SL boxes) using structural stops.
This script is built as a single workflow:
Identify structurally valid trendlines
Reduce clutter by ranking/filters
Monitor/visualize breakouts with clear risk framing (disabled in Analysis Mode and on non-standard chart types)
How the trendlines are detected and filtered
1) Confirmed pivot engine (non-instant pivots)
Trendline anchors come from confirmed pivot highs/lows using user-defined Left/Right pivot strength. Because pivots require Right bars to confirm, lines are not drawn at the turning candle and will appear only after confirmation.
2) Candidate generation + structural validation
The script tests pivot-to-pivot vectors and rejects candidates that fail structural criteria, including:
Minimum line length (bars between anchors)
Slope filtering with two modes:
Absolute slope bounds (price-per-bar)
ATR-relative slope bounds (thresholds scaled by ATR)
Body-intersection rejection: candidates are filtered out if candle bodies repeatedly cut through the line beyond a tolerance
Opposite-side invalidation gate: candidates can be rejected/disabled when price closes (or evaluates by Mid-body/Body mode) beyond the “wrong side” of the line, to avoid keeping lines that are already invalidated by structure
3) Touch counting + scoring (clutter control)
Valid candidates are ranked using a weighted score that prioritizes:
Number of valid touches
Recency of the last touch
Line span
By default, the script plots both the primary and secondary (“2nd best”) support and resistance lines; you can disable the secondary set if you prefer a cleaner chart.
4) Dynamic cleanup behavior
Trendlines are continuously refreshed as new pivots confirm. Lines that are decisively broken and then reclaimed can be removed to prevent stale structure from lingering on the chart.
Optional modules
A) Safety lines (structural stop references)
When enabled, the script calculates additional diagonal “safety” lines from a separate pivot stream and selects the best safety reference near the active structure. These safety lines are used as structural candidates for Stop Loss placement in the breakout framing module.
B) Higher-timeframe (HTF) overlays
When enabled, the script runs its trendline detection logic on a user-selected higher timeframe using `request.security()` with lookahead disabled, and overlays the HTF support/resistance onto the current chart. HTF lines are plotted using time-based coordinates and can update as HTF bars confirm.
C) Breakout + Risk/Reward visualization (optional)
When enabled (and on standard charts), the script can flag breakouts and draw a risk/reward box:
Breakout trigger: candle-body confirmation through the trendline plus a user-selected ATR-based buffer.
Buffer Mode can be set to ATR (buffer = ATR × multiplier) or None (no buffer).
Optional filters:
Wick filter (rejects candles with excessive upper/lower wick percentage)
Time windows (inputs are labeled in UTC+4) with optional overnight restrictions and specific block windows
Minimum breakout body size (ticks)
Stop Loss / Take Profit framing
Stop selection is structural-first. The script prioritizes the active safety line (when available), otherwise it falls back to recent swing structure (recent swing high/low candidates) and the best available structural reference.
Entries can be skipped if risk constraints are violated, including:
Min SL Size (ticks)
Max Allowed SL (×ATR)
Take Profit is projected from the actual stop distance using the selected Risk/Reward Target.
Important notes about the position tools
This is a visualization/alerting aid. It does not place trades.
TP/SL hit detection is bar-based (OHLC). If both TP and SL are within the same candle range, the script cannot know which occurred first.
On non-standard chart types, position tools and entry/exit alerts are disabled.
D) Analysis Mode
When Analysis Mode is enabled, the script disables the breakout/risk framing logic and focuses on technical trendlines (plus structural alerts).
Alerts
Alert conditions are available for:
Touch Support/Resistance (Primary, Secondary, or HTF)
New Support/Resistance line detected
Long/Short position tool placed (when enabled on standard charts)
A combined “Any Event” condition
SMA Multi-Sync Granville & MTF CounterSMA Multi-Sync Granville & MTF Counter
Overview
This indicator is an environmental awareness tool that identifies when and to what level moving averages (SMAs) across multiple time frames align in the same direction, visualizing the timing and freshness of the trend.
Its greatest feature is that it does not simply determine synchronization; rather, it precisely distinguishes the time frame upon which synchronization is completed using the number of stars (★).
Key Features
1. Calculation of "Stars" Based on Confirmed Time Frame Trigger
The number of stars displayed upon synchronization completion indicates the signal's "temporal weight."
★ (1): Synchronization is completed upon confirmation of the displayed time frame.
★★ (2): Synchronization is completed upon confirmation of the next higher time frame (e.g., 15 minutes).
★★★ (3): Synchronization is completed upon confirmation of the next higher time frame (e.g., 1 hour). The more higher the time frame is confirmed, the more powerful the trend reversal or regression it acts as.
2. MTF Sync Panel
The table on the right side of the screen displays the price position (background) and MA direction (text) for each level (displayed to daily) in real time.
By watching the background and text colors match, you can understand the accumulation of energy before a star appears.
3. Cross Counter
The number of bars elapsed from the synchronization starting point (MA crossover, etc.) to the current bar is displayed numerically in the lower right corner.
The closer to "0" the number, the more likely it is the beginning of a trend, while the higher the number, the more likely it is the end of the trend (expiration date).
Usability of Input Settings
Min Stars (1-5) This sets the signal cutoff. Setting it to "2" eliminates noise caused by the displayed bar being confirmed and narrows down to only the moment when the higher bar is confirmed (★2 or higher).
Cancel Alert if MA Slope Same If the MA of the displayed time frame is already leaning in the same direction (leading), the confirmation (★1) on that time frame will be considered "not an initial move" and excluded.
5m TF: Use 30m SMA When using 5-minute time frames, this physically changes the ★2 trigger from the confirmation on the 15-minute chart to the confirmation on the 30-minute chart. This is effective when targeting milestones on larger time frames.
*If you have any questions about how to use this, please ask in the comments.
SMA Multi-Sync Granville & MTF Counter
概要
本インジケーターは、複数の時間足の移動平均線(SMA)が「いつ、どの階層まで同じ方向に揃ったか」を特定し、そのトレンドの**「確定タイミング」と「鮮度」**を可視化する環境認識ツールです。
最大の特徴は、単なる同調判定ではなく、**「どの時間足の確定(Close)によって同期が完成したか」**を星(★)の数で厳密に区別する点にあります。
主な機能
1. 確定足トリガーによる「星」の算出
同期が完成した瞬間に表示される星の数は、そのシグナルの「時間的な重み」を示します。
★(1つ):表示足の確定により同期が完成。
★★(2つ):1つ上の上位足(15分等)の確定により同期が完成。
★★★(3つ):2つ上の上位足(1時間等)の確定により同期が完成。 上位の足が確定する節目ほど、より強力なトレンドの転換・回帰として機能します。
2. MTF同期パネル
画面右側のテーブルで、各階層(表示足〜日足)の「価格の位置(背景)」と「MAの向き(文字)」をリアルタイムに表示します。
背景色と文字色が一致していく過程を見ることで、星が出る前の**「エネルギーの蓄積」**を把握できます。
3. クロスカウンター
同期の起点(MAクロス等)から、現在の足まで何本経過したかを右下に数値で表示します。
「0」に近いほど初動であり、数値が大きくなるほどトレンドの終盤(賞味期限切れ)である可能性を論理的に示唆します。
インプット設定の使い勝手
Min Stars (1-5) シグナルの足切り設定です。「2」に設定すれば、表示足の確定によるノイズを排除し、**上位足の確定が伴った瞬間(★2以上)**のみに絞り込めます。
Cancel Alert if MA Slope Same 表示足のMAがすでに同方向へ傾いている(先行している)場合、その足での確定(★1)を「初動ではない」とみなして除外します。
5m TF: Use 30m SMA 5分足運用時、★2のトリガーを「15分足」から「30分足」の確定に物理的に変更します。より大きな時間軸の節目を狙う場合に有効です。
※使い方が不明なところはコメントで聞いてください。
PREMIUM TRADE ZONES - [EntryLab]Premium Trade Zones is a channel-based indicator designed to highlight potential high-probability areas for considering long and short trades, as well as ideal zones for taking profits. It uses dynamic channels to identify when price may be overextended (overbought or oversold), providing visual confluence for trade decisions.
Key Features are the Purple & Blue Channels: These represent the core overbought (upper/purple) and oversold (lower/blue) zones. Price entering or reacting at these levels often signals potential reversals or exhaustion.
Upper & Lower Channels: Serve as dynamic support/resistance levels. Use them as added confluence for: Entry points (long near lower channel in uptrends, short near upper in downtrends).
Profit-taking areas (scale out or exit when price reaches the opposing channel).
The oscillator component helps gauge momentum strength and when price deviates significantly into extreme zones.
How to Use Overbought/Oversold Insight:
Watch for price pushing into the purple channel (potential overbought → consider shorts or profit on longs) or blue channel (potential oversold → consider longs or profit on shorts). Reactions at these levels can offer good insight into mean reversion or continuation pauses.
Trade Entries — Look for confluence: e.g., price bouncing off the lower channel + bullish momentum on the oscillator = stronger case for long. Reverse for shorts at upper channel.
Profit Taking — Use the opposite channel as a target zone to take partial or full profits. For example, take some profit near the upper channel on a long trade.
General Tip — Combine with your existing trend analysis, support/resistance, or other indicators for better context. This tool works best as confluence rather than a standalone signal.
This indicator does not repaint and aims to provide clear, visual zones to simplify decision-making on entries, exits, and risk management. Always use proper risk management—trading involves risk.Feel free to adjust settings like channel sensitivity (if your inputs allow) to match different timeframes or assets.
BoaBias: Fractals + FVG [FREE]BoaBias: Fractals + FVG is a professional market structure analysis indicator that combines advanced fractals and Fair Value Gaps (FVG) with multi-timeframe support.
✨ Key Features
🔷 Advanced Fractals
Fractal Type Detection: Automatic identification of Day/Week/Month/Day+Week fractals
Smart Break Detection: Breakouts are checked on corresponding timeframes
3 or 5 Bar Fractals: Adjustable sensitivity
Visual Support/Resistance Lines: Clear display of key levels
📈 Fair Value Gaps (FVG)
Current Timeframe FVG: Automatic detection and display of zones
HTF FVG Support: FVG analysis across multiple timeframes (1H, 4H, 12H, 1D, 3D, 1W, 1M)
Auto Removal: Filled zones are automatically removed
Color Customization: Separate colors for bullish and bearish zones
🎯 Who is this indicator for?
Traders using market structure analysis
Those working with fractals and FVG
Multi-timeframe traders
Anyone who wants to visually see key levels and zones
⚙️ Settings
Fractals
Fractal period (3 or 5 bars)
Line width
Maximum active levels
Display window (last N bars)
Break detection settings (body only or with wicks)
FVG
Enable/disable FVG
HTF timeframe configuration
Colors for bullish and bearish zones
Automatic removal of filled zones
Maximum HTF zones count
💡 Advantages
✅ Clean Visual Analysis — Only lines and zones, no clutter
✅ Multi-Timeframe Analysis — See structure across different timeframes simultaneously
✅ Smart Fractal Logic — Automatic identification of important levels
✅ Professional Tool — Used in real trading
Scalping V5 - Strongest S/R & Predictive PanelScalping V5: Predictive Momentum & Institutional S/R by Herman Sangivera ( Papua )
Overview
Scalping V5 is a high-precision momentum indicator designed for lower timeframe traders (1m, 5m, 15m) who require a blend of trend-following logic and real-time structural analysis. Unlike standard indicators that only look at price action, this script utilizes a Dual-EMA Ribbon for momentum, a 200-period Filter for institutional bias, and a Predictive Probability Panel to gauge the strength of a potential move.
Key Features
1. Smart Momentum Ribbon (EMA 12/36)
The core of the strategy uses a dynamic ribbon.
Blue Ribbon: Indicates aggressive bullish momentum.
Red Ribbon: Indicates aggressive bearish momentum.
Traders should look for "Value Area" entries when the price retraces into the ribbon before continuing the trend.
2. Institutional Trend Guard (EMA 200)
To avoid "choppy" markets and counter-trend traps, the script plots a thick white baseline.
Above 200 EMA: Only Long setups are prioritized.
Below 200 EMA: Only Short setups are prioritized.
3. Dynamic Support & Resistance (S/R)
The script automatically calculates the Strongest Resistance (Highest High) and Strongest Support (Lowest Low) based on a 50-period lookback. This helps scalpers identify immediate "walls" in the market to set realistic Take Profit (TP) and Stop Loss (SL) levels.
4. Predictive Analytics Dashboard
The real-time panel in the top right provides:
Strategy State: Detects if the market is breaking out or consolidating.
Probability Score: A weighted calculation (smoothed by SMA) that determines the likelihood of the next move based on trend alignment.
Actionable Recommendation: Flashes "STRONG BUY" or "STRONG SELL" only when momentum and distance-to-target are optimal.
How to Trade with Scalping V5
Long Entry: Price must be above the EMA 200. Wait for the Ribbon to turn Blue and the Dashboard to display a Probability Up > 65%. Ensure there is enough "room" to the Red Resistance line.
Short Entry: Price must be below the EMA 200. Wait for the Ribbon to turn Red and the Dashboard to display a Probability Down > 65%. Ensure there is room to the Green Support line.
Exit Strategy: Take profits at the S/R levels or when the price closes back inside the EMA Ribbon.
Settings & Optimization
EMA 12/36: Optimized for Scalping. Increase to 20/50 for Day Trading.
Lookback S/R: Set to 50 for intraday levels; increase to 100 for more "significant" swing levels.
Overlay: This indicator is designed to be used directly on the price chart.
Disclaimer: Scalping involves significant risk. This tool is designed to assist your analysis and should be used in conjunction with proper risk management and price action confirmation.
Moving Average Exponential//@version=6
indicator(title="Moving Average Exponential", shorttitle="EMA", overlay=true, timeframe="", timeframe_gaps=true)
len = input.int(9, minval=1, title="Length")
src = input(close, title="Source")
offset = input.int(title="Offset", defval=0, minval=-500, maxval=500, display = display.data_window)
out = ta.ema(src, len)
plot(out, title="EMA", color=color.blue, offset=offset)
// Smoothing MA inputs
GRP = "Smoothing"
TT_BB = "Only applies when 'SMA + Bollinger Bands' is selected. Determines the distance between the SMA and the bands."
maTypeInput = input.string("None", "Type", options = , group = GRP, display = display.data_window)
var isBB = maTypeInput == "SMA + Bollinger Bands"
maLengthInput = input.int(14, "Length", group = GRP, display = display.data_window, active = maTypeInput != "None")
bbMultInput = input.float(2.0, "BB StdDev", minval = 0.001, maxval = 50, step = 0.5, tooltip = TT_BB, group = GRP, display = display.data_window, active = isBB)
var enableMA = maTypeInput != "None"
// Smoothing MA Calculation
ma(source, length, MAtype) =>
switch MAtype
"SMA" => ta.sma(source, length)
"SMA + Bollinger Bands" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
// Smoothing MA plots
smoothingMA = enableMA ? ma(out, maLengthInput, maTypeInput) : na
smoothingStDev = isBB ? ta.stdev(out, maLengthInput) * bbMultInput : na
plot(smoothingMA, "EMA-based MA", color=color.yellow, display = enableMA ? display.all : display.none, editable = enableMA)
bbUpperBand = plot(smoothingMA + smoothingStDev, title = "Upper Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
bbLowerBand = plot(smoothingMA - smoothingStDev, title = "Lower Bollinger Band", color=color.green, display = isBB ? display.all : display.none, editable = isBB)
fill(bbUpperBand, bbLowerBand, color= isBB ? color.new(color.green, 90) : na, title="Bollinger Bands Background Fill", display = isBB ? display.all : display.none, editable = isBB)
MarketStructureLab - SR Zones (Free)📌 MarketStructureLab — SR Zones is a structure-based indicator that automatically identifies key support and resistance zones using market structure logic, not subjective manual levels.
The indicator analyzes:
• local highs and lows (pivot points),
• clusters nearby price extremes,
• builds S/R zones based on their strength (number of price reactions).
🔍 What the indicator shows
• 🟢 Support zones — areas of increased demand
• 🔴 Resistance zones — areas of increased supply
• Price labels with level value and distance from the current price in %
The more reactions price has within a zone, the more significant it becomes.
⚙️ Key features
• Based on market structure, not fixed levels
• Works on any instrument (stocks, futures, crypto, FX)
• Suitable for all timeframes
• No repainting
• Supports alerts on level breaks
⚠️ Important
This indicator does not generate trade signals and does not make predictions.
It is designed to help traders analyze market context and make independent decisions.
Recommended to use with
• market state analysis (Trend / Range),
• volume,
• proper risk management.
📎 Updates and future developments
This indicator is part of the MarketStructureLab project.
Follow the author’s profile to stay updated on new tools and improvements.
Balance Zone ProjectorOVERVIEW
Projects balance zones above and below up to 3 anchor zones. Each zone represents a 2x, 4x, 8x... multiple of the original anchor height, helping you identify key price levels for entries, exits, and targets.
HOW TO USE
1. Add the indicator to your chart
2. Click to set Anchor 1 High (top of your zone)
3. Click to set Anchor 1 Low (bottom of your zone)
4. Zones automatically project above and below
MULTIPLE ANCHORS
Enable Anchor 2 and Anchor 3 in settings to track multiple zones at different time periods. Each anchor has its own:
- High/Low prices
- Bars Back (where to start drawing)
- Bars Forward (zone width)
ZONE GROUPS
Zones are colored by group for easy identification:
- Group 1: Zones 1-2 (nearest to anchor)
- Group 2: Zones 3-6
- Group 3: Zones 7-14
- Group 4: Zones 15-30
CUSTOMIZATION
- Enable/disable up or down projections
- Adjust colors and transparency per zone group
- Show/hide zone labels and midlines
- Customize label text templates
SETTINGS
All anchors share the same visual settings (colors, labels, midlines) for consistency. Individual anchor timing is controlled per-anchor.
Based on the Balance Zone Engine concept for Sierra Chart.
[COG] NautilusOverview
This indicator combines multiple technical analysis tools to identify high-probability entry points in trending markets. It uses moving average crossovers for trend direction, Bollinger Bands for mean reversion opportunities, and optional filters to reduce false signals and avoid choppy market conditions.
What Makes This Indicator Unique
Heiken Ashi Toggle:
All calculations can be performed on either regular or Heiken Ashi candles with a single click
Multi-Layer Filtering System: Four independent filters work together to improve signal quality
First Entry Detection: Automatically identifies and labels the first signal after a trend change
Anti-Overtrading Protection: Built-in cooldown mechanism prevents signal spam
Core Components
1. Trend Detection (EMA/SMA Crossover)
The indicator uses a 15-period EMA and 50-period SMA to determine market direction. Buy signals only occur when EMA > SMA, and sell signals only when EMA < SMA.
// Trend Detection
bullishTrend = ema15 > sma50
bearishTrend = ema15 < sma50
2. Bollinger Bands Mean Reversion
Entry signals trigger when price touches or penetrates the Bollinger Bands, indicating potential reversal or pullback opportunities within the established trend.
//Bollinger Band Touch Detection
lowerBandTouch = selectedLow <= bbLower
upperBandTouch = selectedHigh >= bbUpper
// Base Entry Conditions
baseBuySignal = bullishTrend and lowerBandTouch and bullishClose
baseSellSignal = bearishTrend and upperBandTouch and bearishClose
3. Candle Confirmation
Signals require a bullish candle close (close > open) for buy signals and bearish candle close (close < open) for sell signals, ensuring momentum alignment.
// Candle Close Type
bullishClose = selectedClose > selectedOpen
bearishClose = selectedClose < selectedOpen
Optional Filters (All Toggleable)
Filter 1: StochRSI Momentum
Ensures entries occur during oversold/overbought conditions. Buy signals require StochRSI < 20, sell signals require StochRSI > 80.
// StochRSI Calculation
rsi = ta.rsi(stochRSISource, rsiLength)
stochRSI_K = ta.sma(ta.stoch(rsi, rsi, rsi, stochRSILength), stochKSmooth)
// Filter Conditions
stochRSIOversoldCondition = stochRSI_K < stochRSIOversold
stochRSIOverboughtCondition = stochRSI_K > stochRSIOverbought
Filter 2: MA Separation (Anti-Chop)
Blocks signals when moving averages are too close together, indicating sideways/choppy market conditions. Default threshold is 1% separation.
// Calculate percentage separation between EMA and SMA
maSeparationPct = (math.abs(ema15 - sma50) / sma50) * 100
// MA separation filter condition
maSeparationValid = maSeparationPct >= maSeparationThreshold
Why this matters: When the 15 EMA and 50 SMA are very close (< 1% apart), the market is typically consolidating. Signals in these conditions have lower win rates.
Filter 3: Cooldown Period
Prevents over-trading by blocking new signals for a specified number of bars (default: 10) after a signal occurs. Buy and sell cooldowns are tracked separately.
// Variables to track the bar index of the last signal
var int lastBuySignalBar = na
var int lastSellSignalBar = na
// Calculate bars since last signal
barsSinceLastBuy = na(lastBuySignalBar) ? 999999 : bar_index - lastBuySignalBar
// Cooldown filter condition
buyCooldownValid = barsSinceLastBuy >= cooldownBars
// Update tracking when signal fires
if buySignal
lastBuySignalBar := bar_index
Advanced Features
Heiken Ashi Mode
Toggle between regular candles and Heiken Ashi candles for all calculations. Heiken Ashi candles smooth price action and can reduce false signals in volatile markets.
// Fetch Heiken Ashi OHLC values
= request.security(
ticker.heikinashi(syminfo.tickerid),
timeframe.period,
)
// Select which OHLC to use based on toggle
selectedClose = useHeikenAshi ? haClose : close
First Entry Detection
Automatically identifies and labels the first signal after a trend change with "1. Trend Cycle Entry" text. This helps traders distinguish between fresh trend entries and continuation signals.
// Detect trend changes
trendChangedToBullish = bullishTrend and not bullishTrend
// Reset tracking when trend changes
if trendChangedToBullish
hadBuySignalInCurrentBullTrend := false
// Identify first signal in new trend
isFirstBuyInTrendCycle = buySignal and not hadBuySignalInCurrentBullTrend
How Signals Are Generated
The indicator uses a layered approach where each condition must be satisfied:
// Apply all filters
buySignal = enableBuySignals and baseBuySignal and
(not enableStochRSIFilter or stochRSIOversoldCondition) and
(not enableMASeparationFilter or maSeparationValid) and
(not enableCooldownFilter or buyCooldownValid)
Buy Signal Requirements:
✅ 15 EMA above 50 SMA (bullish trend)
✅ Candle low touches or goes below lower Bollinger Band
✅ Candle closes bullish (green)
✅ (Optional) StochRSI < 20
✅ (Optional) MA separation > threshold %
✅ (Optional) Cooldown period expired
Sell Signal Requirements:
✅ 15 EMA below 50 SMA (bearish trend)
✅ Candle high touches or goes above upper Bollinger Band
✅ Candle closes bearish (red)
✅ (Optional) StochRSI > 80
✅ (Optional) MA separation > threshold %
✅ (Optional) Cooldown period expired
Customization Options
Moving Averages:
Adjustable EMA length (default: 15)
Adjustable SMA length (default: 50)
Source selection (Close, Open, High, Low, HL2, HLC3, OHLC4)
Bollinger Bands:
Adjustable length (default: 20)
MA type selection (SMA, EMA, SMMA, WMA, VWMA)
Adjustable standard deviation multiplier (default: 2.0)
StochRSI Filter:
Adjustable RSI length (default: 14)
Adjustable Stochastic length (default: 14)
Customizable oversold/overbought levels (default: 20/80)
MA Separation Filter:
Adjustable minimum separation percentage (default: 1.0%)
Cooldown Filter:
Adjustable cooldown period in bars (default: 10)
Visual Settings:
Customizable colors for all elements
Adjustable line widths
Toggle first entry labels on/off
How to Use
Basic Setup: Apply the indicator to your chart. By default, it shows moving averages, Bollinger Bands, and entry signals.
Choose Your Mode: Enable Heiken Ashi mode if you prefer smoother signals and are willing to accept some lag.
Enable Filters: Start with all filters disabled to see raw signals. Then enable filters one by one:
Start with MA Separation filter to avoid choppy markets
Add StochRSI filter to catch better momentum conditions
Add Cooldown filter to prevent over-trading
Adjust Parameters: Tune the parameters based on your timeframe and trading style:
Lower timeframes: Consider shorter cooldown periods
Higher timeframes: May want tighter MA separation requirements
Watch for First Entry Labels: The "1. Trend Cycle Entry" label highlights the highest-probability signals occurring right after trend changes.
Important Notes
⚠️ This indicator does not repaint. All signals appear on closed candles only.
⚠️ Past performance is not indicative of future results. This indicator should be used as part of a complete trading strategy with proper risk management.
⚠️ Filters reduce signal frequency: Enabling multiple filters will significantly reduce the number of signals. This is intentional to improve quality over quantity.
⚠️ Heiken Ashi mode considerations: While HA mode smooths signals, it can also introduce lag. Test both modes on your preferred timeframe.
Best Practices
Always backtest on your preferred timeframe before live trading
Start conservative with tighter filters, then loosen if needed
Pay special attention to "First Entry" signals for highest probability setups
Use appropriate position sizing and stop losses
Consider market conditions: trending vs ranging
Disclaimer
This indicator is for educational purposes only and should not be considered financial advice. Trading involves substantial risk of loss. Always do your own research and consider your risk tolerance before trading.
All Candlestick Patterns [theEccentricTrader]█ OVERVIEW
This indicator automatically draws and sends alerts for all of the candlestick patterns in my public library as they occur. Patterns included in this script are listed below, with their conventional classifications (in brackets) for reference only:
Doji (Neutral)
Bullish Marubozu (Bullish Continuation)
Bearish Marubozu (Bearish Continuation)
Spinning Top (Neutral)
Bullish Belt-Hold Line (Bullish Reversal)
Bearish Belt-Hold Line (Bearish Reversal)
Bullish Breakaway (Bullish Reversal)
Bearish Breakaway (Bearish Reversal)
Concealing Baby Swallow (Bullish Reversal)
Bullish Counterattack (Bullish Reversal)
Bearish Counterattack (Bearish Reversal)
Dark Cloud Cover (Bearish Reversal)
Long-Legged Doji (Neutral)
Southern Doji (Bullish Reversal)
Northern Doji (Bearish Reversal)
Dumpling Top (Bearish Reversal)
Bullish Engulfing (Bullish Reversal)
Bearish Engulfing (Bearish Reversal)
Frypan Bottom (Bullish Reversal)
Hammer (Bullish Reversal)
Hanging Man (Bearish Reversal)
Bullish Harami (Bullish Reversal)
Bearish Harami (Bearish Reversal)
Bullish Harami Cross (Bullish Reversal)
Bearish Harami Cross (Bearish Reversal)
High-Wave (Neutral)
Bullish Hikkake (Bullish Reversal)
Bearish Hikkake (Bearish Reversal)
Homing Pigeon (Bullish Reversal)
In-Neck (Bullish Reversal)
Bullish Kicking (Bullish Reversal)
Bearish Kicking (Bearish Reversal)
Matching Low (Bullish Reversal)
On-Neck (Bullish Reversal)
Piercing (Bullish Reversal)
Bullish Separating Lines (Bullish Continuation)
Bearish Separating Lines (Bearish Continuation)
Upgap Side-by-Side White Lines (Bullish Continuation)
Downgap Side-by-Side White Lines (Bearish Continuation)
Stalled Pattern (Neutral)
Bullish Star (Bullish Reversal)
Bearish Star (Bearish Reversal)
Bullish Doji Star (Bullish Reversal)
Bearish Doji Star (Bearish Reversal)
Morning Star (Bullish Reversal)
Evening Star (Bearish Reversal)
Morning Doji Star (Bullish Reversal)
Evening Doji Star (Bearish Reversal)
Abandoned Baby Bottom (Bullish Reversal)
Abandoned Baby Top (Bearish Reversal)
Inverted Hammer (Bullish Reversal)
Shooting Star (Bearish Reversal)
Dragonfly Doji (Bullish Reversal)
Gravestone Doji (Bearish Reversal)
Stick Sandwich (Bullish Reversal)
Upward Gapping Tasuki (Bullish Continuation)
Downward Gapping Tasuki (Bearish Continuation)
Three Black Crows (Bearish Reversal)
Advance Block (Neutral)
Three Advancing White Soldiers (Bullish Reversal)
Bullish Three-Line Strike (Bullish Continuation)
Bearish Three-Line Strike (Bearish Continuation)
Rising Three Methods (Bullish Continuation)
Falling Three Methods (Bearish Continuation)
Three Stars in the South (Bullish Reversal)
Thrusting (Bullish Reversal)
Tower Bottom (Bullish Reversal)
Tower Top (Bearish Reversal)
Tri-Star Bottom (Bullish Reversal)
Tri-Star Top (Bearish Reversal)
Tweezer Bottom (Bullish Reversal)
Tweezer Top (Bearish Reversal)
Upside-Gap Two Crows (Bearish Reversal)
█ CONCEPTS
Candlestick Patterns
Candlestick charts originated in Japan and were developed as a way of recording and interpreting price movement in actively traded markets. Rather than focusing only on where price closed, candlesticks preserve information about the range of trading during a given period, showing where prices opened, how far they moved, where they were rejected and where they ultimately settled. In this sense, each candlestick is a compact record of the interaction between buyers and sellers over time.
At a basic level, markets move through a sequence of swing highs and swing lows as supply and demand fluctuates. Candlesticks are the smallest visible components of this process. The size of the candle body reflects the degree of control exercised by buyers or sellers, while the presence and length of wicks reflect rejection, hesitation or absorption of opposing orders. When similar behaviours repeat in similar locations, recognisable patterns emerge.
Candlestick patterns therefore do not represent fixed signals, but recurring expressions of market psychology. They capture moments where initiative changes hands, where momentum pauses or where one side fails to follow through. A pattern that appears during a strong trend may simply reflect temporary consolidation, while the same pattern forming at an extreme or after prolonged movement may indicate exhaustion or transition. Context is always decisive.
Over time, traders have assigned names and classifications to many of these recurring formations. However, these classifications are not universal or permanent. Patterns that were historically described as reversals are sometimes better understood as continuation structures and patterns labelled as bullish or bearish can have very different implications depending on market, timeframe, volatility and surrounding structure. As with all forms of price analysis, interpretation matters more than memorisation.
Candlestick patterns should therefore be viewed as descriptive tools rather than predictive rules. They provide insight into how price reached its current state and how supply and demand interacted along the way. Their usefulness lies in how they are combined with broader market structure, risk management and independent testing, not in the assumption that any single pattern guarantees a particular outcome.
█ INPUTS
Change label colours and size.
Set alerts for individual patterns.
█ SOURCES
Homma, M. (c. 1755) The Fountain of Gold: The Three Monkey Record of Money. Attributed Japanese trading manuscript. Modern English translation (Apple Books).
Nison, S. (2001) Japanese Candlestick Charting Techniques (2nd edn). New York: New York Institute of Finance.
Bulkowski, T. N. (2008) Encyclopedia of Candlestick Charts. Hoboken, New Jersey: John Wiley & Sons.
Pattern Multi-TF DashboardPattern indicator is a comprehensive market analysis tool designed to identify the three primary phases of price action: Contraction, Expansion, and Trend. By combining technical momentum (ADX) with price range volatility, this script provides a "top-down" view of the market, allowing traders to see how lower-timeframe price action fits into the broader market cycle.
Core Logic & Market Phases
The indicator classifies market conditions based on a proprietary blend of ADX (Average Directional Index) and price deviation from the Fair Market Value (FMV).
🟦 Contraction (Blue): Identified when ADX is low and price is consolidating within a narrow range relative to the FMV. This represents "market value" where orders are being accumulated.
🟧 Expansion (Orange): Triggered when ADX begins to rise and price pushes away from the FMV. This represents the initial breakout phase where the market is seeking a new value area.
🟩 Trend (Green): Confirmed when ADX remains high and price maintains direction. This is the "momentum" phase of the cycle.
⬜ Neutral (Gray): Default state when neither contraction nor strong momentum is detected.
Key Features
Multi-TF Dashboard: A dynamic, real-time table displaying the Phase, Bias (Bullish/Bearish), and FMV price for eight different timeframes (1m through Monthly).
Visual Bias Tracking: The "Bias" column is color-coded (Green for Bullish, Red for Bearish) based on whether price is trading above or below the Fair Market Value (Mid-point of the range).
On-Chart Inefficiencies (FVG): Automatically plots Green/Red triangles to highlight Fair Value Gaps, identifying areas of price imbalance where liquidity may be resting.
HTF FMV Overlay: Plots the Fair Market Value (Mid-line) of a user-defined Higher Timeframe (e.g., 4H) directly onto your current chart for easy trend reference.
Optimized Performance: Built specifically for Pine Script® v6, the dashboard is designed to update only on the most recent bar to ensure zero chart lag during manual scrolling.
How to Use
Identify the HTF Phase: Look at the background color of your chart to see the 4H or Daily phase.
Check for Alignment: Use the Dashboard to see if the 1m and 5m biases match the HTF bias.
Find Entry: Look for Inefficiencies (FVGs) that align with the Expansion or Trend phases for high-probability entry points.
Bullish Divergent Bar DCA Strategy [Skyrexio]Overview
Bullish Divergent Bar DCA Strategy is a long-only, multi-layer Dollar-Cost Averaging (DCA) strategy that builds positions around bullish divergent bars formed below the Williams Alligator. It detects potential local bottoms and then scales into the move using up to four pyramiding entries, each with its own size and price threshold. The strategy optionally incorporates Market Facilitation Index (MFI) and Awesome Oscillator (AO) momentum to strengthen reversal confirmation and uses ATR-based take profit on the averaged entry price.
Unique Features
Layered DCA entries with equity-based sizing . It supports up to four DCA layers, where each additional layer is opened only after a configurable percentage drawdown from the first entry and position size is computed as a fraction of current equity via a geometric weighting scheme.
Optional AO and MFI confirmation . Users can require Awesome Oscillator momentum divergence, MFI/volume “squat” bars, or both to confirm that the reversal bar is accompanied by capitulation and weakening downside momentum.
ATR-based dynamic take profit . Take profit is defined as a multiple of ATR added to the current average entry price, automatically adjusting exits to prevailing volatility.
Built-in DCA visualization . The script can plot the initial entry level and all DCA thresholds to make the averaging structure and risk visually transparent on the chart.
Methodology
The core entry logic starts from a bullish divergent bar definition: the bar must close above its midpoint (close > hl2) and be the lowest low within the user-defined lookback window, flagging a local swing low. On top of this, the bar must form entirely below all three Alligator lines, ensuring that the pattern appears after a sustained downside move rather than inside noise.
If enabled, AO adds a momentum filter by requiring the Awesome Oscillator difference to be negative (descending bar on AO histogram), signaling fading downside momentum at the potential bottom. If the MFI filter is enabled, the bar (or one of the last two bars) must be a “squat” bar where spread narrows while volume increases, approximating effort vs. result exhaustion.
Once a valid bullish reversal bar is detected and the time is within the configured trading window, the strategy opens the first DCA layer using a stop entry at the bar’s high (confirmation level), only entering if price actually breaks the bar high. Additional layers (second, third, and fourth entries) are only allowed if price trades below percentage thresholds from the first entry price and a new valid bullish reversal bar forms, thereby averaging down into deep pullbacks while still requiring fresh reversal evidence.
While any DCA position is open, the strategy continuously recalculates the take profit as the current volume-weighted average entry price plus ATR multiplied by a user-defined factor. All individual entries share the same take profit level through separate strategy exit calls, so the entire stacked position exits together once price has moved sufficiently above the averaged entry.
Strategy settings
In the inputs window, users can configure the following strategy settings:
sourceUuid / secretToken: Identifiers used to format JSON alerts for automated execution through webhooks.
Trade Start Date/Time: Beginning of the backtest/live-trading window.
Trade Stop Date/Time: End of the backtest/live-trading window.
Show DCA Levels (default = false): Toggles plotting of the initial entry level and all three DCA thresholds on the chart.
Enable MFI (default = false): Enables the MFI-style volume/spread filter.
Enable AO (default = false): Enables Awesome Oscillator confirmation.
Number Of Bar For Lowest Bar (default = 7): Lookback window used to identify the lowest low bar for the bullish reversal bar condition.
Layer 2 Threshold Percent (default = 4.0): Percentage drop from the first layer price that must be reached to allow the second DCA entry.
Layer 3 Threshold Percent (default = 10.0): Percentage drop from the first layer price required to unlock the third DCA layer.
Layer 4 Threshold Percent (default = 22.0): Percentage drop from the first layer price required to unlock the fourth DCA layer.
Position Size Multiplier (default = 2.0): Multiplier used in the geometric weighting scheme to determine how much equity is allocated to each additional DCA layer.
Number Of ATR For Take Profit (default = 2.0): ATR multiple added to the current average entry price to calculate the shared take profit for all open layers.
Users can refine these parameters during backtesting to fit the volatility profile and structure of the specific asset and timeframe.
Justification of Methodology
Before understanding why this particular combination of indicator has been chosen let's briefly explain what is Williams Alligator, MFI and AO.
let’s start with the Williams Alligator. Developed by Bill Williams, the Alligator is a technical indicator that identifies trends and potential market reversals. It consists of three smoothed moving averages:
Jaw (Blue Line): The slowest of the three, based on a 13-period smoothed moving average shifted 8 bars ahead.
Teeth (Red Line): The medium-speed line, derived from an 8-period smoothed moving average shifted 5 bars forward.
Lips (Green Line): The fastest line, calculated using a 5-period smoothed moving average shifted 3 bars forward.
When the lines diverge and align in order, the "Alligator" is "awake," signaling a strong trend. When the lines overlap or intertwine, the "Alligator" is "asleep," indicating a range-bound or sideways market. This indicator helps traders determine when to enter or avoid trades.
The Awesome Oscillator (AO), developed by Bill Williams, is a momentum indicator designed to measure market momentum by contrasting recent price movements with a longer-term historical perspective. It helps traders detect potential trend reversals and assess the strength of ongoing trends.
The formula for AO is as follows:
AO = SMA5(Median Price) − SMA34(Median Price)
where:
Median Price = (High + Low) / 2
SMA5 = 5-period Simple Moving Average of the Median Price
SMA 34 = 34-period Simple Moving Average of the Median Price
The Market Facilitation Index (MFI) is a technical indicator that measures the price movement per unit of volume, helping traders gauge the efficiency of price movement in relation to trading volume. Here's how you can calculate it:
MFI = (High−Low)/Volume
MFI can be used in combination with volume, so we can divide 4 states. Bill Williams introduced these to help traders interpret the interaction between volume and price movement. Here’s a quick summary:
Green Window (Increased MFI & Increased Volume): Indicates strong momentum with both price and volume increasing. Often a sign of trend continuation, as both buying and selling interest are rising.
Fake Window (Increased MFI & Decreased Volume): Shows that price is moving but with lower volume, suggesting weak support for the trend. This can signal a potential end of the current trend.
Squat Window (Decreased MFI & Increased Volume): Shows high volume but little price movement, indicating a tug-of-war between buyers and sellers. This often precedes a breakout as the pressure builds.
Fade Window (Decreased MFI & Decreased Volume): Indicates a lack of interest from both buyers and sellers, leading to lower momentum. This typically happens in range-bound markets and may signal consolidation before a new move.
For our purposes we are interested in squat bars. This is the sign that volume cannot move the price easily. This type of bar increases the probability of trend reversal. In this indicator we added to enable the MFI filter of reversal bars. If potential divergent bar or two preceding bars have squat state this bar can be interpret as a reversal one.
The strategy intentionally focuses on bullish divergent bars forming at local lows and below the Alligator to catch potential exhaustion points in downtrends where risk/reward becomes asymmetric. The Alligator (Jaw, Teeth, Lips) acts as a dynamic structure filter: requiring price to be below all three lines before reversal helps avoid chasing minor pullbacks inside an ongoing uptrend and instead concentrates entries on deeper corrections where mean reversion potential is higher.
The custom bullish divergent bar rule (close above midpoint and being the lowest low over N bars) approximates a local capitulation candle, which often precedes short squeezes or at least strong reactions. By combining this with AO and MFI-style filters, the strategy further increases the likelihood that the pattern coincides with downside momentum(as a confirmation that current trend is downward, AO difference < 0) and effort vs. result anomalies (squat bars), which is common signatures of trend exhaustion.
The DCA structure is designed to deploy capital progressively rather than all at once: the first entry is triggered only if price confirms the reversal by breaking above the bar’s high, while subsequent layers require both a deeper discount relative to the initial entry and a new bullish reversal signal. Percentage thresholds from the first entry ensure that each additional allocation is made at meaningfully better prices, improving the blended entry level and reducing the break-even distance.
Finally, using ATR as the basis for take profit aligns exits with current volatility. A fixed-percentage target can be too tight in volatile regimes or too loose in quiet markets, whereas ATR-based targets scale with average bar range. Applying ATR to the evolving average entry price of all open layers keeps the risk/reward framework consistent across different volatility regimes and DCA configurations.
Backtest Results
Operating window: Date range of backtests is 2025.01.01 - 2026.01.01. It is chosen to let the strategy to close all opened positions.
Commission and Slippage: Includes a standard Binance commission of 0.1% and accounts for possible slippage over 5 ticks.
Initial capital: 10000 USDT
Maximum Single Position Loss: -6.56%
Maximum Single Profit: +4.92%
Net Profit: +934.08 USDT (+9.34%)
Total Trades: 121 (82.64% win rate)
Profit Factor: 2.948
Maximum Accumulated Loss: 624.72 USDT (-6.15%)
Average Profit per Trade: 7.72 USDT (+0.37%)
Average Trade Duration: 60 hours
These results are obtained with realistic parameters representing trading conditions observed at major exchanges such as Binance and with realistic trading portfolio usage parameters.
You should run your own backtests on the target asset and timeframe (for example, BTC/USDT on intraday charts) and adjust threshold percentages, layer sizing, and ATR take profit factor to match your risk tolerance and market conditions.
How to Use
Add the script to favorites for easy access.
Apply to the desired timeframe and chart.
Configure settings using the dropdown choice list in the built-in menu.
Set up alerts to automate strategy positions through web hook with the text: {{strategy.order.alert_message}}
Disclaimer:
Educational and informational tool reflecting Skyrex commitment to informed trading. Past performance does not guarantee future results. Test strategies in a simulated environment before live implementation
LSMA25 Trend Correction Continuation
## LSMA25 Trend Correction Continuation - Publishing Description
### Overview
This indicator highlights **trend continuation opportunities** using a **25-period LSMA (Least Squares Moving Average)** with a **slope/angle filter** and a simple **correction + re-entry** logic.
It is designed to mark:
* **Continuation entries** after a pullback (correction) and re-cross of LSMA in the direction of a strong trend
* **Strong-trend state** (subtle dots) when price stays on the trend side of LSMA with a steep angle, even without a fresh cross
### Core logic
1. **LSMA (25 by default)**
* Uses `ta.linreg(close, lsmaLen, 0)` as the LSMA line.
2. **Trend strength via angle (tick-normalized)**
* Computes 1-bar LSMA slope in **ticks**:
* `slopeTicks = (lsma - lsma ) / syminfo.mintick`
* Converts slope to an angle using `atan()` and a calibration input:
* `ticksPerBarFor45` approximates how many ticks per bar corresponds to ~45°
* Strong trend conditions:
* LONG trend strength when `angleDeg >= minAngleLongDeg`
* SHORT trend strength when `angleDeg <= minAngleShortDeg`
3. **Correction detection**
* LONG side: a correction exists if within the last `corrLookback` bars the close was **below** LSMA:
* `ta.barssince(close < lsma) <= corrLookback`
* SHORT side: correction exists if within the last `corrLookback` bars the close was **above** LSMA:
* `ta.barssince(close > lsma) <= corrLookback`
4. **Continuation signals**
* **Long Continuation (LC)** triggers when:
* Price **crosses above** LSMA (`ta.crossover(close, lsma)`)
* Angle indicates **strong uptrend**
* A recent **pullback below LSMA** occurred
* Optional ATR% filter passes
* **Short Continuation (SC)** triggers symmetrically on cross below.
5. **Strong trend markers**
* When price is on the trend side of LSMA and angle is strong:
* Uptrend: `close > lsma and strongUp`
* Downtrend: `close < lsma and strongDown`
* Drawn as small, semi-transparent circles (not entry signals by themselves).
### Plots and labels
* **LSMA line** plotted in yellow.
* **LC**: green triangle below bar (trend continuation long).
* **SC**: red triangle above bar (trend continuation short).
* **Dots**: tiny circles for strong-trend state when no fresh continuation signal is present.
### Inputs (how to tune)
* **LSMA length**
* Higher = smoother, fewer signals
* Lower = more responsive, more signals/noise
* **Ticks per bar ≈ 45°**
* Calibration control for angle scaling across different instruments/timeframes
* Increase it if angles look too “aggressive”; decrease it if angles look too “flat”
* **Min angle for LONG / Max angle for SHORT**
* Tighten to filter for only steep trends; loosen to allow more setups
* **Max correction bars back**
* Larger values allow older pullbacks to qualify
* Smaller values require a more recent correction
### Optional volatility filter (ATR%)
* When enabled, the script requires:
* `ATR% = (ATR / close) * 100 >= minAtrPct`
* Useful to avoid low-volatility chop (but can filter out valid trends on slow markets).
### How to use (practical)
* Use **LC/SC** as “trend continuation after pullback” markers:
* Prefer trading in the direction of higher timeframe bias (if applicable)
* Consider entries on LC/SC with your own risk rules (stops/targets are not included)
* Use the **strong-trend dots** as a regime filter:
* If dots persist, continuation setups have higher context quality
* If dots disappear frequently, market may be ranging/choppy
### Limitations (important)
* Angle is based on **LSMA 1-bar slope**, so it is sensitive to sudden changes and can vary across markets/timeframes.
* Correction logic is binary: it only checks whether price crossed to the other side of LSMA recently (not depth/structure of pullback).
* Signals depend on **close crossing LSMA**, not intrabar wick behavior.
* Not a full trading system: no position sizing, stops, or take profits.
### Alerts
Alerts fire only on **confirmed bars** (`barstate.isconfirmed`) for:
* “LSMA25 Long continuation”
* “LSMA25 Short continuation”
Cyberpunk Vortex IndicatorCyberpunk Vortex Indicator is a visually enhanced Vortex-based momentum indicator designed to clearly capture trend strength and directional dominance.
This indicator calculates VI+ (bullish pressure) and VI− (bearish pressure) using the classic Vortex methodology, then renders them with a layered neon cyberpunk-style glow for maximum readability and impact.
🔹 Key Features
・Vortex Indicator (VI+ / VI−) with SMA smoothing
・Multi-layer laser-style glow (outer / inner / core lines)
・Clear visual distinction between bullish and bearish momentum
・Subtle background and fill effects for intuitive trend recognition
・Clean, modern design without clutter
🔹 How to Use
・VI+ above VI− → Bullish momentum dominates
・VI− above VI+ → Bearish momentum dominates
・The 1.0 baseline helps identify strengthening or weakening trends
・Best used as a trend confirmation tool, not a standalone signal
🔹 Recommended Timeframes
Works well across multiple timeframes.
Commonly effective on 15m, 1H, 4H, and higher.
This indicator focuses on clarity, aesthetics, and momentum visualization, making it ideal for traders who value both performance and design.
Cyberpunk Vortex Indicator は、トレンドの強さと方向性を直感的に把握するために設計された、視認性とデザイン性を重視したボルテックス系モメンタム指標です。
クラシックな Vortex Indicator(VI+ / VI−)をベースに、サイバーパンク調のネオン発光レイヤーで描画することで、買い圧力・売り圧力の優位性を一目で判断できます。
🔹 特徴
・Vortex Indicator(VI+ / VI−)をSMAでスムージング
・外側・内側・芯の3層レーザー風グロー表現
・上昇 / 下降モメンタムの視認性を大幅に向上
・控えめな背景・塗りつぶしで相場の空気感を演出
・ノイズの少ない、洗練されたデザイン
🔹 使い方
・VI+ が VI− を上回る → 上昇トレンド優勢
・VI− が VI+ を上回る → 下降トレンド優勢
・1.0 の基準線でトレンドの勢いを確認
・単体判断ではなく、トレンド確認用としての使用を推奨
🔹 推奨時間足
マルチタイムフレーム対応。
特に 15分足 / 1時間足 / 4時間足以上で安定。
本インジケーターは
「見やすさ」「美しさ」「モメンタムの可視化」を重視しており、
デザインと実用性の両立を求めるトレーダー向けです。
Institutional Structure [Clean Pro]Institutional Structure — Script Explanation
This script is designed to map institutional market behavior using high-timeframe structure, not retail noise.
It focuses on where smart money acts, not on frequent signals.
🔹 1. High-Timeframe Support & Resistance (HTF S/R)
The script identifies major structural highs and lows using a higher lookback period.
Purpose:
Defines where institutions previously distributed or accumulated
Acts as natural decision zones
Filters out low-quality intraday levels
Why it matters:
Institutions trade from key HTF levels, not random support/resistance.
🔹 2. Equilibrium (50% Mean Price)
The equilibrium line represents the fair price between HTF high and low.
How it’s used:
Below equilibrium → discount zone (buy interest)
Above equilibrium → premium zone (sell interest)
Professional insight:
Smart money prefers buying discounts and selling premiums, not chasing price.
🔹 3. Market Structure Shift (MSS)
Instead of frequent BOS labels, the script detects true directional shifts.
Bullish MSS:
Price closes above previous HTF high
Bearish MSS:
Price closes below previous HTF low
Why MSS over BOS:
MSS confirms control change
Reduces false signals
Aligns with institutional execution logic
🔹 4. Liquidity Sweep Detection (Wick-Based)
The script identifies stop-hunt behavior using wick rejection logic.
Buy-side liquidity:
Wick above HTF high, but close back below
Sell-side liquidity:
Wick below HTF low, but close back above
Meaning:
Stops were triggered, but price failed to accept → smart money absorption
🔹 5. Fair Value Gap (FVG) – Refined Imbalance
Fair Value Gaps highlight inefficient price movement.
Bullish FVG:
Price leaves an upside imbalance
Bearish FVG:
Price leaves a downside imbalance
How pros use it:
As reaction zones, not entry signals
Best combined with liquidity + MSS
🔍 How Everything Works Together
The script is context-based, not signal-based:
1️⃣ HTF structure defines the battlefield
2️⃣ Liquidity is taken (stop hunts)
3️⃣ MSS confirms direction
4️⃣ FVG offers precision
5️⃣ Equilibrium filters bias
This creates high-probability trade environments, not overtrading.
📌 Best Practices (Professional Use)
Timeframes: 1H / 4H / Daily
Avoid lower TF noise
Trade only after liquidity is taken
Use FVG as confirmation, not trigger
Respect equilibrium bias
🎯 Summary
✔ Clean institutional logic
✔ No clutter, no spam
✔ HTF-driven decisions
✔ Liquidity-first mindset
✔ Designed for BTC, Gold & FX
🧠 Trade where institutions trade — not where indicators flash.






















