Z-Score & ICTThis is a multi-feature PulseWire volume/price indicator called "(Z-Score) & ICT" that combines a statistical volume filter with a suite of ICT-style (Inner Circle Trader) price-action tools. Core pieces:
Core engine — Volume Z-Score
Colors each volume bar by how many standard deviations it sits from its own N-bar average (blue/magenta/yellow for significant up/down/doji moves, white for above-average, dimmed gray for below-average). Can also be displayed as a z-score oscillator instead of colored columns.
Layered add-ons (all toggleable):
Typical Volume Cycle – flags whether a bar falls inside the normal opening/closing volume-surge windows, plus an "abnormal volume" flag for significant volume that occurs outside those windows.
ICT Kill Zones – shades/flags the five standard session windows (Asian, London Open, NY AM, NY PM, London Close), with optional high/low lines, name labels, and a filter for significant volume inside a zone.
Fair Value Gaps (FVG) – draws 3-candle imbalance boxes on the price chart, with an optional volume-significance filter and fill/mitigation tracking.
Market Structure (ChoCH & MSS) – two-tier swing-break detection: ChoCH flags an early minor-swing break against the prevailing trend, while MSS confirms a major-swing break that flips the tracked trend state.
Pre-Market Breakout/Breakdown – flags closes beyond the pre-market high/low when confirmed by elevated relative volume (RVOL).
Adaptive Trend Finder (ported from Julien Eche's public script, GPL-3.0) – auto-selects the best-fit log-regression trend channel from ~19 candidate lookback periods based on Pearson's R correlation, with an info table showing period, strength, and annualized return.
Liquidity Pools (ported from LuxAlgo's public script, CC BY-NC-SA 4.0) – detects zones of repeated equal highs/lows and tracks cumulative volume traded inside each zone. Indicator

Prior Range XL**Prior Range XL — Overview**
Prior Range XL plots the previous period's trading range directly on the chart and marks the key levels inside it. It answers a simple question at a glance: where did price trade last period, and where are the meaningful levels within that zone? The prior high and low from a higher timeframe (day, week, or month) often act as support, resistance, and targets in the current period, and this tool keeps them visible and updated without manual drawing.
**What it draws on the chart**
- **Range box** — a shaded rectangle spanning the prior period's high down to its low, giving an immediate visual sense of the zone price is working within.
- **Prior High line** — the top of the range, extended across the current period.
- **Prior Low line** — the bottom of the range, extended across the current period.
- **Midline** — the exact midpoint (50%) of the range, often treated as the "fair value" or equilibrium of the zone.
- **Two internal levels** — user-placed lines inside the range (defaults sit at 20% and 80%), useful for spotting partial retracements, entries, and profit zones between the extremes.
All lines and the box extend to the right and refresh as the current period develops. Range values are calculated from the regular trading session only, so overnight or extended-hours spikes don't distort the prior high and low.
**The inputs, grouped**
*Structure*
- **Structure Timeframe** — the heart of the tool. Choose Daily, Weekly, or Monthly to decide which prior period defines the range. Daily uses yesterday's range, Weekly uses last week's, Monthly uses last month's. This should be set at or above the chart's timeframe for correct behavior.
*Internal Levels*
- **Show Internal Level 1 / Level 2** — toggles each of the two inner lines on or off.
- **Level 1 Value / Level 2 Value** — sets where each inner line sits within the range on a 0-to-1 scale. Zero is the range low, one is the range high, and 0.5 is the midpoint. Setting a level to exactly 0.5 hides it, since the dedicated midline already covers that spot.
*Colors*
- **Box Fill Color** — the shade and transparency of the range rectangle.
- **Box Border Color** — the outline of the box.
- **Prior High Line Color** — color of the top line (labeled PDH).
- **Prior Low Line Color** — color of the bottom line (labeled PDL).
- **Midline Color** — color of the 50% line.
- **Internal Level Color** — color applied to both inner levels.
*Lines & Styles*
- **Line Width** — thickness of the box border and every line.
- **Midline Style** — solid, dashed, or dotted for the midpoint line.
- **Internal Level Style** — solid, dashed, or dotted for the two inner levels.
**How to use it**
- **Frame the session** — set the Structure Timeframe to the period that matters for the trading approach. Intraday traders typically use Daily; swing traders lean toward Weekly or Monthly.
- **Read the edges** — the prior high and low act as natural decision points. Price approaching an edge often stalls, reverses, or breaks through with momentum, and either outcome is tradable information.
- **Use the midline as a pivot** — trading above the midline leans bullish within the range; below it leans bearish. It's a quick read on which half of the zone price favors.
- **Place the internal levels intentionally** — the defaults at 20% and 80% highlight the outer quarters of the range, a common area for reactions before price tests the extremes. Adjust them to match a preferred method, such as thirds or a specific retracement depth.
- **Style for clarity** — assign distinct colors so the high, low, midline, and internal levels are instantly distinguishable, and use dashed or dotted styles to keep the inner lines from competing visually with the range boundaries.
**One practical note**
Because the title is "Prior Range XL," the chart platform treats it as its own indicator. Any earlier version under a different name stays separate and should be removed manually to avoid overlapping boxes and lines.
*(This description is drawn entirely from the indicator's own settings and logic — no outside sources involved.)* Indicator

ATLAS AI Trade Mentor PRO v0.31ATLAS AI Trade Mentor PRO v0.31
ATLAS AI Trade Mentor PRO is an advanced Pine Script v6 indicator system designed to combine trend tracking, market structure analysis, momentum evaluation, and dynamic risk management into a unified AI-driven scoring engine.
It aims to filter out market noise, prevent false signals, and provide clean trade execution opportunities for both discretionary traders and algorithmic trading strategies.
🚀 Key Features
1. Trend & Momentum Scoring Engine
The indicator relies on a multi-dimensional logic rather than a single technical tool:
Trend Engine: Calculates a Trend Score (0 to 100) based on 20, 50, and 200 EMA slopes, moving average alignment, and ATR-based volatility channels.
Momentum & Volume: Integrates RSI and MACD confluence alongside volume spikes and volatility expansion to refine signal confidence.
Smart Score: Generates actionable BUY / SELL signals only when the threshold score (default: 65) is exceeded.
2. Market Structure Engine (BOS & CHOCH)
Pivot Swing Detection: Automatically identifies key swing highs and swing lows (HH, HL, LH, LL).
BOS (Break of Structure): Highlights trend continuation breaks directly on the chart.
CHOCH (Change of Character): Detects early structural trend shifts.
3. Automated Risk & Position Management
Dynamic Stop Loss / Take Profit: Calculates exact TP1, TP2, and Stop Loss levels dynamically upon trade entry.
ATR Trailing Stop: Protects accrued profits by trailing active trends.
Break-Even System: Moves the stop price to entry automatically once favorable price targets are hit.
4. Webhook & Automated Trading Ready
JSON Webhook Payload: Built-in JSON formatting makes it fully compatible with external brokerage APIs and automated execution bots.
Uses the modern alert() framework to send dynamic BUY, SELL, and EXIT payloads bar-by-bar.
5. On-Screen Live Dashboard
Includes a clean, transparent on-screen dashboard displaying:
Primary Trend Direction (BULL / BEAR / SIDE)
Long and Short Final Smart Scores
Confidence Level & Risk Assessment
AI Mentor: Real-time contextual trade advice (e.g., "SELL AFTER PULLBACK").
⚙️ How to Use
Recommended Timeframes: Best performance is achieved on 15m, 30m, and 1h timeframes.
Asset Compatibility: Compatible with equities, index futures, forex parities, and crypto assets.
Customization: Parameters like Minimum Signal Score, ATR Multipliers, and TP/SL percentages can be adjusted via the Inputs panel.
⚠️ Disclaimer:
This indicator is built strictly for educational and technical analysis purposes. It does not constitute financial or investment advice. Always backtest against your personal risk parameters before live execution. Indicator

RSI + MACD Signals RSI + MACD Signals
RSI + MACD Signals v6 combines two of the most trusted technical indicators into one easy-to-use tool. It displays the RSI, MACD, Signal Line, Histogram, and generates clear BUY and SELL signals when both indicators align, helping traders identify high-probability trade setups.
Designed for simplicity and reliability, this indicator is suitable for Forex, Crypto, Stocks, Indices, and Commodities across multiple timeframes. Whether you're a beginner or an experienced trader, it can help confirm trend direction and momentum while reducing false entries.
Features:
- ✅ RSI with 30/50/70 levels
- ✅ MACD Line, Signal Line & Histogram
- ✅ Buy & Sell signal labels
- ✅ Pine Script v6 compatible
- ✅ Works on all markets and timeframes
- ✅ Easy to customize and use Indicator

DCA Performance Backtester [Multi-Mode]
DCA Performance Backtester
WHAT IT DOES
This indicator backtests Dollar-Cost Averaging (DCA) accumulation strategies on any symbol and shows the full result on the chart: an on-chart summary table, entry markers, average-cost line, real dividend (ex-date) tracking, a dividend-yield value zone, and a fair comparison against Lump Sum investing. It is accumulate-only (HODL) — no selling logic.
BUY MODES (can be combined)
1. Time-Based DCA — buy a fixed amount every Day / Week / Month. You can pick the weekday (weekly), the day of month (monthly, e.g. payday), or the hour (daily on intraday charts). If the market is closed on the target day, it buys the next trading day.
2. Buy the Dip — buy when price drops X% (default 12%) from the highest close of the last N bars (default 20). A cooldown (default 14 bars) spaces out repeat buys while the condition persists. Optional RSI settings:
• Filter mode — only buy when RSI is below the threshold (default 30).
• Hybrid mode — buy a normal unit on every qualifying dip (blue "D" label) AND an extra special unit when RSI is also below the threshold (red "fire" label), each stream with its own cooldown. The special unit size is adjustable via a multiplier.
3. Martingale-style averaging — first unit at a fixed size, then buy a larger unit (configurable multiplier) each time price falls another X% from the last entry, with a max-steps cap and optional reset when price recovers above average cost.
DIVIDENDS (REAL EX-DATE DATA)
Uses the symbol's actual dividend history. On each ex-date the script credits dividend × units held. Choose Gross or Net; where an exchange only provides gross figures (e.g. SET), Net is estimated as Gross × (1 − withholding tax %). Each ex-date is marked on the price chart with its per-round yield ("XD 2.35%" = dividend per share ÷ close of that day).
DIVIDEND-YIELD VALUE ZONE
Highlights price areas where the annual dividend yield at that price exceeds your threshold (default 8%/year) — useful for income-focused accumulation. Two calculation modes: trailing 12 months (TTM) or last completed calendar year. An outlier filter (default 2.5× median) excludes one-off special dividends so they do not inflate the yield. A reference line shows the exact price where yield equals the threshold.
SUMMARY TABLE
Buy count (normal vs RSI-passed dips), invested capital, units held, average cost, current portfolio value, P/L, ex-date count, total dividends received, dividends as % of invested capital, current TTM yield, DCA total return (incl. dividends), and a Lump Sum comparison computed from the same invested amount at the start date — including dividends on the Lump Sum side for a fair comparison.
ALERTS
Every buy signal fires alert() with a JSON payload (symbol, mode, price, amount, drawdown from high, RSI, and whether the RSI condition passed) — ready for webhooks. Create an alert with "Any alert() function call". Alerts fire on bar close for signals that occur after the alert is created; historical backtest markers do not fire.
HOW TO USE
Recommended on daily charts. Enable one or more buy modes, set your budget and date range, and read the "DCA beats/loses Lump Sum" row to judge whether systematic dip-buying suits the symbol. Typical tuning: calmer stocks work with smaller dip thresholds (5–7%), volatile ones with larger (12–15%).
METHOD & LIMITATIONS
Simulation buys at bar close (no intrabar fills). Accounting is computed by the script itself (indicator, not a strategy — no Strategy Tester tab). Commission % per purchase is included in cost basis. Dividend data depends on PulseWire's database and may be incomplete for some markets or older periods. Past performance does not guarantee future results. Educational tool — not investment advice.
═══════════════════════════════════════════════
DCA Performance Backtester
เครื่องมือทดสอบย้อนหลัง (backtest) กลยุทธ์สะสมหุ้นแบบ DCA กับสินทรัพย์ใดก็ได้ แสดงผลครบบนชาร์ต: ตารางสรุป, จุดซื้อ, เส้นต้นทุนเฉลี่ย, เงินปันผลจากวัน XD จริง, โซนราคาที่ปันผลคุ้ม และการเทียบกับ Lump Sum อย่างยุติธรรม — เป็นแบบซื้อสะสมอย่างเดียว (HODL) ไม่มีการขาย
โหมดการซื้อ (เปิดพร้อมกันได้)
1) DCA ตามรอบเวลา — รายวัน/รายสัปดาห์/รายเดือน เลือกวันและเวลาซื้อได้ ตลาดปิดวันเป้าหมายจะเลื่อนให้อัตโนมัติ
2) Buy the Dip — ซื้อเมื่อราคาย่อจาก High ตาม % ที่ตั้ง (ค่าเริ่มต้น 12% จากกรอบ 20 แท่ง เว้นซื้อซ้ำ 14 แท่ง) พร้อมตัวเลือก RSI สองแบบ: กรองอย่างเดียว หรือโหมดผสม — ไม้ปกติทุกครั้งที่ย่อ (ป้าย D สีฟ้า) + ไม้พิเศษเมื่อ RSI ต่ำกว่าเกณฑ์ด้วย (ป้ายไฟสีแดง) แยก cooldown สองสาย ปรับตัวคูณไม้พิเศษได้
3) ถัวเฉลี่ยขาลงแบบ Martingale — ไม้ใหญ่ขึ้นตามตัวคูณเมื่อราคาลงต่อ มีเพดานจำนวนไม้และรีเซ็ตเมื่อราคาฟื้น
เงินปันผล — ใช้ประวัติ XD จริงของสินทรัพย์ คิดจากจำนวนหน่วยที่ถือ ณ วัน XD เลือก Gross/Net ได้ (ตลาดที่มีแต่ Gross เช่น SET จะคำนวณ Net จากภาษีหัก ณ ที่จ่ายให้) จุด XD บนชาร์ตแสดง % ปันผลของงวดนั้นเทียบราคาวันนั้น
โซนปันผลคุ้ม — ไฮไลท์พื้นหลังช่วงราคาที่ yield ต่อปีสูงกว่าเกณฑ์ (ค่าเริ่มต้น 8%) เลือกวิธีคิดได้ทั้ง TTM 12 เดือน หรือปีปฏิทินล่าสุด พร้อมตัวกรองตัดปันผลพิเศษที่ทำให้ yield โป่งเกินจริง และเส้นบอกราคาที่ yield เท่าเกณฑ์พอดี
ตารางสรุป — จำนวนไม้ (แยกไม้ปกติ/ผ่าน RSI), เงินต้น, หน่วยที่ถือ, ต้นทุนเฉลี่ย, มูลค่าพอร์ต, กำไร/ขาดทุน, จำนวนครั้ง XD, ปันผลรวมและคิดเป็น % ของเงินต้น, yield ปัจจุบัน, ผลตอบแทนรวมปันผล และบรรทัดตัดสิน DCA ชนะ/แพ้ Lump Sum
Alert — ทุกสัญญาณซื้อยิง alert() เป็น JSON (สัญลักษณ์ โหมด ราคา จำนวนเงิน % ย่อ RSI และสถานะผ่าน RSI) พร้อมต่อ webhook ตั้งด้วย "Any alert() function call" — ยิงเฉพาะสัญญาณที่เกิดหลังตั้ง alert ที่ราคาปิดแท่ง
ข้อจำกัด — จำลองซื้อที่ราคาปิดแท่ง เป็น indicator จึงไม่มีแท็บ Strategy Tester ข้อมูลปันผลอิงฐานข้อมูล PulseWire ผลในอดีตไม่ยืนยันอนาคต จัดทำเพื่อการศึกษา ไม่ใช่คำแนะนำการลงทุน Indicator

