Previous Day/Week/Month Open & ClosePrevious Day / Week / Month Open & Close Levels
Plots horizontal lines for the **previous** completed:
• Day open/close
• Week open/close
• Month open/close
These key reference levels are widely used for:
- Support/resistance zones
- Mean reversion setups
- Breakout confirmation
- Session/period bias analysis
Features:
• Auto-refreshes lines when new day/week/month begins (old lines deleted, clean chart)
• Non-repainting (uses confirmed higher-timeframe values)
• Toggle each timeframe independently (Day / Week / Month)
• Custom colors, line styles (solid/dashed/dotted), and width
• Small right-side labels for quick identification
How to use:
1. Add to any chart (best on intraday or daily timeframes)
2. Adjust toggles and colors in settings as needed
3. Watch price interaction with previous period opens/closes
Great for forex, stocks, futures, crypto....
Enjoy your trading!
חפש סקריפטים עבור "chart"
SR EMA ORBSR EMA ORB combines your Support/Resistance pivot levels + EMA crossover labels/alerts with an optional Opening Range Breakout (ORB) module that can work on higher timeframes using LTF calculation (via request.security).
What it shows
1) Support/Resistance (Pivot based)
Plots pivot Resistance (red) and Support (blue).
Optional break labels:
B for break with volume confirmation (Volume Osc > Threshold)
Bull Wick / Bear Wick wick-based breaks
2) EMA Crossovers (visual + alerts)
Labels:
Up (ST EMA crosses above MT EMA)
Down (ST EMA crosses below MT EMA)
Buy (MT EMA crosses above LT EMA)
Sell (MT EMA crosses below LT EMA)
Includes the original alert() messages exactly like your Script 1.
3) ORB (Opening Range Breakout)
Builds an opening range for the configured “ORB Window” (default: 10 minutes).
After the window ends, it waits for a breakout:
Breakout based on Close or EMA
Optional breakout buffer %
Optional volume filter (uses your Volume Threshold logic)
Entry requires retests based on sensitivity:
High = 0 retests
Medium = 1 retest
Low = 2 retests
Lowest = 3 retests
Shows:
ORB High / ORB Low lines (unique colors, bold width)
ORB Entry label (ORB)
Optional TP1/SL markers (if enabled)
4) Confluence (optional confidence marker)
Prints a separate CONF label when:
ORB entry happens AND
EMA direction agrees (rule selectable)
Optional: also require SR break in the same direction
5) RR helper (optional)
Draws Entry / SL / TP target lines at 1:2 or 1:3
Trigger can be:
ORB Entry
Confluence only (recommended)
6) Dashboards (optional)
Compact ORB dashboard: current bias + entry + SL
Backtest dashboard: trades, wins, losses, win%
Timeframe behavior (important)
ORB supports these window selections: 1m, 5m, 10m, 15m, 30m, 1h, 1D, 1W, 1M
ORB supports these calc TF selections: 1m, 3m, 5m, 10m, 15m, 30m, 1h
Mode
Auto: uses Native when chart TF is supported, otherwise switches to LTF calculation
Native: ORB runs only on supported chart TF; disables otherwise
LTF: ORB always calculates on Calc TF (best for 1H/1D chart viewing)
Examples (recommended setups)
Example 1 — Your main setup (10m ORB on intraday chart)
Goal: trade ORB normally with minimal complexity
Chart TF: 1m / 3m / 5m
ORB:
Mode: Auto
ORB Window: 10m
Calc TF: 10m (or 5m if you want slightly earlier structure)
Sensitivity: Medium
Breakout Condition: Close
TP Method: Dynamic
Stop Loss: Balanced
Visuals:
Draw ORB Lines: ON
Entry Labels: ON
TP/SL Marks: OFF (keeps chart clean)
Example 2 — View ORB on a 1H chart (LTF-on-HTF mode)
Goal: see 10m ORB levels/signals while looking at 1H structure
Chart TF: 1H
ORB:
Mode: LTF
ORB Window: 10m
Calc TF: 5m or 10m
Sensitivity: Medium
Note: On HTF, multiple LTF events can compress into fewer visible updates (normal with security data).
Example 3 — Higher winrate attempt (fewer trades, more filtering)
Goal: reduce bad ORB entries
ORB:
Sensitivity: Low (2 retests)
Breakout Buffer %: 0.10 – 0.25
Use Vol Osc Filter: ON
Educational Use Only: This script is provided for educational and informational purposes only and is not financial advice—use it at your own risk, as trading involves substantial risk of loss.
Confluence:
Enable Confluence: ON
EMA Rule: Stack (strict)
Require SR Break Same Direction: ON (optional, strict)
RR:
RR Lines: ON
RR: 1:3
Trigger: Confluence
This usually reduces signals but can improve quality depending on ticker.
Example 4 — Conservative risk control (visual RR planning)
Goal: only take trades that offer clear RR
RR:
Show RR Lines: ON
RR: 1:2
Trigger: Confluence
Result: you only see RR targets when the entry is “higher confidence”.
Example 5 — Dashboards only when needed
Goal: keep chart clean, but enable quick stats occasionally
ORB UI:
Show ORB Dashboard: OFF normally
Show Backtest Dashboard: ON only during tuning
Positions: set to Top Right / Top Center as you prefer
Notes on alerts (how to use)
Your SR/EMA alerts are built-in alert() calls, so when creating an alert choose:
“Any alert() function call”
ORB/CONF alerts are alertcondition(), so create alerts selecting:
ORB Entry
ORB TP1
ORB SL
CONF Buy / CONF Sell
Support Resistance EMA Crossovers with ORB and AlertsSR EMA ORB combines your Support/Resistance pivot levels + EMA crossover labels/alerts with an optional Opening Range Breakout (ORB) module that can work on higher timeframes using LTF calculation (via request.security).
What it shows
1) Support/Resistance (Pivot based)
Plots pivot Resistance (red) and Support (blue).
Optional break labels:
B for break with volume confirmation (Volume Osc > Threshold)
Bull Wick / Bear Wick wick-based breaks
2) EMA Crossovers (visual + alerts)
Labels:
Up (ST EMA crosses above MT EMA)
Down (ST EMA crosses below MT EMA)
Buy (MT EMA crosses above LT EMA)
Sell (MT EMA crosses below LT EMA)
Includes the original alert() messages exactly like your Script 1.
3) ORB (Opening Range Breakout)
Builds an opening range for the configured “ORB Window” (default: 10 minutes).
After the window ends, it waits for a breakout:
Breakout based on Close or EMA
Optional breakout buffer %
Optional volume filter (uses your Volume Threshold logic)
Entry requires retests based on sensitivity:
High = 0 retests
Medium = 1 retest
Low = 2 retests
Lowest = 3 retests
Shows:
ORB High / ORB Low lines (unique colors, bold width)
ORB Entry label (ORB)
Optional TP1/SL markers (if enabled)
4) Confluence (optional confidence marker)
Prints a separate CONF label when:
ORB entry happens AND
EMA direction agrees (rule selectable)
Optional: also require SR break in the same direction
5) RR helper (optional)
Draws Entry / SL / TP target lines at 1:2 or 1:3
Trigger can be:
ORB Entry
Confluence only (recommended)
6) Dashboards (optional)
Compact ORB dashboard: current bias + entry + SL
Backtest dashboard: trades, wins, losses, win%
Timeframe behavior (important)
ORB supports these window selections: 1m, 5m, 10m, 15m, 30m, 1h, 1D, 1W, 1M
ORB supports these calc TF selections: 1m, 3m, 5m, 10m, 15m, 30m, 1h
Mode
Auto: uses Native when chart TF is supported, otherwise switches to LTF calculation
Native: ORB runs only on supported chart TF; disables otherwise
LTF: ORB always calculates on Calc TF (best for 1H/1D chart viewing)
Examples (recommended setups)
Example 1 — Your main setup (10m ORB on intraday chart)
Goal: trade ORB normally with minimal complexity
Chart TF: 1m / 3m / 5m
ORB:
Mode: Auto
ORB Window: 10m
Calc TF: 10m (or 5m if you want slightly earlier structure)
Sensitivity: Medium
Breakout Condition: Close
TP Method: Dynamic
Stop Loss: Balanced
Visuals:
Draw ORB Lines: ON
Entry Labels: ON
TP/SL Marks: OFF (keeps chart clean)
Example 2 — View ORB on a 1H chart (LTF-on-HTF mode)
Goal: see 10m ORB levels/signals while looking at 1H structure
Chart TF: 1H
ORB:
Mode: LTF
ORB Window: 10m
Calc TF: 5m or 10m
Sensitivity: Medium
Note: On HTF, multiple LTF events can compress into fewer visible updates (normal with security data).
Example 3 — Higher winrate attempt (fewer trades, more filtering)
Goal: reduce bad ORB entries
ORB:
Sensitivity: Low (2 retests)
Breakout Buffer %: 0.10 – 0.25
Use Vol Osc Filter: ON
Confluence:
Enable Confluence: ON
EMA Rule: Stack (strict)
Require SR Break Same Direction: ON (optional, strict)
RR:
RR Lines: ON
RR: 1:3
Trigger: Confluence
This usually reduces signals but can improve quality depending on ticker.
Example 4 — Conservative risk control (visual RR planning)
Goal: only take trades that offer clear RR
RR:
Show RR Lines: ON
RR: 1:2
Trigger: Confluence
Result: you only see RR targets when the entry is “higher confidence”.
Example 5 — Dashboards only when needed
Goal: keep chart clean, but enable quick stats occasionally
ORB UI:
Show ORB Dashboard: OFF normally
Show Backtest Dashboard: ON only during tuning
Positions: set to Top Right / Top Center as you prefer
Notes on alerts (how to use)
Your SR/EMA alerts are built-in alert() calls, so when creating an alert choose:
“Any alert() function call”
ORB/CONF alerts are alertcondition(), so create alerts selecting:
ORB Entry
ORB TP1
ORB SL
CONF Buy / CONF Sell
Educational Use Only: This script is provided for educational and informational purposes only and is not financial advice—use it at your own risk, as trading involves substantial risk of loss.
Custom Time Zones with ShadingSet vertical lines at 8am, 9:30am, noon, 4pm, NY time. Times can be modified, line colors can be modified.
Set chart shading from 4pm (last line time) to 8am (first line time) and a second shade from 8am to 9:30am.
This puts visuals for NY session start/end and one additional highlight for mid-session.
Key levels by Chav3zNY-Time Anchored Sessions
Visualizes the Asia, London, and New York sessions using customizable boxes or high/low lines. Unlike standard session indicators, this tool uses the America/New York time zone to ensure your session start and end times remain accurate throughout Daylight Savings changes.
2. Dynamic HTF Key Levels (PDH/PDL, PWH/PWL, PMH/PML)
Automatically plots the Previous Daily, Weekly, and Monthly Highs and Lows.
Clean Intraday Origin: To prevent "chart clutter," these lines do not drag across the entire historical data. They originate at the start of the current day (NY Midnight), providing a clean horizontal reference for the current trading session.
Lookback Control: Choose how many days of historical key levels you want to remain visible on your chart.
3. Custom Time-Anchored Levels
Includes two fully customizable "Price Anchors" (e.g., Midnight Open, 09:30 AM NY Open).
Origin Point Precision: Lines start exactly at the candle of the specified time (e.g., 09:30) and extend forward, rather than drawing through the pre-market.
Price Capture: Choose to anchor to the Open, High, or Low of that specific timestamp.
4. Full Aesthetic Customization
Every level (Daily, Weekly, Monthly, and Custom) can be individually styled:
Color & Visibility: Set each level to your preferred color (Defaulted to Black for a clean look).
Line Style: Toggle between Solid, Dashed, or Dotted lines.
Thickness: Adjust the line width (1px, 2px, etc.) for better visibility on high-resolution screens.
How to Use
Midnight Open: Set Level 1 to 0000 to track the Daily Open, a crucial level for determining daily bias.
NY Open: Set Level 2 to 0930 to mark the "Opening Range" anchor for the New York session.
Liquidity Targets: Use the PDH/PDL and PWH/PWL levels to identify draw-on-liquidity areas for intraday scalp or swing setups.
Bulkowski Breakout vPRO (5m) - Runtime FixedHere is the English translation of your strategy guide, tailored for international traders while maintaining your encouraging tone.Strategy Guide: Bulkowski Breakout vPROFor Aspiring "Golden Traders"This strategy is designed for beginners to trade with the "flow of power." In short, it is a momentum-following strategy that enters a trade when a strong price move (Long Body Candle + High Volume) breaks through a key psychological level (200 EMA).1. Core Concept: "The High-Energy Breakout"Based on the principles of Thomas Bulkowski, a legendary master of chart patterns, this strategy prioritizes high-energy moves over simple price touches. A signal (LONG or SHORT) is only generated when these three conditions align:200 EMA Break (The Baseline): The 200-period Exponential Moving Average is the "life-line" of the market. Price breaking above this line indicates a powerful shift from a bearish to a bullish trend.Long Body Candle (Volatility): The candle body must be at least 2x larger than the recent average. This serves as evidence of institutional or "whale" buying/selling.Volume Surge (Reliability): Trading volume at the moment of breakout must be 1.5x higher than the recent average. This confirms the move is genuine and not a "fake-out."2. Session Filter (Optimized for Peak Volatility)To avoid "choppy" sideways markets, this strategy only operates during the first two hours of the major global market opens, when liquidity is at its highest.MarketTime (KST / UTC+9)Market CharacteristicsAsia Session09:00 ~ 11:00Opening of Korean, Japanese, and Chinese markets.Europe Session16:00 ~ 18:00Volatility spikes as the London market opens.US Session22:00 ~ 24:00Peak global liquidity as New York opens.Signals only appear when the chart background is shaded blue. All other times are "resting periods" to protect your capital.3. Execution GuideEntryLONG (Buy): Enter when a large green candle breaks above the yellow 200 EMA with high volume. (Green triangle label appears).SHORT (Sell): Enter when a large red candle breaks below the yellow 200 EMA with high volume. (Red triangle label appears).Take Profit (TP) & Stop Loss (SL)Lines are automatically drawn on your chart once you enter:Orange Line (Stop Loss): Automatically set at the low (or high) of the last 3 candles. If the price touches this, the trade closes to prevent further loss.Green Line (Take Profit): Automatically set at 1.5x your risk. This ensures a healthy 1:1.5 Risk-to-Reward ratio.4. Pro-Tips for BeginnersOptimized for 5m: This strategy works best on the 5-minute (5m) timeframe. 1m is often too noisy, and 15m can be too slow for scalping.Watch Bitcoin: Even if an altcoin gives a LONG signal, be cautious if Bitcoin is currently crashing. BTC dictates the overall market direction.Adjusting Sensitivity: If signals are too rare, go to "Settings" and lower the Long Body Multiplier from 2.0 to 1.5.This indicator is built to help you trade based on statistical advantages, not emotions. We strongly recommend practicing with Paper Trading first to get a feel for the signals.To everyone dreaming of becoming a Golden Trader—Success is a marathon, not a sprint!
Multi-Indicator SuiteMain Chart Overlay:
9, 20, and 200 EMAs - Each with customizable colors and visibility toggles
Intraday VWAP - Automatically resets daily to show intraday volume-weighted average price
Separate Indicator Panes:
RSI (14-period default) - With overbought (70) and oversold (30) levels, customizable length
MACD - With histogram, MACD line, and signal line (12/26/9 default settings)
Features:
All indicators have customizable settings through the indicator settings panel
Color-coded RSI (red when overbought, green when oversold)
MACD histogram changes color based on positive/negative values
Built-in alert conditions for EMA crossovers, RSI levels, and MACD crossovers
Toggle visibility for each component independently
Michael LipsiusTitle: Michael Multi-Timeframe Trend Dashboard (HTF Bias & LTF Execution)
Description:
Overview This indicator is a specialized Top-Down Analysis tool designed to assist traders in identifying the dominant market direction across multiple timeframes instantly. Built around the principles of Michael's Trading Strategy and institutional trend following, this dashboard eliminates the noise and provides a clear, color-coded directional bias (Prognosis) for both High Time Frame (HTF) structure and Low Time Frame (LTF) momentum.
Core Functionality The dashboard generates a real-time matrix displayed directly on the chart, analyzing price action relative to the 50-period Exponential Moving Average (EMA). This specific metric is chosen to filter out minor fluctuations and reveal the true institutional flow of money.
1. High Time Frame (HTF) Prognosis – The "Compass" The indicator monitors the Daily (D1) and 4-Hour (H4) timeframes to establish the macro trend.
Bullish 🟢: Price is holding above the 50 EMA. This indicates that Smart Money is accumulating, and traders should focus primarily on Long setups.
Bearish 🔴: Price is trading below the 50 EMA. This suggests institutional distribution, meaning Short setups have a higher probability of success.
Purpose: The HTF modules act as your safety filter. By respecting the D1/H4 signals, you avoid trading against the major trend, significantly reducing the risk of being stopped out by macro flows.
2. Low Time Frame (LTF) Execution – The "Trigger" Simultaneously, the indicator analyzes the 1-Hour (H1) and 15-Minute (M15) timeframes.
These timeframes are crucial for timing entries and managing intraday volatility.
Conflict Warning: If the HTF is Bullish (Green) but the LTF is Bearish (Red), the market is likely in a pullback phase. This warns the trader to wait for the LTF to realign with the HTF before entering.
How to Use This Tool This dashboard is designed to be the first step in your trading routine:
Check Confluence: Look for a "Full Green" or "Full Red" board. When D1, H4, and H1 align, the probability of a successful trade increases exponentially.
Identify Pullbacks: If D1/H4 are Green, but M15 is Red, do not sell. Instead, treat this as a discount phase and wait for the M15 to flip back to Green for a high-precision entry.
Risk Management: Use the HTF bias to determine your risk exposure. Trade with full risk only when HTF and LTF are aligned.
Settings & Customization
Table Position: Fully adjustable (Top Right, Bottom Right, etc.) to fit your workspace.
EMA Period: Default is set to 50 (Standard Michael Strategy), but can be adjusted to fit other strategies.
Visuals: Clean, non-intrusive design with clear color coding for instant readability.
Disclaimer This tool is for informational purposes only and serves as a trend-confirmation aid. It should be used in conjunction with price action analysis, key levels, and proper risk management.
Gap Boxes extended_customizableSimple indicator denoting gaps on the chart, along with option to have labels according to the percentage of the gap up or gap down. Enjoy
London Breakout Optimized PFBest Practices:
Only take trades in trend and above/below VWAP
Avoid trading in low-volume or sideways markets
Use it for intraday 5-min charts (15-min for trend confirmation)
Track trades in a Trading Journal → improves discipline
Entry Rules:
Long (Buy):
Price above EMA21 & VWAP → bullish trend
EMA slope positive → strong trend confirmation
Pullback to entry zone OR breakout above resistance
Volume above 1.3× average → avoids weak moves
Short (Sell):
Price below EMA21 & VWAP → bearish trend
EMA slope negative → strong downtrend
Pullback to entry zone OR breakout below support
Volume above 1.3× average
Exit Rules:
Stop-Loss: ATR-based, dynamic (tight for fewer losses)
Take Profit: Risk × 3 (3:1 R:R)
Automatically handled by the strategy (strategy.exit)
Universal Auto CPR + R1-R5 S1-S5 +Smoothed Heikin AshiWhat this script is doing :
✅ Part A: Smoothed Heikin Ashi candles (visual overlay)
It calculates Heikin Ashi OHLC
Then applies EMA smoothing to HA values (shaLen)
Finally plots the HA candles using plotcandle()
👉 Important: This HA overlay is ONLY for view.
It does not change CPR / pivot levels,
✅ Part B : Auto CPR timeframe selection
It automatically decides which higher timeframe to use for CPR based on chart timeframe:
Rule inside autoTF:
Chart timeframe CPR timeframe used
seconds or minutes < 60 Daily (D)
minutes ≥ 60 Weekly (W)
daily Monthly (M)
weekly/monthly Yearly (12M)
✅ Recommendation : Add colors + widths to make CPR readable
Currently all plots are default color.
You can set:
Pivot as yellow
TC/BC as blue
R levels red
S levels green
Midlines faded
(only visual improvement)
Happy trading
LIVE PRICE + TIMER v2LIVE PRICE + CANDLE TIMER Indicator
The Live Price + Candle Timer indicator displays the current market price in a clear, fixed on-screen panel, combined with a real-time countdown to the candle close.
It is designed to help traders improve timing, discipline, and entry precision, especially on fast-moving markets like XAU/USD (Gold).
Key Features
Live Price Display
Shows the current price continuously in a clean, easy-to-read panel.
Bullish / Bearish Color Coding
Green background when the current candle is bullish
Red background when the current candle is bearish
This provides instant market sentiment at a glance.
Candle Close Countdown (mm:ss)
Displays the remaining minutes and seconds until the current candle closes, helping you avoid early entries and wait for confirmation.
Adjustable Panel Size
Choose between Small, Medium, or Large panel sizes to match your screen layout and trading style.
Candle Close Alert (Optional)
An optional alert that triggers when the candle closes, ideal for traders who enter only after candle confirmation.
Fixed Screen Position
The panel stays visible on the chart without overlapping candles, making it perfect for active intraday trading.
Best Use Cases
Gold (XAU/USD) trading
Lower timeframes (1m – 15m)
Traders who wait for candle close confirmation
Avoiding FOMO and premature entries
This indicator acts as a simple but powerful trading HUD, keeping the most important information — price direction and time — always in sight.
Anchored VWAPThe Anchored VWAP Indicator: A Dynamic Reference for Pivotal Market Events
This script implements a specialized and highly customizable trading tool known as an Anchored Volume-Weighted Average Price (VWAP). Its core innovation and primary utility lie not in a novel mathematical formula, but in its temporal flexibility. Unlike the standard VWAP, which resets at the fixed start of each trading day, this indicator allows the trader to manually define the precise moment from which the calculation begins. This transforms it from a generic daily benchmark into a powerful, event-specific dynamic support and resistance level.
What It Does and How It Works
The indicator plots a single, continuous line on the price chart. This line represents the average price paid for an asset over a specified period, weighted by trading volume, but crucially, starting from a user-chosen timestamp. The calculation follows this logic:
Anchor Point Definition: The user specifies a "Start Time" (e.g., "2024-05-22 11:45:00"). This is the anchor—the moment deemed significant for a new market phase.
Initialization: On the very first candle at or immediately after the anchor time, the indicator initializes its calculation. It uses the candle's high price and volume to set an initial value, establishing a starting point for the cumulative calculation.
Cumulative Calculation: For every subsequent candle, the script calculates the Typical Price (High + Low + Close) / 3 for that period. It then:
Adds (Typical Price * Volume) to a running cumulative total.
Adds the Volume to a running cumulative volume total.
VWAP Plotting: The anchored VWAP line for each candle is simply the cumulative total price-value divided by the cumulative total volume up to that point. The line is only plotted for the period on and after the user-defined anchor time.
How to Use It: The Strategic Application
The power of this tool is unlocked through strategic anchor point selection. It is not a standalone signal generator but a dynamic reference framework for price action. It belongs to the family of Price Action-Based, Event-Driven Analysis and Dynamic Support/Resistance methodologies. Traders use it to contextualize price movement relative to a key market "reset" event.
Common anchor points include:
Major Economic News Releases: Anchor at the exact time of a CPI, FOMC, or jobs report to see the fair-value price discovery after the news, filtering out prior, irrelevant noise.
Significant Technical Breaks: Anchor at the moment a price conclusively breaks a major trendline, a multi-month high/low, or a key chart pattern (like the neckline of a head and shoulders). The VWAP then acts as a dynamic gauge of momentum following the breakout.
Session or Shift Changes: For 24-hour markets, anchor at the open of a specific session (e.g., London Open, US Open) to analyze intra-session flow.
Instrument-Specific Events: Anchor at the start of a merger announcement, earnings call, or product launch.
Once anchored, traders interpret price interaction with the line:
Trend Validation: Price sustaining above a rising anchored VWAP (anchored at a breakout point) confirms bullish momentum. Conversely, holding below a falling VWAP confirms bearish momentum.
Dynamic Support/Resistance: In a trending move, pullbacks towards the anchored VWAP often find support (in uptrends) or resistance (in downtrends). This makes it a potential area for trend-continuation entries.
Mean Reversion & Exhaustion Signals: A sharp, high-volume move far away from the anchored VWAP may signal an overextended market, prompting watch for a reversion back to the mean (the VWAP line).
The Core Philosophy and Rationale
The underlying principle is that volume-confirmed price action following a defining event establishes a new, more relevant fair-value equilibrium. The standard daily VWAP includes all overnight or pre-event noise, which can distort the relevant average for the new market regime initiated by the event.
This anchored approach:
Filters Irrelevance: It isolates analysis to the market structure after the catalyst, providing a cleaner analytical canvas.
Respects Market Microstructure: By weighting price by volume, it acknowledges that high-volume price levels are more significant than low-volume spikes, creating a more robust and "traded" average.
Provides a Self-Adjusting Baseline: It creates a moving benchmark that evolves with the new trend, offering a continuous, objective measure of whether prices are becoming relatively "expensive" or "cheap" within the current move, not compared to the entire day.
In essence, this Anchored VWAP shifts the perspective from a fixed, time-based cycle (the trading day) to a flexible, event-based cycle. It empowers traders to draw a dynamic line in the sand at their chosen moment of structural shift, turning a simple average into a sophisticated gauge of post-event market sentiment and momentum.
Ultimate Volume Dashboard & Signals V2📋 Clear Entry Criteria Summary
BUY Entry SELL Entry
✅ RVOL ≥ 1.5x ✅ RVOL ≥ 1.5x
✅ Green Candle ✅ Red Candle
✅ Strong Body (>50%) ✅ Strong Body (>50%)
✅ Price > VWAP ✅ Price < VWAP
✅ Price > EMA 50 ✅ Price < EMA 50
✅ RSI 50-80 ✅ RSI 20-50
⭐ Extreme Vol = Strong Signal ⭐ Extreme Vol = Strong Signal
🆕 Key Improvements
Cooldown Period - Prevents signal spam
EMA Filter - Additional trend confirmation
Candle Body Check - Filters weak/doji candles
Strong vs Regular Signals - Extreme volume = higher conviction
Entry/SL Levels - ATR-based levels displayed
Alert Conditions - Ready for notifications
Would you like me to add backtesting statistics or multi-timeframe confirmation?
//@version=5
indicator("Ultimate Volume Dashboard & Signals", overlay=true)
// ==========================================
// 1. SETTINGS & INPUTS
// ==========================================
// General Settings
lookback_len = input.int(20, "Volume Moving Average Length", group="Volume Settings")
rvol_thresh = input.float(1.5, "RVOL Threshold (Breakout Level)", step=0.1, group="Volume Settings")
// Trend Settings
use_vwap = input.bool(true, "Filter Signals using VWAP", group="Trend Filters")
rsi_len = input.int(14, "Momentum Length (RSI)", group="Trend Filters")
// Dashboard Settings
show_table = input.bool(true, "Show Dashboard", group="UI Settings")
table_size = input.string("Small", "Table Size", options= , group="UI Settings")
// ==========================================
// 2. CALCULATIONS
// ==========================================
// --- Volume Calculations ---
vol_ma = ta.sma(volume, lookback_len) // Average Volume
rvol = volume / vol_ma // Relative Volume (Current vs Average)
// --- Trend & Momentum Calculations ---
rsi_val = ta.rsi(close, rsi_len) // RSI Momentum
vwap_val = ta.vwap(close) // Volume Weighted Average Price
// Detect Volume Spikes (The "Upcoming" Momentum)
is_vol_spike = rvol >= rvol_thresh
// ==========================================
// 3. SIGNAL LOGIC
// ==========================================
// Bullish Signal Logic
// 1. Volume is significantly higher than average (Spike)
// 2. Candle is Green (Close > Open)
// 3. Price is above VWAP (Institutional Control)
// 4. RSI is rising but not completely maxed out (>50)
bull_trend = use_vwap ? (close > vwap_val) : true
buy_signal = is_vol_spike and close > open and bull_trend and rsi_val > 50 and rsi_val < 90
// Bearish Signal Logic
// 1. Volume Spike
// 2. Candle is Red (Close < Open)
// 3. Price is below VWAP
// 4. RSI is falling (<50)
bear_trend = use_vwap ? (close < vwap_val) : true
sell_signal = is_vol_spike and close < open and bear_trend and rsi_val < 50 and rsi_val > 10
// ==========================================
// 4. VISUALS ON CHART
// ==========================================
// Color Bars based on Volume Intensity
bar_color = is_vol_spike ? (close > open ? color.new(color.lime, 0) : color.new(color.red, 0)) : (close > open ? color.new(color.gray, 60) : color.new(color.gray, 60))
barcolor(bar_color)
// Plot Buy/Sell Labels
plotshape(buy_signal, title="BUY Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="VOL BUY", textcolor=color.white, size=size.small)
plotshape(sell_signal, title="SELL Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="VOL SELL", textcolor=color.white, size=size.small)
// Plot VWAP for reference
plot(use_vwap ? vwap_val : na, "VWAP", color=color.yellow, linewidth=1)
// ==========================================
// 5. DASHBOARD PANEL
// ==========================================
if show_table
// Define Table Size
t_size = table_size == "Tiny" ? size.tiny : table_size == "Small" ? size.small : table_size == "Normal" ? size.normal : size.large
text
// Create Table (Top Right)
var tbl = table.new(position.top_right, 2, 5, bgcolor=color.new(color.black, 50), border_color=color.gray, border_width=1, frame_color=color.gray, frame_width=1)
// --- Header ---
table.cell(tbl, 0, 0, "METRIC", text_color=color.white, bgcolor=color.new(color.blue, 20), text_size=t_size)
table.cell(tbl, 1, 0, "STATUS", text_color=color.white, bgcolor=color.new(color.blue, 20), text_size=t_size)
// --- Row 1: RVOL (Volume Strength) ---
rvol_color = rvol > 2.0 ? color.red : rvol > 1.0 ? color.green : color.gray
rvol_txt = rvol > 2.0 ? "EXTREME (" + str.tostring(rvol, "#.##") + "x)" : rvol > 1.0 ? "High (" + str.tostring(rvol, "#.##") + "x)" : "Low (" + str.tostring(rvol, "#.##") + "x)"
table.cell(tbl, 0, 1, "Rel Volume (RVOL)", text_color=color.white, text_size=t_size)
table.cell(tbl, 1, 1, rvol_txt, text_color=color.white, bgcolor=rvol_color, text_size=t_size)
// --- Row 2: Trend (VWAP) ---
trend_txt = close > vwap_val ? "BULLISH" : "BEARISH"
trend_col = close > vwap_val ? color.green : color.red
table.cell(tbl, 0, 2, "Trend (VWAP)", text_color=color.white, text_size=t_size)
table.cell(tbl, 1, 2, trend_txt, text_color=color.white, bgcolor=trend_col, text_size=t_size)
// --- Row 3: Momentum (RSI) ---
mom_txt = rsi_val > 50 ? "Positive" : "Negative"
mom_col = rsi_val > 50 ? color.green : color.red
table.cell(tbl, 0, 3, "Momentum", text_color=color.white, text_size=t_size)
table.cell(tbl, 1, 3, mom_txt, text_color=color.white, bgcolor=mom_col, text_size=t_size)
// --- Row 4: Signal Status ---
sig_txt = buy_signal ? "BUY NOW" : sell_signal ? "SELL NOW" : "WAIT"
sig_col = buy_signal ? color.lime : sell_signal ? color.red : color.gray
table.cell(tbl, 0, 4, "ACTION", text_color=color.white, bgcolor=color.new(color.white, 80), text_size=t_size)
table.cell(tbl, 1, 4, sig_txt, text_color=color.black, bgcolor=sig_col, text_size=t_size) clear entre based on code
Pro Volume & Momentum Dashboard [CONFIRMED ENTRY v2.1]🎯 Key Upgrades in This Version:
1. 10-Point Confluence Scoring System
# Factor Description
1 Volume Spike RVOL ≥ threshold with directional candle
2 Volume Delta Buy vs Sell pressure analysis
3 VWAP Position Institutional fair value
4 200 EMA Macro trend alignment
5 EMA Stack 9 > 21 > 50 alignment
6 ADX Trend strength + direction
7 RSI Momentum confirmation
8 MACD Histogram momentum
9 HTF Trend Higher timeframe alignment
10 Candle Quality Strong body, minimal wicks
2. Confirmed Entry Logic
✅ Requires minimum 7/10 confluence score (adjustable)
✅ Waits for candle close to avoid fakeouts
✅ 5-bar cooldown prevents duplicate signals
✅ Potential setups warned when score is 5-6/10
3. Risk Management
Auto-calculated Stop Loss (ATR-based)
Two Take Profit levels (TP1 & TP2)
Visual risk zones on chart
Risk/Reward ratio displayed
4. Higher Timeframe Confirmation
Checks 1H (or custom) timeframe trend
Ensures trade aligns with bigger picture
📌 How to Use:
Wait for ◆ CONFIRMED BUY/SELL label (not triangles)
Check dashboard for 7+/10 score
Entry: On signal candle close
Stop Loss: Red line below/above
Take Profit: Green lines (scale out at TP1, full exit TP2)
🕯️ Candlestick Patterns Added
Bullish Patterns (11 Total)
Pattern Description Strength
Bullish Engulfing Green candle engulfs prior red ⭐⭐⭐ Strong
Hammer Long lower wick at bottom ⭐⭐ Medium
Morning Star 3-candle reversal pattern ⭐⭐⭐ Strong
Bullish Harami Small green inside large red ⭐⭐ Medium
Piercing Line Opens gap down, closes above mid ⭐⭐ Medium
Three White Soldiers 3 consecutive strong green candles ⭐⭐⭐ Strong
Dragonfly Doji Long lower wick, no body ⭐⭐ Medium
Tweezer Bottom Equal lows at support ⭐⭐ Medium
Bullish Marubozu Full body, no wicks ⭐⭐⭐ Strong
Rising Three Continuation after pullback ⭐⭐ Medium
Bearish Patterns (11 Total)
Pattern Description Strength
Bearish Engulfing Red candle engulfs prior green ⭐⭐⭐ Strong
Shooting Star Long upper wick at top ⭐⭐ Medium
Evening Star 3-candle reversal pattern ⭐⭐⭐ Strong
Bearish Harami Small red inside large green ⭐⭐ Medium
Dark Cloud Cover Opens gap up, closes below mid ⭐⭐ Medium
Three Black Crows 3 consecutive strong red candles ⭐⭐⭐ Strong
Gravestone Doji Long upper wick, no body ⭐⭐ Medium
Tweezer Top Equal highs at resistance ⭐⭐ Medium
Bearish Marubozu Full body, no wicks ⭐⭐⭐ Strong
Falling Three Continuation after pullback ⭐⭐ Medium
Hanging Man Long lower wick at top ⭐⭐ Medium
quantyrsiThis indicator turns classic RSI into a premium, AI-styled spectro
neon ribbon with smooth color drift and a cinematic plasma glow. A
rainbow motion trail highlights momentum and makes shifts in strength
instantly readable without clutter. BIG and HUGE volume-spike events
are marked with sparse, high-contrast rings so standout activity is
impossible to miss. Clean glass-panel ambiance, subtle scanlines, and
a minimal scale deliver a professional HUD look that stays elegant on
any chart. Designed for traders who want both style and signal clarity
in one sleek oscillator.
8 EMA. 21 EMA. VWAP This trio is popular for momentum, scalping, and trend-following on 1m–15m charts (stocks, futures, indices).
1. Trend & Bias Filter
• Overall bullish when: Price > VWAP and 8 EMA > 21 EMA
• Overall bearish when: Price < VWAP and 8 EMA < 21 EMA
VWAP adds volume context — many ignore EMA signals against the VWAP side.
2. Crossover Signals (Primary Entries)
• Bullish crossover: 8 EMA crosses above 21 EMA → potential long (especially if price is already above VWAP)
• Bearish crossover: 8 EMA crosses below 21 EMA → potential short (especially if price is below VWAP)
VWAP confirmation reduces whipsaws: only take longs above VWAP, shorts below it.
3. Pullback / Retest Entries (Higher Probability)
• In an uptrend (price > VWAP, 8 > 21): Wait for dips to the 8 EMA (or sometimes 21 EMA) → buy the bounce.
• In a downtrend: Wait for rallies to the 8 EMA → short the rejection.
VWAP often acts as a magnet or pivot — price gravitating toward it can signal mean-reversion trades.
Cryptocurrency Dual-System Color-Changing Moving AveragesCryptocurrency Dual-System Color-Changing Moving Averages: Advanced Multi-Timeframe Trend Analysis
Innovative Core Concept
Our indicator introduces a revolutionary approach to trend analysis by integrating dual moving average systems with intelligent visual feedback mechanisms. Unlike traditional moving average indicators that simply display lines or basic crossovers, our system provides dynamic, multi-dimensional trend intelligence through three key innovations:
Dual Independent Moving Average Systems - Two complete 7-period moving average systems operate simultaneously, offering independent trend confirmation while maintaining visual harmony through unified color coding.
Intelligent Color-Changing Algorithm - Each moving average dynamically changes color based on its individual trend strength, creating a visual heatmap of momentum across different timeframes.
Holistic Market State Visualization - The entire candlestick chart changes color based on overall trend alignment, providing immediate visual confirmation of market regimes.
Comprehensive Functionality and Implementation
What It Does
This indicator performs multi-timeframe trend analysis across 14 moving averages (7 for each system), calculating individual trend strength for each line and determining overall market alignment to provide clear visual signals for different market conditions.
How It Works
Primary Trend Strength Calculation:
For each moving average, the indicator calculates a proprietary trend strength value by analyzing the net directional movement over a user-defined lookback period. This quantifies whether the moving average is consistently rising, falling, or consolidating.
Color Coding Logic:
Blue: Moving average shows strong upward momentum (trend strength exceeds positive threshold)
Orange: Moving average shows strong downward momentum (trend strength falls below negative threshold)
Gray: Moving average shows neutral/consolidating behavior
Market Regime Detection:
The system analyzes the alignment of three key moving averages (short-term, medium-term, and long-term) from the Main MA System to determine the overall market state:
Bullish Alignment: Short-term MA > Medium-term MA > Long-term MA (candlesticks turn blue)
Bearish Alignment: Short-term MA < Medium-term MA < Long-term MA (candlesticks turn orange)
Consolidation: No clear alignment pattern (candlesticks turn white)
Implementation Methodology
Our approach combines several established technical analysis concepts with unique enhancements:
Multiple Timeframe Analysis (MTFA) - We simultaneously analyze 7 different time periods (21, 55, 89, 144, 200, 450, 800) to capture trend dynamics across short, medium, and long time horizons.
Trend Strength Quantification - Instead of relying on simple crossovers, we calculate a proprietary trend strength metric that measures both direction and momentum consistency.
Visual Pattern Recognition Enhancement - By color-coding both the moving averages and the price bars, we leverage human visual processing capabilities to quickly identify market states and potential reversals.
Dual Confirmation System - The two independent moving average systems (Main System and EMA System) provide layered confirmation, reducing false signals and increasing reliability.
Practical Application and Usage Guidelines
Setup and Configuration
Main Moving Average System:
Configure your preferred moving average type (SMA, EMA, WMA, or HMA) and select which of the 7 periods to display. Each period can be individually enabled or disabled based on your analysis needs.
EMA System Configuration:
The secondary EMA system provides additional trend confirmation. Adjust its transparency to visually distinguish it from the Main System while maintaining chart clarity.
Trend Sensitivity Adjustment:
The "Trend Strength Threshold" parameter allows fine-tuning of color change sensitivity. Lower values make the indicator more responsive to minor trends, while higher values require stronger momentum for color changes.
Strategic Trading Applications
1. Trend Identification and Confirmation Strategy
Bullish Confirmation: Look for predominantly blue moving averages across multiple timeframes accompanied by blue candlesticks
Bearish Confirmation: Look for predominantly orange moving averages across multiple timeframes accompanied by orange candlesticks
Trend Weakness Detection: Watch for moving averages changing from blue to gray/orange or from orange to gray/blue
2. Multi-Timeframe Alignment Trading
High-Probability Entries: Enter positions when all three key timeframes (short, medium, long) align in the same direction
Exit Signals: Consider reducing positions when timeframes begin to diverge or when candlestick color changes to white (consolidation)
3. Support and Resistance Identification
Moving averages serve as dynamic support/resistance levels
Color changes at these levels indicate whether support/resistance is strengthening or weakening
4. Market Regime Adaptation
Trend-Following Mode: During blue/orange candlestick periods, employ trend-following strategies
Range-Trading Mode: During white candlestick periods, employ range-bound or mean-reversion strategies
Core Philosophical Framework and Calculation Logic
Underlying Technical Analysis Principles
Our indicator is built upon the principle that trends exist simultaneously across multiple timeframes, and the convergence or divergence of these timeframes provides valuable information about trend strength and potential reversals.
Calculation Methodology
Trend Strength Formula:
For each moving average, we calculate:
Sum of upward movements over the lookback period
Sum of downward movements over the lookback period
Net directional bias as a normalized value between -1 and +1
This approach provides a more nuanced understanding of trend momentum compared to simple directional analysis.
Threshold-Based Classification:
Values above the positive threshold indicate sustainable upward momentum
Values below the negative threshold indicate sustainable downward momentum
Values within the threshold range indicate consolidation or weak trends
Why This Approach Is Effective
Early Warning System: Color changes in individual moving averages often precede overall market regime changes, providing early reversal signals.
Noise Reduction: By requiring alignment across multiple timeframes for candlestick coloring, we filter out false signals common in single-timeframe analysis.
Visual Processing Efficiency: The color-coded system allows rapid interpretation of complex multi-timeframe information, reducing cognitive load during fast market conditions.
Adaptability: Configurable parameters allow adjustment for different market conditions (high volatility vs. low volatility) and trading styles (scalping vs. position trading).
This indicator is particularly valuable for cryptocurrency trading due to the market's characteristic high volatility and strong trend tendencies. By providing clear visual cues about trend strength and alignment across multiple timeframes, it helps traders remain aligned with the dominant market direction while avoiding periods of choppy, directionless price action.
The system's dual-layer confirmation (moving average colors + candlestick colors) creates a robust framework for identifying high-probability trading opportunities while maintaining flexibility to adapt to changing market conditions.
Pro Structure: Precision MSS/BOS & Extended FVG1. Precision Structure Mapping (BOS & MSS) Unlike standard ZigZag indicators that just connect pivots, this script visualizes the exact "Break" point:
MSS (Market Structure Shift): Displayed as a Thick Solid Line. This signals a potential trend reversal (e.g., breaking a Lower High in a downtrend).
BOS (Break of Structure): Displayed as a Thin Dashed Line. This signals trend continuation in the current direction.
Visual Logic: The lines originate exactly from the Swing Pivot and terminate exactly at the candle that closes beyond that pivot, providing instant visual confirmation of the break.
2. Trend-Filtered Fair Value Gaps (FVG) To reduce "Analysis Paralysis," this indicator uses an active trend filter:
Bullish Trend: Only Bullish FVGs (Green) are highlighted. Bearish FVGs are hidden to prevent counter-trend confusion.
Bearish Trend: Only Bearish FVGs (Red) are highlighted.
Extended Zones: FVG boxes are automatically projected forward (default: 5 candles) to help identify immediate entry zones before price returns to them.
3. Clean Aesthetics The chart remains minimal. Labels are non-intrusive, and color coding is strictly defined (Green for Bullish structure/FVGs, Red for Bearish structure/FVGs), allowing for rapid decision-making.
Settings
Swing Detection Length: Customize the sensitivity of the structure (lower for scalping, higher for macro trends).
FVG Extension: Control how far into the future the FVG boxes are drawn.
Visuals: Fully customizable colors and label options.
This tool is intended to assist in identifying high-probability structural points and aligned entry zones.
[codapro] Elite Momentum & Smart Money Detector
Elite Momentum & Smart Money Detector
Overview
The Elite Detector is a non-repainting indicator that merges Smart Money Concepts, Adaptive Volatility-Based Momentum, and Multi-Timeframe Trend Confluence to identify high-probability trade setups. This tool helps confirm institutional intent and market pressure before triggering actionable signals.
Core Systems
Smart Money Concepts (SMC)
• Highlights institutional order blocks
• Detects equal highs/lows as liquidity zones
• Automatically cleans up outdated zones for clarity
Adaptive Momentum Engine
• Momentum calculated with volatility-adjusted smoothing
• Normalized scale from -100 to +100
• Candle coloring reflects trend strength dynamically
Squeeze Detection System
• Flags volatility contraction zones using Bollinger and Keltner channels
• Background shading highlights compression zones
• Histogram shows directional breakout pressure
Multi-Timeframe Trend Validation
• Aligns signals with higher timeframe momentum
• Built-in logic auto-selects appropriate HTF per chart
• Reduces false signals and improves timing
Signal Logic
Buy Signal appears when:
Momentum crosses from negative to positive
Squeeze condition is active
Higher timeframe confirms bullish trend
Sell Signal appears when:
Momentum crosses from positive to negative
Squeeze condition is active
Higher timeframe confirms bearish trend
All signals are non-repainting and appear only once all conditions are met.
Visual Dashboard (Top-Right Corner)
Displays real-time confirmation across five categories:
Momentum: Current trend direction and strength
Squeeze: Indicates if volatility is compressed
HTF Trend: Confirms higher-timeframe alignment
Volatility: Current volatility phase (low, normal, or high)
Signal Status: Buy, Sell, or Neutral (Wait)
Chart Visuals
Candle Colors:
• Bright green/red = Strong momentum
• Faded green/red = Weak momentum
Background Colors:
• Orange = Squeeze is active
• Clear = Normal market activity
Boxes:
• Green = Bullish order blocks
• Red = Bearish order blocks
Dashed Lines:
• Red = Equal highs (liquidity zones above)
• Green = Equal lows (liquidity zones below)
Alert Conditions
Includes three prebuilt alerts for automation and webhook systems:
Elite Buy Signal
Elite Sell Signal
Squeeze Activation
These alerts allow users to respond to market shifts in real time or integrate with automated trading workflows.
Best Practices
Wait for Confluence: Confirm all three systems (momentum, squeeze, HTF trend) before entering
Watch Order Blocks: Institutional zones often act as support/resistance
Monitor Liquidity Zones: Be cautious of stop hunts near equal highs/lows
Use Dashboard Cues: Let the HUD validate your setup
Always Use Risk Management: This tool increases probability, not certainty
Example Setup:
1. Squeeze background appears
2. Buy signal triangle confirms
3. Dashboard shows: Momentum strong up, Squeeze on, HTF trend up
4. Price bounces off green order block
→ High-probability long entry
Why It Works
This tool leverages multiple uncorrelated concepts to filter low-quality trades and highlight setups with real institutional backing:
Order Blocks and Liquidity Zones track smart money footprints
Volatility-adjusted Momentum captures real energy shifts
Multi-Timeframe Confluence confirms trades in the broader context
Non-repainting signals ensure reliability
Final Note
The Elite Detector is designed to show you:
Where smart money is positioned,
When the market is coiling for a move,
and Which direction is supported by momentum and trend.
Use it as your high-probability entry engine — across any market or timeframe.
Disclaimer
This tool was created using the CodaPro Pine Script architecture engine — designed to produce robust trading overlays, educational visuals, and automation-ready alerts. It is provided strictly for educational purposes and does not constitute financial advice. Always backtest and demo before applying to real capital.
SWING ATR BasedWhat does this indicator do?
1. It identifies Market Swings The script monitors price action to detect when a trend changes direction.
It uses ATR (Average True Range) to measure volatility, ensuring it doesn't get tricked by small, insignificant price movements.
To validate a change in direction (from bullish to bearish, or vice versa), it waits for the price to cover a specific distance (defined by the kRange parameter) and requires at least two significant candles.
2. It plots Support and Resistance zones As soon as a new high or low point is confirmed:
In Green (Bull): It draws a support line at the level of the last low.
In Red (Bear): It draws a resistance line at the level of the last high.
Auto-Cleaning: If the price breaks through a support line, the line turns gray and stops. The script only keeps active (unbroken) levels on the screen.
3. It calculates an "SGE Score" (Market State) This is the "brain" of the script. It assigns a rating to the current trend:
+2 (Bullish): The price has broken a resistance.
-2 (Bearish): The price has broken a support.
0 (Neutral): The market is indecisive (for example, after a break that contradicts the previous one).
Key Feature: This score has a "one-candle delay." It waits for the next candle to close before confirming a score change, which helps avoid reacting too quickly to false alerts.
4. It simplifies visual reading To keep your chart clean and readable:
It only highlights the 3 levels closest to the current price (those most likely to be hit soon).
It colors the chart candles directly: Green if the score is +2, Red if the score is -2, and Gray if it is neutral.
5. Dashboard In the top-right corner of your screen, it displays a permanent summary:
The current score (-2, 0, or 2).
The number of active supports and resistances.
Summary: This is a "smart" trend detector. Instead of just looking at whether the price is going up or down, it waits for the price to break important structural levels (confirmed by volatility) to tell you: "Caution, the structure has just shifted from bullish to bearish."
Recommended Settings:
kRange: 1.3 / 1.4
ATR Mult: 0.3 to 0.5
Script created with Claude AI.
Anhnga4.0 - Filter ToggleINPUTS:
1.5 0.8 (OR 1.6 0.5/0.6)
BE=0.45
1
MAs: 35 135
7
This Pine Script code defines a trading strategy named **"Anhnga4.0 - Filter Toggle"**. It is a trend-following strategy that uses momentum oscillators and moving averages to identify entries, while featuring a specific "Overextension Filter" to avoid buying at the top or selling at the bottom.
Here is a breakdown of how the script works:
---
## 1. Core Trading Logic (The Entry)
The strategy looks for a "perfect storm" of three factors before entering a trade:
* **Momentum (WaveTrend):** It uses the WaveTrend oscillator (`wt1` and `wt2`).
* **Long:** A bullish crossover happens while the oscillator is below the zero line (oversold).
* **Short:** A bearish crossunder happens while the oscillator is above the zero line (overbought).
* **Trend Confirmation:** The price must be on the "correct" side of three different lines: the 20-period Moving Average (BB Basis), the 50-period SMA, and the 200-period SMA.
* **The Window:** You don't have to enter exactly on the cross. The `Signal Window` allows the trade to trigger up to 4 bars after the momentum cross, provided the trend filters align.
## 2. The "Overextension" Filter
This is a unique feature of this script. It calculates the distance between the current price and the **50-period Moving Average**.
* If the price is too far away from the MA (defined by the **ATR Limit**), the script assumes the move is "exhausted."
* If `Enable Overextension Filter?` is on, the strategy will skip these trades to avoid "chasing the pump."
* **Visual Cue:** The chart background turns **purple** when the price is considered overextended.
---
## 3. Risk Management & Exit Strategy
The script manages trades dynamically using Bollinger Bands and Risk:Reward ratios:
| Feature | Description |
| --- | --- |
| **Stop Loss (SL)** | Set at the **Lower Bollinger Band** for Longs and **Upper Band** for Shorts. |
| **Take Profit (TP)** | Calculated based on your **RR Ratio** (default is 2.0). If your risk is $10, it sets the target at $20 profit. |
| **Breakeven** | A "protection" feature. Once the price moves in your favor by a certain amount (the `Breakeven Trigger`), the script moves the Stop Loss to your entry price to ensure a "risk-free" trade. |
---
## 4. Visual Elements on the Chart
* **Green Lines:** Your target price (TP).
* **Red Lines:** Your initial Stop Loss.
* **Yellow Lines:** Indicates the Stop Loss has been moved to **Breakeven**.
* **Purple Background:** High alert—price is overextended; trades are likely being filtered out.
---
## Summary of Settings
* **BB Multiplier:** Controls how wide your initial stop loss is.
* **ATR Limit:** Controls how sensitive the "Overextension" filter is (higher = more trades allowed; lower = stricter filtering).
* **Breakeven Trigger:** Set to 1.0 by default, meaning once you are "1R" (profit equals initial risk) in profit, the stop moves to entry.
High-volume buy and sell signals with OB and FVGBuy and sell signals on ob
Pivot Point Usage: Instead of detecting each candle of an opposite color, the script uses `ta.pivothigh/low`. This means it only marks a Pivot Point if the price has actually made a significant high or low relative to the 10 preceding and following candles.
Dynamic Cleanup (Mitigation): As soon as the price returns to "fill" the area (depending on your choice: simple contact or close), the box disappears from the chart. This keeps your view clean and focused on the remaining untouched areas.
Period Setting: You can increase the "Detection Period" (e.g., from 10 to 20) in the settings to filter out even more noise and keep only the major areas.
How to use it?






















