TCI Key Institutional Levels v2.0This script is a modified version of the Smart Money Concepts (SMC) framework originally published by LuxAlgo here: Smart Money Concepts – LuxAlgo
.
All credit and ownership of the original code goes to LuxAlgo.
Original indicator Credits:
The purpose of this publication is not to copy-paste the LuxAlgo indicator, but to present a modified version adapted in line with the concepts taught by Trading Cafe India (TCI).
These modifications include adjustments and refinements to better reflect the methodology followed by TCI, while still acknowledging the foundation laid by LuxAlgo.
⚠️ Important Notes:
This script is not an official LuxAlgo product.
This script is not an official TCI product.
This pretty much aligns with the TCI theory.
It is an independent, educational adaptation created for users who wish to see SMC concepts in the context of TCI-style modifications.
The modifications are original contributions and the script has been republished with the intention of providing additional learning value to the TradingView community.
By publishing this indicator, I fully respect and acknowledge the original author (LuxAlgo), while making clear that the changes applied are my own interpretation of SMC principles influenced by TCI’s teachings.
🔧 Key Functionalities & Modifications
Market Structure Labels
The standard Break of Structure (BOS) is now presented as Breaker, aligning with TCI’s interpretation.
The standard Change of Character (CHoCH) is now presented as Trap, reflecting how false moves and liquidity traps are often observed in Indian indices like Nifty & Bank Nifty.
Order Block & Liquidity Concepts
Retains core order block, supply-demand, and liquidity zone logic from the SMC framework.
Visuals and labels have been adjusted for easier interpretation by intraday traders in Indian markets.
Custom Adaptation for Indian Audience
Naming conventions and alerts have been optimized so beginners and experienced traders in India can relate to the terminology taught by TCI.
Chart annotations have been simplified to reduce clutter, making it more practical for real-time option trading and scalping strategies.
Suporte e Resistência
Weekly Fibonacci Pivot Levelsthis indicator in simple ways, draw the weekly fibo zones based on calculations
weekly zones are drawn automatically based on previous week, and are updated once a new week is opened
you can use it the way you like or adapt to your trading strategy
i really use it at extremes and when a divergence is occurring in these zones
ICT 00:00, 08:30, 09:30 & 13:30 Opens (NY) — Prior-Day HistoryICT 00:00, 08:30, 09:30 & 13:30 Opens (NY)
This is a derivative of ALPHAICTRADER’s open-source script, republished under the MPL-2.0 with clear attribution and documented changes. It plots four New-York–anchored intraday reference levels—0000, 0830, 0930, 1330—as short, right-padded stubs with clean side labels. Use these time anchors (ICT-style midnight + key US windows) to frame bias, volatility pockets, and intraday trade locations.
What’s original in this version (changes)
Right-padded stubs instead of chart-wide rays — each level ends N bars past the latest candle (configurable).
Side labels at the line tip — text-only labels (0000, 0830, 0930, 1330) that sit at the right end of each stub and update every bar.
Optional prior-day history — show Today only or Today + Prior Day; older lines/labels auto-pruned.
Per-anchor controls — Display, Style, Color, Width, and Show Label for each time.
What it plots (and why)
0000 (NY Midnight): daily session anchor for bias/liquidity context.
0830 (NY): macro data window (CPI/NFP/claims) where volatility often concentrates.
0930 (NY): US cash equity market open; opening-drive structure/acceptance tests.
1330 (NY): early-afternoon anchor for continuation vs. fade.
How it works (under the hood)
Session detection: time("1", session, "America/New_York"); first bar flagged via not na(ts) and na(ts ).
Anchor price: open of that first bar per session/day.
Rendering: lines drawn with xloc=bar_index from start bar to bar_index + Right Pad; x2 updates every bar (no extend.right).
Labels: placed at line.get_x2(line) + Label Pad, soft color variant; updated per bar to stay on the tip.
History: arrays keep either today only or today + yesterday and delete anything older immediately.
How to use
Add to any intraday chart (futures/FX/indices). Anchors are always NY-time; TradingView handles DST.
Inputs
00:00 / 08:30 / 09:30 / 13:30 (NY): Display, Line Style, Color, Width, Show Label
Right Edge: Right Pad (bars) · Label Pad (bars)
History: Show Prior Day (History) — off = today only; on = today + yesterday
Suggested pads: Right Pad 2–5 bars; Label Pad 0–2.
These are context anchors, not signals. Combine with your execution model (market structure, liquidity, FVG/OBs, etc.).
Attribution & License (MPL-2.0)
Original work: “ICT NEW YORK MIDNIGHT OPEN AND 8.30 AM OPEN” by ALPHAICTRADER (MPL-2.0).
This derivative: modifications listed above; source published and kept under MPL-2.0 per license terms.
If you distribute a modified version of this Pine file, you must keep MPL-2.0, retain the copyright/licensing header, publish your modified source, and document your changes.
Notes: Pine v5. Minimalist (no day dividers). Educational tool; not financial advice.
Copyright: © ALPHAICTRADER 2022 · © Funk 2025
License: MPL-2.0
Today's 5min HH/LL LinesOverview
This indicator identifies the highest high (HH) and lowest low (LL) formed by the first 5 one-minute candles of the current trading day. Once calculated, it plots continuous horizontal lines at those price levels for the remainder of the day.
How it works
The script internally requests 1-minute data for the current symbol, regardless of your chart’s timeframe.
At the start of each new trading day, it resets counters.
It captures the highest high and lowest low across the first five completed 1-minute candles.
After the 5th one-minute bar closes, it draws:
A green horizontal line at the highest high.
A red horizontal line at the lowest low.
These lines extend to the right, covering the entire trading session, and automatically scale with zoom/pan.
At the next session, the old lines are deleted and recalculated for the new day.
Use cases
Helps spot early intraday support and resistance zones.
Useful for breakout or reversal strategies that monitor when price breaches the first 5-minute range (derived from 5x1m bars).
Can be combined with volume, momentum, or candlestick signals for high-probability entries.
Key features
Works on any timeframe — always uses 1-minute data for precision.
Shows lines only for the current day (no clutter from prior sessions).
Lines are dynamic and adaptive — they remain fixed at the calculated price but extend continuously across the chart.
LBM-Strategy Engine Pro: The Ultimate Confluence IndicatorOverview
Welcome to the Strategy Engine Pro , the ultimate confluence indicator designed for traders who demand precision and full control over their trading signals. This is not just an indicator; it is a complete, customizable strategy-building framework.
It seamlessly integrates three powerful concepts into a single, intuitive tool:
Advanced Moving Average Trend Analysis to define the market context.
An intelligent Support & Resistance Cycle Engine to identify key price levels.
A flexible 10-rule Strategy Builder that lets you design, test, and refine your own entry signals with surgical precision.
Core Features
1. Advanced Moving Average Trend Analysis
The indicator plots 5 fully configurable Moving Averages (MAs). You can choose the Period and Type (SMA, EMA, WMA, HMA, RMA) for each one. But its true power lies in its unique color-coding system, which analyzes the slope and momentum of each MA, not just its price.
MA Color Code:
Green: The MA is in a strong, confirmed uptrend.
Red: The MA is in a strong, confirmed downtrend.
Yellow: The MA is flat or in a transitional (sideways) phase.
This provides an instant visual snapshot of the market trend across five different timeframes.
2. Support & Resistance Cycle Engine
Forget simple pivot points. This indicator incorporates a sophisticated engine that identifies and plots significant "Master Cycle" levels on your chart.
Anchored Levels: These S/R lines are persistent and intelligent. When a key resistance level is broken, it automatically "flips" and becomes the new anchored support level, and vice-versa. This accurately maps out the market's structural progression.
The Strategy Builder: Your Personal Trading Lab
This is the heart of the indicator. You have 10 sequential rules that allow you to define the exact conditions for a Buy signal. The Sell signal is generated as the logical, symmetrical opposite.
For each rule, you can configure:
Source A & Source B: Choose from a wide range of data points:
Price values: Close, Open, High, Low.
Previous candle values: Close Before, Open Before, etc.
Moving Average values: MA 1 through MA 5.
MA Trend Colors: MA 1 Color, MA 2 Color Before, etc.
Operator: Define the comparison logic:
Standard: >, <, >=, <=
Events: Crossover, Crossunder
Color Logic: Is Color, Is NOT Color, Turned Color, Ceased to be Color
Important Note on Sell Signals: Sell conditions are designed to be the symmetrical opposite of the buy conditions you create.
If Buy is Close > MA 1, Sell will be Close < MA 1.
If Buy is MA 1 Color Is Green, Sell will be MA 1 Color Is Red.
If Buy is MA 1 Color Turned Green, Sell will be MA 1 Color Turned Red.
This ensures your sell strategy mirrors the logic of your buy strategy, preventing the "inverse problem" of getting sell signals on every candle that isn't a buy signal.
Mastering the Connectors: ( ) AND and ( ) OR
The true power of the Strategy Builder lies in its connectors, which allow you to create complex, multi-layered logic. The connector on a rule defines how it connects to the next active rule.
AND & OR: These work as you'd expect, creating a continuous chain of conditions.
Rule 1 (AND) & Rule 2 is evaluated as (R1 AND R2).
( ) OR (The Group Separator): This is your most powerful tool. It acts like closing a parenthesis in an equation. It finalizes the current group of rules and connects it to the
next group with a big "OR".
Example: (R1 AND R2) OR (R3 AND R4)
This creates two possible paths for a signal.
- Rule 1: Condition R1, Connector AND
- Rule 2: Condition R2, Connector ( ) OR <-- This closes the first group and links to the next with OR.
- Rule 3: Condition R3, Connector AND
- Rule 4: Condition R4
( ) AND (The Super-Filter): This allows you to create a "master" condition that must be true in addition to other complex conditions.
Example: (R1 OR R2) AND (R3 OR R4)
This requires a condition from the first group and a condition from the second group to be true.
- Rule 1: Condition R1, Connector OR
- Rule 2: Condition R2, Connector ( ) AND <-- This closes the first OR group and links to the next with AND.
- Rule 3: Condition R3, Connector OR
- Rule 4: Condition R4
By strategically combining these connectors, you can build any logical trading scenario you can imagine. We look forward to seeing the powerful strategies the community creates with this engine.
Zarattini Intra-day Threshold Bands (ZITB)This indicator implements the intraday threshold band methodology described in the research paper by Carlo Zarattini et al.
papers.ssrn.com
Overview:
Plots intraday threshold bands based on daily open/close levels.
Supports visualization of BaseUp/BaseDown levels and Threshold Upper/Lower bands.
Optional shading between threshold bands for easier interpretation.
Usage Notes / Limitations:
Originally studied on SPY (US equities), this implementation is adapted for NSE intraday market timing, specifically the NIFTY50 index.
Internally, 2-minute candles are used if the chart timeframe is less than 2 minutes.
Values may be inaccurate if the chart timeframe is more than 1 day.
Lookback days are auto-capped to avoid exceeding TradingView’s 5000-bar limit.
The indicator automatically aligns intraday bars across multiple days to compute average deltas.
For better returns, it is recommended to use this indicator in conjunction with VWAP and a volatility-based position sizing mechanism.
Can be used as a reference for Open Range Breakout (ORB) strategies.
Customizations:
Toggle plotting of base levels and thresholds.
Toggle shading between thresholds.
Line colors and styles can be adjusted in the Style tab.
Author:
Gokul Ramachandran – software architect, engineer, programmer. Interested in trading and investment. Currently trading and researching strategies that can be employed in NSE (Indian market).
Contact: (mailto:gokul4trading@gmail.com)
LinkedIn: www.linkedin.com
Intended for educational and research purposes only.
TrEx Lite [ETPINVEST]TrEx Lite is a technical indicator for basic market structure analysis. Automatically identifies extremes with trend lines, builds support/resistance levels and includes Golden/Death Cross trading strategy with additional exit points.
🔶 MAIN FUNCTIONS
The indicator provides basic structural analysis:
Automatic identification of extremes
Building trend lines through extremes
Automatic support and resistance levels
Golden Cross trading strategy (EMA 50 crosses EMA 200 from below)
Death Cross strategy (EMA 50 crosses EMA 200 from above)
Additional exit points based on EMA narrowing and RSI filtering
System of 4 basic alerts for key events
🔶 STRUCTURAL ELEMENTS
Automatic connection of extremes with trend lines
Significance filtering to exclude noise
Basic levels from extremes with touch
Built-in clustering of nearby levels to reduce noise
Color differentiation: green (support) and red (resistance)
Line thickness adjustment
🔶 TRADING STRATEGY
Golden/Death Cross system:
Golden Cross - EMA 50 crosses EMA 200 from below (bullish signal)
Death Cross - EMA 50 crosses EMA 200 from above (bearish signal)
Position tracking with automatic state management
Entry points marked with triangles on the chart
Additional exit points:
Narrowing distance between EMAs after position entry
RSI filtering against trend (crossing center line 50)
Reverse EMA crossing as main exit signal
Minimum 5 candles in position to filter false exits
🔶 SETTINGS
Trend line and levels:
Enable/disable trend line display
Trend line color and thickness (1-5 pixels)
Enable/disable levels display
Support and resistance colors
Level line thickness
Trading strategy:
Enable/disable Golden/Death Cross strategy
Show additional exit points
Automatic position tracking
Alert system (4 types):
Support/resistance level touch
Level breakout with close beyond
Golden Cross (bullish signal)
Death Cross (bearish signal)
🔶 TECHNICAL SPECIFICATIONS
Extremes algorithm: Complex algorithm with fixed parameters combining 2-3 candles
Clustering: ATR-based merging of nearby levels
Trading logic: EMA crossovers with RSI confirmation
Performance: Optimized for stable operation on all timeframes
Compatibility: All TradingView markets and timeframes
Requirements: Minimum 100 bars of history
🔶 LIMITATIONS
Fixed analysis parameters (depth 100 bars)
🔶 DISCLAIMER
TrEx Lite provides basic technical information for market structure analysis. Not investment advice. Trading strategy requires additional analysis and risk management.
Holy Grail Fibonacci-Based EMA Support/Resistance (Free)Every trader needs reliable support and resistance — but static zones and lagging indicators won't cut it in fast-moving markets. This script combines a Fibonacci-based 5-EMA stacking system that creates dynamic support & resistance logic to uncover real-time structural shifts & momentum zones that actually adapt to price action. This isn’t just a mashup — it’s a complete built-from-the-ground-up support & resistance engine designed for scalpers, intraday traders, and trend followers alike.
🧠 🧠 🧠What It Does🧠 🧠 🧠
This script uses two powerful engines working in sync:
1️⃣ EMA Stack (5-EMA Framework)
Built on Fibonacci-based lengths: 5, 8, 13, 21, 34, this stack identifies:
🔹 Bullish Stack: EMAs aligned from fastest to slowest (uptrend confirmation)
🔹 Bearish Stack: EMAs aligned inversely (downtrend confirmation)
🟡 Narrowing Zones: When EMAs compress within ATR thresholds → possible breakout or reversal zone
🎯 Labels identify key transitions like:
✅"Begin Bear Trend?"
✅"Uptrend SPRT"
✅"RES?" (resistance test)
2️⃣ Pivot-Based Projection Engine
Using classic Left/Right Bar pivot logic, the script:
📌 Detects early-stage swing highs/lows before full confirmation
📈 Projects horizontal S/R lines that adapt to market structure
🔁 Keeps lines active until a new pivot replaces them
🧩 Syncs beautifully with EMA stack for confluence zones
🎯🎯🎯Key Features for Traders🎯🎯🎯
✅ Trend Detection
→ EMA order reveals real-time bias (bullish, bearish, compression)
✅ Dynamic S/R Zones
→ Historical support/resistance levels auto-draw and extend
✅ Smart Labeling
→ “SPRT”, “RES”, and “Trend?” labels for live context + testing logic
✅ Custom Candle Coloring
→ Choose from Bar Color or Full Candle Overlay modes
✅ Scalper & Swing Compatible
→ Use fast confirmations for scalping or stack consistency for longer trends
⚙️⚙️⚙️How to Use⚙️⚙️⚙️
✅Use Top/Bottom (trend state) Line Colors to quickly read trend conditions.
✅Use Pivot-based support/resistance projections to anticipate where price might pause or reverse.
✅Watch for yellow/blue zones to prepare for volatility shifts/reversals.
✅Combine with volume or momentum indicators for added confirmation.
📐📐📐Customization Options📐📐📐
✅EMA lengths (5, 8, 13, 21, 34) — fully configurable
✅Left/Right bar pivot settings (default: 21/5)
✅Label size, visibility, and color themes
✅Toggle line and label visibility for clean layouts
✅“Max Bars Back” to control how deep history is scanned safely
🛠🛠🛠Built-In Safeguards🛠🛠🛠
✅ATR-based filters to stabilize compression logic
✅Guarded lookback (max_bars_back) to avoid runtime errors
✅Works on any asset, any timeframe
🏁🏁🏁Final Word🏁🏁🏁
This script is not just a visual tool, it’s a complete trend and structure framework. Whether you're looking for clean trend alignment, dynamic support/resistance, or early warning labels, this system is tuned to help you react with confidence — not hindsight.
Rembember, no single indicator should be used in isolation. For best results, combine it with price action analysis, higher-timeframe context, and complementary tools like trendlines, moving averages etc Use it as part of a well-rounded trading approach to confirm setups — not to define them alone.
Additionally, this has been a work-in-progress for many months. While this script is feature rich, it is the "free" version of an even more feature rich iteration that's coming soon. So if this script "tickles your fancy" then you'll love Holy Grail Pro even more 💥
💡💡💡Turn logic into clarity. Structure into trades. And uncertainty into confidence.💡💡💡
Auto Reference Relative Valuation Oscillator📌 Auto Reference Relative Valuation Oscillator
🧠 What does this script do?
This indicator shows whether the current asset is overvalued or undervalued compared to a reference symbol like:
- TVC:DXY – US Dollar Index
- TVC:GOLD – Gold
- CRYPTOCAP:BTC – Total BTC Market Cap
- SP:SPX – S&P 500 Index
- TVC:USOIL – US Crude Oil
It uses the ratio:
price of current asset ÷ price of reference asset
Then normalizes this ratio into a 0–100 oscillator scale .
---
⚙️ Settings:
- Asset Group : Choose your reference symbol by group (Forex, Gold, Crypto, etc.)
- Lookback Period : Period used for calculating high/low bounds (default: 14)
- Upper Bound : Overvaluation threshold (default: 90)
- Lower Bound : Undervaluation threshold (default: 10)
---
📈 How to use:
- Values above 80–90 → Asset is likely overvalued
- Values below 20–10 → Asset is likely undervalued
- Combine with Supply/Demand Zones , and price action to spot high-probability trade entries.
Example:
If the indicator is undervalued AND price touches a demand zone → Potential BUY
If the indicator is overvalued AND price hits a supply zone → Potential
---
✅ Best for:
- Multi-asset traders
- Forex and Crypto trading
- Intermarket analysis
- Confluence with fundamental/macroeconomic models
---
🧩 No coding or setup needed:
Just apply the indicator, choose your asset group, and trade smartly based on valuation.
3CRGANG - Supply Demand Zones3CRGANG - SUPPLY/DEMAND ZONES
This indicator identifies and displays supply and demand zones on the chart, based on price action and pivot points. It categorizes zones into five states—Untested, Verified, Weak, Flipped, and Broken—using customizable testing methods ("Dynamic - Bars" or "Mechanical - Pivots"). The zones are calculated using fractal analysis and ATR-based boundaries, with options to adjust sensitivity, zone width, and merge behavior.
Features:
Zone Types: Visualizes support and resistance zones with distinct colors for each state.
Customizable Settings: Adjust fractal sensitivity, zone boundary ATR multiplier, and merge passes for precise zone detection.
Testing Methods: Choose between dynamic bar-based or mechanical pivot-based testing for zone validation.
Visibility Options: Toggle visibility for each zone state (Untested, Verified, Weak, Flipped, Broken).
Labels: Display zone details, including size (in pips or dollars) and test count, with customizable label positioning and size.
Alerts: Configurable alerts for zone interactions, filtered by trading sessions (NYSE, LSE, FSE, SSX, TSE, HKSE) and user-defined Do Not Disturb (DND) periods.
Holiday and Session Filters: Incorporates exchange-specific holiday schedules and session times to control alert triggers.
Timezone Support: Select from a wide range of timezones to align alerts with your local time.
Settings:
Test Mode: Select testing method and set minimum test gap and weak zone threshold.
General: Configure lookback period for zone detection.
Pivot Filters: Adjust fractal sensitivity and maximum merge passes.
Zone Width: Set ATR multiplier and fuzz factor for zone boundaries.
Visual: Customize zone style (solid, dashed, dotted), border width, and horizontal extension.
Visibility: Show or hide specific zone states.
Labels: Enable/disable labels, adjust their position, size, and content (zone size, test count).
Alerts: Enable alerts for specific zone states and filter by exchange sessions or weekends.
DND Settings: Set DND periods and timezone for alert suppression.
Colors: Customize colors for each zone state and type.
Notes:
The indicator is designed for flexibility across various markets and timeframes.
Alerts respect user-defined session filters and holiday schedules for major exchanges.
Ensure sufficient chart history (up to 500 bars) for accurate zone calculations.
Use the provided settings to fine-tune zone detection and alert behavior to suit your trading strategy.
Quantel iFVG & Breakout DetectorThe Quantel iFVG & Breakout Detector is a precision tool designed to highlight inversion fair value gaps (iFVGs) and breakout opportunities with crystal-clear visuals. It plots:
Arrow Signals – to mark breakout confirmations.
Box Highlights – to show active iFVG zones and breakout ranges.
💡 How to Use:
Use the arrows as directional cues for potential entries after a confirmed breakout.
Watch the highlighted boxes to identify imbalances and zones of interest for reversals or continuation.
Best combined with liquidity sweeps, BOS/CHOCH, or higher timeframe bias for stronger confirmation.
✅ Features:
Automatic detection of iFVGs with dynamic zone plotting.
Breakout confirmation arrows for easy trade visualization.
Clean, uncluttered chart display suitable for all timeframes.
⚠️ Disclaimer: This tool is for educational purposes only. Not financial advice. Always combine signals with your own trading plan and risk management.
Session Liquidity & Sweep DetectorThis indicator automatically detects and marks key liquidity sweep events on your chart:
LLS (Lower Liquidity Sweep): Price sweeps below prior lows to grab liquidity.
LHS (Lower High Sweep): Price sweeps above a minor high before rejecting.
ALS (Above Liquidity Sweep): Price sweeps above a key high, often signaling liquidity collection.
AHS (Above High Sweep): Price takes out a previous swing high, indicating possible trap or breakout.
How to Use:
Use signals as confluence with your trading system, not as stand-alone buy/sell triggers.
LLS/ALS can mark areas where liquidity is grabbed before reversal.
LHS/AHS can help identify false breakouts and stop hunts around key levels.
Combine with FVGs, BOS/CHOCH, or PO3 models for maximum effectiveness.
Features:
Clean on-chart signals for all 4 sweep types.
Works on all timeframes and symbols.
Helps traders spot liquidity hunts & manipulation points.
Disclaimer: This tool is for educational purposes only. Not financial advice. Always combine with your own analysis and risk management.
[ClearEdege] Momentum Suites V3 Advanced contrarian momentum analysis with intelligent pivot point integration for precision market timing. Developed for ClearEdge members
*This indicator is not publicly available.
Key Features
Smart Signal System
- Buy Low/Sell High Logic: Identifies oversold conditions for long entries and overbought conditions for short entries
- Multi-Timeframe Confirmation: Incorporates higher timeframe bias for enhanced signal reliability
- Momentum Convergence: Combines RSI, StochRSI, and Bollinger Bands for comprehensive market analysis
Dynamic Pivot Integration
- Classic Pivot Points: Auto-calculated daily/weekly/monthly support and resistance levels
- Pivot Confluence Detection: Signals gain strength when price approaches key pivot levels
- Smart Warning System: Single-alert approach prevents label spam while highlighting critical S/R interactions
Table Dashboard
- Compact Signal Table: Real-time buy/sell signal strength with scoring system
- Market Context: Momentum status, nearest pivot level, volume and trend analysis
- Clean Visual Design: Minimal interface focused on actionable information
Intelligent Alerts
- Approach Warnings: Alerts when price nears resistance with overbought momentum or support with oversold momentum
- Confluence Signals: High-probability setups combining momentum extremes with pivot level proximity
- Single-Shot Logic: Prevents alert fatigue with smart reset mechanisms
Best Use Cases
- Swing Trading: Ideal for identifying major reversal points at key levels
- Risk Management: Clear warning system for potential turning points
- Multi-Asset Analysis: Works across forex, crypto, stocks, and commodities
- All Timeframes: Scalable from 5-minute charts to daily analysis
Designed for traders who value precision over noise - combining classical pivot analysis with modern momentum indicators for superior market timing.
Multi TF - HTF→LTF OrderblocksMulti TF — HTF→LTF Orderblocks
Identify higher-timeframe (HTF) order blocks and project them onto your lower-timeframe (LTF) chart—clean, fast, and publication-ready.
The script automatically detects swing breaks on your chosen HTF, builds the originating order block, and renders that zone on your current chart so you can execute on lower timeframes with higher-timeframe context.
--------------------
How it works
HTF swing structure is tracked via pivot highs/lows and a user-selected break confirmation (Close or Wick).
On a valid break, the script backtracks to the last opposite candle and creates the HTF order block (wick-to-wick or body-only depending on your setting).
The OB is projected to the LTF and extended bar-by-bar until:
Mitigation: price penetrates at least 50% of the zone → the box is marked “old” (dimmed) or optionally auto-deleted.
Close-break: price closes beyond the far edge → zone is optionally removed immediately.
Each zone includes a centerline and an inside label showing the original HTF (e.g., “M15”, “H1”).
Key features
True HTF→LTF overlay: trade M1/M5 with M15/H1/H4 context.
Mitigation logic (≥50%): first meaningful touch turns the zone “old” or deletes it (your choice).
Close-break handling: auto-remove zones broken by close, to keep charts clean.
Overlap control: choose how to handle overlapping zones on the same side:
Keep Latest, Union (merge), or Intersection (refine).
Wicks vs. Bodies: build zones from full candle range or just the body.
Lightweight UI: only the relevant inputs in the panel; sensible defaults.
Alert included: fires on the first 50% mitigation of any fresh zone.
Performance-friendly limits: cap the number of active zones to fit Pine limits.
Inputs (quick overview)
HTF for Order Blocks: timeframe to scan (e.g., 15, 60, 240, D).
Swing Length (Pivot L/R): pivot sensitivity for structure.
Break Confirmation: Close (recommended) or Wick.
Zones use Wicks: on/off for wick-to-wick zones.
OB Lookback before Break: how far to search for the opposite candle.
Max Active Zones: hard cap for chart cleanliness & performance.
Delete on Close-Break: remove zones that are invalidated by a close.
Delete after Mitigation: remove once a 50% touch occurs.
Handle Overlap: None, Keep Latest, Union (merge), Intersection (refine).
Colors & Border: fresh/old zone colors (default ~35% opacity) and optional borders.
Default profile (as shipped):
Break by Close, zones use wicks, Union overlap handling, 250 lookback, 250 max zones, borders off, and HTF label printed inside each zone.
How to use (suggested workflow)
Pick an HTF (e.g., H1 for intraday) and drop to your execution TF (e.g., M5/M1).
Wait for price to tap ≥50% of a fresh OB → look for your LTF trigger (CHOCH, iFVG, PA).
Place SL beyond the zone (or beyond the LTF swing) and manage to your targets (e.g., 2R–3R or to the next HTF OB).
Keep charts clean by enabling Delete on Close-Break and (optionally) Delete after Mitigation.
Alerts
“OB: Zone berührt (Erstkontakt)” — triggers on the first ≥50% mitigation of any fresh zone.
Create additional TradingView alerts with this condition to get notified in real time.
Notes & limitations
Built with request.security(..., lookahead_off) to avoid future-bar peeking; zones only form after a confirmed HTF break.
As with all pattern-based tools, use alongside your risk management and a defined entry model.
Pine has strict limits on drawings; use Max Active Zones to balance coverage and performance.
Credits
Designed for traders who want HTF precision with LTF execution—a clean, opinionated OB overlay that focuses on what matters: fresh zones, first touch, and invalidation.
Safety Trade® [BlackRock_et]Safety Trade® — Overview
A multi-timeframe level framework that projects five adaptive “safety” bands on the price chart.
It derives smoothed 4H highs/lows, builds layered lower borders, and projects custom Fib-style levels designed to frame pullbacks and extensions. Overlay only; no signals or alerts.
How it works
MTF core (4H): The script requests 4-hour highs/lows and computes rolling extremes over a fixed period (per = 5).
Smoothing: Borders are smoothed with a fixed moving-average type (default WMA) using predefined lengths.
Layered lower borders: From the smoothed low border (LL), three deeper layers are built (LL2, LL3, LL4) using fixed offsets (~23.6%, 38.2%, 54%).
Interpolated MA line: An auxiliary MA is calculated between LL3 and LL2 to capture the transition of pullback depth.
Projected levels: Five dynamic projection lines are plotted and labeled Fib Level 0.236 / 0.382 / 0.5 / 0.618 / 0.786. These are computed from the LL4→LL3 segment with calibrated ratios so that the plotted bands align to familiar Fib-style landmarks while adapting to current structure.
Plots (what you see)
Five adaptive lines on the price chart: Fib Level 0.236, 0.382, 0.5, 0.618, 0.786.
Borders and helper MAs are internal to the calculation and not rendered.
Inputs
None (by design). All parameters are fixed inside the script to keep behavior consistent across users and charts.
Usage notes
Timeframes: Works on any chart timeframe. Calculations are anchored to 4H data, so values update as the current 4H bar forms and stabilize after its close.
Markets: Intended for liquid symbols (crypto, FX, indices, equities).
Interpretation:
Approaches to 0.236–0.382 often reflect shallow pullbacks within strong trends.
0.5–0.618 bands frequently frame “deeper but orderly” retracements.
0.786 acts as an extreme band in prolonged moves.
These are contextual guides only; confirm with your own price action rules and risk management.
No alerts/signals: The script does not produce buy/sell signals or alerts. It is a framework of levels, not an auto-trader.
Limitations
MTF timing: Because 4H sources are used with lookahead=off, levels may shift intra-bar and finalize on 4H close.
No user tuning: Parameters are intentionally hard-coded.
Not financial advice: For educational/analytical use only.
Release notes
v1.0 (2025-09-08): Initial public release with five projected level bands derived from smoothed 4H structure and layered lower borders.
GOLD SCALPERGOLD SCALPER is an advanced trading indicator specifically designed for scalping on GOLD markets. It combines an ultra-fast prediction line with optimized Support & Resistance levels, providing a unique approach to GOLD trading.
Key Features
Ultra-Fast Prediction Line
The indicator contains the only directional indicator in the chart - an ultra-fast prediction line that reacts instantly to price changes. The line is drawn on every bar for maximum speed and provides clear BUY, SELL, and WAIT signals.
GOLD-Optimized Support & Resistance
The S/R system is specifically optimized for GOLD characteristics. It uses pivot period 10 for faster detection, sensitivity 1 for maximum sensitivity, and strength filter to display only strong levels with 3+ touches.
Anomaly Warning System
A unique early warning system for anomalies. When unusual market behavior is detected, S/R levels turn orange, alerting to potential risky situations.
Session Filter
An intelligent session filter optimized for GOLD trading. Automatically detects London and New York sessions (8-21 UTC) and adjusts signals based on market activity.
Technical Specifications
Prediction Line
- BUY signal: Vertical green line up
- SELL signal: Vertical red line down
- WAIT signal: Horizontal orange line
- Dotted style for scalping
- Instant reaction to price changes
Support & Resistance
- Pivot Period: optimized for 5M timeframe
- Sensitivity: maximum sensitivity
- Max Lines: 5 (better coverage)
- Strength Threshold: only strong levels
- Retest Tolerance: 0.1% (precision for GOLD)
Anomaly Detection
- Lookback: 20 bars
- Threshold: 2.0 ATR
- Detects: Range expansion, volume spikes, rapid price changes, RSI extremes
- Visual warning: Orange S/R lines
GOLD Optimizations
GOLD-Specific Settings
The indicator is optimized for GOLD trading with the following specific settings:
- Shorter pivot periods for faster reaction
- Maximum sensitivity for GOLD characteristics
- Volume confirmation for more reliable signals
- Session awareness for best trading times
Performance Optimizations
- Cache optimization for all calculations
- Memory management for proper line deletion
- Pine Script v6 for modern functionality
- No linter errors for stable performance
Usage
Recommended Settings
- Timeframe: 5-15M GOLD
- Sessions: London/NY (8-21 UTC)
- Prediction Style: Dotted
- S/R Style: Dotted
- Anomaly Warning: Enabled
Trading Approach
The indicator is designed for a scalping approach with emphasis on speed and accuracy. It combines a fast prediction line for directional signals with slower S/R levels for context and confirmation.
GOLD SCALPER represents a professional tool for GOLD scalping with a unique approach combining speed with precision. It is ideal for traders who need instant signals and reliable S/R levels for their trading decisions.
Riz Goldbach FrameworkRiz Goldbach Framework maps a dynamic dealing range and a set of Goldbach-derived price levels to structure intraday decision-making. It blends range math (PO3), level clustering, session weighting, volume/volatility context, and an explainable scoring engine that can issue BUY/SELL signals with risk levels (SL/TP). It is designed for discretionary traders who want rules-based context rather than a black box.
Core concepts (how it works)
1) PO3 Dealing-Range Engine
⦁ The script builds a tri-based PO3 range around current price (Auto or Manual).
⦁ It shifts the range when price “accepts” outside (close/wick—user selectable) and adapts width with ATR so the range expands in high volatility and tightens in low volatility.
⦁ From this range it computes mid, premium/discount halves, and sub-mids.
2) Goldbach Levels (structure map)
Within the active PO3 range, fixed percentages anchor recurring behaviors:
⦁ Rejection edges: 3%, 97%
⦁ Order-block tendency: 11%, 89%
⦁ FVG tendency: 17%, 83%
⦁ Liquidity void / expansion: 29%, 71%
⦁ Breaker band: 41%, 59%
⦁ Mitigation band: 47%, 53%
⦁ Equilibrium: 50%
⦁ Touch/near logic is tolerance-based (body-only optional). The script also counts confluence clusters (2=moderate, 3+=strong) near price.
3) Market elements the script tracks
⦁ Order Blocks (OB): detected after BOS behavior when price is sitting on OB-biased GB levels (11/89).
⦁ FVG: 3-bar gaps at FVG-biased levels (17/83) with optional “% fill” confirmation.
⦁ LV bars: wide-range, high-range bars around 29/71 for displacement/voids.
⦁ Equal Highs/Lows (EQH/EQL): tolerance with labeling for sweep risk.
⦁ Circuit Breaker (CB): zone seeded at 41/59. States: intact → broken → retest → revalidated/failed. A shaded band shows the active breaker zone.
⦁ Twin Towers (TT): equal-high/equal-low doublet with spacing/volume/RSI checks, then sweep-and-return into the breaker zone for confirmation.
4) Context & filters
⦁ Trend vs Range: DMI/ADX + EMA stack infer TREND/RANGE/TRANSITION and scale the required score.
⦁ MTF alignment: compares current PO3 halves vs HTF PO3 halves (user timeframe), rewarding alignment and flagging divergence.
⦁ Fib–Goldbach confluence: checks 61.8/38.2/78.6/127.2/161.8 against key GB levels for added weight.
⦁ Session weighting: Asia/London/NY bias different GB levels; weights are higher for London/NY.
⦁ Volume-weighted liquidity: tracks volume at EQH/EQL to flag “high-commitment” sweeps.
⦁ AMD cycle (smart): accumulation/manipulation/distribution estimated from ATR regimes, sweeps, BOS continuation, divergence and PO3 shifts.
⦁ Optional filters: HTF bias, SMT divergence via a second symbol, VSA volume emphasis, news blackout session.
5) Signal engine
⦁ Modes: MMxM, Trending, or Hybrid (auto switches depending on CB acceptance + ATR expansion).
⦁ A score (0–100) aggregates weighted conditions (GB touch/confluence, AMD alignment, CB state, TT, FVG/OB interaction, HTF bias, SMT, high-volume, RSI momentum).
⦁ Adaptive threshold raises/lowers requirements in TREND vs RANGE.
⦁ Outputs: BUY/SELL label with strength (WEAK/NORMAL/STRONG), a reasons string (e.g., GB+AMD+Breaker+TT+FVG+HTF+RSI), and risk levels:
⦁ SL: rejection/structure anchored (e.g., GB3/GB97 or recent swing ± ATR).
⦁ TP1: opposite breaker (41/59).
⦁ TP2: opposite FVG tendency (17/83).
⦁ Live RR displayed on label and plotted as dashed lines.
⦁ Cooldown, session/time, weekend, and volatility gates suppress poor-quality or clustered signals.
What you see on the chart
⦁ PO3 bands: High/Low/Mid lines plus background shading for Premium (bear tint), Discount (bull tint), Equilibrium (neutral).
⦁ Goldbach lines: Major structure (0/50/100) plus the functional GB set (11/17/29/41/47/53/59/71/83/89/3/97).
⦁ Blocks & gaps: OB lines, FVG boxes (extend right, fill progress), LV box, breaker zone band, and TT logic states.
⦁ CE/MT: Central equilibrium (~3.5%/96.5%) and mid-towers (25%/75%) trigger optional alerts.
⦁ Session overlays: Asia/London/NY (optional).
⦁ Opens: Daily/Weekly (optional).
⦁ Dashboard: PO3 value, Zone (Premium/Discount/Equilibrium), AMD phase, Session, Mode (MMxM/Trending/Hybrid), CB state, nearest GB tag, Market context (TREND/RANGE/TRANS), recent Events, and rolling win-rate tallies (signals/CB/TT) from the current chart session.
How to use it (workflow)
1. Pick a preset
⦁ Minimal: only core structure.
⦁ Standard: levels + dashboard.
⦁ Full: adds sessions + GBT window overlays.
2. Choose range logic
⦁ PO3 Auto is reactive and scales with ATR.
⦁ Manual PO3 is for precise range control.
3. Scope your bias
⦁ Confirm Zone (Premium/Discount), CB state, and AMD phase; check MTF row if enabled.
⦁ Strong setups usually appear when session-weighted GB levels + confluence ≥ 2 + CB revalidated + AMD = manipulation → distribution (short) or accumulation → manipulation (long).
4. Act on signals (optional)
⦁ When a label prints, read the factors string and score.
⦁ Use plotted SL/TP1/TP2 lines and RR.
⦁ Respect cooldown, news blackout, and volatility filter.
Inputs you might tweak
⦁ PO3: Auto/Manual, acceptance by Close vs Wick, adaptive widening/tightening.
⦁ Levels: Major-only vs All; tolerance %; wick vs body touches.
⦁ Signals: Mode, score threshold, cooldown, confirm on close.
⦁ CB/TT: breaker width %, spacing window & tolerance, suppress bars after TT.
⦁ Filters: HTF timeframe, SMT symbol, VSA on/off, news blackout session.
⦁ Visuals: colors, line opacity, label sizes, dashboard position/size.
⦁ FVG/LV/CE/MT: fill %, and per-event alerts.
Alerts available
⦁ BUY/SELL signal, PO3 shift, GB touch (with tag), CB broken/retest pass/fail, TT setup/confirmed, OB tagged, FVG formed/filled, LV expansion, CE/MT touches.
Limitations & notes
⦁ Signals are contextual—they depend on the active PO3, tolerance, filters, session weighting, and volatility regime.
⦁ HTF requests depend on broker/exchange data and the timeframe you assign; if HTF is empty or illiquid, features degrade gracefully but may be less informative.
⦁ Win-rate tallies are session-local (not a historical performance guarantee).
⦁ Parameter choices (e.g., tolerance, breaker width, thresholds) materially change behavior.
Disclaimer
This tool is for educational/informational purposes only. It does not constitute financial advice, an invitation to trade, or performance assurance. Markets involve risk—always test on replay/paper and manage risk independently.
Wyckoff Smart Money Pro [MTF]Wyckoff Smart Money Pro detects trading ranges, phases, and events from the Wyckoff method and confirms them with VSA (Volume Spread Analysis), divergence checks, and a composite “smart money” strength index. It generates optional buy/sell signals only when multiple conditions align (phase, VSA, CO strength, effort vs. result, time/volume filters). The dashboard, POC/Value Area, and MTF backdrop help you manage context and risk in real time.
What this indicator does
Wyckoff Smart Money Pro is a multi-timeframe Wyckoff tool that:
⦁ Finds accumulation/distribution ranges and tracks Phases A–E.
⦁ Labels Wyckoff events (PS, SC, AR, ST, Spring/Test, SOS, LPS, UTAD, SOW, LPSY, TS…) and VSA patterns (No Demand/Supply, Stopping Volume, Upthrust, etc.).
⦁ Computes a Composite Operator (CO) Strength score from price/volume behavior to approximate “smart money” bias.
⦁ Adds divergence, effort vs. result, and a volume profile (POC & 70% value area) inside the detected range.
⦁ Provides buy/sell signals only when a configurable confluence is present (events + VSA + CO + EVR + phase + filters).
⦁ Supports MTF context (with a safe HTF resolver and fallbacks) and an Info Dashboard to summarize the current state.
It is designed to make the Wyckoff workflow visual and rules-based without promising results or automating decisions.
How it works (methods & calculations)
1) Range & Phase model
⦁ A sliding lookback searches for a valid range (recent highest high/lowest low), requiring width within 2–10× ATR(14) and a minimum bar count inside the bounds.
⦁ Once a range is active, the script derives Creek/Ice/Mid/Quartiles and classifies bars into Wyckoff Phases A–E using event recency (barssince) and where price sits relative to the range.
⦁ The background color reflects the current Phase; optional MTF events (from the chosen HTF) tint the background lightly for higher-timeframe context.
2) Wyckoff & VSA event engine
⦁ Events include PS, SC, AR, ST, Spring, Test, SOS, LPS, PSY, BC, UTAD, SOW, LPSY, TS, plus minor/multiple variants and Creek/Ice jumps.
⦁ VSA patterns detect No Demand/No Supply, Stopping Volume, Buying/Selling Climax, Upthrust/Pseudo Upthrust, Bag Holding, Shake-Out, Volume Dry-Up, etc., from spread vs. average spread and volume vs. average volume with tunable thresholds.
3) Smart-money (CO) Strength
⦁ CO Strength (0–100) blends: relative volume on up/down bars, professional accumulation/distribution, no-supply/no-demand, stopping volume, Springs/UTADs and Tests, SOS/SOW, price’s position inside the range, and volume-delta vs. its MA.
⦁ Persistent accumCount / distCount counters smooth temporary noise.
4) Divergence & Effort-vs-Result
⦁ Price vs. cum volume-delta divergence highlights weakening pushes.
⦁ EVR flags “High effort / no result” and potential Bullish/Bearish reversals, or “Low effort / high result” moves that are often unsustainable.
5) Volume Profile (inside range)
⦁ A 50-bin profile accumulates volume across the detected range to derive POC, VAH/VAL (70% value area). Lines update as the active range evolves.
6) Multi-Timeframe (MTF) safety
⦁ getHTF() converts your multiplier to a valid Pine timeframe string (e.g., 60, 240, 2D, 1W), and the script falls back to current timeframe values if an HTF request returns na.
⦁ If you enter a Custom HTF, it must be strictly higher than the chart’s timeframe (validated at runtime).
7) Signals & risk model
⦁ Signals are not tied to any single pattern. A buy may require Spring/Test/Shake-out/Creek Jump or SOS plus confirmation (VSA, CO>60, Phase C/D, divergence/EVR context).
⦁ Sell is symmetrical (UTAD/Failed Spring/SOW/Ice Jump + VSA + CO<40 + Phase C/D).
⦁ Minimum confidence is configurable; SL/TP and R:R lines are drawn from range edges or recent bar extremes.
⦁ Filters: trading hours, weekend avoidance, and a minimum volume threshold (relative to average) are available to suppress low-quality contexts.
⦁ Alerts include all major events, divergences, structure/phase changes, and the gated Buy/Sell signals (with a cooldown to reduce alert spam).
Inputs (key ones you’ll actually use)
⦁ Display Settings: toggle ranges, phases, events, VSA, signals, dashboard.
⦁ MTF: Enable HTF, set Multiplier or a Custom HTF (must be higher than current).
⦁ Range Detection: period / min bars / pivot strength.
⦁ VSA: volume sensitivity & climax multiplier.
⦁ Signal Settings: minimum confidence, risk/reward labels.
⦁ Advanced Filters: trading hours, weekend avoidance, and Min Volume Filter (× avg).
⦁ Colors: phase backgrounds, structure colors, and line styling.
How to use (practical flow)
1. Choose a symbol & timeframe you normally analyze (e.g., 5–60m for entries, 4H/D for context).
2. If using MTF, pick a multiplier (e.g., 5×) or a Custom HTF (e.g., 240/4H).
3. Wait for a range to form; watch Phase and CO Strength on the Dashboard.
4. When events (e.g., Spring/Test in Phase C or UTAD in distribution) appear with favorable VSA, CO, EVR, and volume/time filters, consider the signal and review R:R lines.
5. Use POC/VA and Creek/Ice/Mid as structure references; manage risk around the range edge that generated the setup.
On-chart legend (what the letters mean)
Wyckoff events (labels)
⦁ PS Preliminary Support, SC Selling Climax, AR Automatic Rally, ST Secondary Test
⦁ Spring Spring; Test Test of Spring
⦁ SOS Sign of Strength; LPS Last Point of Support
⦁ PSY Preliminary Supply, BC Buying Climax
⦁ UTAD Upthrust After Distribution; SOW Sign of Weakness; LPSY Last Point of Supply
⦁ TS Terminal Shakeout; MS Multiple Spring
⦁ CJ Creek Jump; IJ Ice Jump
⦁ mSOS / mSOW Minor Sign of Strength/Weakness
VSA patterns (tiny labels)
⦁ ND No Demand, NS No Supply, SV Stopping Volume, BC/SC Buying/Selling Climax
⦁ PA/PD Professional Accumulation/Distribution, BH Bag Holding, DU Volume Dry-Up
⦁ SO Shake-Out, TS Test for Supply (VSA test), UT Upthrust, PUT Pseudo Upthrust
Other visuals
⦁ Range box with Creek (upper third), Ice (lower third), Mid, Quartiles
⦁ POC/VAH/VAL: yellow solid (POC), purple dotted (value area)
⦁ VWAP and Dynamic S/R (stepline)
⦁ Green/Red triangles: gated Buy/Sell signals (only if min confidence & filters are met)
⦁ Risk label near the triangle: confidence /10 and R:R
Alerts included
⦁ Core events (Spring/Test/UTAD/SOS/SOW/TS), secondary events (SC/AR/BC/LPS/LPSY), VSA patterns, EVR states, Hidden Accumulation/Distribution, HTF events, Divergences, Phase/Structure changes, and the constrained Buy/Sell signals with a cooldown.
Notes, limits & best practices
⦁ This is not a buy/sell system; it’s a context & confirmation tool. Combine with your plan, risk limits, and execution criteria.
⦁ Long, illiquid, or news-driven bars can distort volume/spread logic; filters help but cannot eliminate this.
⦁ For MTF, if an exchange doesn’t support a specific HTF, the script falls back safely to current TF values to avoid na-propagation.
⦁ Dashboard rows/size/position are user-configurable to keep charts uncluttered.
Changelog (what’s new in this version)
⦁ MTF safety & validation (Custom HTF must be above current; graceful fallbacks for request.security() na results).
⦁ Performance caching for close position & up/down bar flags; drawing cleanup to stay under label/line limits.
⦁ Volume Profile upgraded to 50 bins; VA algorithm adjusted accordingly.
⦁ Signal gating with time/day/volume filters and alert cooldown to reduce noise.
⦁ Bug guards for parameter conflicts (e.g., rangeMinBars cannot exceed rangePeriod).
Disclaimer
This script is for educational and research purposes only and does not constitute financial advice or a recommendation to buy or sell any asset. Market risk is real; always test on a demo and trade at your own discretion.
Hopiplaka Goldbach System with SignalsThis tool builds a dynamic price framework around the current market using a PO3 range and a set of mathematically derived Goldbach levels. It then scores nearby levels for quality (reliability) and produces Buy/Sell signals only when multiple, independent factors line up (price level quality, trend/“Tesla Vortex” state, ICT AMD phase, time confluence, volume bias, and momentum). The goal is to identify high-confluence inflection points rather than constant signals.
Core Concepts & Why They’re Combined
1. PO3 Range Framework
Price is segmented into a primary range (lower → upper) determined by a configurable size (3× ladder: 3, 9, 27, …, 2187).
⦁ If price sits near a boundary (configurable sensitivity), the range can auto-expand to the next 3× size to better fit current volatility.
⦁ This gives a stable “map” of the active trading area and its boundaries.
2. Goldbach Levels (Pure Hopiplaka implementation)
For each even number ≤ your precision limit, the script evaluates all prime-sum partitions (Goldbach partitions) and converts their prime ratios into price levels inside the PO3 range.
⦁ Levels are classified as Premium / Standard / Discount based on properties of the prime pair and a mathematical weighting.
⦁ Strict minimum spacing rules (exact %, OB %, liquidity-void %) prevent clutter and keep only the most meaningful levels.
3. Tesla Vortex (trend/phase strength)
A volatility/trend-aware state machine estimates whether market is in MMxM (accumulation/mean-revert like) or TREND conditions and maps price interaction with high-quality levels to phases (e.g., Order Block Formation, Distribution).
⦁ This helps filter signals: buys favored in MMxM near supportive levels; sells favored in TREND near premium/liquidity levels, etc.
4. ICT Integration (AMD, IPDA bias hooks)
A lightweight AMD phase detector classifies the recent window into Accumulation / Manipulation / Distribution and marks market structure bias. This is used as confluence with level quality and trend state.
5. Time Confluence (Goldbach time)
Swing highs/lows are checked against Goldbach-valid timestamps (based on hour+minute sums decomposable into prime pairs). Repeated alignment adds time-bias confidence. When price and time align, level reliability is boosted.
6. Volume & Liquidity Context
A rolling volume baseline marks High/Low Volume Bias; levels can be volume-weighted (raising or lowering their reliability). Proximity to PO3 extremes flags pending liquidity sweeps.
Why this mashup?
The system blends price geometry (PO3 + Goldbach), state/trend (Tesla Vortex), market-microstructure (ICT AMD), time confluence, and volume/liquidity into one numerically scored signal. Each component answers a different question; together they reduce false positives and favor high-quality trades near meaningful levels.
What You’ll See on the Chart
⦁ PO3 Range Boundaries: two dashed lines (“lower” and “upper”). Auto-expand darkens the boundary style slightly.
⦁ Goldbach Levels: horizontal lines colored by classification and context:
⦁ Premium (strong premium band), Standard, Discount
⦁ OB (Order-Block candidate), LV (Liquidity Void)
⦁ TESLA node (trend/phase aligned)
⦁ Heavier width = higher reliability; dashed/dotted styles encode class differences.
⦁ PO3 Liquidity Boxes: narrow yellow shaded bands above/below each level (configurable pip distance).
⦁ Markers
⦁ ▲ Buy arrow below bar when a Buy signal triggers
⦁ ▼ Sell arrow above bar when a Sell signal triggers
⦁ ● Small dot when price touches a Goldbach level
⦁ Data-window plots:
⦁ Tesla Vortex Strength (numeric)
⦁ Time Bias (positive = bullish, negative = bearish)
⦁ Volume Bias (+1 high / −1 low)
⦁ Signal Strength (+ for buy / − for sell, zero when no signal)
⦁ Label Legend (on level tags)
⦁ TESLA – Tesla-aligned level node
⦁ OB – Order-block-quality zone
⦁ LV – Liquidity-void zone
⦁ Premium / Standard / Discount – Level class
⦁ Gxx – Even number used to build the level (Goldbach reference)
⦁ Reliability – Final score after time/volume/tesla weighting
⦁ Optional extras: Vol (relative volume weight), Time (time-confluence strength)
How Signals Are Generated
A signal is proposed when price comes within a minimum distance of a high-reliability level. It is then accepted only if enough of these independent checks pass (you control the required count):
1. Tesla Vortex state matches direction (e.g., MMxM with buy; TREND with sell).
2. ICT AMD phase aligns (Accumulation → buy bias; Distribution → sell bias).
3. Goldbach time bias supports the direction.
4. Volume bias supportive (high-volume context boosts conviction).
5. Level quality (TESLA node or Premium class) is high.
6. Momentum alignment (recent 2–3 bars in the same direction).
Only when confluence ≥ your threshold and confidence ≥ 0.5 (scaled by sensitivity) will a Buy/Sell arrow print. Cooldown prevents rapid repeats.
Inputs (key ones)
⦁ PO3 Settings: range size, auto-expansion toggle, expansion sensitivity, liquidity band distance.
⦁ Goldbach Mathematics: precision limit, exact spacing rules, spacing for OB/LV classes.
⦁ Trading Signals: master toggle, sensitivity, min reliability, confluence required, cooldown, min distance to level, markers on/off.
⦁ Tesla Vortex / ICT: enable Vortex, sensitivity; enable AMD/IPDA analysis and lookback.
⦁ Time & Volume: enable Goldbach time and weighting; volume lookback; liquidity-pool detection.
⦁ Display: show historical/future projections, number of future bars, labels, path/phase overlays.
⦁ Colors: full palette per class/context (premium/discount/OB/LV/Tesla/time/volume, buy/sell/goldbach hit).
Alerts Included
⦁ Signals: “BUY Signal Generated”, “SELL Signal Generated”
⦁ Level Interactions: “Goldbach Level Hit”; “Near Goldbach Level”; “Tesla Vortex Node”; “Premium Level Alert”
⦁ PO3: “PO3 Upper Break”, “PO3 Lower Break”, “PO3 Range Expansion”
⦁ State Changes: “Tesla Vortex Phase Change”
⦁ Context: “Liquidity Sweep Imminent”, “Strong Time Confluence”
You can wire these to webhooks or notifications.
Suggested Workflow
1. Choose PO3 size that matches your instrument’s volatility; keep Auto-Expansion ON initially.
2. Set confluence threshold (start at 3–4) and cooldown (e.g., 10 bars).
3. Keep Time and Volume modules ON for additional reliability weighting.
4. Use arrows as filters, not blind entries—confirm with your execution plan and risk rules.
5. Prefer signals near Premium/Discount TESLA nodes that also show time confluence and supportive volume.
Practical Notes & Limitations
⦁ The mathematical framework is deterministic, but market execution is not—always manage risk.
⦁ Future projections and heavy labeling can be resource-intensive; tune visibility if performance drops.
⦁ If a market is extremely illiquid or gap-prone, spacing/filters may hide many levels (by design).
Disclaimer
This script is for educational and research purposes only and is not financial advice. Trading involves risk. You are responsible for your own decisions.
TRAPPER TRENDLINES — PRICEDraws dynamic trendlines on price by connecting the two most recent confirmed swing points (highs to highs for resistance, lows to lows for support). Swings are defined with a symmetric left/right pivot window. Old anchors are ignored so lines stay attached to current structure. Optional break alerts are included.
How it works (plain language)
Pivots: A bar is a swing high (or low) only if it’s the most extreme point compared with a set number of bars on the left and the right.
Lines:
Support connects the last two confirmed swing lows.
Resistance connects the last two confirmed swing highs.
Lines can be extended right only or both left & right (toggle).
Recency filter: Only swings within the last N bars are kept. This avoids anchoring to very old pivots far from current price.
Alerts: Optional alerts fire when price closes above resistance or below support.
Inputs
Auto Settings
Auto pivot size by chart timeframe: When ON, the script picks a pivot size suitable for the current timeframe (you can scale it with Auto pivot multiplier). When OFF, the manual left/right inputs are used.
Auto pivot multiplier: Scales the auto pivot size (e.g., 1.5 makes pivots stricter).
Manual Pivots
Pivot Left / Pivot Right: Bars to the left/right required to confirm a swing. Example: Left=50 & Right=50 keeps only major swings.
Recency Filter
Use last N bars for pivots: Swings older than this window are discarded so trendlines stay relevant to current price.
Style
Support/Resistance color: Line colors.
Extend Left & Right: When ON, both endpoints extend; when OFF, lines extend to the right only.
Alerts
Enable Break Alerts: When ON, alert conditions are exposed:
Price: Break Up — close above resistance.
Price: Break Down — close below support.
Suggested settings
Higher timeframes (4H / 1D / 1W):
Manual: Pivot Left = 50, Pivot Right = 50, Use last N bars = 400–800.
Or enable Auto with Auto pivot multiplier = 1.0–1.5.
Intraday (15m / 30m / 1H):
Manual: Pivot Left = 30, Pivot Right = 30, Use last N bars = 300–500.
Or enable Auto with multiplier ≈ 1.0–1.2.
Pairing with RSI for confluence/divergence
This tool is designed to pair with a companion TRAPPER TRENDLINES — RSI (or any RSI trendline script):
To mirror swings, set RSI Pivot Lookback equal to the price Pivot Left/Right you use here.
Example: Price = 50/50 → RSI Pivot Lookback = 50.
Keep RSI at Length 14 with 70/30 channel for clarity.
Confluence: Price holds/rejects at a trendline while RSI trendline agrees.
Divergence: Price prints a higher high (resistance line rising) while RSI prints a lower high (RSI resistance line falling), or vice-versa for lows. Matching pivot windows makes these relationships clear and reduces false signals.
Reading the signals
Trendline touch/hold: Potential reaction area; wait for follow-through.
Break Up / Break Down (alerts): Close beyond the line. Consider retest behavior, higher-timeframe context, and volume/RSI confirmation.
Notes & limitations
Pivots require future bars to confirm (by design). Lines update as pivots confirm.
“Use last N bars” purposely ignores very old swings. Increase this value if you need legacy structure.
Lines are based on two most recent confirmed pivots per side; rapidly changing markets can replace anchors as new swings confirm.
This is a visual/analytical tool. No strategy entries/exits or performance claims are provided.
Compliance
This script is for educational purposes only and does not constitute financial advice. Trading involves risk. Past results do not guarantee future outcomes. No promises of profit, accuracy, or performance are made.
Alerts (titles/messages)
Price: Break Up — “Price broke above resistance trendline.”
Price: Break Down — “Price broke below support trendline.”
Quick start
Add the indicator to your chart.
Choose Auto or set Pivot Left/Right manually.
Set Use last N bars for how far back to consider swings.
Toggle Extend Left & Right to your preference.
(Optional) Add your RSI trendline indicator and match Pivot Lookback with your price pivot size for clean confluence/divergence.
Enable alerts if you want notifications on breaks.
Keylevels [KAWS]Overview
The Keylevels Indicator is designed to provide traders with a clear and structured view of important market reference points. It automatically detects and plots session highs and lows, weekly and monthly levels, as well as the previous day’s range. These levels are presented directly on the chart as dynamic lines with optional text labels, offering a consistent framework for understanding price action across multiple time horizons.
Understanding the Concepts
What are Key Levels?
Key levels are significant price points that often serve as reference markers in market activity. They represent areas where the market has previously established boundaries (highs and lows) within sessions, days, weeks, or months. Such levels can highlight where price has repeatedly reacted, providing insight into areas of potential importance.
Why Sessions Matter
Financial markets operate globally, and trading sessions (Asia, London, New York) reflect the activity of different regions. Each session produces distinct highs and lows that can serve as key markers for subsequent price behavior. By capturing these levels automatically, the indicator helps visualize how markets transition from one trading phase to another.
Higher Timeframe Levels
Weekly and monthly highs and lows, as well as the previous day’s range, provide broader structural reference points. These levels are often used to assess whether the market is respecting or breaking significant boundaries over time.
How the Indicator Works
The indicator automatically tracks and plots:
Session Levels: Highs and lows of the Asia, London, and New York sessions.
Session Open Price: A clear reference line marking the opening price of a chosen session.
Daily Levels: Previous day’s high and low, updated at the start of each new day.
Weekly Levels: High and low of the current week, with automatic reset each new week.
Monthly Levels: High and low of the current month, updated dynamically.
Each level is displayed with customizable line styles, colors, and labels. Labels can include text only or also display the exact price, depending on user preference. The indicator further supports the option to extend lines into the future, allowing for ongoing visibility of these reference points.
Customization Options
Display Control: Enable or disable specific sessions, daily, weekly, or monthly levels.
Visual Styling: Adjust line colors, thickness, and style (solid, dashed, dotted).
Labels: Choose whether to display text, include price information, and set text size.
Session Settings: Define your preferred timezone and session open times for accuracy across global markets.
Line Extension: Decide whether levels should extend into the future or stop when broken.
Important Considerations
This indicator is a technical reference tool. It does not generate buy or sell signals but instead provides structural context by highlighting where the market has established significant levels. As with any technical tool, it is most effective when integrated into a broader trading framework that includes market structure, trend analysis, and risk management.
Auto-Anchored MA with Deviation BandsAuto-Anchored MA with Deviation Bands
✨ Features
📈 Auto-Anchored MA: Calculates moving averages (EMA, SMA, EWMA, WMA, VWAP, TEMA) anchored to user-defined periods (Hour, Day, Week, etc.).📏 Deviation Bands: Plots upper/lower bands using Percentage or Standard Deviation modes for volatility analysis.⚙️ Customizable Timeframes: Choose anchor periods from Hour to Year for flexible trend analysis.🎨 Visuals: Displays MA and bands with gradient fills, customizable colors, and adjustable display bars.⏱️ Countdown Table: Shows bars since the last anchor for easy tracking.🛠️ Smoothing: Applies smoothing to bands for cleaner visuals.
🛠️ How to Use
Add to Chart: Apply the indicator on TradingView.
Configure Inputs:
Anchor Settings: Select anchor period (e.g., Day, Week).
MA Settings: Choose MA type (e.g., VWAP, TEMA).
Deviation Settings: Set deviation mode (Percentage/Std Dev) and multipliers.
Display Settings: Adjust bars to display, colors, and gradient fill.
Analyze: View MA, deviation bands, and countdown table on the chart.
Track Trends: Use bands as dynamic support/resistance and monitor anchor resets.
🎯 Why Use It?
Dynamic Analysis: Auto-anchors MA to key timeframes for adaptive trend tracking.
Volatility Insight: Deviation bands highlight potential breakouts or reversals.
Customizable: Tailor MA type, timeframe, and visuals to your trading style.
User-Friendly: Clear visuals and countdown table simplify analysis.
📝 Notes
Ensure sufficient bars for accurate MA and deviation calculations.
Gradient fill enhances readability but can be disabled for simplicity.
Best used with complementary indicators like RSI or Bollinger Bands for robust strategies.
Happy trading! 🚀📈