ZHHere's a publishable summary for your ZH indicator:
---
**ZH — EP Trading Dashboard**
An all-in-one overlay built for Episodic Pivot traders. Combines a clean moving average stack, session VWAP, and a live data panel surfacing the metrics that matter most when evaluating a gap-up candidate.
**Moving Averages**
Plots the 10 EMA, 20 EMA, 50 SMA, 100 SMA, and 200 SMA with fully customizable colors. A timeframe filter lets you choose where they appear — all timeframes, intraday only, daily only, daily & weekly, or weekly & above — so your chart stays uncluttered.
**VWAP**
Session-anchored VWAP based on HLC/3, plotted intraday only, no bands. Resets each new day for a clean read on where volume-weighted value sits during the session.
**EP Data Panel (bottom-right)**
A compact stats table showing the key characteristics of an EP setup, all locked to daily values regardless of your chart timeframe:
- Market Cap (flags red under $40M)
- Share Float
- ADR% (14-period)
- ATR (14-period)
- VOL — daily volume (highlights above 8.9M)
- RVOL 90 — volume vs. 90-day average (highlights above 300%)
- $ VOL — dollar volume, color-tiered at $100M, $500M, and $1B
**Market Context Panel (top-right)**
- QQQ — daily % change, green/red
- BRD — market breadth via ATHI/ATLO, green/red
**Customization**
Adjustable text size, background, text color, volume highlight thresholds, and spacing.
Designed to keep the essential neglected-stock-plus-catalyst-plus-volume read visible at a glance, without cluttering the chart. Indicator

