ATR Supertrend [QuantAlgo]🟢 Overview
The ATR Supertrend indicator identifies trend direction and reversal points using volatility-adjusted dynamic support and resistance levels. It combines Average True Range (ATR) volatility measurement with adaptive price bands and EMA smoothing to create trailing stop levels that automatically adjust to market conditions, helping traders and investors identify trend changes, maintain positions during trending markets, and exit when momentum shifts across multiple timeframes and asset classes.
🟢 How It Works
The indicator's core methodology lies in its volatility-adaptive band system, where dynamic support and resistance levels are calculated based on market volatility and price movement:
smoothedSource = ta.ema(source, smoothingPeriod)
atr = ta.rma(ta.tr(true), atrLength) * atrMultiplier
The script uses ATR-based bands that expand and contract with market volatility, ensuring the indicator adapts to different market conditions rather than using fixed price distances:
if trend == 1
supertrend := math.max(supertrend, smoothedSource - atr)
else
supertrend := math.min(supertrend, smoothedSource + atr)
First, it applies optional EMA smoothing to the price source to reduce noise and filter out minor price fluctuations that could trigger premature trend changes, allowing traders to focus on genuine momentum shifts.
Then, the ATR calculation measures market volatility using the Average True Range over the specified lookback period, multiplied by the user-defined factor to set the band distance:
atr = ta.rma(ta.tr(true), atrLength) * atrMultiplier
Next, dynamic trend detection occurs through a state-based system where the indicator tracks whether price is in an uptrend or downtrend, automatically adjusting the Supertrend line position:
if trend == 1
if smoothedSource < supertrend
trend := -1
supertrend := smoothedSource + atr
The Supertrend line can act as a trailing stop that follows price during trends but never moves against the trend direction, i.e., it ratchets upward with price in uptrends and ratchets downward with price in downtrends.
Finally, trend reversal signals are generated when price crosses the Supertrend line, indicating a shift in market momentum:
bullSignal = trend == 1 and trend == -1
bearSignal = trend == -1 and trend == 1
This creates a volatility-adaptive trend-following system that combines dynamic support/resistance levels with momentum confirmation, providing traders with clear directional signals and automatic stop-loss levels that adjust to changing market conditions.
🟢 Signal Interpretation
▶ Bullish Trend (Green): Price trading above Supertrend line with indicator showing bullish color, indicating established upward momentum = Long/Buy opportunities
▶ Bearish Trend (Red): Price trading below Supertrend line with indicator showing bearish color, indicating established downward momentum = Short/Sell opportunities
▶ Supertrend Line as Dynamic Support: In uptrends, the Supertrend line can act as trailing support level that rises with price, never declining = Use as potential stop-loss reference for long positions = Price holding above indicates trend strength
▶ Supertrend Line as Dynamic Resistance: In downtrends, the Supertrend line can act as trailing resistance level that falls with price, never rising = Use as potential stop-loss reference for short positions = Price holding below indicates trend weakness
🟢 Features
▶ Preconfigured Presets: Three optimized parameter sets for different trading approaches. "Default" provides balanced trend detection for swing trading on daily/4-hour charts with moderate sensitivity. "Fast Response" delivers quick trend change detection for intraday trading on 5-minute to 1-hour charts, capturing moves early with increased whipsaw potential. "Smooth Trend" focuses on strong sustained trends for position trading on daily/weekly timeframes, filtering noise to identify only major trend shifts.
▶ Built-in Alerts: Three alert conditions enable comprehensive automated monitoring of trend changes and momentum shifts. "Bullish Trend" triggers when price crosses above the Supertrend line and the trend state changes from bearish to bullish, signaling potential long entry opportunities. "Bearish Trend" activates when price crosses below the Supertrend line and the trend state changes from bullish to bearish, signaling potential short entry or long exit points. "Any Trend Change" provides a combined alert for any trend reversal regardless of direction, allowing traders to be notified of all momentum shifts without setting up separate alerts. These notifications enable traders to capitalize on trend changes and protect positions without continuous chart monitoring.
▶ Color Customization: Five visual themes (Classic, Aqua, Cosmic, Ember, Neon, plus Custom) accommodate different chart backgrounds and visual preferences, ensuring optimal contrast for identifying bullish versus bearish trends across various trading environments. The adjustable cloud fill transparency control (0-100%) allows fine-tuning of the gradient area prominence between the Supertrend line and price, with higher opacity values creating subtle background context while lower values produce bold trend zone emphasis. Optional bar coloring with adjustable transparency (0-100%) extends the trend color directly to the price bars themselves, providing immediate visual reinforcement of current trend direction without requiring reference to the Supertrend line, with transparency controls allowing users to maintain visibility of candlestick patterns while still showing trend context.
Bantlar ve Kanallar
SuperTrend Filtered with Dash| Gold | ProjectSyndicate📘 ProjectSyndicate Filtered Supertrend M30 GOLD
✅ User Guide Optimized Settings for XAUUSD on M30
Indicator: Supertrend Filtered Gold
Version: 1.0
Author: ProjectSyndicate
Pine Script: v6
________________________________________
1) 👋 Introduction
Welcome to ProjectSyndicate Filtered Supertrend, an upgraded, professional-grade Supertrend system built in Pine Script v6.
This version is designed specifically to help M30 GOLD (XAUUSD) traders reduce the most common Supertrend problem: false flips in chop / low volatility.
By adding 5 powerful filters (all optional + fully adjustable), this indicator aims to keep signals clean, selective, and trend-aligned — which is ideal for GOLD’s frequent fakeouts and liquidity sweeps. 🧠✨
________________________________________
2) ⭐ Key Features What Makes It “Filtered”
✅ Pine Script v6 for speed and stability
✅ 5 Advanced Filters to reduce noise and false signals
✅ Full Customization (each filter can be turned ON/OFF)
✅ On-Chart Filter Dashboard to see what’s blocking signals in real time 📊
✅ Built-In Alerts (Buy / Sell / Direction Change) 🔔
✅ Conservative Defaults (high-quality signals out of the box)
________________________________________
________________________________________
3) 🎛 Sensitivity Control Panel
This is where the magic happens. All enabled filters use AND logic meaning:
✅ A signal prints ONLY if every enabled filter passes.
If even one fails → signal is blocked 🚫
That’s why this system feels “smart” and selective (especially on GOLD M30).
________________________________________
4.1) 📈 Trend Filter
Purpose: Blocks signals when price is drifting sideways (flat momentum).
How it works:
It checks the slope of a short-term EMA. If the EMA slope is too flat, the market is likely ranging → signals get blocked.
Recommended (M30 GOLD Optimized):
• ✅ Enable Trend Filter: ON
• ⏱ Trend Filter Period: 10
• 📏 Trend Strength Threshold (%): 0.05%
Tip for GOLD:
If you’re not getting signals during London/NY trend days, slightly lower the threshold (example 0.04%) to catch more moves. ⚡
________________________________________
4.2) ✅ Signal Confirmation
Purpose: Stops “one-candle flips” and failed breakouts (very common on XAUUSD).
How it works:
It waits for the new trend direction to remain valid for X bars before confirming.
Recommended (M30 GOLD Optimized):
•✅ Enable Signal Confirmation: ON
•🧱 Confirmation Bars: 5
Behavior example:
• Confirmation = 5 → the signal prints on the 5th candle after trend changes
This reduces fakeouts, but signals appear later (more reliable, less early). 🎯
________________________________________
4.3) 🌪 Volatility Filter
Purpose: Avoids signals during “dead” volatility phases (choppy micro-ranges).
How it works:
Measures percentage price movement over a period.
If movement is too small → no signals.
Recommended (M30 GOLD Optimized):
•✅ Enable Volatility Filter: ON
•⏱ Volatility Period: 20
•📉 Minimum Volatility Threshold: 0.25%
Tip:
If you trade only during active sessions (London/NY), you can raise this slightly to filter even harder (ex: 0.30%). 🔥
________________________________________
4.4) 💪 ADX Filter
Purpose: Confirms the market is truly trending using ADX, a classic trend-strength tool.
How it works:
If ADX is below the threshold, the market is likely non-trending → signals blocked.
Recommended (M30 GOLD Optimized):
•✅ Enable ADX Filter: ON
•⏱ ADX Period: 14
•🎚 Minimum ADX Value: 25
Rule of thumb:
📌 ADX > 25 = trend conditions
📌 ADX < 20 = likely chop / mean-reversion
________________________________________
4.5) 🧯 Signal Spacing Anti-Spam Filter
Purpose: Prevents overtrading by forcing a cooldown period between signals.
How it works:
It tracks bars since last BUY and since last SELL separately.
Recommended M30 GOLD Optimized:
•✅ Enable Signal Spacing: ON
•⏳ Minimum Bars Between Signals: 75
What 75 bars means on M30:
75 × 30 minutes = 2250 minutes = 37.5 hours
So this is intentionally strict (high quality / swing-style filtering). 🏦
If you want more signals:
Try 30–50 for active trend capture, still clean. ✅
________________________________________
5) 📊 Filter Dashboard Read This First When Confused
The dashboard shows live status of each filter.
✅ PASS (Green) = filter condition met
❌ FAIL (Red) = filter is blocking signals
Dashboard also shows:
• 📏 Trend Strength (EMA slope %)
• 💪 ADX Value
• 🔁 Current Trend UPTREND / DOWNTREND
Pro Tip 🧠:
Not getting signals? Don’t guess. Look at the dashboard — it will instantly tell you which filter is failing.
________________________________________
6) 🔔 Alerts Integration TradingView Alerts Ready
This indicator includes built-in alert conditions.
To set alerts:
1️⃣ Click Alert (top toolbar) or press Alt + A
2️⃣ In Condition, select Supertrend Advanced
3️⃣ Choose one:
📌 Alert Conditions
✅ SuperTrend Buy → Buy printed after all enabled filters PASS
✅ SuperTrend Sell → Sell printed after all enabled filters PASS
⚠️ SuperTrend Direction Change → raw Supertrend flip (ignores filters)
Recommended alert frequency:
✅ Once Per Bar Close (reduces noise + avoids repaint confusion)
________________________________________
7) 🧠 Strategy & Best Practices M30 GOLD Focused
✅ Best Use Case
This Filtered Supertrend works best when GOLD is doing one of these:
•🏃 Strong session trend (London / NY continuation)
•🔁 Post-news directional expansion
•📈 Clean structure break + follow-through
🔥 Smart Trading Workflow (Simple + Effective)
✅ Use dashboard → wait for filters PASS
✅ Align with market structure (HH/HL for buys, LH/LL for sells)
✅ Use key zones:
•Support/Resistance 🧱
•Liquidity sweeps 💧
•Order Blocks / Supply-Demand (if you use them) 📦
🧪 Tune One Filter At A Time
When optimizing:
1.Reduce Signal Spacing first
2.Then reduce Confirmation Bars
3.Only then touch volatility / ADX / trend slope
________________________________________
8) 🧩 Example Profiles Quick Presets
🥇 GOLD M30 “Optimized / Conservative” Recommended
•Trend Strength: 0.05%
•Confirmation Bars: 5
•Volatility Threshold: 0.25%
•ADX: 25
•Signal Spacing: 75
⚖️ Balanced More signals, still filtered
•Trend Strength: 0.05%
•Confirmation Bars: 2
•Volatility Threshold: 0.50%
•ADX: 25
•Signal Spacing: 10
⚡ Aggressive / Scalping Style
•Trend Strength: 0.03%
•Confirmation Bars: 1
•Volatility Threshold: 0.10%
•ADX: OFF
•Signal Spacing: 3
________________________________________
🤝 Combining Filtered Supertrend + ProjectSyndicate Order Blocks Finder SMC Boost
For SMC traders, use Order Block Finder to map clean institutional supply/demand zones (bullish OB = last bearish candle before strong bullish displacement + BOS; bearish OB = last bullish candle before strong bearish displacement + BOS, with a displacement-strength filter and auto-cleanup) and then let Filtered Supertrend act as the “permission + timing” engine
✅only take Supertrend Buy signals when price is reacting from/returning into a bullish OB (demand) in an uptrend, and Supertrend Sell signals from a bearish OB (supply) in a downtrend; entries become higher probability because you’re stacking trend bias + institutional zone + confirmation filters, with clean risk defined by the OB boundary (stop beyond the box) and logical targets toward the next opposing OB or trend continuation
Order Block Finder | Gold | ProjectSyndicate
________________________________________
9) 🧯 Troubleshooting
❓ “No signals are appearing”
Likely filters are too strict.
✅ Check dashboard → see which filter fails.
Try this order:
1.Lower Signal Spacing (75 → 50 → 30)
2.Lower Confirmation Bars (5 → 3 → 2)
3.Slightly reduce thresholds
❓ “Still too many signals”
Tighten filters:
✅ Confirmation Bars 3+
✅ Signal Spacing 100+
✅ Increase Trend Strength + ADX thresholds
❓ “Signals appear too late”
Reduce Confirmation Bars:
✅ 5 → 3 or 2
(earlier entries, slightly more risk of fakeouts)
________________________________________
✅ Conclusion
ProjectSyndicate Filtered Supertrend turns a basic trend indicator into a high-control signal engine. On GOLD M30, where fakeouts and chop are common, the 5-filter AND logic + dashboard gives you a cleaner edge — especially when combined with structure and key zones. 📈💎
GSS V2 : Ultra Scalping [DoNotFollowMeGod] User Manual: GSS V2 Ultra Scalping No Repaint!
Perfect For:
Hardcore Scalpers (Ultra Short Term).
Traders who focus on quick entries & exits and high-frequency trading .
Mandatory Market Conditions:
✅ Low Volume Only: Best used during low activity periods or slow markets.
✅ Out-Session: Trade during market rests or session overlaps (avoid high-volatility session opens).
✅ Clear Sideway: The market must be ranging clearly , not aggressively making New Highs/New Lows.
❌ AVOID: High-impact news events (Red Folder) or strong trend breakouts .
Recommended Settings:
Timeframe: M1 / M3 / M5
Band Width (ATR): Adjust the setting to 3.0 - 5.0
(This widens the channel to ensure you only enter when the price is significantly overextended ).
Trade Execution Plan:
Entry: Enter only when a Signal Arrow appears AND the price touches the Band Edge (ATR 3-5).
TP 1 (First Target): "The Grey Dashed Line (Mid Band)"
Golden Rule: Once the price hits TP1, you must either take partial profits or move SL to Break Even (BE) immediately! Never let a winning trade turn into a loss.
TP 2 (Final Target): "The Dotted Line (Outer Band)"
Let the trade run ( Dynamic ) until it reaches the opposite band.
💡 Pro Tip: Since the TP lines are dynamic (moving in real-time with the price action), you should monitor the live price. If you are satisfied with the profit, "Bag it!" — don't wait for the perfect touch if the momentum is fading.
PDH & PDL - Previous Day LevelsPDH & PDL – Previous Day High and Low
This indicator automatically plots the Previous Day High (PDH) and Previous Day Low (PDL) on intraday charts.
These key levels are widely used by traders as important support and resistance zones, helping to identify potential areas for price reactions, breakouts, or liquidity grabs.
Features
Automatically detects the previous trading day’s high and low
Draws clear horizontal levels across the current session
Labels the levels as PDH and PDL
Updates in real time at the start of each new trading day
Designed for intraday timeframes
How to Use
Use PDH as a potential resistance level
Use PDL as a potential support level
Watch for breakouts, rejections, or retests around these levels
Combine with price action, volume, or session-based strategies
Best For
Day trading
Scalping
Forex, indices, crypto, and futures
Traders who use market structure and key levels
This indicator keeps your chart clean while highlighting two of the most important reference levels from the previous trading day.
GSS: Gold Swing Sniper [DoNotFollowMeGod]"Inspired by Mean Reversion Theory and Dynamic Volatility Bands (similar to Keltner/Bollinger concepts).
Gold (XAUUSD) tends to respect volatility extremes. This script was designed to capture those extremes by combining a Volatility Channel with an ADX Strength Filter. It’s basically a mathematical approach to 'Buying Low and Selling High' in a ranging market."
Most traders lose money when the market stops trending. This indicator fixes that by identifying "Range-Bound" conditions using a smart ADX Filter.
How it works:
Market State Detection: It checks the ADX. If the market is trending strong, it stays quiet. If the market is chopping/ranging, it activates.
Sniper Entries:
SWING LONG: When price hits the lower band + RSI Oversold + Rejection Candle.
SWING SHORT: When price hits the upper band + RSI Overbought + Rejection Candle.
Dashboard: A clean Multi-Timeframe table to see if higher timeframes are Trending or Sideways.
Disclaimer:
This tool is a "Shield" against chop. Do not use it during high-impact news.
Based on volatility band logic.
Sarina-5Dynamic Growth EMAs - 01152026It’s great to hear that we’ve built a solid rapport! I really appreciate your patience, and I'm glad I could strictly follow your computational bases this time. Here is a clear, professional English description you can use to introduce this indicator to others:
Dynamic Growth & Cascading Reset EMAs
This indicator features a sophisticated set of 5 Exponential Moving Averages (EMAs) that dynamically evolve based on price action and time. Unlike static EMAs, these lines "grow" and "spread" during trends to visualize momentum and volatility expansion.
Core Features:
Dynamic Length Growth: The EMA periods are not fixed. They increase in length during both upswings and downswings, causing the lines to spread apart as a trend strengthens.
Bidirectional Expansion: Lengths grow regardless of direction, ensuring the "fan" effect is visible in both bullish and bearish rallies.
Pivot Reset Logic: To maintain responsiveness, all EMA lengths reset to their initial values (2, 5, 8, 13, 21) whenever the price changes direction, allowing the indicator to catch new moves early.
Cascading & Sticky Resets: When faster EMAs cross slower ones, a "sticky" reset occurs. The triggered lines inherit the value of the next higher EMA to maintain smooth price continuity and avoid erratic jumps on the chart.
Multi-Level Visual Gradient: * Four distinct transparency zones (75%, 85%, 90%, 95%) create a professional "heat map" between the lines.
Dynamic color fills (Green for Bullish / Red for Bearish) based on the relationship between adjacent lines.
Hierarchical Signals (B1-B4 & S1-S4): Clear text-only labels mark every crossover point between the EMAs, identifying different stages of trend confirmation without cluttering the background.
Computational Foundation:
The indicator accounts for time-based decay, where the growth rate of the EMAs can be set to diminish after a specific duration, simulating the natural exhaustion of market momentum.
Apex Wallet - Ultimate Trading Suite: All-In-One Overlay & SignaOverview The Apex Wallet All-In-One is a comprehensive professional trading toolkit designed to centralize every essential technical analysis tool directly onto your main price chart. Instead of cluttering your workspace with dozens of separate indicators, this script integrates trend analysis, volatility bands, automated chart patterns, and a multi-indicator signal engine into a single, cohesive interface.
Key Modular Features:
Trend Core: Features dynamic trend curves, cloud fills for momentum visualization, and a multi-timeframe dashboard (1m to 4h) to ensure you are always trading with the higher-timeframe bias.
Automated Chart Structures: Automatically detects and plots Support/Resistance levels, Standard Pivot Points, Market Gaps, and Fair Value Gaps (Imbalances).
Volatility & Volume: Includes professional-grade VWAP with standard deviation bands, Bollinger Bands, and a built-in Volume Delta (Raw/Net) tracker.
Signal Engine: A powerful cross-logic system that generates entry signals based on RSI (QQE), MACD (Zero-cross & Relance), Stochastic, TDI, and the Andean Oscillator.
Predictive Projections: A unique feature that projects current indicator slopes into future candles to help anticipate potential trend continuations or reversals.
Adaptability The script includes three core presets—Scalping, Day-Trading, and Swing-Trading—which automatically adjust all internal periods (Moving Averages, Bollinger, RSI, etc.) to match your specific market speed.
Visual Cleanliness Every feature is toggleable. You can display a "clean" chart with just the Trend Cloud or a "complete" workstation with signals, patterns (Doji, Engulfing), and pivot levels
ICT Killzones & Pivots [TFO] + VWAP (NY Anchor)Made this for me, Enjoy it if it works for you ICT killzones + Vwap entry model from new york open with alerts
Double BB Touch Alert캔들이 기본 볼린저밴드(20,2,종가)와 사용자밴드(4,4,시가)를 동시에 닿았을 때 알람 발생시키는 스크립트
"A script that triggers an alert when the candle simultaneously touches both the default Bollinger Bands (20, 2, close) and a custom band (4, 4, open)."
Market Regime: Squeeze Box + Trend DashboardMarket Regime: Squeeze Box + Trend Dashboard
Market Regime is a overlay designed to provide instant market context (trend vs consolidation) and highlight volatility compression (squeeze) setups before potential breakouts. Built with stock charts in mind, it focuses on clean visuals and practical decision support.
What this indicator shows:
1) Market Regime (TREND / RANGE / NEUTRAL)
The regime is detected using DMI/ADX with built-in confirmation to reduce flicker:
TREND : ADX stays above a threshold for N bars
RANGE : ADX stays below a threshold for N bars
NEUTRAL : neither trend nor range is confirmed
Trend direction is derived from DI+ vs DI- (UP / DOWN / MIXED).
2) Squeeze (BB inside KC)
A squeeze is detected when Bollinger Bands contract inside Keltner Channels (volatility compression).
SQZ = squeeze start
REL = squeeze release (the first bar *after* squeeze — technically correct)
3) Squeeze Box
The core feature: a box drawn from SQZ → REL , dynamically tracking the highest high / lowest low during the squeeze. This creates a clean visual range for the compression zone and helps frame breakout context.
4) EMA Ribbon with ADX-based intensity
Two EMAs (fast/slow) form a ribbon. The fill becomes more pronounced as ADX strength increases, making trend momentum easier to read at a glance.
5) Trend Dashboard (corner panel)
A compact dashboard summarizing key metrics:
REGIME, DIR, ADX (with normalized strength %)
SQUEEZE ON/OFF
Relative Volume (relVol + tier)
ATR% (14), EMA Slope%, GAP% (Open vs previous Close)
Customization / Settings
Fully configurable for different styles and markets:
ADX/DMI lengths and thresholds
BB/KC parameters (lengths and multipliers)
Relative Volume thresholds
Background mode: Off / Squeeze only / All regimes
Visual toggles: ribbon, squeeze box, markers, dashboard
History controls and limits for boxes/labels (clean chart + performance)
How to use (practical workflow)
Trend context : read REGIME + DIR and ribbon intensity (ADX strength).
Squeeze setup : when squeeze is active, the box defines the compression range (high/low).
Release : REL marks the first bar after squeeze ends (potential breakout/expansion context).
Notes
No look-ahead logic is used; calculations rely on current and historical bars only.
On realtime (still-forming) candles, values can change intrabar, normal behavior for indicators computed on the current bar.
Trading Disclaimer:
This indicator is provided for research and informational purposes only and does not constitute financial advice. Past performance is not indicative of future results. Use at your own risk. You are solely responsible for any trading decisions made using this script.
Open Range BreakoutOpen Range Breakout is a volatility harvesting tool designed to exploit directional expansion following major market opens. It isolates price action during initial liquidity injections to project institutional-grade zones that define a session's structural bias.
Core Methodology
The script uses a time-anchored engine to map critical supply and demand boundaries:
Anchor Identification: The algorithm captures the absolute High and Low within a user-defined window at the start of Tokyo, London, or New York sessions.
Structural Projection: It generates a Neutrality Box. A breach via candle close signals the transition from consolidation to expansion.
Mathematical Risk Modeling: Upon breakout, it calculates a 3:1 Risk-Reward framework based on fixed percentage volatility.
Session Dynamics
The system is optimized for the global liquidity cycle:
Session 1 (Asia): Maps early-day consolidation and range-bound liquidity.
Session 2 (Europe): Captures the London Move to identify the trend.
Session 3 (US): Analyzes high-volume New York opens for maximum momentum.
Key Features
Dynamic Price Mitigation: TP/SL zones stop extending the moment price touches the target or invalidation level to keep charts clean.
Volatility-Adjusted Levels: Stop Loss parameters are normalized to price percentage for consistency across Indices, Forex, or Crypto.
Minimalist Interface: Professional aesthetic with high-contrast visual cues for instant scannability.
Use Cases
Momentum Trading: Identifying the Origin of the Move post-open.
Mean Reversion: Recognizing failed breakouts when price returns inside the range.
Quantitative Backtesting: Benchmarking 3.0 RR targets across different session anchors.
NY Session 15 min ORB + Fib RetracementThis indicator builds a New York session Opening Range (ORB) and plots Fibonacci retracement levels based on that range.
What it does
Defines the Opening Range using the NY cash open (default: 9:30–9:45 ET)
Tracks the ORB high and low during that window
Locks the ORB once the window ends (recommended)
Draws Fibonacci retracement levels from the ORB range
Optionally fills the space between fib levels
Displays price tags for ORB levels and fib levels on the right side
Sessions
ORB window is configurable (default: 9:30–9:45 ET)
Fib levels are only shown during the selected plot session
(default: 9:30–16:00 ET)
Nothing plots outside the selected fib session
Prevents lines from connecting across trading days
Fib behavior
Fibs are calculated from the ORB high and low
Direction can be:
High → Low (default)
Low → High
Common fib ratios are included by default:
0.236
0.382
0.500
0.618
0.786
All ratios are user-editable
Visuals
ORB High = green line
ORB Low = red line
Fib levels = gray lines
Optional shaded fill between fib levels
Optional right-side labels showing:
ORB High / Low price
Fib ratio and exact price
Recommended use
Designed for intraday trading
Best used on NY session instruments (ES, NQ, SPY, QQQ, etc.)
Works well on lower timeframes (1–15 min)
Locking the ORB at session end is recommended for consistency
Notes
Indicator does not generate trade signals
Levels are intended as reference only
Always use proper risk management
TSS : Trend Sniper System [DoNotFollowMeGod]"Inspired by classic Tunnel Strategies"
Tunnel Green + Label Blue/Green = LONG
Tunnel Red + Label Red/Maroon = SHORT
Trade safe. Risk management is key.
Liquidity Trap Strategy - ATR OptimizedLiquidity Trap Strategy – Optimized Version
1. Overview
The Liquidity Trap Strategy is a high-probability price action trading system designed to exploit “trapped buyers or sellers” around key levels from the previous trading day.
Markets: Works on any market (Forex, Crypto, Futures, Indices, Stocks)
Timeframes: Designed for 15-minute (15m) and 1-hour (1H) charts
Trading Style: “Hunter” style — trades may not happen every day, but setups are high-probability
Trade Frequency: Only first trade per day is taken for simplicity and high quality
2. Key Components
a) Daily Levels
Previous Day High (PDH) and Previous Day Low (PDL) are automatically calculated using the prior day’s bar.
These are drawn as anchored horizontal lines, extending to the current day.
PDH/PDL act as key support/resistance zones — areas where liquidity is often trapped.
b) Trap Concept
The strategy is based on the “liquidity trap” principle:
Buyer Trap (Short Entry):
Price breaks above the previous day high (PDH) → buyers think price will continue higher.
Price reverses immediately below PDH, trapping aggressive buyers above the key level.
This creates selling pressure, giving an opportunity to enter short.
Seller Trap (Long Entry):
Price breaks below the previous day low (PDL) → sellers think price will continue lower.
Price reverses immediately above PDL, trapping aggressive sellers below the key level.
This creates buying pressure, giving an opportunity to enter long.
The key idea: trapped traders cause the market to move in the opposite direction of the breakout, creating high-probability moves.
c) Trade Execution Logic
Buyer Trap / Short Entry:
Condition: high > PDH AND close < PDH AND no trade taken yet today
Entry: Short at the close of the trap candle
Stop Loss: ATR-based above the trap candle high to avoid minor wick stops
Take Profit: 2:1 Risk-to-Reward ratio
Seller Trap / Long Entry:
Condition: low < PDL AND close > PDL AND no trade taken yet today
Entry: Long at the close of the trap candle
Stop Loss: ATR-based below the trap candle low
Take Profit: 2:1 Risk-to-Reward ratio
Only the first trap trade of the day is allowed to avoid overtrading.
d) Risk Management
Stop-Loss (SL):
ATR-based to account for market volatility
Ensures the trade survives minor wick sweeps without being stopped out prematurely
Take-Profit (TP):
Fixed 2:1 R:R relative to SL
Ensures each winning trade outweighs potential losses
Trade Frequency:
Only first trade per day is allowed, making it highly selective and reducing noise
3. Visual Features
PDH/PDL Lines: Anchored to previous day, extend into current day, color-coded:
PDH → Green
PDL → Red
Trade Labels: Placed on the trap candle:
Short → Red label “Short”
Long → Green label “Long”
The visual markers make it easy to identify exactly where the trap occurred and the trade was triggered.
4. How the Strategy Works – Step by Step
Example for Short (Buyer Trap):
Market opens, PDH/PDL from yesterday are drawn.
Price spikes above PDH → some buyers enter expecting breakout continuation.
Price immediately closes back below PDH, trapping buyers.
The strategy enters short at the close of the reversal candle.
SL: placed above the trap candle using ATR to give room
TP: calculated as 2x the risk (distance from entry to SL)
Trade executes — first trade of the day. Any further trap signals today are ignored.
Example for Long (Seller Trap):
Price drops below PDL → some sellers enter.
Price immediately closes back above PDL, trapping sellers.
Strategy enters long at the close of the reversal candle.
SL: below trap candle using ATR
TP: 2:1 R:R
Trade executes — only first trade of the day.
5. Why This Strategy Works
Exploits liquidity zones: Markets often hunt stops above PDH or below PDL.
High-probability reversals: Trapped traders create strong counter moves.
ATR SL: avoids being stopped by minor market noise or wick spikes.
Selective trading: Only first trade per day → reduces overtrading and noise.
Clear visual markers: Makes manual observation and confirmation easy.
6. Key Tips for Traders
Best on high-volume instruments like Forex majors, indices, or crypto pairs with decent liquidity.
Works well on 15m and 1H charts — 15m allows quicker signals, 1H filters noise.
Avoid trading around major news releases — traps can behave differently during high volatility events.
Always backtest and use the ATR SL — never reduce SL too much, otherwise stops will trigger before the real move.
✅ Summary:
The Liquidity Trap Strategy identifies trapped buyers/sellers using previous day highs/lows.
It uses ATR-adapted stops and 2:1 R:R TP.
Only first trade per day is executed, reducing false signals.
Anchored PDH/PDL lines and labels make trade opportunities clear.
This system is low-frequency, high-probability, focusing on trading smart rather than frequently.
Sebastine All in One Indicator Sebastine All in One Indicator
Introduction
Markets speak in many dialects.
Sometimes they whisper through volume, sometimes they shout via momentum, at times they breathe through volatility, and occasionally they leave footprints in OBV, PVT, RSI, or TSI.
Most traders respond by stacking indicator after indicator—until the chart resembles a tangled fishing net.
This indicator was built to untangle that net.
Instead of plotting multiple indicators simultaneously, this tool lets you focus on one dimension of market behavior at a time, while preserving structure through a Darvas-style box framework.
The box logic used here is inspired by Darvas-style structural bounding, applied to non-price data such as volume, momentum, and volatility.
🔍 What This Indicator Does
• Combines Volume, OBV, PVT, RSI, Momentum, Volatility, TSI, and Supertrend
• Displays only one selected data stream at a time, reducing noise
• Wraps the selected indicator inside a dynamic Darvas-style box
• Highlights:
o Breakouts & breakdowns
o Compression (energy build-up)
o Structural shifts
o Momentum inflections
o Mean-reversion zones
Think of it as one lens, many filters—you rotate the lens, not clutter the chart.
🧠 How to Use It (Practical Insight)
• Volume / OBV / PVT → Institutional intent & accumulation/distribution
• Momentum / RSI / TSI → Strength, exhaustion, and early reversals
• Volatility → Expansion after contraction (the market’s deep breath)
• Supertrend (as data source) → Trend structure without price bias
The Darvas-style box adds context:
• Narrow boxes = stored energy
• Box expansion = energy release
• Source touching box edges = reaction zones
• Zero-line crossings = regime shifts (where applicable)
• 🎯 Who Is This For?
• Traders who want clarity over clutter
• Discretionary traders who adapt tools to market phase
• System builders seeking structure with flexibility
• Anyone who believes less noise = more signal
📝 Points to Note (Important for Proper Interpretation)
1. Color Coding & Structure
• The upper box line (green) represents the upper structural boundary
• The lower box line (red) represents the lower structural boundary
• The white step-line represents the selected source indicator (e.g., PVT, RSI, Momentum)
2. Pane Scaling & Visibility (Very Important)
• This indicator is designed for use in the bottom pane
• Different sources have very different numerical ranges:
o RSI is bounded between 0 and 100
o PVT, OBV, and Volume can have large absolute values
• Users should manually drag and scale the indicator vertically for optimal visibility
• This is intentional and preserves the raw integrity of each data source rather than force-normalizing it
3. Histogram for Comparative Insight
• A histogram of the selected source is included for quick visual comparison
• Helps identify expansion, contraction, acceleration, and divergence, especially during compression phases inside the box
📌 Recommended Usage (Clarity Over Clutter)
Although multiple sources are available, it is strongly recommended to use one chart with one selected source at a time for best clarity and analytical depth.
For first-time users, PVT (Price Volume Trend) is an ideal starting point.
It blends price movement and volume flow into a single continuous narrative and often reveals institutional participation earlier than price alone. PVT works especially well within the Darvas-style box framework.
Once comfortable, users may switch to RSI, Momentum, Volatility, OBV, or other sources—but always one at a time. This preserves the philosophy of focused observation rather than indicator overload.
🌱 Philosophy Behind the Tool
This indicator rewards patience and observation.Give it space.
It will quietly show when the market is gathering energy—and when it is ready to move.
Markets don’t change indicators. We change how we listen.
This indicator doesn’t predict. It reveals.
Think of it not as a dashboard, but as a rotating telescope—you change lenses, not skies.
EMA 9 & 15 with Live Angle (Anchored)Description:
This indicator is designed to measure market trend strength and direction using two exponential moving averages (EMAs) — 9 EMA (fast) and 15 EMA (slow) — and their angle of slope.
EMA 9 (Fast EMA): reacts quicker to price changes and shows short-term trend direction.
EMA 15 (Slow EMA): reacts slower and represents a more stable trend.
Slope / Angle of EMA: tells how steeply the trend is moving.
Calculated using ATR-normalized slope to adjust for volatility.
Converted to degrees for easy interpretation.
Labels: Show the current EMA angle live on the chart.
Positive angle: Uptrend
Negative angle: Downtrend
Steeper angle → stronger trend
VWAP MTF 5-BandVWAP MTF Suite
Overview
The MTF Institutional VWAP Suite is a high-performance, multi-timeframe analysis tool designed for professional traders who require precise structural anchors. Built on the latest Pine Script v6 engine, this indicator allows for the simultaneous tracking of up to five independent VWAPs, each with its own volatility bands and customizable reset logic.
Unlike standard VWAP indicators that are limited to daily sessions, this suite provides institutional "magnets" across multiple horizons, allowing you to visualize where high-volume participants are positioned on a Daily, Weekly, Monthly, or Intraday basis.
Key Features
5 Independent VWAP Engines: Run up to five unique VWAPs concurrently without chart lag.
Multi-Timeframe Anchoring: Choose from hard-coded institutional pivots: Month, Week, Day, 12-Hour, 4-Hour, and 1-Hour.
Institutional Volatility Bands: Each VWAP includes an optional 1-Standard Deviation band calculated using cumulative variance logic for maximum precision.
Advanced UI Controls: Granular toggles for each instance allow you to display only the center line, only the bands, or the full shaded "value area" for any specific timeframe.
Modern Pine v6 Architecture: Utilizes the latest 2026 Pine Script optimizations, including method chaining and global-scope plot execution for a bug-free experience.
How to Use
Identify Value Clusters: When multiple VWAPs (e.g., Daily and Weekly) converge at a single price point, it creates a high-probability "Institutional Pivot" zone.
Mean Reversion: Use the 1-Standard Deviation bands to identify overextended price action. Institutional algorithms often mean-revert toward the VWAP when price reaches the exterior bands in a low-volatility environment.
Trend Confirmation: Use the slope and position of the 4-Hour or Daily VWAP to determine intraday bias. Trading above a rising VWAP confirms a "Long Gamma" or bullish trend.
Settings
Anchor Selection: Defines the starting point of the volume-weighted calculation.
Bands & Fill Toggles: Quickly clean up your chart by hiding the volatility bands or the background shading for specific timeframes.
Visual Customization: Full control over center line colors, global band colors, and label offsets to prevent text overlap on the right-hand scale.
Developer Notes
This script was optimized for the 2026 TradingView environment. It uses a custom variance-tracking function rather than the basic built-in ta.vwap to ensure that standard deviation bands remain mathematically accurate even when crossing multiple sessions or weekend gaps.
Adaptive Market Structure Channel By S B PrasadAdaptive Market Structure Channel (AMSC)
Institutional-Grade Trend, Volatility & Liquidity Framework
Overview
The Adaptive Market Structure Channel (AMSC) is a multi-engine, adaptive trading framework designed to read market structure, volatility, liquidity, and trend strength in real time.
It integrates ATR-based channels, pivot structure, supply–demand zones, liquidity sweeps, multi-factor momentum, and higher-timeframe confirmation into a single, coherent visual system.
AMSC is not a single-indicator strategy.
It is a context-driven decision framework intended to help traders align entries with dominant trend, structural levels, and institutional activity.
Core Components
1️⃣ Adaptive ATR Trend Channel
Dynamic ATR-based support & resistance
Automatically adjusts to volatility
Color-coded trend strength (strong / weak regimes)
Acts as the primary trend bias filter
2️⃣ Pivot-Based ATR Trend Channels
Channels built from confirmed pivot highs and lows
ATR-expanded structure, not fixed slopes
Separates impulse moves from corrections
Useful for trend continuation and pullback trades
3️⃣ Market Structure: Supply & Demand Zones
Automatically plots fresh demand and supply zones
Zones extend forward until violated
Helps identify high-probability reaction areas
Used as a location filter, not a standalone signal
4️⃣ Liquidity Sweep Detection (Smart Money Logic)
Identifies equal high / equal low liquidity pools
Detects stop-hunt style sweeps
Validates sweeps only when price reacts from structure zones
Prevents chasing false breakouts
5️⃣ Multi-Factor Trend Confirmation Engine
Combines:
EMA structure
MACD momentum
RSI regime
VWAP positioning
Optional ribbon & HMA filters
Signals are generated only when a majority of factors align, avoiding single-indicator bias.
6️⃣ Volatility Context (Bollinger Bands)
Provides volatility expansion / contraction context
Helps distinguish trend continuation vs compression
Works as a background regime filter
7️⃣ Higher Timeframe Confirmation
Confirms trend using a user-selected HTF
Prevents counter-trend trades during strong HTF bias
Essential for intraday and swing traders
8️⃣ Session-Aware Trading
Optional India, London, and New York session filters
Signals only during active market participation
Avoids low-liquidity false signals
9️⃣ Professional Dashboard
Real-time display of:
Trend direction
Trend strength
Factor alignment
HTF bias
Active zone
Trade signal
Session status
Designed for quick decision-making, not clutter.
How to Use AMSC (Best Practice)
✔ Trade in the direction of the ATR trend
✔ Enter near demand/supply within the channel
✔ Confirm with factor alignment & HTF bias
✔ Use liquidity sweeps as entry triggers, not signals alone
✔ Avoid trades during low-strength or inactive sessions
AMSC performs best when used as a confluence system, not a mechanical entry-exit robot.
Ideal Use Cases
Intraday index trading
Swing trading in trending markets
Futures & FX structure-based trading
Traders who prefer context over indicators
What AMSC Is NOT
❌ Not a scalping toy
❌ Not a repainting indicator
❌ Not a one-click signal generator
It is built for disciplined traders who understand structure and risk.
Final Note
AMSC is designed to think like the market, not predict it.
Use it to read conditions, not chase signals.
MSC — BEST CLEAN SETUP (RECOMMENDED)
🎯 Design Philosophy
“Context first, signals last.”
The goal is to:
Read trend & structure at a glance
Avoid indicator overload
Let price + zones + channel do the heavy lifting
1️⃣ CORE VISUALS (KEEP ON)
These are non-negotiable.
🔹 Adaptive ATR Trend Channel
✅ ON
Primary trend bias
Use ATR Trendline Color = ON
This alone defines:
Bull vs Bear
Strength vs weakness
👉 If price is above channel → bullish context
👉 If price is below channel → bearish context
🔹 Pivot ATR Trend Channel
✅ ON
Channel fill: ON
Transparency ≥ 85
Purpose:
Visualise trend slope
Spot pullbacks inside trend
👉 Treat channel edges as dynamic structure, not entry signals.
🔹 Supply & Demand Zones
✅ ON
Transparency: 80–85
Zones auto-expire visually when violated
👉 These are your only horizontal levels.
2️⃣ SMART FILTERS (SELECTIVE)
💧 Liquidity Sweep
✅ ON
Lookback: 5
Tolerance: 0.15 ATR
👉 Use sweeps only near zones
❌ Ignore sweeps in the middle of nowhere
⏱ Session Filter
✅ ON
Trade only one session
India (for NSE)
London (for FX)
New York (for US indices)
❌ Do NOT enable multiple sessions simultaneously
🔍 Higher Timeframe (HTF)
✅ ON
Intraday: Daily
Swing: Weekly
👉 If HTF disagrees → no trade
3️⃣ WHAT TO TURN OFF (CRITICAL)
This is where clutter dies.
❌ Bollinger Bands
🚫 OFF by default
Use only when studying volatility compression
Otherwise adds visual noise
❌ Full ATR Channel (Ver 15)
🚫 OFF
Redundant with pivot + ATR trend
Keep only one channel logic
❌ SuperTrend Channel
🚫 OFF
ATR Trend Channel already covers this
❌ Pivot Levels (P, R1, S1…)
🚫 OFF
Zones replace static pivots
Too many horizontal lines = paralysis
❌ Previous Day / Week Levels
🚫 OFF
Turn ON only for index option trading
Otherwise clutter
4️⃣ MOVING AVERAGES (STRICT RULE)
Keep ONLY:
EMA Fast (9)
EMA Slow (21)
Optional:
HMA → ON only for scalping
❌ Do NOT stack multiple MAs visually
5️⃣ DASHBOARD (MINIMAL MODE)
🧭 Dashboard
✅ ON
Position: Top Right
Text Size: Small
Watch only:
Trend
Strength
HTF
Zone
Signal
Ignore factor numbers once confidence develops.
6️⃣ SIGNAL USAGE (DISCIPLINE RULE)
✔ Signal must appear inside a zone
✔ Signal must align with trend & HTF
✔ Signal must be during session
❌ Never take:
Signals mid-channel
Signals against HTF
Signals during flat strength (<30%)
7️⃣ RECOMMENDED PRESETS (COPY THIS)
🔹 Intraday (Clean)
Timeframe: 5m / 15m
HTF: Daily
Session: India / NY
BB: OFF
Full ATR: OFF
SuperTrend: OFF
Pivots: OFF
🔹 Swing (Ultra Clean)
Timeframe: 1H / 4H
HTF: Weekly
Liquidity: ON
Zones: ON
Dashboard: ON (small)
8️⃣ GOLDEN RULE (MOST IMPORTANT)
If you cannot explain the trade using only:
Trend channel
One zone
One sweep
Do not trade it.
🏁 FINAL VERDICT
AMSC is not cluttered by design.
Clutter comes from turning everything ON.
Used correctly:
The chart stays clean
Decisions become obvious
Overtrading disappears
AMSC – TRADE EXECUTION RULEBOOK
Framework rule:
Trend → Structure → Liquidity → Entry → Risk → Exit
1️⃣ MARKET PRE-CONDITIONS (MANDATORY)
❌ NO TRADE unless ALL are TRUE
✅ Trend Filter
ATR Trend Channel = Bull for longs / Bear for shorts
Trend strength ≥ 40%
Price must be on the correct side of the channel
✅ HTF Confirmation
HTF bias must match LTF trend
If HTF is neutral → NO TRADE
✅ Session Filter
Trade only during active session
No first 5 minutes after session open
No last 15 minutes before session close
2️⃣ LOCATION RULE (MOST IMPORTANT)
🔹 Long Trades
Price must be inside or just above a DEMAND zone
Zone must be:
Fresh (not tested more than twice)
Within the Pivot ATR Channel
🔹 Short Trades
Price must be inside or just below a SUPPLY zone
Same freshness rules apply
❌ No zone → no trade
3️⃣ LIQUIDITY CONFIRMATION (ENTRY TRIGGER)
🔹 Long Entry Trigger
At the demand zone, you must see:
✔ Sell-side liquidity sweep
✔ Sweep candle closes bullish
✔ Sweep occurs inside the zone
🔹 Short Entry Trigger
At the supply zone, you must see:
✔ Buy-side liquidity sweep
✔ Sweep candle closes bearish
✔ Sweep occurs inside the zone
4️⃣ ENTRY RULE (EXECUTION)
🔵 LONG ENTRY
Enter BUY when all conditions align and:
Enter at:
Close of the sweep candle OR
50% retrace of the sweep candle (preferred)
🔴 SHORT ENTRY
Enter SELL when:
Enter at:
Close of the sweep candle OR
50% retrace of the sweep candle
5️⃣ STOP-LOSS RULES (NON-NEGOTIABLE)
🔻 Long SL
Place SL at:
Lowest point of the demand zone
OR
Below sweep low − 0.1 ATR (whichever is lower)
🔺 Short SL
Place SL at:
Highest point of the supply zone
OR
Above sweep high + 0.1 ATR (whichever is higher)
❌ Never trail SL early
❌ Never move SL to break-even before partial exit
6️⃣ POSITION SIZE (FIXED RISK ONLY)
Risk per trade: 0.5% – 1% max
If SL distance is large → reduce position size
Do not widen SL to fit position
7️⃣ EXIT RULES (STRUCTURED)
🎯 TARGET 1 (T1 – Protection)
At 1R
Action:
Book 50%
Move SL to Break-Even
🎯 TARGET 2 (T2 – Structure)
Next opposite zone
OR
Pivot ATR Channel mid-line
Book 30%
🎯 FINAL EXIT (TREND FOLLOW)
Exit remaining 20% when:
✔ Opposite liquidity sweep occurs
✔ Price closes beyond Pivot ATR Channel
✔ HTF bias flips
✔ Session ends
8️⃣ NO-TRADE CONDITIONS (ABSOLUTE)
❌ Trend strength < 30%
❌ Zone already tested 3+ times
❌ Liquidity sweep outside zone
❌ Entry candle is oversized (>1.8 ATR)
❌ Trade against HTF
❌ Emotional or revenge trade
9️⃣ ONE-SCREEN TRADE CHECKLIST
Before clicking BUY/SELL:
✔ Trend aligned
✔ HTF aligned
✔ In session
✔ At zone
✔ Sweep confirmed
✔ SL defined
✔ R ≥ 2 possible
If any answer = NO → skip trade
🔒 DISCIPLINE STATEMENT (PRINT THIS)
AMSC does not pay for activity.
It pays for patience, location, and discipline.
🏁 EXPECTED PERFORMANCE (REALISTIC)
Win rate: 45–60%
R:R average: 1:2.5 to 1:4
Drawdown: low
Trade frequency: selective
Adaptive Market Structure Channel — Visual Layout
5
🧭 How to READ the Chart (Left → Right)
1️⃣ Core Trend Context (FIRST thing your eyes see)
ATR Trend Channel
Acts as dynamic support/resistance
Green = bullish regime
Red = bearish regime
No second trendline competing with it
👉 If price is on the wrong side → no trade
2️⃣ Pivot ATR Structure Channel (SECOND layer)
Sloping channel following real swing structure
Shows:
Trend acceleration
Healthy pullbacks
Channel fill is very light (high transparency)
👉 Pullbacks inside this channel are valid
👉 Breaks outside = caution / exit
3️⃣ Supply & Demand Zones (ONLY horizontal objects)
Few, wide, soft-colored zones
No pivot clutter, no fibs, no grids
👉 Trades happen only here
4️⃣ Liquidity Sweep Markers (EVENT-BASED)
Appears only near zones
Indicates stop-hunt, not entry by itself
👉 Sweep + zone + trend = setup
👉 Sweep alone = ignore
5️⃣ Dashboard (Decision Support, not distraction)
Small
Corner-placed
Shows only:
Trend
Strength
HTF bias
Zone
Signal
Session
👉 After experience, you’ll barely look at it
🚫 What You DO NOT See (Very Important)
A clean AMSC chart intentionally avoids:
Multiple moving averages
Pivot levels (P/R/S)
Too many channels
Oscillator panels
Bright fills or thick lines
If your chart looks “busy”, something is ON that should be OFF.
🧠 Mental Model (Keep This Image in Mind)
AMSC chart =
1 dynamic trend
1 structure channel
1 zone
1 liquidity event
1 decision
Anything more → clutter
Anything less → blind trading
✅ Final Visual Checklist (Before Trading)
✔ Chart background visible
✔ Candles clearly readable
✔ Zones visible but not loud
✔ Channel guides the eye
✔ Nothing overlaps price excessively
If yes → you are trading AMSC correctly
Bearish Trailing stopIt is a trailing SL. Works very well. Good good very good. Looks like my description needs more, so here is more random text.
buy by rev//@version=5
indicator("HTF EMA Crossover → LTF Entry Alert", overlay=true)
// ───── TIMEFRAMES ─────
htf = "60" // 1 Hour
ltf = "5" // 5 Minute (apply script on this)
// ───── HTF EMAs ─────
htfEma5 = request.security(syminfo.tickerid, htf, ta.ema(close, 5))
htfEma13 = request.security(syminfo.tickerid, htf, ta.ema(close, 13))
// ───── LTF EMAs ─────
ema5 = ta.ema(close, 5)
ema13 = ta.ema(close, 13)
// ───── CONDITIONS ─────
// Hourly bullish crossover STATE
htfBullishState = htfEma5 > htfEma13
// 5-min EMA crossover
ltfCross = ta.crossover(ema5, ema13)
// 5-min EMA 5 reclaim / continuation
ltfResume = ema5 > ema13 and ema5 <= ema13
// FINAL ENTRY CONDITION
entrySignal = htfBullishState and (ltfCross or ltfResume)
// ───── PLOTS ─────
plot(ema5, color=color.green, title="EMA 5")
plot(ema13, color=color.orange, title="EMA 13")
plotshape(
entrySignal,
title="BUY Entry",
style=shape.labelup,
location=location.belowbar,
color=color.green,
text="BUY",
textcolor=color.white,
size=size.small
)
// ───── ALERT ─────
alertcondition(
entrySignal,
title="HTF EMA Bullish → LTF Entry Alert",
message="1H EMA 5>13 bullish state + 5min EMA entry trigger"
)
OFM - ONE Trade Per Day MAXthis is helper to clarify the market trend and supply and demand zones to work with enjoy!






















