cg - Order Blocks OnlyThis indicator is designed to assist traders in identifying potential limit entry zones along with confirmation signals based on price behavior and technical conditions. It highlights areas where price may react, helping traders plan entries with a structured and disciplined approach.
วัฏจักร
Leader Stock ScannerLeader Stock Scanner, Testing using AI
✅ How it works:
Relative Strength (RS) vs SPY – RS above 80 marks strong leaders.
Trend Alignment – 50 EMA > 150 EMA > 200 EMA and price above all EMAs.
Liquidity Filter – 20-day average volume > 500k.
Price Filter – avoids low-priced microcap traps (< $10).
Output – signals a “triangle up” on chart and can trigger alerts.
iFVG Setup Checklist (Hybrid Auto) [v6] - FIXEDBasically this is a setup grader. You manually check the boxes as you see the confluences. Typically you only want to trade A or A+ setups. The auto detection is a W-I-P so it might work or might not, use ur own sources.
VD Wicked FVGs v1.4 VD Wicked FVGs v1.5 — TradingView Description
🔮 VD Wicked FVGs v1.5 — by VooDoo Never Guru
Not a guru. Never was. Just a trader who got tired of staring at naked charts wondering where price was headed — then remembered that price always tells you where it's going. You just have to know where to look.
This indicator maps the Fair Value Gaps and Opening Ranges that actually matter. No fluff. No repainting hopium. Just structure — drawn where ICT methodology says the imbalances live.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT IT DOES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▸ FIRST PRESENTED FVGs (Time-Based)
The first imbalance of the session sets the tone. This tracks up to 3 custom time-based FVGs — default at 9:31 AM, 1:31 PM, and 6:15 AM — catching the first Fair Value Gap that forms at each key inflection point. Each one
plots the gap zone, midline (equilibrium), and extends forward so you can see where price is drawn to fill. Fully customizable times, colors, borders, and extension behavior.
▸ MACRO & SILVER BULLET FVGs
ICT's macro windows and Silver Bullet killzones, automated. Detects the first FVG within each window:
— London Macros (00:50–04:10)
— NY Macros (05:50–09:10)
— AM Trend (09:50–12:10)
— PM Trend (12:50–16:10)
— London Open SB (03:00–04:00)
— Market Open SB (09:30–10:00)
— NY AM SB (10:00–11:00)
— NY PM SB (14:00–15:00)
Each window gets its own color, extend mode, and bar count. The first presented FVG in each window is what matters — that's the one the algorithm marks.
▸ ICT 30-MINUTE OPENING RANGES
Five session opening ranges drawn automatically with optional FVG detection inside each range:
— Midnight (00:00–00:30)
— London (01:30–02:00)
— New York (07:00–07:30)
— RTH/Equities (09:30–10:00)
— Asian (20:00–20:30)
Shows the range high, low, and equilibrium. Detects the first bullish and bearish FVG within each 30-minute window. Optional range fill and border display.
▸ OPENING RANGE & CLOSING RANGE
Precision-captured using lower timeframe data (default 30-second). The Opening Range grabs the first bar's range at your specified time (default 9:30 AM). The Closing Range does the same for the session close (default 3:59
PM). Both plot high, low, and equilibrium lines with full style control. Historical levels stack so you can see how previous days' ORs and CRs act as support/resistance going forward.
▸ LOWER TIMEFRAME FVGs (15-Second & Hourly)
For the precision traders — detects FVGs on the 15-second timeframe at the 10 AM and 11 AM hours when the real moves tend to start. Also tracks hourly FVGs across the full session, either on your chart timeframe or drilling
into 15-second data for surgical accuracy.
▸ CUSTOM OPENING PRICE LEVELS (COPs)
Five customizable time-based opening price lines. Default setup marks the London Open (1:30 AM) and NY Open (7:00 AM). Add Market Open, PM session, Asian — whatever levels you need. Each gets its own color, style, width, and
extension length.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE EXTEND SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Every FVG category supports 3 extension modes:
— BARS: Extends a fixed number of bars (classic)
— CURRENT: Dynamically extends to the current bar (keeps gaps visible as price develops)
— TIME: Extends until a specific time of day (e.g., stop at 4:00 PM close)
Set it and forget it, or dial each category differently. Your chart, your rules.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DESIGNED FOR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Futures traders working 1m–15m charts who trade ICT concepts: FVGs, opening ranges, macro killzones, and Silver Bullets. Works on ES, NQ, YM, CL, GC — anything with clean intraday structure.
This isn't a signal generator. It's a map. Price moves from imbalance to imbalance — this shows you where they are.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DEFAULTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Out of the box, only the essentials are on: First Presented FVGs, Opening Range, Closing Range, and Custom Opening Price Levels. Everything else (Macros, Silver Bullets, ICT Opening Ranges, Lower TF FVGs) is available but
starts disabled — turn on what fits your style.
No borders by default. Clean chart. VooDoo clean.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Not financial advice. Not a guru. Just VooDoo.
Trade what you see, not what you hope.
🔮 VooDoo Never Guru
Pattern Multi-TF Dashboardesigned 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.
profitstructure
This indicator helps you see:
Market structure
Untested S/R levels
Simple Order Blocks (bullish and bearish zones).
Spring, Upthrust (UT), SOS, SOW.
Watch for price coming into Untested Slow S/R or OB zones.
Look for SPR/UT/SOS/SOW around those areas.
Check the Confluence Table:
Is Total Score = HIGH?
Is Signal = LONG or SHORT?
If Signal = LONG:
Consider the “BUY” + “TP BUY” labels as a potential plan.
If Signal = SHORT:
Consider the “SELL” + “TP SELL” labels as a potential plan.
with potential higher high if create Swing Low (SL) but if Swing high (SH ) potential for higher high or reversal to bottom . it advise to add other parameter like SMA 200 to read uptrend or downtrend
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.
Way Trades Reversal IndicatorMy personal reversal indicator. Never use without confluences. Use as confluence to your strategy and you'll get A+ signals.
JOWY LA VERDADERA ESTRUCTURABasically it is an indicator that perfectly represents the typical BoS Market structure in the fastest way. It is advisable to study several temporalities at the same time and not focus on just one.
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.
Market Intent Flow (MIF)🟡 Market Intent Flow (MIF) – Gold Trader’s Perspective
Market Intent Flow (MIF) is a price-action-based indicator designed to reveal real market participation behind Gold (XAUUSD) moves.
Instead of flooding the chart with signals, MIF highlights only moments when the market clearly shows intent — whether buyers or sellers are in control.
Gold is a liquidity-driven instrument. MIF is built to respect that nature, not fight it.
🏆 Why Gold Traders Like This Indicator
Gold traders prefer clarity over noise, and that’s exactly what MIF delivers:
🧲 Gold respects structure & momentum
🔊 Big moves happen with volume expansion
🧠 Smart money shows intent before continuation
⏳ Fewer signals = higher quality setups
🎯 Works well on H1, H4, and M15
This makes MIF ideal for intraday, swing, and positional Gold traders.
🧠 Detection Logic
Simple • Effective • Battle-Tested
MIF does not rely on lagging indicators.
It confirms intent using three proven market elements:
📈 Structure Shift – Price must break recent highs or lows
🕯 Candle Strength – Strong body dominance, not weak wicks
🔊 Volume Expansion – Participation confirms conviction
Only when all conditions align, a signal is printed.
💥 Displacement Filter
Power Move Confirmation
Gold often creates fake breakouts.
MIF avoids them using a displacement filter:
🚀 Signals appear only during impulsive candles
❌ Weak, slow, or choppy candles are ignored
📊 Confirms real institutional movement
🔥 Ideal for catching continuation after liquidity events
This keeps the indicator clean, disciplined, and professional.
📌 How to Use It Best
🟢 Green Signal → Bullish intent confirmed
🔴 Red Signal → Bearish intent confirmed
🔵 EMA Line → Market bias & trend filter
⚠️ Important Note
This indicator is a confirmation tool, not a prediction engine.
It is designed to help traders trade with the market, not against it.
Position Size Calculator CFD Forex Futures//@version=5
indicator("AUTO Risk & Position Size Calculator – Forex + Futures", overlay=true)
// === INPUTS ===
accountBalance = input.float(100000, "Account Balance")
riskPercent = input.float(1.0, "Risk % per Trade", step=0.1)
// === TRADE TYPE ===
// Forex/CFD = decimaler tilladt
// Futures = hele kontrakter
tradeType = input.string("Forex / CFD", "Market Type", options= )
// === ENTRY & STOP (MANUAL) ===
entryPrice = input.float(0.0, "Entry Price")
stopPrice = input.float(0.0, "Stop Loss Price")
// === SYMBOL DATA (AUTO FROM TRADINGVIEW) ===
tickSize = syminfo.mintick
tickValue = syminfo.pointvalue * syminfo.mintick
// === CALCULATIONS ===
riskAmount = accountBalance * (riskPercent / 100)
stopDistance = math.abs(entryPrice - stopPrice)
// ticks mellem entry & stop
ticks = stopDistance / tickSize
// risiko pr. 1 unit / lot / kontrakt
riskPerUnit = ticks * tickValue
// rå position size
rawPositionSize = riskPerUnit > 0 ? riskAmount / riskPerUnit : na
// === FINAL POSITION SIZE ===
finalPositionSize = tradeType == "Futures" ? math.floor(rawPositionSize) : rawPositionSize
// === DISPLAY ===
var table t = table.new(position.top_right, 2, 10, border_width=1)
table.cell(t, 0, 0, "Symbol")
table.cell(t, 1, 0, syminfo.ticker)
table.cell(t, 0, 1, "Market Type")
table.cell(t, 1, 1, tradeType)
table.cell(t, 0, 2, "Account Balance")
table.cell(t, 1, 2, str.tostring(accountBalance))
table.cell(t, 0, 3, "Risk %")
table.cell(t, 1, 3, str.tostring(riskPercent) + "%")
table.cell(t, 0, 4, "Risk Amount ($)")
table.cell(t, 1, 4, str.tostring(riskAmount))
table.cell(t, 0, 5, "Entry Price")
table.cell(t, 1, 5, str.tostring(entryPrice))
table.cell(t, 0, 6, "Stop Loss Price")
table.cell(t, 1, 6, str.tostring(stopPrice))
table.cell(t, 0, 7, "Risk per 1 Unit ($)")
table.cell(t, 1, 7, str.tostring(riskPerUnit))
table.cell(t, 0, 8, "Raw Position Size")
table.cell(t, 1, 8, str.tostring(rawPositionSize, "#.##"))
table.cell(t, 0, 9, "FINAL SIZE TO TRADE")
table.cell(t, 1, 9, str.tostring(finalPositionSize, "#.##"))
BTC Cycle🎯 Overview
The BTC Cycle Indicator is an advanced trading tool specifically developed for Bitcoin, based on historical market cycles. The indicator combines cycle analysis with multi-timeframe confirmation, technical indicators, and automated entry signals.
📖 Cycle Theory Foundation
Bitcoin has historically moved in predictable cycles with consistent time patterns:
Historical Cycle Data:
🟢 ATL 2015 to ATH 2017 = 1064 days
🔴 ATH 2017 to ATL 2018 = 364 days
🟢 ATL 2018 to ATH 2021 = 1064 days
🔴 ATH 2021 to ATL 2022 = 364 days
Key Observations:
• Bullish Cycles (ATL → ATH) : Consistently ~1064 days (approximately 2.9 years)
• Bearish Cycles (ATH → ATL) : Consistently ~364 days (approximately 1 year)
• Total Cycle Length : ~1428 days (approximately 3.9 years)
This repeating pattern suggests Bitcoin follows a mathematical rhythm driven by halving events and market psychology. The indicator uses these proven time cycles to identify current market position and forecast future turning points.
Based on this pattern, the indicator projects future Cycle Highs and Lows using historical price multipliers combined with these fixed time intervals, providing traders with probabilistic targets for strategic positioning.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Main Features
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔄 Cycle-Based Market Phases
The indicator identifies two main phases in the Bitcoin market:
• Bullish Phase (Cycle Low → Cycle High) : Default 1064 days, starts at cycle bottom
• Bearish Phase (Cycle High → Cycle Low) : Default 364 days, starts at cycle top
These phases are automatically marked on the chart and color-highlighted.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 Relative Trend Index (RTI)
The RTI is an adaptive momentum indicator with phase-dependent calculation:
• Trend Length after CL : 150 periods (bullish phase)
• Trend Length after CH : 90 periods (bearish phase)
• Sensitivity : 95% (adjustable between 50-98%)
• Overbought/Oversold Levels : 80/20
The RTI identifies overbought and oversold conditions and generates Entry Zones when the indicator moves through these extreme areas.
🙏 Credit : The RTI implementation is based on the Relative Trend Index by Zeiierman:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Bollinger Bands Integration
Bollinger Bands are used as an additional confirmation filter:
• Length : 40 periods
• Moving Average Type : WMA (adjustable: SMA, EMA, SMMA, VWMA)
• Standard Deviation : 2.0
• Entry Signals : When price touches the bands during RTI Entry Zones
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌐 Multi-Timeframe Confirmation
The indicator calculates a Market Confirmation Score (0-100%) based on seven independent signals across Daily, Weekly, and Monthly timeframes:
📅 Daily Timeframe (5% each):
• EMA Cross (50/200): Golden Cross vs. Death Cross
• MACD: Bullish vs. Bearish Cross
📊 Weekly Timeframe (10% each):
• 50 EMA: Price Above vs. Below
• 100 EMA: Price Above vs. Below
• MSS & BOS: Market Structure Shift and Break of Structure
• MACD: Bullish vs. Bearish Cross
📆 Monthly Timeframe (25% each):
• 20 EMA: Price Above vs. Below
• MACD: Bullish vs. Bearish Cross
When 100% confirmation is reached, a label is optionally displayed on the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔮 Forecast System
The indicator calculates future Cycle Highs and Lows based on historical multipliers:
• Uses the last two cycles for calculation
• Accuracy Ratio : Correction factor based on deviations
• Forecast Factor : Adjustable multiplier (default 2.0)
• Keep Forecast Lines : Historical forecast lines remain visible
The forecasts are displayed as dashed lines on the chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 Visual Elements
🕯️ Candle Coloring :
• Distinct colors for bullish phase (after Cycle Low)
• Distinct colors for bearish phase (after Cycle High)
• Different highlight colors for RTI Entry Zones (lighter shade for bullish entry zones, darker shade for bearish entry zones)
• All colors are theme-dependent and automatically adapt to the selected color scheme
📍 Entry Points :
• Small triangles below/above candles at Bollinger Band touches during Entry Zones
• Dynamic color adjustment based on current market phase and selected theme
• Arrow colors match the entry zone colors for visual consistency
🏷️ Labels & Lines :
• Cycle High (CH) and Cycle Low (CL) labels with automatic text contrast
• Forecast lines with phase-appropriate colors (bullish forecast lines vs. bearish forecast lines)
• MSS & BOS markers with theme-consistent styling
📋 Cycle Table : Shows upcoming Cycle Highs/Lows with date, forecast price, and percentage change
📊 Multi-Timeframe Table : Compact or standard view of all signals with price levels and confirmation status
📊 Progress Bar : Visual representation of cycle progression with phase-dependent colors
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 MSS & BOS (Market Structure)
The indicator identifies on a weekly basis:
• Market Structure Shift (MSS) : Trend reversal signal
• Break of Structure (BOS) : Trend continuation signal
• Swing Length: 7 periods (fixed)
• Visualization with horizontal lines and labels
🙏 Credit : The MSS & BOS implementation is based on
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 Theme System
15 predefined color themes plus individual customization option:
Dark • Light • Bitcoin Orange • Deep Blue • Purple Haze • Sunset • Warm Charcoal • Teal Ocean • Slate • Arctic Ice • Midnight Amber • Neon Cyan • Matrix Green • Ruby Dark • Individual
Here are a few examples:
Each theme includes coordinated color palettes for:
• 🕯️ Candles : Bullish and bearish phase colors
• 🎯 Entry Zones : Light and dark variants for different phases
• 🏷️ Labels : Cycle High and Cycle Low markers with automatic text contrast
• 📈 Forecast Lines : Phase-appropriate prediction lines
• 📋 Tables : Background, header, and text colors
• 📊 Progress Bar : Phase-dependent progression indicators
• ➡️ Arrows : Bollinger Band entry signals
The Individual theme allows complete manual customization of all color elements.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 Use Cases
1. 📍 Long-term Positioning : Identification of market phases for strategic allocation
2. ⏰ Entry Timing : RTI-based entry zones with Bollinger Band confirmation
3. ✅ Market Confirmation : Multi-timeframe score for trade validation
4. 🔮 Forecast Planning : Target prices and timing for upcoming Cycle Highs/Lows
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Disclaimer
This indicator is for educational and informational purposes only.
• 📉 Not Financial Advice : This tool does not constitute financial, investment, or trading advice. All trading decisions are your own responsibility.
• 🔮 Past Performance ≠ Future Results : Historical cycle patterns do not guarantee future market behavior. Markets can and do deviate from historical norms.
• ⚡ High Risk : Cryptocurrency trading involves substantial risk of loss. Only trade with capital you can afford to lose.
• 🎯 No Guarantees : Forecast prices and cycle dates are probabilistic projections, not certainties. Always use proper risk management.
• 🧪 Do Your Own Research : Always conduct your own analysis and due diligence before making any trading decisions.
✨ Happy Trading! 🚀
Gann Market Cycle Alerts (Long-Term)according to gann time cycle move and buy and sell and side ways
[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.
ZeroLag MACD MTF Dashboard v3A stack of horizontal lines
Ultra-fast multi-timeframe bias reading
Perfect for:
HTF → LTF alignment
Filtering inputs
Trend confluence
Ahmed Order BlockAhmed Order Block
//
// ANTI-REPAINTING FEATURES:
// - Only processes order blocks on confirmed/closed bars (barstate.isconfirmed)
// - Uses historical bar references with explicit offsets
// - Mitigation checks only on confirmed bars
// - Pivot points are inherently confirmed by ta.pivothigh/pivotlow with lookback
//
// NEW FEATURES:
// - Session detection (London, NY, Asian)
// - Order block age tracking (in bars/candles)
// - Customizable info labels inside order blocks
// Session time ranges (in UTC/GMT)
// Asian Session: 00:00 - 09:00 UTC
// London Session: 08:00 - 17:00 UTC
// NY Session: 13:00 - 22:00 UTC
// These pivots are already confirmed - they look swing_length bars left and right
// The pivot value returned is from swing_length bars ago
// CRITICAL FIX: Only detect order blocks on confirmed bars
// This prevents OBs from appearing and disappearing during real-time bar formation
// Find bullish OB (last bearish candle before bullish move)
// The swing_low detected now actually occurred swing_length bars ago
Short-Term Cycle Investing Strategy This strategy use for short term cycle data use and useing phase accumilitain and distrubution and buy zone monthly weekly daily
ICT + AVP + CHoCH (Smart Money)just tried to check concept of ict avp and choch for trading in various charts






