Indicator

Indicator

Gamma Regime FlagGamma Regime Flag
Flags whether price is trading above or below an estimated gamma flip level — the zone where dealer/market-maker hedging flow is thought to shift character (supportive vs. amplifying). This is a simplified, single-purpose read: just the flip line and the regime state, nothing else.
How it works:
The flip level is approximated using VWAP as an anchor, lightly smoothed with an EMA to reduce noise. When price is above the flip, the background shades one color (Positive Gamma); below it, the other (Negative Gamma). A small table in the corner shows the current regime and how many bars price has held on that side, so you can see how "sticky" the current regime has been.
How to use it:
Positive gamma regimes have historically been associated with more mean-reverting, range-bound price action, since dealer hedging tends to dampen moves. Negative gamma regimes have been associated with more trending, volatile action, since hedging flow can amplify moves in the same direction. Use the regime as context alongside your own setup — not as a standalone signal.
Inputs:
Flip Line Smoothing — controls how reactive vs. smooth the flip level is
Show Info Table / Show Flip Label — toggle the on-chart readouts
Background and line colors — fully customizable
Alerts:
Includes an alert condition for when price crosses the gamma flip level.
Notes:
This is an educational tool that approximates gamma positioning using price and volume data — it does not use live options chain data. It is not financial advice. Past performance does not guarantee future results. Indicator

Primaegis NSE Breadth DashboardMarket breadth for NSE, measured live across 24 size and sector indices, with a
composite regime score and a plain-language read of what the numbers mean.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY INDICES AND NOT STOCKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Classic breadth counts individual stocks — how many of ~2,000 names are above
their 200-DMA. Pine cannot do that: request.*() is capped at 40 calls per
script, and Pine has no network access, so an external breadth feed can only
arrive through Pine Seeds, which is end-of-day only.
Indices, however, Pine can read live. So this measures participation across 24
NSE indices instead. It is a different measurement, not a substitute: a
cap-weighted index set will not reproduce a stock count, and it responds more
slowly at turns. What it gives you in exchange is a regime read that is current
right now, with no infrastructure behind it.
The size tier deliberately includes SmallCap 250 and MicroCap 250. Breadth
breaks at the small end first, and an index set that omits it will look healthy
while the tail is bleeding.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GAUGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
R-ratios follow the standard breadth convention: R = above / below x 100, so
100 is parity, 200 means twice as many above as below.
E200 % of indices above their 200-EMA. The trend axis.
20R above vs below the 20-EMA. Short-term participation.
50R above vs below the 50-EMA. Intermediate participation.
A/D indices up today vs down today.
Thrust indices up more than X% vs down more than X% (default 1%). Indices move
far less than single stocks, so a stock-scale 4% threshold would almost
never fire; 1% is the index-scale equivalent.
All values are requested on the daily timeframe and are identical on any chart
resolution.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE PS SCORE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
A single 0-100 composite. Every term is in the source; nothing is hidden.
Trend (E200) weight 30 mapped 30% -> 0, 65% -> 1
Participation (20R,50R) weight 25
Thrust weight 20
Momentum (change in R) weight 15 mapped -25 -> 0, +25 -> 1
Advance/Decline weight 10
R-ratios enter on a log scale, because R is a ratio: 200 and 50 are equal and
opposite, not 150 apart. A linear scale would let one strong day dominate.
70+ RISK-ON broad participation
55-69 CONSTRUCTIVE improving but unconfirmed
45-54 NEUTRAL no edge either way
30-44 DEFENSIVE tape is thinning
<30 RISK-OFF participation has left
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
THE PANELS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT TO DO — a written read of the current state that changes with the numbers,
covering position sizing and whether the tape supports new risk at all.
WHAT WOULD CHANGE IT — the distance to the next threshold, counted in indices:
"E200 41.7% to 47%: 2 more indices over the 200-EMA." A level expressed as a
percentage is abstract; expressed as a count of things that must happen, it is
something you can watch for.
HEATMAP — every index with its change and a 0/3 stack score against the 20, 50
and 200 EMAs. This is what a single breadth number cannot tell you: which
sectors are carrying the market and which are dragging it.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Thrust threshold Index-scale move that counts as thrust. Default 1%.
EMA lengths Fast 20, mid 50, slow 200.
Size / Sector Toggle either group off.
Extra indices Add your own, comma separated. 24 of the 40 available
request.*() calls are used, so there is room for about 14 more.
Display Independent size, position and theme for both tables.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LIMITATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Index breadth is not stock breadth. Cap-weighted indices understate damage in
the small-cap tail even with the size tier included. Treat it as a fast read,
not a precise count.
- The built-in universe is NSE. The Extra field accepts any exchange, but the
defaults are India-specific.
- No alerts, no entries, no exits. It describes the tape; it does not trade it.
- Regime tools are slow by nature. Do not use one to time a single position. Indicator

