EMA 55 Cross + Retest BuyStrategy Overview: The "Breakout & Retest"
The 55-period EMA is widely considered a "mid-term" trend indicator. On a daily (1D) timeframe, it represents the average price of the last 11 weeks of trading.
Phase 1: The Bullish Breakout The script identifies when the price closes above the EMA 55. This indicates a potential shift from a bearish/neutral trend to a bullish one.
Phase 2: The Cooling Period (Window) The script starts a "lookback window" (defaulting to 7 days). It waits for the price to naturally pull back toward the moving average.
Phase 3: The Successful Retest The Buy Signal is triggered when the candle's Low touches or slightly pierces the EMA, but the Close remains above it. This shows that the EMA is acting as "Dynamic Support" and buyers are defending that level.
Indicatori e strategie
7 Wonder Moving Average [DR Trade]Moving Averages are easy-to-learn indicators for beginners.
We provide seven moving average indicators that can be customized to suit each trader's needs. We also offer a selection of moving averages: the Simple Moving Average, the Exponential Moving Average, and the Hull Moving Average.
We provide the Hull Moving Average for traders to more accurately identify trends and potential reversals. The HMA is more responsive to recent price changes than the SMA or EMA, while still maintaining a smooth trendline. The HMA was first introduced by Alan Hull to address the lag and noise of traditional moving averages (MAs).
The best way to use the HMA indicator is to use a 100-period indicator on the H1 timeframe.
The other six indicators can be customized by each trader.
Thank you.
Intraday Toolkit1. Visual Components of the Indicator
Understanding the visual cues is essential for quick decision-making during fast-moving intraday sessions:
Trend Background: The background color represents the Primary Cycle (80-period) bias. Green indicates a bullish trend (price is above the primary cycle), and red indicates a bearish trend (price is below the primary cycle).
The Three Cycles:
Yellow Line: Short Cycle (20) – Used for momentum triggers.
Orange Line: Mid Cycle (40) – Represents the baseline for volatility envelopes.
Red Line: Primary Cycle (80) – Defines the overall trend direction.
Volatility Envelopes: Two green lines plotted at a distance (1.5x ATR) from the Mid Cycle. These act as exhaustion zones where price is likely to revert or consolidate.
Rule 3 Signals (Purple Circles): These appear when a specific 3-candle momentum breakout occurs.
2. Trading Strategy for 5m & 15m
This toolkit is most effective when you use the 15m chart for trend confirmation and the 5m chart for precise entries.
Long (Buy) Setup
Enter a long position when the following alignment occurs:
Bullish Bias: The background must be Green (Price > Primary Cycle).
Cycle Low: A pivot low must have been detected (the indicator identifies a local bottom).
Momentum Trigger: Price must close above the Yellow Short Cycle line while the previous candle was below it.
Rule 3 Confirmation: If a purple circle appears simultaneously, it confirms strong buying momentum.
Short (Sell) Setup
Enter a short position when the following alignment occurs:
Bearish Bias: The background must be Red (Price < Primary Cycle).
Cycle High: A pivot high must have been detected (the indicator identifies a local top).
Momentum Trigger: Price must close below the Yellow Short Cycle line while the previous candle was above it.
Rule 3 Confirmation: A purple circle above the price confirms a bearish momentum shift.
3. Exit and Take-Profit Logic
The script includes "State Control" to manage your exits effectively:
Targeting the Envelopes: The primary profit target is the Outer Green Envelope. If price touches the upper envelope (for longs) or lower envelope (for shorts), the trend may be exhausted.
Momentum Exit: If price crosses back over the Yellow Short Cycle line in the opposite direction of your trade, the toolkit considers the move over and signals an exit.
4. Specific Tips for Day Trading
Avoid "Counter-Trend" Signals: Do not take Buy signals if the background is Red, or Sell signals if the background is Green. The logic is built to filter these out for better win rates.
The "Rule 3" Advantage: Use the purple circles as a "second chance" entry. If you missed the initial Buy/Sell signal, a Rule 3 circle indicates momentum is still strong in that direction.
Timeframe Synergy: * 15m: Best for seeing the "Big Picture" and avoiding noise.
5m: Best for finding entries with smaller stop-losses near the Yellow Short Cycle line.
LQ plots w/filledLiquidity Indicator
This indicator identifies significant swing highs and swing lows based on user-defined pivot strength and projects them forward as potential liquidity and reaction levels.
When a valid swing forms, the script:
1. Draws a horizontal level at the swing price
a. Optionally extends that level forward in time
b. Visualizes the level as a line and/or price box
c. Tracks the level until price interacts with or fills it
2. When price trades back through a level:
a. The level is marked as filled
b. A clear X marker is drawn at the point of fill
c. The level is optionally removed or hidden based on user settings
3. Useful for:
a. Designed for traders who focus on:
1. Market structure
2. Liquidity targets
Swing-based support and resistance
Identifying where price has already “paid” liquidity
This tool is structure-driven, it highlights where price has reacted and where it has not, letting YOU, the trader decide how to act.
FED Net Liquidity (WALCL - TGA - RRP)a measure of FED net liquidity with color codes. What is FED Net Liquidity?
FED Net Liquidity is a proxy for how much usable US-dollar liquidity is actually available to financial markets.
It combines three balance-sheet items from the Federal Reserve and the US Treasury into one number:
FED Net Liquidity =
FED Balance Sheet (WALCL) − Treasury General Account (TGA) − Reverse Repo (RRP)
The goal is simple:
to estimate how much money is “in play” for risk assets, rather than parked or withdrawn.
MemoMeister Capsules: Boost Your Concentration and MemoryMemoMeister Capsules: Boost Your Concentration and Memory
In today’s fast-paced digital world, concentration and memory have become essential skills for both professional success and everyday life. MemoMeister capsules are increasingly discussed as a supplement designed to support cognitive performance, mental clarity, and sustained focus. Before forming an opinion about MemoMeister, it is important to consult independent analyses and explanatory resources that examine the product from multiple perspectives.
An in-depth independent review that closely examines MemoMeister capsules, their positioning, and general user perception can be found in this detailed analysis, which provides structured insight and contextual evaluation: www.tumblr.com . Such comprehensive references help establish a clearer understanding of how MemoMeister is discussed in real-world contexts.
Another valuable long-form publication explores MemoMeister capsules within the broader topic of mental performance and productivity. This analytical article offers extended background information and explanatory depth, allowing readers to better understand how MemoMeister fits into modern approaches to cognitive support: substack.com . Content that is written in a narrative and research-oriented style often supports informed decision-making.
For readers who want to verify authenticity and differentiate between genuine information and misleading claims, this independent informational resource provides additional clarification and context related to MemoMeister capsules: sites.google.com . Transparency-focused sources like this play an important role in building trust and credibility.
Why Concentration and Memory Matter More Than Ever
Mental focus and memory retention are fundamental to productivity, learning, and decision-making. Whether managing complex work tasks, studying for exams, or handling multiple responsibilities at once, cognitive endurance is often tested daily. MemoMeister capsules are positioned toward individuals who seek steady support for mental performance rather than short-term stimulation.
As cognitive demands increase, many people look for ways to maintain clarity and attention over longer periods. Memory and concentration are closely linked, and supporting both can help reduce mental fatigue while improving the ability to process and retain information consistently throughout the day.
How MemoMeister Capsules Fit Into Daily Cognitive Support
MemoMeister capsules are commonly discussed as part of a routine-based approach to mental performance. Rather than expecting immediate or dramatic effects, many users focus on gradual cognitive support that integrates into everyday habits. This aligns with how memory and focus supplements are typically evaluated, as improvements are often subtle and develop over time.
Consistency plays a key role when it comes to cognitive supplements. By incorporating MemoMeister capsules into a regular schedule, users often aim to support mental clarity during periods of increased cognitive workload, such as demanding work phases or extended periods of concentration.
Long-Term Cognitive Support and Realistic Expectations
When evaluating supplements designed to support concentration and memory, long-term perspective is essential. Cognitive performance is influenced by multiple factors, including lifestyle, workload, and mental habits, which means that products like MemoMeister capsules are typically viewed as supportive tools rather than instant solutions. Many users focus on maintaining stable mental clarity and consistent focus over time, especially during periods of sustained cognitive demand. By setting realistic expectations and combining supplementation with balanced routines, adequate rest, and mental engagement, MemoMeister capsules are often discussed within a broader strategy aimed at preserving cognitive efficiency and supporting memory function in a sustainable and measured way.
MemoMeister Capsules in Everyday Mental Performance Scenarios
In everyday situations that require sustained attention, such as long workdays, complex problem-solving, or continuous learning, mental performance can fluctuate significantly. MemoMeister capsules are often discussed in connection with these real-life scenarios, where concentration and memory are tested repeatedly rather than occasionally. Instead of targeting short bursts of stimulation, the product is typically associated with maintaining a steady level of cognitive support throughout the day. This makes MemoMeister particularly relevant for individuals who value mental consistency, structured thinking, and the ability to stay focused across multiple tasks without experiencing rapid mental exhaustion.
Independent Perspectives and Information Sources
One reason MemoMeister capsules continue to attract attention is their presence across various independent publishing platforms. Articles, reviews, and explanatory pages provide different viewpoints and allow readers to compare interpretations and experiences. This variety of independent content sources contributes to discoverability and encourages a more balanced evaluation.
Access to multiple perspectives helps readers move beyond promotional messaging and focus instead on informative content. When a supplement is discussed in analytical articles and independent resources, it becomes easier to assess expectations realistically and understand its intended role.
Final Thoughts on MemoMeister Capsules
MemoMeister capsules are aimed at individuals who want to support their concentration and memory in a structured and informed way. Whether used during mentally demanding workdays, study periods, or phases of high cognitive load, the product is positioned as a supplement worth examining more closely through independent sources.
Making an informed decision involves understanding realistic expectations, consulting transparent information, and focusing on long-term cognitive well-being. By exploring detailed analyses, explanatory articles, and credibility-focused resources, readers can form a clearer picture of how MemoMeister capsules may fit into their personal approach to mental performance and memory support.
SilverHawk Liquidity LinesSilverHawk Liquidity Lines
This indicator automatically draws liquidity trendlines from recent pivot highs and lows, with padding based on volatility.
Features:
• Upper and lower lines projected from pivots
• Volatility-adjusted padding (space parameter)
• Optional breakout signals (triangle markers)
Settings:
• Period: lookback length for pivots (default 5)
• Padding: distance from line (default 2)
• Show Breakouts: toggle triangle signals on/off
Best suited for identifying liquidity sweeps and potential reclaim entries on H1 to H4 timeframes in Forex or indices. Use with proper risk management and confirmation.
Educational tool only. Not financial advice. Trading involves risk.
SilverHawk Trendline BreakoutsSilverHawk Trendline Breakouts
This indicator automatically draws trendlines from recent pivot highs and lows, projecting them forward to identify potential breakouts.
Features:
• Dynamic trendline zones based on pivot points (wicks or body option)
• Breakout signals when price crosses the projected line
• Volatility-adjusted target (TP) lines
• Built-in alerts for bullish/bearish breakouts, TP hits, and SL hits
Settings:
• Period: lookback length for pivot detection (default 10)
• Type: Wicks or Body for pivot calculation
• Extend: projection length in bars (25, 50, or 75)
• Show Targets: toggle TP lines on/off
Best suited for H1 to H4 timeframes on Forex pairs or indices for trend continuation setups. Use with proper risk management and confirmation.
Educational tool only. Not financial advice. Trading involves risk.
Double Donchian Channel + T3 MA (Dynamic Color)This indicator combines a **Double Donchian Channel** with a **dynamic T3 Moving Average** to provide a clear view of market structure, volatility, and trend direction on a single chart. The **fast Donchian channel** tracks short-term price extremes, making it useful for identifying breakouts, pullbacks, and momentum shifts. The **slow Donchian channel** represents higher-timeframe structure and acts as a dynamic support and resistance zone, helping traders understand the broader trend context and avoid trading against dominant market pressure.
At the center of the system is the **T3 Moving Average**, a highly smoothed moving average designed to reduce noise while remaining responsive to trend changes. The T3 line **changes colour automatically based on its slope**: it turns **green when rising**, signaling bullish momentum, and **red when falling**, signaling bearish momentum. This colour change allows traders to visually identify trend direction and transitions without relying on lagging crossover signals.
When price trades above a rising (green) T3 and remains within or above the slow Donchian channel, market conditions favor continuation trades and long-side bias. Conversely, when price is below a falling (red) T3 and breaking or respecting the lower Donchian boundaries, bearish continuation setups are favored. Overall, this indicator is best suited for **trending and volatility-expanding markets**, and it works especially well when combined with volume-based tools or regime filters to avoid ranging conditions.
Scalping Indicator + BJ Signal V3This indicator is designed for 1-minute scalping, combining momentum exhaustion, trend confirmation, and precise entry timing into a single visual tool.
It integrates the following core elements:
Williams %R to identify extreme overbought and oversold conditions
Stochastic (80 / 20 logic) to detect exhaustion, rejection, and re-entry timing
MACD histogram for momentum confirmation
SMA (7) as a short-term trend filter
Sequential-style exhaustion counts (8 / 9) used as contextual reference only
🔹 Signal Logic Overview
Signals are generated exclusively on the 1-minute timeframe
Buy signals focus on:
Exhaustion in oversold conditions
Stochastic recovery from the 20 level
Momentum turning positive on the MACD histogram
Sell signals focus on:
Exhaustion in overbought conditions
Stochastic rejection from the 80 level
Momentum turning negative on the MACD histogram
Background colors highlight potential exhaustion zones, while arrows distinguish between:
Real-time (unconfirmed) signals
Confirmed (closed bar) signals
This design helps traders avoid premature entries during fast market conditions.
⚠️ Important Notes
This indicator is not a standalone trading system
Sequential-style counts are not entry signals by themselves
Always combine with:
Market structure
Session awareness (e.g. high-volatility opens)
Proper risk management
🎯 Best Use Case
1-minute scalping
Short-term mean reversion after momentum exhaustion
Traders who prefer clear, non-repainting visual signals
200 EMA mit versetztem LabelThe 200 EMA Indicator is one of the most widely respected and frequently used technical analysis tools among traders across all markets.
Whether applied to stocks, cryptocurrencies, forex, or indices, the 200-period Exponential Moving Average serves as a
critical benchmark for identifying long-term trends, market direction, and key support and resistance levels. www.skool.com
This indicator is designed to provide traders with a clear, visually intuitive way to understand market structure and
make more informed trading decisions. By focusing on long-term price behavior rather than short-term noise, the 200
EMA helps filter out unnecessary signals and keeps traders aligned with the dominant trend.
What Is the 200 EMA?
The
Exponential Moving Average (EMA)
is a type of moving average that places greater weight on recent price data. This makes it more responsive to current
market conditions compared to a Simple Moving Average (SMA), which treats all historical prices equally.
The 200 EMA calculates the average price over the last 200 periods while emphasizing the most recent candles. Because of this long
lookback period, the 200 EMA is primarily used as a long-term trend indicator rather than a short-term trading signal.
Many professional traders and institutions consider the 200 EMA to be a dividing line between bullish and bearish
market conditions.
Why the 200 EMA Is So Important
The 200 EMA has gained its significance not by coincidence, but through decades of consistent use across financial
markets. Its importance lies in the way market participants collectively react to it.
Key reasons traders rely on the 200 EMA include:
It defines the
overall market trend
It acts as
dynamic support and resistance
It helps filter trades in the direction of higher probability
It provides objective structure in trending and ranging markets
When many traders observe the same level, it often becomes self-fulfilling. As a result, price reactions around the
200 EMA are frequently strong and meaningful.
How the 200 EMA Indicator Works
The indicator plots a single exponential moving average line calculated using 200 periods of price data. Because it
adapts dynamically to price movements, the 200 EMA smoothly follows long-term price direction without reacting
excessively to short-term volatility.
Trend Identification
Price above the 200 EMA
indicates a bullish market environment
Price below the 200 EMA
suggests a bearish market environment
This simple rule alone helps traders avoid counter-trend positions and focus on trades aligned with the broader market
direction.
Dynamic Support and Resistance
One of the most valuable characteristics of the 200 EMA is its role as
dynamic support and resistance.
In uptrends, price often pulls back toward the 200 EMA before continuing higher
In downtrends, price frequently rejects from the 200 EMA before moving lower
Unlike static horizontal levels, the 200 EMA adapts to changing market conditions, making it especially useful in
trending markets.
Trade Filtering and Strategy Alignment
The 200 EMA Indicator is commonly used as a
trade filter
rather than a standalone entry signal. By defining the dominant trend, it allows traders to:
Look for long setups only when price is above the 200 EMA
Look for short setups only when price is below the 200 EMA
Avoid low-probability trades against the prevailing market direction
This approach helps improve consistency and reduces emotional decision-making.
Multi-Timeframe Applicability
The 200 EMA works effectively on all timeframes:
Higher timeframes (Daily, Weekly):
Long-term market bias and macro trend
Medium timeframes (4H, 1H):
Swing trading and trend continuation setups
Lower timeframes (15m, 5m):
Intraday structure and directional filtering
Traders often combine the 200 EMA from higher timeframes with entries on lower timeframes to increase confluence and
confidence.
Inside Bar Breakout ( candlestick pattern).📌 What Is This Indicator?
BOIB Pro identifies a very strict form of inside bar:
✅ The inside bar candle’s entire range (body + wicks) must be inside the BODY of the previous candle (mother candle).
❌ If even a single wick is outside the mother body, the setup is rejected.
This filters out weak and noisy inside bars and focuses only on true compression candles.
⸻
📐 Pattern Rules (Strict)
1️⃣ Mother Candle
• The candle immediately before the inside bar
2️⃣ Body-Only Inside Bar (BOIB)
A valid BOIB must satisfy:
• Inside bar high ≤ mother candle body high
• Inside bar low ≥ mother candle body low
⚠️ Normal inside bars (inside wicks only) are ignored.
⸻
⏱️ Breakout Window Logic
After a valid BOIB forms:
• The indicator waits for the next 1 to 5 candles (user-configurable)
• Entry is triggered only if price CLOSES outside the BOIB range
✅ Long Signal
• Candle closes above BOIB high
✅ Short Signal
• Candle closes below BOIB low
If no breakout occurs within the window → setup expires automatically
⸻
🎯 Entry, Stop Loss & Take Profit Logic
Once a valid breakout/breakdown occurs, the indicator automatically draws a professional trade template:
Entry
• At the close of the breakout candle
Stop Loss
• Long → below BOIB low
• Short → above BOIB high
• Optional buffer:
• ATR-based
• Percentage-based
• Or none
Take Profits
• TP1: Risk-Reward based (default 1R)
• TP2: Extended target (default 2R)
All levels are clearly visualized using:
• Horizontal price lines
• Risk and reward boxes
• Informational labels
⸻
📊 Best Use Cases
• Crypto (BTC, ETH, major alts)
• Timeframes:
• Scalping: 5m
• Day trading: 15m / 30m
• Works best when combined with:
• Market structure
• Trend bias
• Support / resistance
⸻
⚠️ Important Notes
• This is NOT an auto-trading system
• Signals should always be used with:
• Proper risk management
• Market context
• Inside bars in sideways or low-volume markets may fail
⸻
📚 Educational Purpose Disclaimer
This indicator is provided for educational and analytical purposes only.
It does not constitute financial advice.
Trading involves risk, and past behavior does not guarantee future results.
5EMA + Volume Spikes + Ultra Fast Scalp V3Description
This indicator combines 5 EMAs, volume spike detection, and an ultra-fast scalping system designed for short-term trading.
The scalping logic uses a fixed + ATR hybrid price deviation, filtered by RSI and CCI to capture extreme overbought/oversold conditions while avoiding overheated zones.
It also includes previous day levels (high, low, body high/low) extended into the current session for clear intraday reference.
Optimized for fast scalping and momentum fades on lower timeframes.
200 EMA mit versetztem LabelAll right—indexing Web 2.0 links is a very typical SEO use case. I'll show you realistically what works, what doesn't, and how you can build your own (semi-automatic) indexing tool without taking unnecessary risks.
chatgpt.com
quantyrsiThis indicator turns classic RSI into a premium, AI-styled spectro
neon ribbon with smooth color drift and a cinematic plasma glow. A
rainbow motion trail highlights momentum and makes shifts in strength
instantly readable without clutter. BIG and HUGE volume-spike events
are marked with sparse, high-contrast rings so standout activity is
impossible to miss. Clean glass-panel ambiance, subtle scanlines, and
a minimal scale deliver a professional HUD look that stays elegant on
any chart. Designed for traders who want both style and signal clarity
in one sleek oscillator.
ZION Momentum Flow [wjdtks255]🚀 ZION Momentum Flow
This is a trend-strength oscillator designed to visualize market momentum through a refined RSI logic. It helps traders identify the exact moment when market energy is accelerating or cooling down.
Key Features:
Visual Momentum: Uses a color-coded histogram to represent trend intensity (Green for Bullish, Red for Bearish).
Two-Tone Strength: Darker colors indicate standard movement, while bright neon colors signal high-energy breakouts beyond the threshold.
Built-in Alerts: Supports alerts for momentum spikes, allowing you to catch trend starts without staring at the screen.
ZION Trend Strike [wjdtks255]🚀 ZION Trend Strike
This is an advanced trend-following signal indicator designed to work in perfect harmony with the ZION Momentum Flow. It filters market noise and provides precise entry/exit points based on momentum synergy.
Key Features:
Trend Strike Signals: Provides clear BUY/SELL labels when price action aligns with momentum energy.
Dynamic Trend Guide: A color-switching EMA line that helps you visualize the current trend direction at a glance.
Synergy Optimization: Best used as a set with ZION Momentum Flow to avoid false breakouts.
Multilingual Input: Easy-to-use settings menu with both English and Korean labels.
SOPR Candles - Custom Mid-LineSOPR Candle with Customizable Mid-Line
On-chain SOPR (Spent Output Ratio) indicator as an oscillator. Customizable centerline and MAs makes signals easy to identify.
Features
SOPR displayed as a column-style oscillator
Customizable SOPR center (middle line)
Optional SMA or EMA smoothing
Clear green/red coloring
How to Use
Values above/below center Indicate profit/loss realization
Risk Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice. Cryptocurrency markets are highly volatile, and trading involves significant risk. Past performance is not indicative of future results. You are solely responsible for your trading decisions and risk management. Always conduct your own research and consider your financial situation before trading.
VX Term StructureThe VX Term Structure Monitor is an advanced visualization tool designed specifically for volatility traders who need to instantly recognize shifts in market structure. By comparing the current VIX Futures Term Structure against the previous trading day's close, this indicator provides a clear, real-time* view of the VIX Spot Index and the next available VX futures contracts. A key visual feature is the "Daily Drift" analysis, which automatically highlights the difference between today's curve (Cyan) and yesterday's curve (Gray/Dashed) with red or green fills, allowing you to immediately spot whether volatility is rising or falling across the term structure.
Unlike standard indicators that rely solely on the Spot price, this script utilizes professional-grade logic to classify market stress into three distinct stages. It identifies a normal Contango environment (Green) when the Front Month (M1) is trading below the Second Month (M2), indicating a calm market where long volatility positions typically suffer from negative roll yield. The system issues a Spot Warning (Orange) if the Spot index overheats and exceeds M1 while the futures curve remains in Contango, often an early signal of building stress. Finally, it detects critical Backwardation (Red) when the futures curve physically inverts (M1 > M2), signaling that market participants are paying a premium for immediate protection.
Usage Note: Due to technical limitations in detecting contract expirations automatically, users must manually select the current "Front Month" contract (e.g., "G (Feb)") in the indicator settings to ensure correct alignment. Users can also configure server-side alerts to trigger specifically when the market flips into Backwardation.
*Note: To view real-time data for VX futures, a paid data subscription to CBOE (CFE) is required on TradingView. Otherwise, the data may be delayed.
Disclaimer: This tool is for educational and informational purposes only and does not constitute financial advice.
3C Breakout PRO Investing involves risk. Study carefully before making an investment decision.
Access may be suspended or changed later.
Thank you GJ daytrad
Pivots + FVG + Liquidity Sweeps (Smart Entry)its a scrpt expermental to see if it works its a scrpt expermental to see if it worksits a scrpt expermental to see if it worksits a scrpt expermental to see if it works
Pivots + FVG + Liquidity Sweeps (Smart Entry)//@version=5
indicator("Pivots + FVG + Liquidity Sweeps (Smart Entry)", overlay=true, max_labels_count=500, max_boxes_count=500)
// ===== INPUTS =====
pivotLeft = input.int(5, "Pivot left bars", minval=1)
pivotRight = input.int(5, "Pivot right bars", minval=1)
sweepLookback = input.int(20, "Lookback for sweep detection (bars)")
sweepAtrMultiplier = input.float(1.0, "Sweep strength (ATR multiplier)")
fvg_max_age = input.int(200, "FVG box expiry (bars)")
show_pivots = input.bool(true, "Show pivot markers")
show_sweeps = input.bool(true, "Show liquidity sweeps")
show_fvgs = input.bool(true, "Show FVG boxes")
require_sweep_for_entry = input.bool(false, "Require recent sweep for smart entry")
confirmation_type = input.string("Bullish/Bearish Engulf", "Confirmation type", options= )
fvg_min_width = input.int(1, "Min FVG width (ticks)", minval=0)
// ===== ATR =====
atrLen = input.int(14, "ATR length")
atr = ta.atr(atrLen)
// ===== PIVOTS =====
ph = ta.pivothigh(high, pivotLeft, pivotRight)
pl = ta.pivotlow(low, pivotLeft, pivotRight)
if show_pivots
if not na(ph)
label.new(bar_index - pivotRight, ph, "PH", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
if not na(pl)
label.new(bar_index - pivotRight, pl, "PL", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
// ===== FVG STRUCT =====
type FVG
float top
float bottom
int born_bar
bool bullish
var FVG fvgs = array.new()
var box fvgBoxes = array.new()
// ===== FVG DETECTION =====
if barstate.isconfirmed
prevHigh = high
prevLow = low
if low > prevHigh and (low - prevHigh) >= syminfo.mintick * fvg_min_width
array.push(fvgs, FVG.new(low, prevHigh, bar_index, true))
if high < prevLow and (prevLow - high) >= syminfo.mintick * fvg_min_width
array.push(fvgs, FVG.new(prevLow, high, bar_index, false))
// cleanup old FVGs
for i = array.size(fvgs) - 1 to 0
f = array.get(fvgs, i)
if bar_index - f.born_bar > fvg_max_age
array.remove(fvgs, i)
// ===== DRAW FVG BOXES =====
if show_fvgs
for i = 0 to array.size(fvgBoxes) - 1
box.delete(array.get(fvgBoxes, i))
array.clear(fvgBoxes)
for i = 0 to array.size(fvgs) - 1
f = array.get(fvgs, i)
col = f.bullish ? color.new(color.green, 85) : color.new(color.red, 85)
bx = box.new(f.born_bar, f.top, bar_index, f.bottom, bgcolor=col, border_width=0)
array.push(fvgBoxes, bx)
// ===== LIQUIDITY SWEEPS =====
var int lastBullSweepBar = na
var int lastBearSweepBar = na
priorHigh = ta.highest(high , sweepLookback)
priorLow = ta.lowest(low , sweepLookback)
bullSweep = high > priorHigh + sweepAtrMultiplier * atr and close < priorHigh
bearSweep = low < priorLow - sweepAtrMultiplier * atr and close > priorLow
if barstate.isconfirmed
if bullSweep
lastBullSweepBar := bar_index
if show_sweeps
label.new(bar_index, high, "Bull Sweep", style=label.style_label_down, color=color.orange, textcolor=color.white, size=size.small)
if bearSweep
lastBearSweepBar := bar_index
if show_sweeps
label.new(bar_index, low, "Bear Sweep", style=label.style_label_up, color=color.orange, textcolor=color.white, size=size.small)
// ===== CONFIRMATION =====
isBullEngulf() => close > open and open < close and close > open
isBearEngulf() => close < open and open > close and close < open
isAnyBull() => close > open
isAnyBear() => close < open
// ===== SMART ENTRY =====
for i = array.size(fvgs) - 1 to 0
f = array.get(fvgs, i)
inFvg = close <= f.top and close >= f.bottom
if inFvg
okSweep = true
if require_sweep_for_entry
okSweep := f.bullish ? (not na(lastBullSweepBar) and bar_index - lastBullSweepBar <= sweepLookback) : (not na(lastBearSweepBar) and bar_index - lastBearSweepBar <= sweepLookback)
if okSweep
confirm = confirmation_type == "Bullish/Bearish Engulf" ? (f.bullish ? isBullEngulf() : isBearEngulf()) : confirmation_type == "Close Above/Below FVG" ? (f.bullish ? close > f.top : close < f.bottom) : (f.bullish ? isAnyBull() : isAnyBear())
if confirm
if f.bullish
label.new(bar_index, low, "Smart Long", style=label.style_label_up, color=color.lime, textcolor=color.black, size=size.normal)
else
label.new(bar_index, high, "Smart Short", style=label.style_label_down, color=color.fuchsia, textcolor=color.white, size=size.normal)
break






















