指標和策略
⛓️ Scalping Fusion [AlexSvet]An indicator with a table that takes into account the trend for scalping trading.
ALTSEASON Monitor: Macro vs Crypto (normalized)ALTSEASON Monitor: Macro vs Crypto (normalized)
Set 1W or 1M timeframe for the macro picture.
If your provider does not have some symbols, change the tickers in the script settings (for example, ETHBTC from another exchange).
For detailed trading, keep this monitor on the second window and watch local entries on individual charts.
Quanta Trading Course - Basic StrategyA simple Trading strategy optimize for Nifty 1 Hour Chart. Which is Long only.
Darvas Box with Mid, 25% & 75% LinesThis script draws a Darvas Box.
The box is drawn between Top (High) and Bottom (Low).
Optionally, additional lines can be displayed:
Midline (50%) → customizable color, width, and style
25% Line → customizable color, width, and style
75% Line → customizable color, width, and style
This helps to quickly identify support and resistance zones inside the box.
Additionally, Breakout/Breakdown arrows are drawn, and alerts can be triggered.
EMA Crossover StrategyAs the name suggests. It is an EMA crossover with a custom buy, sell signal on the chart with the take profit signal on the chart itself. SL would be the original candle low on the candle where the buy sell signal is generated. kindly give a feedback on the script so i can update it.
Clean Volume Bars (Green/Red + Above Avg Highlight)📊 Clean Volume Bars (Green/Red + Above Avg Highlight)
This script provides a clearer view of market volume by combining standard green/red volume bars with dynamic highlights for above-average activity.
Features:
✅ Green / Red Volume Bars – standard visualization:
Green when the candle closes higher than it opened
Red when the candle closes lower than it opened
✅ Average Volume Line – a simple moving average (default 20 periods) to track relative volume.
✅ Above Average Highlights – bars that exceed the average volume are emphasized:
White for above-average bullish volume
Black for above-average bearish volume
How to Use:
Look for white volume spikes during up candles → potential strong bullish activity.
Watch for black volume spikes during down candles → potential strong bearish pressure.
Combine with price action, trend, or other indicators for confluence (this is not a standalone trading system).
Hassi XAUUSD 15TF BUY/SELL (Anchored, Non-Repainting)What this does
Hassi XAUUSD 15TF BUY/SELL is a non-repainting signal indicator designed for XAUUSD (Gold) on the 15-minute timeframe (also works on BTCUSD). It blends EMA crossover + RSI + MACD with optional volume & volatility filters, and prints anchored BUY/SELL arrows that stay glued to their candle (no visual drifting on zoom/scale/replay). Optional confidence% labels help you judge signal quality at a glance.
Why it’s stable (no repaint)
Signals confirm only on bar close (barstate.isconfirmed).
Arrows/X marks are placed with label.new(x=bar_index, y=high/low, xloc.bar_index, yloc.abovebar/belowbar) so they remain exactly above/below the triggering candle.
No request.security for higher-TF lookaheads; no negative offsets.
How signals are generated
Core trigger: EMA(9) crosses EMA(21)
RSI filter (opt): RSI ≥ RSI Buy Min (default 50) for buys; ≤ RSI Sell Max (default 50) for sells
MACD filter (opt): MACD line crosses its signal or histogram sign matches direction
Volume/ATR filters (opt): require a basic volume spike and above-average ATR volatility (toggleable)
Divergence (opt): lightweight RSI divergence hints (diamond marks)
Anchored markers
BUY: triangle below the signal candle
SELL: triangle above the signal candle
EXIT (❌): small x above (long exit) / below (short exit) when the opposite signal confirms
Nudges: fine-tune vertical placement with tick offsets (inputs) without breaking anchoring
Inputs (defaults)
Fast EMA: 9
Slow EMA: 21
RSI Length: 14
MACD Fast/Slow/Signal: 12 / 26 / 9
Require RSI filter (50 line): ✅
Require MACD cross filter: ✅
RSI Buy Min / RSI Sell Max: 50 / 50
Buy/Sell/Exit Offset (ticks): 0 / 0 / 0
Advanced toggles: Trend Strength ✅, Dynamic Sizing (visual) ✅, Volume Filter ⛔, Volatility Filter ⛔, RSI Divergence ⛔, Show Confidence ✅
Status line/table: ✅
Alerts
Add any of these in Add Alert → Condition: this indicator
Buy Signal → {{ticker}} BUY @ {{close}} - ANCHORED SIGNAL
Sell Signal → {{ticker}} SELL @ {{close}} - ANCHORED SIGNAL
Exit Mark → {{ticker}} EXIT @ {{close}} - ANCHORED EXIT
Recommended use (15-minute XAUUSD)
Use during active sessions (London/NY overlaps).
Keep defaults; enable Volume & Volatility filters in high-noise conditions.
Add confluence (S/R, structure/BOS, session highs/lows, FVG or HTF bias).
Manage risk with structure-based SL or ATR x 1.0–1.5, and partial TP at 1:1–1.5R.
Note: You mentioned it has ~80% win rate on 15TF in your testing. Performance varies by broker feed, session, spread, and risk management. Treat results as educational, not a guarantee.
Non-repainting notes
Signals lock on close; historical arrows are final.
Labels are bar/price anchored (no drift when you zoom or change scale).
Arrays trim old labels automatically to avoid drawing limits.
FAQ
Q: Why don’t past arrows move when I resize the chart?
A: They’re label.new() anchored to bar_index and bar high/low with xloc/yloc, so they stay with the candle.
Q: Can I turn it into a strategy/backtest?
A: Yes—wrap the same signals into strategy.entry/exit, but this release is an indicator by design.
Q: Will it work on BTC or other pairs/timeframes?
A: Yes, but it’s tuned for XAUUSD M15. Adapt filters for other markets.
Changelog
v1.0 — Initial public release: anchored non-repainting arrows, optional RSI/MACD filters, volume/ATR filter, divergence hints, confidence labels, status panel, alerts.
Disclaimer
This tool is for education and analysis only. It is not financial advice. Trading involves risk; do your own research and manage risk responsibly.
EMA's Rainbow: 5/10/20/50/100/150/200/250All major EMA's color coded to look like a rainbow, and configurable
Fibonacci Zone + EMA RibbonThis script combines two well-known concepts into a single indicator: the Fibonacci Zone and the EMA Ribbon.
The Fibonacci Zone highlights potential support and resistance levels derived from recent price ranges, helping traders identify key breakout or reversal areas.
The EMA Ribbon overlays multiple exponential moving averages, providing a clear visual representation of market trend and momentum.
Together, these two tools allow traders to assess both dynamic support/resistance and trend direction at a glance, making it easier to spot confluence zones and high-probability trading opportunities.
This indicator can be effectively applied on shorter timeframes such as 5m, 15m, or 30m for active trading.
For additional confirmation of medium- to long-term trend direction, it is recommended to complement it with the 20-period SMA from the 4H timeframe.
Inside Candle DivergenceStudy Material: Inside Candle Divergence Indicator (aiTrendview)
1. Introduction
The Inside Candle Divergence Indicator is a custom tool built on TradingView using Pine Script. It is designed to help traders identify potential reversal points or trend continuations using a mix of candlestick analysis, RSI (Relative Strength Index), VWAP (Volume Weighted Average Price), Pivot Points, and Volume analytics. The tool also provides a dashboard table on the chart, summarizing all key values in a single glance for traders and analysts.
This indicator is not just a signal generator but also an educational framework—explaining how different concepts in technical analysis combine to build a systematic approach for market entries and exits.
________________________________________
2. Core Concepts Behind the Tool
A. Inside Candle Pattern
An Inside Candle forms when the current candle’s high is lower than or equal to the previous candle’s high, and the low is higher than or equal to the previous candle’s low.
• This means the entire price action of the current candle is "inside" the range of the previous candle.
• A bullish inside candle occurs when the close is higher than the open.
• A bearish inside candle occurs when the close is lower than the open.
This pattern shows market indecision but also sets up potential breakouts or trend reversals.
________________________________________
B. RSI (Relative Strength Index)
The indicator calculates RSI using the formula from the ta.rsi() function in TradingView. RSI helps measure momentum in the market.
• A low RSI (below 25) signals an oversold zone → possible buy.
• A high RSI (above 75) signals an overbought zone → possible sell.
By combining RSI with the Inside Candle, the indicator ensures that signals are triggered only when momentum and price patterns confirm each other.
________________________________________
C. Buy & Sell Signals
• Buy Signal: Triggered when RSI < Buy Level (default 25) and a bullish inside candle forms.
• Sell Signal: Triggered when RSI > Sell Level (default 75) and a bearish inside candle forms.
When triggered, the chart displays a BUY (green label below candle) or SELL (red label above candle) marker. The indicator also saves the entry price and signal bar for future reference inside the dashboard.
________________________________________
D. VWAP (Volume Weighted Average Price)
VWAP is calculated using the typical price (H+L+C)/3 and weighting it by volume.
• VWAP shows the average trading price weighted by volume, widely used by institutions.
• The tool calculates the distance of price from VWAP in % terms.
• If price is far above VWAP, the market may be overheated (overbought). If far below, it may be undervalued (oversold).
________________________________________
E. Volume Analysis
The tool splits volume into Buy Volume and Sell Volume:
• Buy Volume: If close > open.
• Sell Volume: If close ≤ open.
• Cumulative totals are maintained, and percentages are calculated to show what proportion of total market volume is bullish vs bearish.
• A progress bar style visual (using blocks █) shows the dominance of buyers or sellers.
This allows traders to quickly measure whether buyers or sellers are controlling the market trend.
________________________________________
F. Daily Pivot Points
Pivot Points are calculated using the previous day’s high, low, and close:
• Pivot = (High + Low + Close) / 3
• R1, S1, R2, S2, R3, S3 levels are derived from this pivot.
• These levels act as support and resistance zones.
The script plots Pivot, R1, and S1 lines on the chart for easy reference.
________________________________________
G. Trend Direction
The indicator checks where the price is compared to R1 and S1:
• If price > R1 → Bullish Trend
• If price < S1 → Bearish Trend
• Otherwise → Neutral Trend
The trend direction is displayed in the dashboard with arrows (↑, ↓, →).
________________________________________
H. Price Change Calculation
The tool calculates:
• Price Change = Current Close – Previous Close
• Percentage Change = (Change / Previous Close) × 100
• Displays ▲ (green upward) or ▼ (red downward) with the exact percentage.
This gives traders a quick snapshot of intraday price movement.
________________________________________
I. Dashboard Table
One of the most powerful features is the real-time dashboard table shown on the chart. It contains:
1. Symbol & Price Info (Current ticker, price, change %)
2. RSI Reading (with color coding: green for oversold, red for overbought)
3. VWAP and Distance from VWAP
4. Volume Analysis with Progress Bar (Buy vs Sell %)
5. Pivot Levels (Pivot, R1, S1)
6. Trend Direction (Bullish, Bearish, Neutral)
7. Signal Status (Last Buy/Sell signal with entry price)
This reduces the need for multiple indicators and gives traders a command-center view directly on the chart.
________________________________________
J. Alerts
The tool generates alerts whenever a Buy or Sell condition is met. Traders can set up TradingView alerts to be notified instantly when:
• Buy Signal Alert → RSI oversold + Bullish inside candle
• Sell Signal Alert → RSI overbought + Bearish inside candle
This ensures no opportunity is missed even if you’re not actively monitoring the chart.
________________________________________
K. Background Highlights
The chart background also changes faintly (light green or light red) when a Buy or Sell condition is triggered. This gives traders visual confirmation along with signals and alerts.
________________________________________
3. Practical Use of This Tool
• Scalpers & Intraday Traders can use it for quick momentum-based entries.
• Swing Traders can use the RSI + Inside Candle + Pivot Points to find medium-term reversals.
• Analysts can use the dashboard for real-time summaries in reports.
• Volume Analysis helps understand institutional activity.
Remember: This is not a standalone holy grail. It must be used with proper risk management and confirmation from higher timeframes.
________________________________________
4. Strict Disclaimer (aiTrendview)
⚠️ Disclaimer from aiTrendview:
This indicator is designed for educational and analytical purposes only. It is not financial advice or a guaranteed trading strategy. Markets are inherently risky and unpredictable; past performance of indicators does not ensure future results. Trading involves risk of financial loss, and traders must use proper risk management, stop-loss, and independent judgment.
aiTrendview strictly follows TradingView.com rules and compliance guidelines.
Any misuse of this tool, its code, or analytical features for unauthorized commercial purposes, false promises, or misleading activities is strictly discouraged. The creators of this script and aiTrendview will not be responsible for any losses, damages, or misuse arising from its application. Always trade responsibly and only with money you can afford to lose.
________________________________________
Adaptive Square Levels (Prev + Curr Month, Big Labels)Title:
🔢 Adaptive Square Levels — Monthly Precision Trendlines
Description:
The Adaptive Square Levels indicator dynamically plots mathematical square number levels based on the first trading day’s open of each month.
📌 Key Features:
Plots horizontal trendlines aligned with the nearest square number to the monthly open.
Automatically generates ±10 additional square levels above and below that anchor.
Shows current month and previous month levels only, keeping the chart clean.
Special highlight: levels that are squares of multiples of 3 (9, 36, 81…) appear in orange for easy recognition.
The nearest square line is bold and labeled with a ★ star, making it instantly stand out.
Labels use large fonts, ensuring values are clearly visible alongside price scale.
📊 How It Works:
At the first bar of each new month, the script locks the opening price.
It finds the nearest perfect square to that open.
The indicator then plots horizontal levels extending across the month (finite lines, not rays).
At month change, previous month levels are fixed and new levels start fresh.
⚡ Use Cases:
Identify natural mathematical zones of support/resistance.
Compare current vs. previous month’s adaptive levels.
Use as confluence with price action or other technical tools.
⚠️ Disclaimer:
This script is for educational and analytical purposes only. It is not financial advice. Trading involves risk, and past levels or patterns do not guarantee future performance. Always use with proper risk management.
Mikula's Master 360° Square of 12Mikula’s Master 360° Square of 12
An educational W. D. Gann study indicator for price and time. Anchor a compact Square of 12 table to a start point you choose. Begin from a bar’s High or Low (or set a manual start price). From that anchor you can progress or regress the table to study how price steps through cycles in either direction.
What you’re looking at :
Zodiac rail (far left): the twelve signs.
Degree rail: 24 rows in 15° steps from 15° up to 360°/0°.
Transit rail and Natal rail: track one planet per rail. Each planet is placed at its current row (℞ shown when retrograde). As longitude advances, the planet climbs bottom → top, then wraps to the bottom at the next sign; during retrograde it steps downward.
Hover a planet’s cell to see a tooltip with its exact longitude and sign (e.g., 152.4° ♌︎). The linked price cell in the grid moves with the planet’s row so you can follow a planet’s path through the zodiac as a path through price.
Price grid (right): the 12×24 Square of 12. Each column is a cycle; cells are stepped price levels from your start price using your increment.
Bottom rail: shows the current square number and labels the twelve columns in that square.
How the square is read
The square always begins at the bottom left. Read each column bottom → top. At the top, return to the bottom of the next column and read up again. One square contains twelve cycles. Because the anchor can be a High or a Low, you can progress the table upward from the anchor or regress it downward while keeping the same bottom-to-top reading order.
Iterate Square (shifting)
Iterate Square shifts the entire 12×24 grid to the next set of twelve cycles.
Square 1 shows cycles 1–12; Square 2 shows 13–24; Square 3 shows 25–36, etc.
Visibility rules
Pivot cells are table-bound. If you shift the square beyond those prices, their highlights won’t appear in the table.
A/B levels and Transit/Natal planetary lines are chart overlays and can remain visible on the table as you shift the square.
Quick use
Choose an anchor (date/time + High/Low) or enable a manual start price .
Set the increment. If you anchored with a Low and want the table to step downward from there, use a negative value.
Optional: pick Transit and Natal planets (one per rail), toggle their plots, and hover their cells for longitude/sign.
Optional: turn on A/B levels to display repeating bands from the start price.
Optional: enable swing pivots to tint matching cells after the anchor.
Use Iterate Square to shift to later squares of twelve cycles.
Examples
These are exploratory examples to spark ideas:
Overview layout (zodiac & degree rails, Transit/Natal rails, price grid)
A-levels plotted, pivots tinted on the table, real-time price highlighted
Drawing angles from the anchor using price & time read from the table
Using a TradingView Gann box along the A-levels to study reactions
Attribution & originality
This script is an original implementation (no external code copied). Conceptual credit to Patrick Mikula, whose discussion of the Master 360° Square of 12 inspired this study’s presentation.
Further reading (neutral pointers)
Patrick Mikula, Gann’s Scientific Methods Unveiled, Vol. 2, “W. D. Gann’s Use of the Circle Chart.”
W. D. Gann’s Original Commodity Course (as provided by WDGAN.com).
No affiliation implied.
License CC BY-NC-SA 4.0 (non-commercial; please attribute @Javonnii and link the original).
Dependency AstroLib by @BarefootJoey
Disclaimer Educational use only; not financial advice.
MA20 Crossover Strategy with Threshold and Color ChangeMột chiến lược cơ bản dựa trên EMA20. Giá cắt lên MA20 hay EMA20 thi báo mua và ngược lại
Candlestick Pattern Reader + Cheat Sheet (Label Mode, Stable)Candlestick Pattern Reader is a practical tool for traders who want crystal-clear candlestick signals without memorizing mnemonics. It detects popular single-, double- and triple-bar patterns, prints full names directly on the chart, and (optionally) filters signals by trend using an EMA. It also provides a compact on-chart cheat-sheet reminder and alert conditions for every pattern.
What it Detects
Bullish patterns
Bullish Engulfing
Bullish Harami
Hammer (pin bar)
Morning Star (3-bar)
Piercing Line
Three White Soldiers
Bearish patterns
Bearish Engulfing
Bearish Harami
Shooting Star (inverted pin)
Evening Star (3-bar)
Dark Cloud Cover
Three Black Crows
Neutral / structure
Inside Bar
Outside Bar
Doji family: Doji, Dragonfly Doji, Gravestone Doji
Crypto note: Star patterns do not require gaps (they’re rare on 24/7 markets); logic uses body/positioning instead.
Key Features
Full-text labels: Clear, readable names (no abbreviations).
EMA Trend Filter (optional): Only show bullish patterns in uptrends and bearish in downtrends.
Bar-close confirmation (optional): Choose confirmed (stable) or intrabar (faster, can move during the live bar).
Sensitivity controls:
Min body % of range (filters tiny bodies)
Doji body % of range
Star (middle bar) small body %
Long-wick multiple for pins
Short wick % for Three Soldiers/Crows
Alerts: Individual alerts for every pattern plus an “Any Candlestick Pattern” aggregate alert.
Cheat-Sheet label: A small on-chart reference that explains each pattern’s usual meaning.
Inputs (most used)
Use EMA Trend Filter (on/off) and EMA Length
Only mark after bar close (on/off)
Sensitivity: minBodyPct, dojiPct, starSmallPct, wickBodyMult, shortWickPct
Display: toggle labels and the cheat-sheet
How to Use
Timeframe: Works on any TF. Many traders prefer 5–60m for active setups; 4H/D for swing confirmation.
Trend filter: Turn Use EMA Trend Filter = ON, EMA Length = 50 (or 100/200 for higher TFs).
Confirmation: For backtests and cleaner signals, set Only mark after bar close = ON.
Confluence: Pair with support/resistance, volume, or momentum (e.g., RSI/MACD) to avoid low-quality context.
Alerts: Add alerts on the specific patterns you trade most, or use Any Candlestick Pattern for discovery.
Alerts Provided
One alert per pattern (e.g., “Bullish Engulfing”, “Shooting Star”, etc.).
Any Candlestick Pattern — fires when any of the above triggers.
Notes & Limitations
No repaint when “Only mark after bar close” is on. Intrabar mode can shift until the bar closes.
Patterns represent price action context, not guaranteed outcomes. Always add risk management.
On very low timeframes, micro-noise increases false positives; use the trend filter and/or higher TF confluence.
Good Defaults
Use EMA Trend Filter: ON
EMA Length: 50
Only mark after bar close: ON
Wick multiple: 2.0
Doji body ≤: 10% of range
Tags
candlestick, price action, engulfing, harami, hammer, shooting star, doji, morning star, evening star, inside bar, outside bar, three white soldiers, three black crows, alerts, trend filter, EMA
Disclaimer
This script is provided for educational and informational purposes only and does not constitute financial advice, investment advice, trading advice, or any recommendation to buy or sell any security, cryptocurrency, or instrument. Trading involves risk. You are solely responsible for your own decisions and the outcomes of those decisions.
No guarantees: Past performance (including backtests) does not guarantee future results. Signals can fail, and losses can exceed initial capital, especially with leverage.
Model limits: Pattern detection is probabilistic and context-dependent. Market regimes, news events, gaps, and liquidity conditions can invalidate historical tendencies.
Repainting: With “Only mark after bar close” = ON, labels are final and do not repaint. In intrabar mode (OFF), labels may move or disappear until the bar closes.
Backtest caveats: Backtests may understate slippage, fees, funding, latency, and execution impact. Results can differ materially in live markets.
Do your own due diligence: Verify settings (timeframe, symbol, broker/venue filters) and test on paper before going live. Use appropriate position sizing, stops, and risk limits.
No liability: The author and publisher assume no responsibility for any direct or indirect loss arising from use of this script or any information contained herein.
By using this script, you acknowledge that you understand these risks and accept full responsibility for your trading decisions.
Stacked Order Blocks & Breaker Blocks [FREE] [Extended]BASED ON LOGIC FROM "Order Blocks and Breaker Blocks
This indicator builds directly on the LuxAlgo Order Blocks & Breaker Blocks concept and adds a powerful new feature: stacked intersection highlighting.
Order Blocks (OBs) and Breaker Blocks are detected with the original LuxAlgo swing-based logic for reliability.
Blocks automatically extend to the right until invalidated, with breaker transitions marked clearly.
Intersection Zones: when multiple OBs and/or Breakers overlap, the shared price-time region is highlighted. These stacked zones represent areas of especially strong supply/demand confluence.
Customizable highlight styling:
Choose different colors for OB vs Breaker intersections.
Adjust transparency and maximum highlights displayed.
Optionally draw a center line through the overlap mid-price.
Toggle visibility so you can display only intersections, or both intersections and the underlying blocks.
Supports both bullish and bearish block filtering for overlap detection.
This tool is designed to help traders quickly identify high-probability confluence zones where multiple institutional footprints align.
Stacked Order Blocks & Breaker Blocks [Extended] BASED ON LOGIC FROM "Order Blocks and Breaker Blocks
This indicator builds directly on the LuxAlgo Order Blocks & Breaker Blocks concept and adds a powerful new feature: stacked intersection highlighting.
Order Blocks (OBs) and Breaker Blocks are detected with the original LuxAlgo swing-based logic for reliability.
Blocks automatically extend to the right until invalidated, with breaker transitions marked clearly.
Intersection Zones: when multiple OBs and/or Breakers overlap, the shared price-time region is highlighted. These stacked zones represent areas of especially strong supply/demand confluence.
Customizable highlight styling:
Choose different colors for OB vs Breaker intersections.
Adjust transparency and maximum highlights displayed.
Optionally draw a center line through the overlap mid-price.
Toggle visibility so you can display only intersections, or both intersections and the underlying blocks.
Supports both bullish and bearish block filtering for overlap detection.
This tool is designed to help traders quickly identify high-probability confluence zones where multiple institutional footprints align.
MACD Bullish Divergence + Multi-TF RSI Buy SignalsNew script to overlap MACD Bullish Divergence and RSI signals to give confluence.
Multi-Session Opening RangesThe Multi-Session Opening Ranges indicator plots the Opening Range (OR) levels for three major trading sessions: Asia, London, and New York. It displays the high (ORH), low (ORL), and midline of each session's opening range, helping traders identify key price levels for potential breakouts, reversals, or support/resistance zones.
This indicator is highly customizable, allowing users to tailor the appearance and behavior of each session independently.
Features
Multi-Session Support: Visualizes Opening Ranges for Asia, London, and New York sessions, with customizable session times and timezones.
Customizable Lines: Adjust the color, style (solid, dashed, dotted), and width of ORH, ORL, and midline for each session.
Offset Control: Set a custom offset (in bars) for lines and labels to position them away from price action for better visibility.
Fill Customization: Choose the fill color for the area between ORH and ORL for each session.
Historical Data Option: Toggle the display of historical OR levels to focus on current session data or analyze past ranges.
Timezone Flexibility: Select from a wide range of timezones to align session times with your trading needs.
Label Customization: Adjust the size of labels (tiny, small, normal, large, huge) for clarity on any chart.
How It Works
The indicator identifies the high and low prices during the user-defined opening range period for each session (default: 5 minutes). It then draws:
ORH (Opening Range High): The highest price during the session's opening range.
ORL (Opening Range Low): The lowest price during the session's opening range.
Midline: The average of ORH and ORL, plotted as a dashed line by default.
Filled Area: A semi-transparent fill between ORH and ORL to highlight the range.
Lines and labels extend until the start of the next session or can be offset by a user-specified number of bars for better chart readability. The indicator supports historical data display for analyzing past session ranges.
Inputs
Display:
Show Historical Data: Enable/disable historical OR levels.
Timezone: Select the timezone for session calculations (e.g., UTC-4, UTC+1, etc.).
Asia/London/New York Sessions:
Show Session: Enable/disable the session.
Session Time: Define the start and end time for the opening range (e.g., "0930-0935:1234567" for 9:30–9:35 AM, all days).
Asia/London/New York Style:
ORH/ORL/Midline Color: Set the color for each line.
ORH/ORL/Midline Style: Choose solid, dashed, or dotted styles.
ORH/ORL/Midline Width: Adjust line thickness (1–5).
OR Fill Color: Customize the fill color for the OR area.
Lines/Labels Offset: Set the offset (in bars, -50 to 50) to shift lines and labels relative to price action.
General Style:
Label Size: Set the size of ORH and ORL labels (tiny, small, normal, large, huge).
Usage
Add the indicator to your chart.
Configure session times to match your trading instrument and timezone.
Customize colors, line styles, widths, and offsets for each session to suit your chart preferences.
Use the ORH, ORL, and midline levels to identify key price zones for trading strategies, such as breakouts or reversals.
Notes
Ensure session times do not overlap to avoid conflicts in visualization.
Large offsets may place lines/labels outside the visible chart area; adjust as needed.
The indicator is optimized for intraday timeframes but works on any timeframe.
EMA Oscillator [Alpha Extract]A precision mean reversion analysis tool that combines advanced Z-score methodology with dual threshold systems to identify extreme price deviations from trend equilibrium. Utilizing sophisticated statistical normalization and adaptive percentage-based thresholds, this indicator provides high-probability reversal signals based on standard deviation analysis and dynamic range calculations with institutional-grade accuracy for systematic counter-trend trading opportunities.
🔶 Advanced Statistical Normalization
Calculates normalized distance between price and exponential moving average using rolling standard deviation methodology for consistent interpretation across timeframes. The system applies Z-score transformation to quantify price displacement significance, ensuring statistical validity regardless of market volatility conditions.
// Core EMA and Oscillator Calculation
ema_values = ta.ema(close, ema_period)
oscillator_values = close - ema_values
rolling_std = ta.stdev(oscillator_values, ema_period)
z_score = oscillator_values / rolling_std
🔶 Dual Threshold System
Implements both statistical significance thresholds (±1σ, ±2σ, ±3σ) and percentage-based dynamic thresholds calculated from recent oscillator range extremes. This hybrid approach ensures consistent probability-based signals while adapting to varying market volatility regimes and maintaining signal relevance during structural market changes.
// Statistical Thresholds
mild_threshold = 1.0 // ±1σ (68% confidence)
moderate_threshold = 2.0 // ±2σ (95% confidence)
extreme_threshold = 3.0 // ±3σ (99.7% confidence)
// Percentage-Based Dynamic Thresholds
osc_high = ta.highest(math.abs(z_score), lookback_period)
mild_pct_thresh = osc_high * (mild_pct / 100.0)
moderate_pct_thresh = osc_high * (moderate_pct / 100.0)
extreme_pct_thresh = osc_high * (extreme_pct / 100.0)
🔶 Signal Generation Framework
Triggers buy/sell alerts when Z-score crosses extreme threshold boundaries, indicating statistically significant price deviations with high mean reversion probability. The system generates continuation signals at moderate levels and reversal signals at extreme boundaries with comprehensive alert integration.
// Extreme Signal Detection
sell_signal = ta.crossover(z_score, selected_extreme)
buy_signal = ta.crossunder(z_score, -selected_extreme)
// Dynamic Color Coding
signal_color = z_score >= selected_extreme ? #ff0303 : // Extremely Overbought
z_score >= selected_moderate ? #ff6a6a : // Overbought
z_score >= selected_mild ? #b86456 : // Mildly Overbought
z_score > -selected_mild ? #a1a1a1 : // Neutral
z_score > -selected_moderate ? #01b844 : // Mildly Oversold
z_score > -selected_extreme ? #00ff66 : // Oversold
#00ff66 // Extremely Oversold
🔶 Visual Structure Analysis
Provides a six-tier color gradient system with dynamic background zones indicating mild, moderate, and extreme conditions. The histogram visualization displays Z-score intensity with threshold reference lines and zero-line equilibrium context for precise mean reversion timing.
snapshot
4H
1D
🔶 Adaptive Threshold Selection
Features intelligent threshold switching between statistical significance levels and percentage-based dynamic ranges. The percentage system automatically adjusts to current volatility conditions using configurable lookback periods, while statistical thresholds maintain consistent probability-based signal generation across market cycles.
🔶 Performance Optimization
Utilizes efficient rolling calculations with configurable EMA periods and threshold parameters for optimal performance across all timeframes. The system includes comprehensive alert functionality with customizable notification preferences and visual signal overlay options.
🔶 Market Oscillator Interpretation
Z-score > +3σ indicates statistically significant overbought conditions with high reversal probability, while Z-score < -3σ signals extreme oversold levels suitable for counter-trend entries. Moderate thresholds (±2σ) capture 95% of normal price distributions, making breaches statistically significant for systematic trading approaches.
snapshot
🔶 Intelligent Signal Management
Automatic signal filtering prevents false alerts through extreme threshold crossover requirements, while maintaining sensitivity to genuine statistical deviations. The dual threshold system provides both conservative statistical approaches and adaptive market condition responses for varying trading styles.
Why Choose EMA Oscillator ?
This indicator provides traders with statistically-grounded mean reversion analysis through sophisticated Z-score normalization methodology. By combining traditional statistical significance thresholds with adaptive percentage-based extremes, it maintains effectiveness across varying market conditions while delivering high-probability reversal signals based on quantifiable price displacement from trend equilibrium, enabling systematic counter-trend trading approaches with defined statistical confidence levels and comprehensive risk management parameters.
All Weekly Opens + Week LabelThis script plots every Weekly Open (WO) across the entire chart, making it easy for traders to backtest how price reacts to weekly opens historically.
Each weekly open is drawn as a horizontal line and labeled with the month abbreviation and the week number of that month (e.g., WO Aug-4). This allows traders to quickly identify where each weekly session started and analyze market behavior around these key reference levels.
How it works
The script detects the first bar of each new week and records its opening price.
A horizontal line is drawn at that price, extending to the right.
An optional label shows the week name in the format Month-WeekNumber.
Traders can enable or disable labels, change line colors, line width, and optionally display the opening price in the label.
A new input allows filtering to show only the last N months of Weekly Opens. By default, all weekly opens are displayed, but traders can limit the chart to just the most recent ones for a cleaner view.
Why it’s useful
Weekly opens are often respected levels in both intraday and swing trading. They provide natural reference points for:
Backtesting market reactions to session opens.
Identifying areas of support/resistance around weekly levels.
Aligning trade entries and exits with higher-timeframe context.
Simplifying charts by focusing only on the most relevant recent weeks.
Notes
This indicator is not a trading signal generator.
It should be used as a contextual tool for analysis, helping traders improve risk management and entry precision.
Works on all symbols and timeframes.
The “last N months” filter is optional; setting it to 0 will plot all Weekly Opens available in the chart’s history.
Daily High & Low - 200 bars (Historical)Daily highs and lows.
High marked with a red line.
Low marked with a green line.
plotted on the 5 min chart.