Kiron Q-Trend Gold ProKiron Q-Trend Gold Pro is a trend-following and confluence indicator designed primarily for gold trading, particularly XAUUSD.
It substantially expands the original Q-Trend concept by combining a stateful ATR-adjusted trend line with a weighted confirmation engine. Instead of classifying a signal as “strong” simply because price opened near the top or bottom of a historical range, this version evaluates multiple independent market conditions before producing a qualified signal.
The indicator combines:
Q-Trend direction
Higher-timeframe trend
Session VWAP
ADX and directional movement
ATR volatility regime
RSI and MACD momentum
Confirmed market structure
Breaks of structure
Candle quality
ATR-based stop-loss and target projections
The purpose is not to predict every market move. It is designed to filter out low-quality conditions and highlight situations where several forms of technical evidence agree.
Core concept
The indicator is built around a stateful Q-Trend line.
The line starts from the midpoint of the highest and lowest source values over the selected trend period. It then moves higher or lower in ATR-adjusted increments when price travels sufficiently far from its previous value.
This creates a directional trend state:
Green Q-Trend line: bullish trend state
Red Q-Trend line: bearish trend state
Grey Q-Trend line: neutral or insufficient trend information
A change in the Q-Trend direction can become a possible trade trigger, but a signal is only qualified when the enabled filters also agree.
Weighted confluence engine
Every bullish and bearish setup receives a score from 0 to 100.
The default weighting is:
Component Weight
Q-Trend direction and quality 20
Higher-timeframe trend 15
VWAP alignment 15
ADX and directional movement 15
ATR volatility regime 10
Momentum 15
Market structure 10
Total 100
The bullish and bearish scores are calculated separately.
A score is not a guaranteed probability of success. An 85 score does not automatically mean an 85% win rate. It means that a large proportion of the indicator’s technical conditions are aligned in that direction.
Signal grades
Signals are grouped into the following grades:
Score Grade General interpretation
85–100 A+ Premium confluence
80–84 A Strong confluence
75–79 B+ Good confluence
70–74 B Moderate confluence
60–69 C Weak or incomplete alignment
Below 60 No Trade Insufficient confluence
The default Gold Intraday preset requires a score of at least 75.
For more selective trading, traders may raise the minimum score to 80 or 85.
Components explained
1. Q-Trend engine
The Q-Trend line is adjusted using ATR.
Price must move beyond the previous trend line by a specified ATR distance before the trend line advances or changes direction.
The ATR multiplier controls sensitivity:
Lower multiplier: faster signals, more noise
Higher multiplier: slower signals, fewer reversals
Lower trend period: more responsive
Higher trend period: smoother and slower
The rewritten engine separates:
the current trend state;
a genuine trend-direction change;
a continuation setup.
This avoids treating every candle above or below the threshold as a new crossover.
2. Higher-timeframe trend
The higher-timeframe filter compares a fast EMA and a slow EMA using the most recently completed higher-timeframe candle.
A bullish higher-timeframe condition normally requires:
Fast EMA above slow EMA
Higher-timeframe close above the fast EMA
Fast EMA rising
A bearish condition normally requires the opposite.
The higher-timeframe data is intentionally based on completed candles. This reduces the risk of signals changing because the current higher-timeframe candle is still developing.
Preset defaults:
Preset Trading chart Higher-timeframe filter
Gold Scalping M3–M5 M15
Gold Intraday M15–H1 H1
Gold Swing H4–D1 D1
3. Session VWAP
VWAP represents the session’s volume-weighted average price.
The indicator can require:
Bullish alignment
Price above VWAP
VWAP rising
Price not excessively extended above VWAP
Bearish alignment
Price below VWAP
VWAP falling
Price not excessively extended below VWAP
The maximum VWAP distance setting helps reduce late entries after price has already moved too far away from its session average.
This is especially useful on gold, where London and New York session expansions can produce sharp moves followed by fast mean reversion.
4. ADX and directional movement
ADX measures trend strength, while +DI and −DI indicate directional dominance.
A bullish ADX condition can require:
ADX above the minimum threshold
ADX below the maximum entry threshold
+DI above −DI
Optionally, ADX rising
A bearish condition can require:
ADX above the minimum threshold
ADX below the maximum entry threshold
−DI above +DI
Optionally, ADX rising
The maximum ADX filter is intended to reduce entries after a trend has already become extremely extended.
ADX measures trend strength, not direction. Direction comes from the relationship between +DI and −DI.
5. ATR volatility regime
The current ATR is compared with its own moving baseline.
This identifies whether volatility is:
too low;
within a normal tradable range;
unusually extreme.
The default acceptable range is:
Minimum ATR ratio: 0.80
Maximum ATR ratio: 2.50
A ratio below 0.80 indicates relatively quiet conditions.
A ratio above 2.50 indicates volatility that is significantly greater than its recent baseline. This may occur during major economic releases, sudden geopolitical events or extended breakout candles.
The purpose of this filter is to avoid trading when price is either too inactive or dangerously unstable.
6. Momentum engine
Momentum is assessed using RSI and MACD.
A bullish momentum condition normally requires:
RSI above the bullish threshold
RSI below the maximum long-entry level
MACD line above the signal line
MACD histogram above zero
RSI and MACD histogram rising, when slope confirmation is enabled
A bearish momentum condition normally requires the reverse.
Default RSI thresholds:
Bullish threshold: 52
Bearish threshold: 48
Maximum RSI for a new long: 76
Minimum RSI for a new short: 24
This creates a neutral region between 48 and 52 and reduces entries when RSI is already extremely stretched.
7. Market structure
The indicator identifies confirmed swing highs and swing lows using pivot calculations.
It evaluates:
Higher highs
Higher lows
Lower highs
Lower lows
Bullish breaks of structure
Bearish breaks of structure
A bullish break of structure occurs when price closes above the latest confirmed swing high.
A bearish break of structure occurs when price closes below the latest confirmed swing low.
Because swing pivots require candles to the right of the pivot, the swing is only recognised after it is confirmed. The indicator does not know a pivot exists at the exact moment the high or low first forms.
This confirmation delay is intentional and avoids treating every temporary high or low as meaningful structure.
Signal types
Trend-change signal
A trend-change signal occurs when the Q-Trend direction changes from bearish or neutral to bullish, or from bullish or neutral to bearish.
The signal must also pass the selected confluence filters and minimum score.
Continuation signal
A continuation signal attempts to identify a pullback within an established trend.
For a bullish continuation, the indicator looks for conditions such as:
Existing bullish Q-Trend
Recent interaction with the Q-Trend line or VWAP
Price returning above the relevant reference
Close above the previous candle’s high
Bullish filters and score aligned
A bearish continuation uses the opposite conditions.
Continuation mode can be disabled by selecting:
Trend Change Only
Signal confirmation
The default setting is:
Confirm Signals at Candle Close: On
With this enabled, signals are not treated as final until the current candle closes.
This is strongly recommended.
During a live candle, price can temporarily move above or below a threshold and then reverse before the bar closes. Candle-close confirmation reduces intrabar signal flickering, although it also produces slightly later entries.
For alerts, using Once Per Bar Close is recommended.
Trade framework
When a qualified signal occurs, the indicator can plot:
Entry
Stop
Target 1
Target 2
Target 3
The initial entry is based on the signal candle’s closing price.
The stop can include:
ATR-based distance
Latest confirmed swing high or swing low
Additional ATR swing buffer
For a long trade, the indicator uses the lower of:
the ATR stop;
the buffered swing-low stop.
For a short trade, it uses the higher of:
the ATR stop;
the buffered swing-high stop.
Default targets are:
Target 1: 1R
Target 2: 2R
Target 3: 3R
Here, R means the distance between the entry and stop-loss.
These projected levels are a framework, not a guarantee that each target will be reached. Traders should still consider nearby support, resistance, liquidity, session highs and lows, and major news events.
Dashboard
The dashboard displays the current state of the main components.
It includes:
Market bias
Dominant score
Trade grade
Q-Trend direction
Distance from Q-Trend in ATR
Higher-timeframe trend
VWAP position
Distance from VWAP
ADX value
DI direction
ATR regime
RSI and momentum direction
Structure direction
Recent break of structure
Active trade state
Current signal state
Dashboard interpretation
ELIGIBLE
The dominant directional score is at or above the selected minimum score.
This does not necessarily mean a new trade signal has occurred. It means market conditions are sufficiently aligned for that direction.
FILTERED
The dominant score is below the required threshold.
WAIT
Conditions may be aligned, but no qualifying trend-change or continuation trigger has occurred on the current candle.
NEW LONG or NEW SHORT
A qualifying trigger has occurred and the enabled filters have passed.
Recommended gold settings
Gold Intraday — recommended starting configuration
Best starting chart:
XAUUSD M15
Settings:
Preset: Gold Intraday
Signal mode: Trend Change + Continuation
Minimum score: 75
Premium score: 85
Confirm signals at candle close: On
Directional candle required: On
Strong candle body required: Off
Higher-timeframe trend: On
VWAP: On
ADX and DI: On
Minimum ADX: 18
ATR regime: On
ATR ratio: 0.80 to 2.50
Momentum: On
Market structure: On
Stop distance: 1.50 ATR
Targets: 1R, 2R and 3R
This uses H1 as the higher-timeframe trend filter.
Gold Scalping
Suggested chart:
M3 or M5
Preset behaviour:
Trend period: 100
Q-Trend ATR length: 10
ATR multiplier: 0.80
HTF: M15
HTF EMA: 20/50
Minimum ADX: 17
Minimum score: 80
Stop distance: 1.20 ATR
Scalping produces more signals and more market noise. A minimum score of 80 or higher is recommended.
Spread, slippage and execution speed become much more important on lower timeframes.
Gold Swing
Suggested chart:
H4
Preset behaviour:
Trend period: 250
Q-Trend ATR length: 21
ATR multiplier: 1.30
HTF: Daily
HTF EMA: 50/200
Minimum ADX: 20
Minimum score: 75
Stop distance: 2.00 ATR
Swing signals are less frequent and require wider stops and greater patience.
Suggested trading process
Long setup
A high-quality long setup generally contains:
Q-Trend is bullish.
Higher-timeframe EMA structure is bullish.
Price is above session VWAP.
VWAP is flat-to-rising.
+DI is above −DI.
ADX is above the minimum threshold.
ATR regime is valid.
RSI and MACD momentum are bullish.
Market structure is bullish or a bullish BOS recently occurred.
The signal candle closes bullish.
The score is at least 75.
There is sufficient room before the next major resistance.
Short setup
A high-quality short setup generally contains:
Q-Trend is bearish.
Higher-timeframe EMA structure is bearish.
Price is below session VWAP.
VWAP is flat-to-falling.
−DI is above +DI.
ADX is above the minimum threshold.
ATR regime is valid.
RSI and MACD momentum are bearish.
Market structure is bearish or a bearish BOS recently occurred.
The signal candle closes bearish.
The score is at least 75.
There is sufficient room before the next major support.
How not to use the indicator
Do not enter a trade solely because a BUY or SELL label appears.
Avoid treating:
the score as a statistical win probability;
the projected targets as guaranteed outcomes;
the trend line as support or resistance in every market;
a single BOS marker as sufficient confirmation;
an A+ label as permission to ignore risk.
The indicator may perform poorly during:
narrow sideways conditions;
sudden news spikes;
abnormal spreads;
low-liquidity periods;
sharp V-shaped reversals;
price gaps;
broker-feed irregularities;
heavily extended trends.
Gold can move sharply during economic releases such as CPI, PCE, NFP, FOMC decisions and speeches from major central-bank officials. Technical confirmation cannot remove event risk.
Risk-management guidance
No technical indicator can ensure profitability.
A sensible process may include:
Risking only a small, predefined percentage per trade
Avoiding entries immediately before high-impact news
Waiting for candle-close confirmation
Checking nearby support and resistance
Avoiding trades with inadequate reward-to-risk
Testing the settings on the exact symbol and broker feed being traded
Recording results separately for London, New York and Asian sessions
Accounting for spread, commission and slippage
The ATR stop and targets are analytical projections. Position size must be calculated independently according to account size and acceptable risk.
Repainting and confirmation notes
The indicator does not intentionally use future market information to create historical trade signals.
Higher-timeframe EMA values are based on completed higher-timeframe candles.
Swing highs and lows are only recognised after the required right-side candles have completed. This means structure confirmation is delayed, but confirmed pivots are more reliable than unconfirmed turning points.
When candle-close confirmation is enabled, qualified signals are only final after the current chart candle closes.
Users should understand that:
live, unconfirmed values can change during a candle;
confirmed pivot structure necessarily appears after the pivot itself;
historical performance may differ from real-time execution because of spread and slippage.
Alerts included
The indicator includes alert conditions for:
Qualified long
Qualified short
A+ long
A+ short
Bullish Q-Trend direction change
Bearish Q-Trend direction change
Bullish break of structure
Bearish break of structure
Target 1 reached
Target 3 reached
Stop reached
For trade signals, the recommended alert frequency is:
Once Per Bar Close
Alerts only begin after they have been created through PulseWire’s alert interface.
Important limitation
This script is an indicator, not a backtested strategy.
It does not automatically account for:
commission;
spread;
slippage;
partial profit-taking;
break-even stop movement;
trailing stops;
simultaneous stop and target contact within the same candle;
exact intrabar order sequence;
broker execution differences.
A separate Pine strategy version would be required for systematic historical testing.
Suggested publication disclaimer
Disclaimer: This indicator is provided for educational and analytical purposes only. It does not constitute financial advice, investment advice or a recommendation to buy or sell any financial instrument. Trading gold, forex, futures, CFDs and other leveraged products involves substantial risk. Past performance and historical signals do not guarantee future results. Users are responsible for testing the indicator, evaluating its suitability and applying appropriate risk management.
Credits and licence
The original Q-Trend concept was created by tarasenko_.
This version substantially rewrites and expands that concept with higher-timeframe analysis, VWAP, ADX, volatility-regime analysis, momentum, market structure, weighted scoring and risk projections.
Indicator

