Nasser kurdi | PRO PACK nasser kurdi fulllllll before
lllllllllllllllllllllllllllllllllll llllllllllllllllllllllllllll
Indicatori e strategie
SLV Overlay on SIDraws SLV overlay on Silver Futures (SI)
Default overlay symbol: AMEX:SLV
Live session window: 04:00–20:00 NY, Mon–Fri
Outside the live session window, it holds the last ratio from the prior daily close
Updates lines after "min_move"
Draws $1 SLV levels (±N) projected into SI price space
Regular & Dollar Volume (+ projected volume, HVE, bar coloring)Regular & Dollar Volume shows standard or dollar-weighted volume with fast and slow volume averages, projected volume for the live bar, and optional high-volume and percentile spike cues. An optional bar coloring feature reflects direction and volume strength so high-participation moves stand out without clutter.
Main features
- Dollar volume option with selectable price source (Close, Open, High, Low, HL2, HLC3, OHLC4).
- Fast and slow volume averages (SMA or EMA) for quick context.
- The fast average reacts quickly to recent volume, while the slow average represents the broader baseline.
- Bars are classified based on whether volume is above both averages, below both, or between them. This gives a simple three-state read: unusually strong volume (above both), weak volume (below both), or normal (in between).
- Using two averages avoids overreacting to a single spike while still highlighting real regime shifts in participation.
- Projected volume on the active bar to estimate end-of-bar volume.
- High Volume Ever (HVE) labeling and optional HVE bar coloring .
- Optional percentile spike detection with markers, threshold line, and bar highlighting.
- Optional candle recoloring to match volume bar colors .
- Bar colors reflect both direction (up vs down) and volume strength relative to the two averages.
- This helps you spot high-participation moves at a glance and distinguish strong pushes from low-energy drift.
Bollinger Bands + B%Overview
This script replicates the robust functionality and visual style of the Bollinger Band studies found in Sierra Chart, adapted for the TradingView environment. It is designed as an "All-in-One" suite that calculates the Bollinger Bands for the main price chart while simultaneously offering advanced oscillator studies (like %B and Bandwidth) in the pane below.
A unique feature of this script is the high degree of customization, particularly the ability to choose different Moving Average types for the Bollinger Band basis, and a dynamic coloration system for the %B indicator.
Key Features
Main Chart Overlay: Draws the Bollinger Bands (Upper, Lower, and Basis) directly on the price chart, even though the script runs in a separate pane.
Advanced %B Indicator: A visually enhanced version of Bollinger Bands %B. It features dynamic coloring based on a midline (default 0.5) and intensifies the colors when the value exceeds the high or low thresholds (simulating a band breakout).
Bollinger Bandwidth: Optional display of the bandwidth to measure volatility (Squeeze detection).
Customizable Calculation: Choose from 6 different Moving Average types to calculate the bands.
Moving Average Types Explained
The standard Bollinger Band uses a Simple Moving Average (SMA). This script allows you to change the mathematical basis of the bands to fit your specific trading strategy:
Simple (SMA): The standard calculation. Every price in the period has equal weight. Best for general use.
Exponential (EMA): Gives more weight to recent prices. Reacts faster to price changes than the SMA.
Weighted (WMA): Assigns a linear weighting factor. Recent data is more important, but the drop-off is smoother than EMA.
Linear Regression (LSMA): Calculates a linear regression line for each point. This is excellent for identifying the prevailing trend direction and "fitting" the price action.
Wilders (RMA): The smoothing method used in the RSI indicator. It reacts very slowly and smooths out significant noise.
Smoothed (SMMA): A blend that takes a broad view of price history. It is very stable and filters out minor market fluctuations effectively.
Settings & Parameters
1. Bollinger Bands (Price-Chart)
Show BB in Main Chart: Toggles the visibility of the bands on the price candles.
Length: The lookback period for the bands (Default: 20).
Standard Deviation: The multiplier for the width of the bands (Default: 2.0).
Moving Average Type: Select the algorithm for the center line (Basis).
2. Study: Bollinger Bands %B
Show %B: Toggles the %B oscillator.
High/Low Threshold: Sets the levels for the "Breakout" warnings (Default: 1.0 and 0.0).
Midline: The center point for the color switch (Default: 0.5).
Green: Value > Midline.
Red: Value < Midline.
Bright Green/Red: Value crosses the High/Low Thresholds.
3. Study: Bollinger Bandwidth
Show Bandwidth: Toggles the volatility measurement line.
Usage Tip:
Since %B (0.0 - 1.0) and Bandwidth (variable scale) use different y-axis scales, it is recommended to only enable one sub-study at a time via the checkboxes to maintain a clean chart view.
Disclaimer : This script is for educational and analytical purposes only. It is a code conversion based on public documentation of Sierra Chart Study ID 14 & 136.
Sierra Chart, best trading software, EVER!
With the best datafeet. Denali Exchange Data Feed.
JEETUNSE@GMAIL.COMOne of the beat intraday traders tool for both option trading and any kind of market situation any kind of script in world
Cumulative Volume Delta[MIT]Cumulative Volume Delta Depth
This indicator provides a simplified approximation of Cumulative Volume Delta based on candlestick structure, helping to estimate short-term aggressive buying vs. selling pressure.
Core Calculation Logic:
Delta ≈ Volume × (Close - Open) / (High - Low)
- Positive Delta when the candle has a strong bullish body (more aggressive buying)
- Negative Delta when the candle has a strong bearish body (more aggressive selling)
- Near zero when the body is very small (indecision / balanced pressure)
Key Features:
- Column chart shows cumulative Delta (resets on new day by default)
- Orange line = smoothed Delta (default 5-period SMA)
- Teal tint for positive values, maroon tint for negative values
- Zero line for easy visual reference of net buying/selling shifts
Use Cases:
- Identify short-term buying/selling dominance
- Spot divergences (e.g. price makes new high but Delta fails to confirm → potential exhaustion)
- Works best on high-volume instruments (futures, crypto, liquid stocks)
Limitations:
- This is an approximation based on OHLC structure, NOT real tick-by-tick order flow
- Long shadows, small bodies, gaps, or low-volume bars may distort the result
- Best used in combination with other volume/price tools (VWAP, OBV, volume spikes, etc.)
Parameters:
- Cumulative Period: Controls lookback/reset logic (default 200 bars)
- Smoothing Period: Length of Delta moving average (default 5)
- Show MA: Toggle orange smoothed line on/off
这是一个基于K线形态粗估的累计成交量Delta指标,用于近似判断短期内主动买方与主动卖方的力量对比。
核心计算逻辑:
Delta ≈ Volume × (Close - Open) / (High - Low)
- 当阳线实体较长时,Delta为正值(偏向买方主动)
- 当阴线实体较长时,Delta为负值(偏向卖方主动)
- 小实体或十字星时Delta接近0
指标特点:
- 柱状图显示累计Delta(可每日重置)
- 橙色线为Delta的平滑均线(默认5周期,可调)
- 正值区域用青色系着色,负值区域用酒红色系着色
- 零轴辅助线,便于观察多空转折
适用场景:
- 辅助判断日内/短线多空力量变化
- 结合价格走势观察是否有背离(价格创新高但Delta不创新高,可能见顶)
- 适合期货、加密货币、活跃股票等成交量较大的品种
局限性:
- 这只是基于K线结构的近似估算,并非真实逐笔方向分类
- 对长影线、小实体K线或跳空行情可能失真
- 建议结合其他量价指标(如VWAP、OBV、成交量放大)一起使用
参数说明:
- 累计周期:控制Delta是否每日/每周重置(默认200根,建议设大值保持连续性)
- 平滑周期:Delta平滑均线的长度(默认5)
- 显示均线:是否显示橙色平滑线
TradeAxis Trendlines - Full RangeOverview
TradeAxis Trendlines is an overlay indicator that automatically builds and maintains diagonal support/resistance trendlines from confirmed swing pivots, ranks candidates to reduce clutter, and provides optional breakout-based risk framing (TP/SL boxes) using structural stops.
This script is built as a single workflow:
Identify structurally valid trendlines
Reduce clutter by ranking/filters
Monitor/visualize breakouts with clear risk framing (disabled in Analysis Mode and on non-standard chart types)
How the trendlines are detected and filtered
1) Confirmed pivot engine (non-instant pivots)
Trendline anchors come from confirmed pivot highs/lows using user-defined Left/Right pivot strength. Because pivots require Right bars to confirm, lines are not drawn at the turning candle and will appear only after confirmation.
2) Candidate generation + structural validation
The script tests pivot-to-pivot vectors and rejects candidates that fail structural criteria, including:
Minimum line length (bars between anchors)
Slope filtering with two modes:
Absolute slope bounds (price-per-bar)
ATR-relative slope bounds (thresholds scaled by ATR)
Body-intersection rejection: candidates are filtered out if candle bodies repeatedly cut through the line beyond a tolerance
Opposite-side invalidation gate: candidates can be rejected/disabled when price closes (or evaluates by Mid-body/Body mode) beyond the “wrong side” of the line, to avoid keeping lines that are already invalidated by structure
3) Touch counting + scoring (clutter control)
Valid candidates are ranked using a weighted score that prioritizes:
Number of valid touches
Recency of the last touch
Line span
By default, the script plots both the primary and secondary (“2nd best”) support and resistance lines; you can disable the secondary set if you prefer a cleaner chart.
4) Dynamic cleanup behavior
Trendlines are continuously refreshed as new pivots confirm. Lines that are decisively broken and then reclaimed can be removed to prevent stale structure from lingering on the chart.
Optional modules
A) Safety lines (structural stop references)
When enabled, the script calculates additional diagonal “safety” lines from a separate pivot stream and selects the best safety reference near the active structure. These safety lines are used as structural candidates for Stop Loss placement in the breakout framing module.
B) Higher-timeframe (HTF) overlays
When enabled, the script runs its trendline detection logic on a user-selected higher timeframe using `request.security()` with lookahead disabled, and overlays the HTF support/resistance onto the current chart. HTF lines are plotted using time-based coordinates and can update as HTF bars confirm.
C) Breakout + Risk/Reward visualization (optional)
When enabled (and on standard charts), the script can flag breakouts and draw a risk/reward box:
Breakout trigger: candle-body confirmation through the trendline plus a user-selected ATR-based buffer.
Buffer Mode can be set to ATR (buffer = ATR × multiplier) or None (no buffer).
Optional filters:
Wick filter (rejects candles with excessive upper/lower wick percentage)
Time windows (inputs are labeled in UTC+4) with optional overnight restrictions and specific block windows
Minimum breakout body size (ticks)
Stop Loss / Take Profit framing
Stop selection is structural-first. The script prioritizes the active safety line (when available), otherwise it falls back to recent swing structure (recent swing high/low candidates) and the best available structural reference.
Entries can be skipped if risk constraints are violated, including:
Min SL Size (ticks)
Max Allowed SL (×ATR)
Take Profit is projected from the actual stop distance using the selected Risk/Reward Target.
Important notes about the position tools
This is a visualization/alerting aid. It does not place trades.
TP/SL hit detection is bar-based (OHLC). If both TP and SL are within the same candle range, the script cannot know which occurred first.
On non-standard chart types, position tools and entry/exit alerts are disabled.
D) Analysis Mode
When Analysis Mode is enabled, the script disables the breakout/risk framing logic and focuses on technical trendlines (plus structural alerts).
Alerts
Alert conditions are available for:
Touch Support/Resistance (Primary, Secondary, or HTF)
New Support/Resistance line detected
Long/Short position tool placed (when enabled on standard charts)
A combined “Any Event” condition
Trade ChecklistICT trading checklist. This checklist helps you mark out confluences so you can rate the trade you're about to take and be able to decide if its a good trade or you should skip it. Enjoy
Rishii's EMA Trend EngineThis indicator is a dual-EMA trend framework designed to improve intraday decision-making by filtering out sideways market noise and highlighting only meaningful trend participation.
It uses a fast and slow EMA to define trend direction, while applying an HLC3-based color logic to show whether price is respecting each EMA. Candles turn green or red only when both the trend alignment and price participation conditions are satisfied. Neutral candles can be shown in white to visually remove noise and make valid candles stand out.
Additional filters such as EMA slope detection and optional higher-timeframe bias help avoid false signals during ranging conditions. A background trend zone and first-candle markers after EMA crossover further improve clarity without cluttering the chart.
How it helps
Clearly shows when the market is trending vs sideways
Highlights only those candles where price is truly participating in the trend
Filters out most whipsaws caused by flat EMAs BITSTAMP:BTCUSD
Combines trend bias, momentum, and participation in one clean view
Caution
This is a trend-following tool, not a reversal indicator.
When EMAs are flat and candles turn white, avoid trading
Do not treat every green/red candle as an entry; wait for proper structure.
Always use proper stop-loss and position sizing.
FX-CLINIC/ICT/IFVGICT Indicator
Show IFVG
Automatic update
direct create if break FVG by candle body100%
direct delete if break IFVG by candle body 100%
Created by FX-CLINIC
Price Levels v2 [TickDaddy]I added Major price levels to this indicator. you can set levels yourself but now showing actual price levels not levels in ticks or points. you can turn either levels options on or off.
Universal HVN Volume Nodes DetectorAdvanced multi-timeframe High Volume Nodes (HVN) detector.
Identifies the most significant volume-based price reaction zones.
Designed for Gold, Silver and Crypto markets.
Sigmoid Risk AllocatorThe Sigmoid Risk Allocator is a dynamic position sizing indicator that tells you how much of your capital to allocate based on current market conditions. Unlike simple "risk-on/risk-off" signals, this indicator gives you smooth, gradual transitions based on a sigmoid function.
Why a Sigmoid Curve?
Most position sizing approaches use fixed thresholds: "If drawdown > 20%, buy. Otherwise, don't." This creates all-or-nothing decisions.
Using the sigmoid (S-curve) makes this decision different. It creates a smooth transition where:
Small drawdowns → Stay near your baseline allocation
Moderate drawdowns → Gradually increase exposure
Large drawdowns → Approach maximum allocation
The sigmoid curve naturally "saturates" at the extremes, preventing you from going all-in too early or panicking out too fast. This is very useful to meek traders psychology and risk management in check.
What's a Sigmoid Function?
The sigmoid function is a mathematical S-curve defined as:
σ(x) = 1 / (1 + e^(-x))
This formula takes any input value and smoothly maps it to a number between 0 and 1. The curve has three key properties that make it ideal for position sizing in investing:
Smooth transitions: No sudden jumps. Allocation changes gradually.
Saturation at extremes: The curve flattens near 0 and 1, preventing overreaction and overexposure.
Sensitive in the middle: Most of the action happens around the midpoint.
To convert this into an allocation percentage, the indicator uses:
Allocation = α_min + (α_max - α_min) × σ(k × (Risk - Midpoint))
Where:
- `α_min` = Your minimum allocation (default 50%)
- `α_max` = Your maximum allocation (default 100%)
- `Risk` = Current risk metric (drawdown %, volatility, or Kelly %)
- `Midpoint` = The risk level where allocation sits halfway between min and max (default 15%)
- `k` = Steepness—how quickly allocation changes around the midpoint
Example : With defaults, if drawdown hits 15% (the midpoint), your allocation will be 75% (halfway between 50% and 100%). As the drawdown increases beyond 15%, the allocation curves toward 100%. As it decreases toward 0%, allocation curves toward 50%.
Cool, isn't it?
Asymmetric Response: Fast In, Slow Out
The indicator uses different steepness values for scaling in vs. scaling out. This is great to increase trend following. This is something I'm proud of too in this indicator.
k_increase = 30 (steep curve): When drawdowns appear, allocation ramps up quickly to catch the opportunity
k_decrease = 5 (slower curve): When conditions normalize, allocation decreases slowly to avoid selling the rebound
This asymmetry reflects how markets behave—drawdowns often overshoot fundamentals (rewarding quick entries), while recoveries tend to be more orderly (rewarding patience on exits).
Three Risk Metrics
You can choose what drives your allocation:
Drawdown (Default)
Volatility - Scales your position inversely to current market volatility.
Kelly Criterion - Automatically calculates optimal position size. The indicator applies a conservative "half Kelly" by default.
Use Cases
Position sizing for swing trading or trend following
Risk management overlay for any existing strategy
Drawdown-based DCA (dollar cost averaging) decisions
Volatility-adjusted exposure management
Feel free to provide feedback and share your thoughts!
- Henrique Centieiro
UM Multi MA type, Directional Colors + Flip LabelsSummary
UM Multi MA is a multi–moving average trend overlay supporting SMA, EMA, WMA, HMA, KAMA, DEMA, and TEMA. Each MA is colored by slope direction, displays clean right-side Flip prices, and optionally adds price↔MA fills, bar/candle coloring, and alerts for MA direction changes.
⸻
Description
This indicator plots up to five independently configurable moving averages directly on the price chart. Each MA is colored green when rising and red when falling, based on its current slope.
On the last bar only, an optional right-side label displays the MA’s projected Flip price calculation:
• If the MA is currently green (rising), the label is green and shows
“Flip red @ ”
• If the MA is currently red (falling), the label is red and shows
“Flip green @ ”
The script also supports optional price↔MA fills, optional bar/candle coloring driven by any selected MA, and alerts when MA slope direction changes.
⸻
Features
• Up to five moving averages (MA1–MA5), each with independent Enable, Length, and Type settings
• Supported MA types: SMA, EMA, WMA, HMA, DEMA, TEMA, KAMA
• Directional MA coloring (green rising / red falling)
• Right-side labels (last bar only), indicator at what price MA will flip color
MA# TYPE LEN Flip red/green @ target price
• Optional price↔MA fill (user-selectable MA)
• Green fill when price > selected MA and MA is rising
• Red fill when price < selected MA and MA is falling
• Optional bar/candle coloring driven by any selected MA
• Alerts:
• Dropdown alertconditions (visible in the TradingView alert menu)
• Optional dynamic alert() messages that include MA type and length
⸻
Default Values
• Source: Close
• MA1: Enabled, EMA 8, Right-side label ON
• MA2: Enabled, EMA 21, Right-side label OFF
• MA3: Enabled, EMA 50, Right-side label OFF
• MA4: Enabled, EMA 100, Right-side label OFF
• MA5: Enabled, EMA 200, Right-side label OFF
• Label offset: 10 bars
• Price↔MA fill: OFF
• Fill MA: MA1
• Fill transparency: 90
• Candle coloring: OFF
• Color bars using: MA1
• Bar transparency: 0
• Alerts:
• Dropdown alertconditions ON
• Dynamic alert() messages OFF
• MA1 Bull/Bear alerts enabled by default
• MA2–MA5 alerts disabled by default
⸻
Suggested Uses
• Trend Regime Filtering
Use MA200 or MA100 to define bull vs bear regimes, then MA8 or MA21 for trade timing.
• Flip Target Awareness
Use the right-side Flip label as a quick visual reference for where MA slope direction is projected to change.
• Alignment Confirmation
Enable fills and/or candle coloring using your “decision MA” (commonly MA21 or MA50) to maintain consistency.
• Alerting Workflow
Use dropdown alertconditions for standard alerts.
Enable dynamic alerts only if you want messages that include MA type and length (alert type: Any alert() function call).
• KAMA for Chop Reduction
Try KAMA on MA21 or MA50 to reduce noise while staying responsive in trends.
• Faster MA Options (DEMA / TEMA)
Use DEMA or TEMA on MA8 or MA21 for earlier flips, understanding they are more sensitive in sideways markets.
• Volatility Expansion Awareness
Watch for periods where multiple MAs compress tightly; these often precede volatility or price expansion.
• Trade Execution Ideas
Red → green transitions may be used for entries or add-ons.
Green → red transitions may be used for exits or risk reduction.
• Multi-Timeframe Analysis
The author commonly uses Daily and 6-Hour timeframes together.
• MA Stretching Across Timeframes
If you like an 8-period MA on the Daily, try its longer equivalent on lower timeframes (for example, ~55 on the Hourly).
• Indicator Stacking
Designed to pair well with momentum, volatility, and market-structure indicators.
SMC Pro: Institutional Bias & Liquidity Sweep EngineOverview This script is a high-confluence technical analysis tool designed for traders following Smart Money Concepts (SMC) and Price Action methodologies. Its primary objective is to filter trend-based signals (EMA 9/21 crossovers) by integrating two critical institutional filters: HTF Bias (Higher Timeframe Sentiment) and Directional Liquidity Sweeps.
Key Features & Technical Originality Unlike standard crossover indicators, this script introduces a multi-layered institutional validation logic:
Real-Time HTF Bias Dashboard: The indicator automatically calculates the Daily Bias based on the previous close's position relative to the "Equilibrium" (the 50% mark of the previous day's range). This sentiment is displayed via a clean UI dashboard in the top-right corner, ensuring traders stay aligned with the higher timeframe flow.
Directional Liquidity Sweeps: The engine identifies local highs and lows within a dynamic lookback period. A "BUY" signal is only triggered if the price has first performed a "Sweep Low" (raiding sell-side liquidity), and a "SELL" signal only follows a "Sweep High" (raiding buy-side liquidity). This effectively filters out "Bull/Bear Traps."
Adaptive Memory Logic: The signal engine "remembers" a liquidity raid for a configurable number of bars. This allows for natural price development before confirming the entry with the EMA cross, capturing the expansion phase of the move.
Weekly NWOG Anchor: Includes an automated New Week Opening Gap (NWOG) tracker. Following institutional liquidity principles, this box anchors from Friday’s close to the new week’s open. Per user-defined constraints, the projection is limited strictly to the current trading week to maintain chart clarity and relevance.
How to Use
Confluence: Look for "BUY" signals when the Dashboard displays a "BULLISH" Bias and a recent sweep of lows has occurred.
Context: Use the NWOG levels as institutional magnets; price often gravitates toward or rebalances these gaps before continuing its expansion.
Optimized Timeframes: Best suited for M1, M5, and M15 intraday scalping.
Disclaimer This indicator is a visual aid for technical analysis and does not constitute financial advice. Past performance does not guarantee future results.
ATR-Based Z-Score (with Signal Line)The ATR-Based Z-Score is an advanced, volatility-normalized oscillator designed to identify extreme price deviations more reliably than the standard Z-Score.
By replacing the traditional Standard Deviation with the Average True Range (ATR) in the denominator, this indicator eliminates the "volatility paradox" where rapid price spikes cause standard oscillators to prematurely return to zero, even as the price continues to crash.
Why this version is superior
In a classic Z-Score calculation:
Z = (Price - SMA) / (Standard Deviation)
A sudden impulsive price drop causes the Standard Deviation to explode. Because you are dividing by a rapidly increasing number, the Z-Score often "rises" while the price is still falling.
The ATR-Based Solution:
Z = (Price - SMA) / ATR
By using a long-period ATR as the denominator, the volatility measure remains stable and "clean." This ensures that the indicator’s troughs align much more accurately with actual price bottoms, staying in the oversold territory until the momentum truly shifts.
Key Features
Volatility Cleaning: The ATR-normalization prevents the indicator from "flattening out" during impulsive price movements.
Integrated Signal Line: A customizable Moving Average of the Z-Score values helps filter noise and confirms entry/exit points.
Independent Periods: You can set the Price MA (responsiveness) and the ATR (volatility baseline) separately to fine-tune the indicator to different timeframes.
How to Trade with it
1. Mean Reversion (Buy the Dip / Sell the Rip)
Long: Wait for the Z-Score to drop below a significant level (e.g., -10.0). Enter when the Z-Score crosses back above its Signal Line.
Short: Wait for the Z-Score to rise above +10.0 and enter when it crosses below the Signal Line.
2. Breakout Trading
A strong push of the Z-Score beyond the +/- 7.0 levels can indicate a powerful trend breakout.
In this case, the Signal Line crossover serves as an effective Exit Signal, telling you that the initial momentum of the breakout is fading.
Summary
✅ This indicator is designed for traders who find standard oscillators too "nervous" during volatile periods. By decoupling price deviation from immediate variance spikes, the ATR-Based Z-Score provides a rock-solid foundation for identifying true market extremes and high-probability reversal points.
CTR Weekly MA + 1D MA (v1)I built this simple pine script to help me trade on the lower timeframe (1d) while still showing my key weekly moving averages to help me trade with the macro trend.
Rules for trading...
Steps for taking a Short position:
1. Wait for all 3 weekly moving averages to be in alignment (8EMA<21SMA<50SMA). When these aligned the candles will change to bright red, meaning bearish.
2. Wait for a pullback to the 1 Day 21SMA. When a candle touches the 21SMA, that candle will change color to white. This will be your alert to get ready to enter into a short.
3. On the next candle you can then take a short position as long as that candle is below the 21SMA, if not, wait for the net daily candle to close. If that is below the 21SMA you can then enter into a short on the opening of the next daily candle.
I built this to trade the Bear Market but this same method can also work in a Bull Market but just do the opposite.
EMA Slope Filter (ATR Threshold) + Supertrend WindowEMA Slope Filter (ATR Threshold) + Supertrend Window
This indicator highlights “trade-allowed” segments based on a mechanical EMA slope condition. It compares the current EMA value (user-defined length) to the EMA value N bars ago (user-defined lookback). A direction is allowed only if the EMA change exceeds an ATR-based threshold: ATR multiplier × ATR(length).
What it shows on the price chart
Green segments (background / EMA color / optional dots): long bias allowed.
Red segments: short bias allowed.
Neutral (gray/no background): filter not satisfied.
Start markers
L / S labels appear at the start of a new allowed segment.
Optional Supertrend delay: start labels can be delayed by X bars after a Supertrend direction switch (Supertrend ATR length and factor are configurable inside the script).
“STOP” wave marker
Define a Supertrend-based search window (e.g., bars 3…20 after a switch).
If the EMA slope filter never aligns with the Supertrend direction within that window, the script prints a STOP label on bar (max+1) to indicate the current wave is considered non-tradable (do not search for entries until the next Supertrend switch).
Extras
Key values (EMA diff, ATR, threshold, diff/ATR, bars since ST switch) are available in the Data Window for quick inspection.
Market Structure BOS - Session Based (5m, NY Time) This indicator visualizes market structure using a strict, rule-based
Break of Structure (BOS) logic, calculated on the 5-minute timeframe
and evaluated in New York time.
The script detects swing Highs and Lows based on candle direction
(bullish → bearish for Highs, bearish → bullish for Lows). From each
validated structure point, a horizontal level is drawn at the true
price extreme (wick included). Once created, structure levels never
repaint or move.
A Break of Structure is confirmed only when a candle CLOSES beyond
the most recent valid structure level:
- Bullish BOS: close above the latest High
- Bearish BOS: close below the latest Low
The indicator is trend-aware: once a bullish or bearish BOS is confirmed,
only BOS signals in the same direction are shown until the trend changes.
This prevents duplicate or redundant structure breaks during trends.
Session logic is fully integrated and based on New York time:
- Asia
- London (with pre-open range)
- New York (with pre-open range)
Structure levels and BOS logic can optionally reset at the end of each
New York trading day, keeping the chart clean and session-relevant.
The indicator is designed for traders who focus on intraday price action,
market structure, and session-based behavior without visual clutter.
No labels, alerts, or signals are plotted — only clean structure levels.






