CHATUR TRADER Dashboard PRO**CHATUR TRADER Dashboard PRO**
A powerful all-in-one PulseWire dashboard designed for smart traders. Monitor Indian and Global markets in one place with real-time market data and essential technical tools.
### Features:
✅ India Market Dashboard (NIFTY, BANK NIFTY, MIDCAP, SMALLCAP, INDIA VIX, USDINR, DXY & Current Chart Symbol)
✅ Global Market Dashboard (DOW, S&P 500, NASDAQ, VIX, CRUDE & BRENT)
✅ 20 / 50 / 100 / 200 EMA
✅ VWAP (Volume Weighted Average Price)
✅ ATP (Average Traded Price)
✅ Bollinger Bands
✅ Clean & Professional Dashboard Layout
✅ Perfect for Intraday, Swing & Positional Trading
Stay ahead of the market with a complete dashboard that keeps all the important market information in a single view.
**Developed by CHATUR TRADER** 🚀
Indicator

Advanced Market Structure & Glowing Wave Proindicator description and usage guide
overview
advanced market structure and glowing wave pro is an all in one technical analysis script designed to help traders identify key market structures, major pivot reversal zones, dynamic trend momentum, and key daily levels on pine script v6.
this tool combines several essential trading concepts into a single clean visual experience, including smart money concepts market structure, dynamic momentum wave fills, high probability consolidation detection, daily high low tracking, and equilibrium levels.
key features explained
market structure tracking bos and choch
the script automatically detects pivot highs and lows to plot break of structure bos and change of character choch lines. green dashed lines represent bullish structure breaks, while red dashed lines represent bearish structure breaks. this helps traders analyze market direction without cluttering the chart.
major swing buy and sell signals
signals are calculated based on major structural pivots to reduce noise and avoid false breakouts. buy tags appear near key structural swing lows, and sell tags appear near key structural swing highs. these signals act as visual alerts for potential trend reversals or continuation setups.
glowing wave line with dynamic background fill
the wave line uses a hull moving average engine to plot smooth trend direction. the background space between the wave line and price close fills dynamically with a semi-transparent green or red glow, allowing you to instantly visualize trend strength and price expansion without obscuring your price candles.
dynamic consolidation and high probability zones
using average true range calculations, the indicator detects tight consolidation phases where price compresses. during these phases, candle colors shift to neutral grey tones and a high probability zone box highlights potential breakout ranges.
previous day high and low pdh pdl
key institutional levels like the previous day high and previous day low are automatically drawn on the chart. once price breaks through a daily level, the corresponding line auto disappears to keep your workspace clean.
0.50 fibonacci equilibrium line
a stylized mid point equilibrium line is plotted based on the recent range. this acts as a quick reference for premium and discount price zones.
customizable info dashboard
an elegant on screen panel displays current market structure status, market phase expansion or consolidation, active signal state, and pending session news times.
how to use this indicator
step 1 identifying overall trend direction
check the direction and color of the glowing wave line along with the info panel market structure reading. green indicates bullish momentum, while red indicates bearish momentum.
step 2 monitoring structure breaks
look for choch signals for early signs of a trend shift, or bos signals for trend continuation confirmation.
step 3 waiting for major swing signals
watch for major buy or sell tags printed near major swing highs and lows. ensure the signal aligns with the broader market context and your personal trading strategy.
step 4 tracking daily key levels
use the pdh and pdl lines as potential liquidity target areas or bounce zones during intra day sessions.
Things to avoid
do not treat buy and sell signals as automated financial advice or direct entry triggers. always use proper risk management.
do not trade signals blindly during high impact economic news events or inside tight consolidation ranges.
do not rely solely on one indicator. integrate this tool into a comprehensive trading system that includes risk management and independent analysis.
house rules compliance and risk disclaimer
disclaimer
this script is created strictly for educational, informational, and chart analysis purposes only. it does not constitute financial, investment, or trading advice. past performance indicated by visual cues or structural breaks on historical data does not guarantee future results. trading foreign exchange, commodities, stocks, and crypto assets carries a high level of risk, and you may lose more than your initial investment. always conduct your own research and consult a licensed financial advisor before making trading decisions.
author note
if you find this tool helpful for your technical analysis, feel free to like the script, leave your feedback in the comments, and follow for future updates and tools. Indicator

jrhFirst5jrhFirst5 — Documentation
Pine Script version: v6 Type: Overlay indicator Purpose: Plots the high/low of the first 5 minutes after the New York cash market open (9:30–9:35 AM ET) as horizontal lines and labels — today's range in green/red, and yesterday's range carried over in fuchsia/purple.
1. Overview
"jrhFirst5" captures the price range of the opening 5 minutes of the NY session (9:30:00–9:35:00 AM Eastern by default) and draws it as two horizontal reference lines:
F5H / F5L — today's First5 high/low (green/red by default), extending live from the open bar to the current bar
PF5H / PF5L — yesterday's First5 high/low (fuchsia/purple by default), carried over at the start of each new day
The range is captured from a fixed 1-minute window (via request.security) rather than from whatever bar happens to land on 9:30 on the chart's own timeframe — this makes the plotted range identical whether you're viewing a 1-minute, 3-minute, 5-minute, or any other chart resolution.
2. Inputs
General
Input Default Description
Show Labels true Toggles the F5H/F5L/PF5H/PF5L text labels
Today High Line Color Green Color of today's high line
Today Low Line Color Red Color of today's low line
Yesterday High Line Color Fuchsia Color of yesterday's high line
Yesterday Low Line Color Purple Color of yesterday's low line
Line Width 2 Line thickness (1–4)
Line Style Solid Solid / Dashed / Dotted
Line Extension
Input Default Description
Continue Yesterday's Lines to Current Candle false When off, yesterday's lines stop (seal) at the previous session's close bar, as in the original design. When on, yesterday's lines keep extending forward to the live bar, same as today's lines already do.
Labels
Input Default Description
Label Position Left Left anchors the label at the line's starting bar (the open bar). Right makes the label follow the live end of the line — walking forward each bar with today's line, and with yesterday's line too if line extension is enabled above.
Label Size Small Tiny / Small / Normal / Large / Huge
Label Vertical Position On Line On Line keeps the label exactly at the price level. Above / Below offsets the label's visual position away from the line for readability, without changing the line itself or the price printed in the label text.
Vertical Offset (% of price) 0.05 How far Above/Below to offset the label, expressed as a percentage of the label's own price — so it scales sensibly across instruments (e.g. ~$32 offset on BTC around $64,000, proportionally smaller on lower-priced instruments) rather than a fixed tick count that could be imperceptible on high-priced symbols.
Time Zone
Input Default Description
Session Timezone (defines the 9:30 open) America/New_York The timezone used to determine when "9:30 AM" actually occurs. This is what defines the capture window — leave as NY time unless tracking a different exchange's open.
Display Timezone (shown in label tooltip) America/Chicago Purely cosmetic — attached as a hover tooltip on each label as a reminder of your local time relative to the session timezone. Does not affect any calculated values.
3. How the Capture Window Works
The core problem this solves: a chart's own bar that happens to land on 9:30 covers a different-width window depending on the chart's timeframe — a 5-minute chart's 9:30 bar spans 9:30:00–9:35:00, while a 3-minute chart's 9:30 bar spans only 9:30:00–9:33:00. That mismatch produced different F5H/F5L values on different chart resolutions.
To fix this, the range is computed from a dedicated 1-minute data feed:
f_first5(tz) =>
var float h = na
var float l = na
newDay = dayofweek(time, tz) != dayofweek(time , tz)
isOpenMin = hour(time, tz) == 9 and minute(time, tz) == 30
inWindow = hour(time, tz) == 9 and minute(time, tz) >= 30 and minute(time, tz) < 35
if newDay
h := na
l := na
if inWindow
h := isOpenMin ? high : math.max(h, high)
l := isOpenMin ? low : math.min(l, low)
= request.security(syminfo.tickerid, "1", f_first5(sessionTZ), gaps=barmerge.gaps_off, lookahead=barmerge.lookahead_off)
This accumulates the true high/low across the five individual 1-minute bars from 9:30–9:34 (inclusive), resetting at the start of each new day (per sessionTZ). The result — secHigh/secLow — is identical no matter what timeframe the chart itself is displaying.
4. State Variables
Variable Purpose
todayHigh / todayLow Today's captured jrhFirst5 range (mirrors secHigh/secLow once available)
todayOpenBar Bar index where today's range first appeared — used as the "Left" label anchor
todayHighLine / todayLowLine Line objects for today's high/low
todayHighLabel / todayLowLabel Label objects for today's high/low
prevHigh / prevLow Yesterday's promoted jrhFirst5 range
prevOpenBar / prevCloseBar Bar indices marking yesterday's line span
prevHighLine / prevLowLine Line objects for yesterday's high/low
prevHighLabel / prevLowLabel Label objects for yesterday's high/low
5. Logic Flow
Step 1 — Day Roll (promote today → yesterday)
When a new day starts (per sessionTZ) and today had a captured range, that range is promoted to "yesterday": new fuchsia/purple lines and labels are drawn from prevOpenBar to prevCloseBar (the last bar of the prior day), sealed with extend.none unless "Continue Yesterday's Lines to Current Candle" is enabled. Today's state is then reset to na so a fresh range can be captured.
Step 2 — Capture Today's Range
firstAppearance detects the first bar where secHigh becomes available (i.e., the 9:30 window has begun). At that point, today's line and label objects are created at the current bar (todayOpenBar). On every subsequent bar where secHigh is valid, todayHigh/todayLow are kept in sync with the live-updating window total (the range can still be widening during the first few minutes), and the line/label values are updated to match.
Step 3 — Extend Lines & Labels Live
Every bar, today's lines extend their right edge (x2) to the current bar_index. If Label Position is "Right," today's labels follow along (label.set_x) to stay at the live edge. The same extension logic applies to yesterday's lines/labels only if "Continue Yesterday's Lines to Current Candle" is enabled.
Step 4 — Background Highlight & Alerts
The chart background is lightly shaded yellow during the 9:30–9:35 capture window (isWithinOpenWindow). Three alert conditions are defined:
Inside the NY Open window
Price closes above today's F5H
Price closes below today's F5L
6. Usage Notes
Multi-timeframe consistency: because the range is sourced from 1-minute data, you can freely switch chart timeframes without the jrhFirst5 levels changing.
Label readability: if today's and yesterday's labels tend to overlap (e.g. both set to "Right" position at similar price levels), use Label Vertical Position (Above/Below) on one of the pairs, or differentiate colors further — the default Yesterday High (fuchsia) and Yesterday Low (purple) are visually close and may be worth swapping to more distinct colors.
Central Time users: no change is needed for the capture logic to work correctly in Central Time — set Display Timezone to America/Chicago for a convenient tooltip reminder; the actual 9:30 open is always computed against Session Timezone (NY), which is what defines the real market open.
Weekends/24-7 instruments: the day-roll logic is driven by dayofweek() changes in the session timezone, so on a 24/7 crypto pair a "day" simply rolls over at local midnight in that timezone — there's no explicit weekend-skipping behavior built in.
7. Alerts
Alert Trigger
jrhFirst5 – Inside NY Open window Fires while the current bar falls within the 9:30–9:35 session window
jrhFirst5 – Price broke above F5H Fires when close crosses above today's jrhFirst5 high
jrhFirst5 – Price broke below F5L Fires when close crosses below today's jrhFirst5 low Indicator

Pre-Market High/Low BoxPre-Market High/Low Box (CT) — Documentation
Pine Script version: v6 Type: Overlay indicator Purpose: Draws a box (plus dashed high/low lines and optional labels) around the pre-market high and low range, using a plain Central Time window that automatically adjusts for Daylight Saving Time.
1. Overview
This indicator tracks the highest high and lowest low that occur during a configurable "pre-market" time window (default: 3:00 AM – 8:30 AM Central Time), then:
Draws a shaded box spanning that price range
Draws a dashed high line and dashed low line across the range
Optionally shows text labels with the exact high/low values
Grows the box rightward in real time through the rest of the trading day
Freezes the box in place once the next day's pre-market window opens, then starts a fresh box for the new day
Because the time window is evaluated in "America/Chicago", Daylight Saving Time transitions are handled automatically by Pine's timezone engine — no manual DST offset is needed.
2. Inputs
Input Default Description
Box Fill Color White, 80% transparent Fill color of the pre-market range box
Box Border Color White, 20% transparent Border color of the box
High Line Color Lime, 10% transparent Color of the dashed line at the pre-market high
Low Line Color Red, 10% transparent Color of the dashed line at the pre-market low
Border Width 1 Box border thickness (1–4)
Show High/Low Labels true Toggles the "PM High: …" / "PM Low: …" text labels
Show Box on Weekends (Crypto) false If enabled, the box also builds on Saturday/Sunday — useful for 24/7 markets like crypto pairs
Pre-Market Start Hour (CT) 3 Hour (0–23) the window opens
Pre-Market Start Minute (CT) 0 Minute the window opens
Pre-Market End Hour (CT) 8 Hour (0–23) the window closes
Pre-Market End Minute (CT) 30 Minute the window closes
The default window is 3:00 AM – 8:30 AM CT, i.e. the period immediately before the 8:30 AM CT (9:30 AM ET) cash market open.
3. How the Time Window Works
CT = "America/Chicago"
ct_hour = hour(time, CT)
ct_minute = minute(time, CT)
ct_dow = dayofweek(time, CT)
ct_bar_mins = ct_hour * 60 + ct_minute
start_mins = pm_start_h * 60 + pm_start_m
end_mins = pm_end_h * 60 + pm_end_m
All time comparisons convert hours/minutes to a single "minutes since midnight" number (ct_bar_mins, start_mins, end_mins) so the start/end window can be compared with simple >= / < logic, regardless of what hour boundary it happens to cross.
Two boolean flags drive the rest of the script:
is_weekday — true Monday (dayofweek == 2) through Friday (dayofweek == 6)
day_ok — true on weekdays, OR on weekends if "Show Box on Weekends" is enabled
is_premarket — true when day_ok is true AND the current bar's CT time falls inside the configured window
is_pm_open — true only on the first bar of the window (i.e. ct_bar_mins == start_mins) — this is the trigger that resets state for a new day
4. State Variables
Variable Purpose
pm_high / pm_low Running high/low accumulated during the current pre-market window
pm_start_bar / pm_end_bar Bar index where the window started / most recently updated
pm_box Reference to the drawn box object
pm_hi_line / pm_lo_line References to the dashed high/low line objects
pm_hi_lbl / pm_lo_lbl References to the high/low label objects
All are declared with var, so they persist across bars until explicitly reset.
5. Logic Flow
Step 1 — Daily Reset
When is_pm_open fires (the first bar of a new pre-market window), every state variable is reset to na. This effectively "detaches" the script from the previous day's box/lines/labels — those objects are left exactly as they last were drawn (frozen), and new ones are created fresh for the current day.
Step 2 — Accumulate the Range
While is_premarket is true:
pm_start_bar is set once, on the first bar of the window
pm_high / pm_low are updated to the running max/min of high/low
pm_end_bar is updated every bar (tracks the most recent bar processed)
Step 3 — Draw / Update
Once a valid pm_high and pm_start_bar exist, the script draws (or updates, if already drawn):
The box, spanning from pm_start_bar to the current bar_index, top/bottom at pm_high/pm_low
The high line and low line, dashed, spanning the same range
The labels (if enabled), positioned at the current bar with the formatted high/low price text
Because right_bar = bar_index is used every bar (not just during the pre-market window itself), the box and lines keep growing to the right for the rest of the day, past the end of the pre-market window — this lets the drawn range act as a visual reference against the full session's price action, not just the window itself.
The freeze happens naturally: once the next day's is_pm_open resets state to na, this drawing block stops updating the previous day's objects (since the reset also nulls the object references), leaving them exactly where they last were.
6. Usage Notes
Futures/equities: leave "Show Box on Weekends" off — Monday's window will simply start fresh after the weekend gap.
Crypto (24/7): enable "Show Box on Weekends" if you want a pre-market-style box drawn every calendar day, including Saturday/Sunday.
Changing the window: the four hour/minute inputs are independent of any hardcoded session — you can repurpose this for any fixed daily time window (e.g., a lunch range or an overnight range), not just literal "pre-market."
Label style: labels use label.style_none, meaning there's no visible label shape/pointer — only the colored text box itself is shown.
DST: because all time math uses hour(time, "America/Chicago") / minute(time, "America/Chicago") rather than fixed UTC offsets, the 3:00–8:30 AM window stays correct year-round without manual adjustment for Daylight Saving Time.
7. Alerts
This script does not currently define any alertcondition() calls — it is visual-only. If you want alerts (e.g., "price broke above pre-market high"), those would need to be added separately. Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Dynamic Trend Overlay (Original Recreation)DTO-Recreation combines an adaptive EMA/ATR trend trail with multi-timeframe confirmation, StochRSI-validated re-entries, and configurable stop-loss/take-profit handling in a single strategy framework. It's built for traders who want a trend-following core that filters out counter-trend noise using higher-timeframe agreement, rather than trading every flip on the chart's own timeframe in isolation.
FEATURES
Adaptive Trend Trail — Supertrend-style flip mechanism built on an EMA basis (rather than hl2) with ATR bands. Five sensitivity presets — Reactive, Filtered, Balale EMA length, ATR length, and ATR multipliertogether, from fast scalping flips to slow macro confirmation.
Multi-Timeframe Confirmation — The same trail runs independently on the chart timeframe (CTF), a higher timeframe (HTF), and an optional higher-higher timeframe (HHTF)F agreement, cutting low-quality trades takenagainst the larger trend.
Dynamic Zones & Equilibrium Band — Each timeframe's ATR bands plot as a filled zone (blue bullish / red bearish). An equilibrium band marks the midpoint between CTersion reference.
Trend Flip & Re-Entry Signals — Confirmed CTF rigger entries. Pullback re-entries arevalidated by a StochRSI cross out of oversold/overbought, gated by a per-direction cooldown, and blocked if price already
tagged the HTF zone since the last flip (possi pullback).
Risk Management — Stop-loss: fixed % or structprofit: fixed % or ATR trailing. A secondsame-direction (pyramided) entry is only allowed if the existing position is already profitable — no averaging into
losers.
BEST FOR
- Trend traders who want higher-timeframe agreement enforced before entry
- Traders who want at-a-glance visual confirmament
- Anyone using pullback re-entries who wants them filtered by momentum and cooldown-protected
NOTES
Original, independently written, open-source sed). Built to explore the same general category of multi-timeframe trend-overlay tools on PulseWire — not copied or reverse-engineered from any closed-source script. All inputs are user-configurable. Backtest resimeframe/setting-dependent, and not a forecastor investment advice. Strategy

Indicator
