SMART TRADER Institutional Trend Engine ITESMART TRADER – Institutional Trend Engine (ITE)
Author: Jonathan Mwendwa Ndunge
Description:
The SMART TRADER Institutional Trend Engine (ITE) is a hedge-fund-grade trading indicator designed to identify high-probability trend continuation and reversal opportunities using Smart Money Concepts. It combines multi-timeframe Donchian Channel trend analysis, Change of Character (CHOCH) detection, Order Block (OB) validation, and Liquidity Sweep detection to filter only the most reliable market conditions.
Key Features:
Multi-Timeframe Trend Alignment:
HTF (2H) determines the overall market regime.
MTF (1H) confirms alignment across three Donchian channel periods (fast, medium, slow) to ensure structural consistency.
Refined CHOCH Logic:
Detects genuine shifts in market structure using recent swing highs and lows.
Bullish or bearish CHOCH is only confirmed when HTF and MTF trends align, reducing false signals.
Order Block Confirmation:
Validates institutional supply and demand zones before execution.
Detects bullish and bearish order blocks using historical lows/highs in open prices.
Liquidity Sweep Validation:
Identifies liquidity sweeps beyond recent highs or lows, ensuring entry in areas where institutions likely trigger orders.
Execution-Level Discipline:
Signals only trigger when all conditions are met: trend alignment, CHOCH, order block, and liquidity sweep.
Visual labels mark bullish and bearish execution zones directly on the chart.
Dashboard Overview:
Displays HTF regime, 1H alignment, and execution status for quick decision-making.
Use Case:
Ideal for day trading and short-term swing trading.
Works best when combined with proper risk-to-reward management (e.g., 1:2 RR).
Designed to reduce noise and enhance the probability of success by replicating institutional-style trade execution.
Indicadores y estrategias
Asia Range + OB Zones + AlertsTrail run of script built with chatgpt and clude to mark hhs lows and OB's
NY 9:30-9:35 Open Rangehis indicator automatically plots the New York Opening Range based on the first 5 minutes of the session (09:30–09:35 NY time) — one of the most important liquidity and price-discovery periods of the trading day.
What it displays
- Opening Range Box (09:30–09:35)
Highlights the high and low formed during the first 5 minutes after the NY market opens.
High & Low Extensions Horizontal projection lines extending the opening range forward for a user-defined number of hours.
Midpoint (50%) Level, A dotted line marking the midpoint of the range, useful for balance, mean-reversion, and confirmation setups.
CRZTestBuildV2At market open, the indicator plots daily zones derived from the previous session's range and volatility, using statistically common extensions and reactions from similar prior days. These zones act as areas of interest where price commonly stalls, reverses, or accelerates, which makes them useful or HOD/LOD reference and structure trade entries.
Tradovate Trades Overlay (CSV Import)This indicator, is a tool to visualize the past trades from a tradovate .csv file format in TradingView. A python code is commented in the file, which converts the .csv file into a format that TradingView can import. (for more details please read the header of the indicator)
NQ Implied Range GovernorThis Pine Script v6 indicator, “NQ Implied Range (VIX ÷ √N) Governor”, builds a real-time implied range framework for Nasdaq futures by importing a volatility index (default CBOE:VXN) on a user-selected timeframe and smoothing it with an EMA. It converts the annualized vol reading into a daily 1σ percentage move via oneSigmaPct = (VIX ÷ √252)/100, then maps that into a point-based implied move from a session “anchor” price. The anchor is locked at RTH session start (0930–1600 ET by default) based on your chosen mode (RTH Open, prior bar close, or daily open). A band mode selector controls how sigma is interpreted: an “Intraday Range” mode uses √(2/π) (~0.798) as a proxy for expected max excursion, while close-to-close modes use ±1σ or ±2σ envelopes; a separate calibration multiplier lets you widen/tighten the bands beyond theory.
Once the implied move is computed, the script plots the upper/lower 1.0 bands, the anchor midline, and optional fills above/below the anchor. It then derives symmetric Fibonacci retracement levels between the anchor and each band (.236, .382, .500, .618, .786) and optional extensions (1.272, 1.618), with right-edge price labels for quick reading. In parallel, it tracks realized RTH range (session high–low) and compares it to the implied total range to produce a “range spent” ratio, dynamically color-coded from green → yellow → orange → red as the session consumes volatility budget. That ratio drives a session-end summary label (realized vs implied, bands, % spent), a configurable dashboard table showing model inputs/outputs (smoothed vol, raw σ%, anchor, ± bands, total range, realized, remaining, distance to bands), and a set of alert conditions for key events: crossing spent thresholds (70/100/120%), touching outer bands, touching key fib levels, extension hits, and session start/end.
Livermore 5-Step Trade Dashboard [t2make]█ OVERVIEW
Jesse Livermore — arguably the greatest stock trader of the 20th century — never entered a trade on impulse. In "How to Trade in Stocks" (1940), he outlined a disciplined, top-down checklist that filtered out noise and kept him on the right side of the market.
This indicator translates Livermore's 5-step pre-trade test into a real-time, on-chart dashboard that automatically evaluates both LONG and SHORT setups simultaneously and tells you which direction has the stronger case — or tells you to sit on your hands.
No manual switching. No guessing. The market speaks, and the dashboard listens.
█ THE 5 STEPS
① MARKET TREND — "There is a time to go long, a time to go short, and a time to go fishing."
Compares fast/slow EMAs on your chosen market index (default: SPY). If the general market isn't trending in a clear direction, there's no trade. Period.
② SECTOR TREND — "Stocks move in groups. You must know which group your stock belongs to."
Checks whether the sector ETF (XLK, XLF, XLE, etc.) is confirming the broader trend. Livermore never fought the group.
③ STOCK ACTION — "The stock must be acting right."
The individual stock must be trending (EMA alignment) AND showing above-average volume. Trend without conviction is just drift.
④ PIVOTAL TIMING — "The pivotal point is where the money is made."
Price must be at or near a pivot high (for longs) or pivot low (for shorts), confirmed by RSI momentum. This is Livermore's famous "line of least resistance" — enter only when the stock is ready to move.
⑤ RISK MANAGEMENT — "Always define your risk before entering a trade."
ATR-based stop-loss, position risk as a percentage, and minimum reward-to-risk ratio. If the math doesn't work, the trade doesn't happen.
█ AUTO DIRECTION
This is the key differentiator. The script scores all 5 steps for both Long AND Short independently, then:
• The side with more passing steps wins
• If tied, the side aligned with the market trend (Step 1) takes priority
• If neither side scores, the dashboard shows "— NONE" — stay flat
The bottom row always displays both scores side by side (e.g., ▲ L 4/5 vs ▼ S 1/5) so you can see the full picture at a glance.
█ DASHBOARD SIGNALS
✅ GO TRADE — 5/5 steps pass. This is your green light.
⚠ ALMOST — 4/5 steps pass. One condition away — watch closely.
⏳ WATCH — 3/5 steps pass. Setup is forming but not ready.
🚫 NO TRADE — Below 3/5. Stay out.
On-chart markers:
🟢 Green ▲ below bar = Long 5/5 triggered
🔴 Red ▼ above bar = Short 5/5 triggered
🟡 Yellow ◆ = 4/5 (almost ready)
Subtle background tint when all 5 pass
█ HOW TO USE
1. Add the indicator to any stock or ETF chart
2. In settings, set your Market Index (SPY, QQQ, etc.) and Sector ETF to match your stock's sector
3. The dashboard does the rest — auto-detects direction and scores each step
4. Only trade when you see 5/5 PASS
5. Use the calculated Stop and Target levels as starting points for your trade plan
6. Set alerts for 5/5 and 4/5 triggers to get notified across your watchlist
Sector ETF reference: XLK (Tech), XLF (Financials), XLE (Energy), XLV (Healthcare), XLI (Industrials), XLP (Consumer Staples), XLU (Utilities), XLB (Materials), XLRE (Real Estate), XLC (Communications), XLY (Consumer Discretionary)
█ SETTINGS
Dashboard: Position (4 corners), Size (S/M/L), toggle EMAs and levels on/off
Step 1: Market symbol, fast/slow EMA periods
Step 2: Sector ETF symbol, EMA period
Step 3: Stock fast/slow EMA, volume surge multiplier, volume avg period
Step 4: Pivot lookback, RSI toggle, RSI period and OB/OS thresholds
Step 5: Max risk %, min R:R ratio, ATR period and multiplier
█ LIMITATIONS
• This is a checklist tool, not a signal generator — it tells you WHEN conditions align, not WHERE to enter tick-by-tick
• Works best on daily timeframe with stocks and ETFs that have reliable volume data
• Sector ETF must be set manually to match the stock you're analyzing
• Crypto and forex pairs may need adjusted parameters since they lack traditional sector groupings
• Past alignment of all 5 steps does not guarantee future results
█ NOTES
This indicator is inspired by Livermore's principles but is an interpretation, not a literal recreation. Livermore traded in an era before EMAs and RSI existed — he used price action and tape reading. The underlying logic, however, is the same: confirm the market, confirm the group, confirm the stock, wait for the pivot, and define your risk.
"It was never my thinking that made the big money for me. It always was my sitting." — Jesse Livermore
Follow @t2make on X for updates, new indicators, and trade ideas.
Hawks NY Midnight OpenPlots the New York Midnight Open price with configurable horizontal and vertical reference lines, session-based timing, and adjustable extensions.
All-in-One Toolkit(RSI,EMA,MACD,SUPER TREND,ATR)Indicator Overview
The All-in-One Toolkit is a versatile, high-performance technical analysis suite designed to eliminate chart clutter while providing a "Command Center" view of the market. Unlike standard indicators that can "float" or detach from candles during zooming, this script features a Strict Price-Scale Anchor.
Every calculation—from the Triple EMA ribbons to the Supertrend—is mathematically locked to the price action, ensuring that your technical levels stay perfectly aligned with the candle wicks at any zoom level or screen resolution.
Key Features & Modules
Triple EMA Engine: Includes three customizable EMAs (20, 50, 200) with dynamic cloud filling. It identifies the "Value Area" between short and medium-term trends.
Volatility Envelopes: Features standard Bollinger Bands with a built-in Squeeze Detection algorithm that highlights periods of low volatility before a major breakout.
ATR Exhaustion Bands: Optional markers that project the Average True Range (2.0x) to identify overextended price moves.
Smart Supertrend: A robust trend-following system optimized with line-break logic to prevent vertical scale stretching, keeping your chart clean during trend flips.
Momentum HUD (Dashboard): A real-time table that displays RSI and MACD data. By moving oscillators into a table, the script preserves your vertical price scale, preventing the "squashed candle" effect.
Modular Preset Modes
To save time, the indicator includes four Global Preset Modes that instantly reconfigure the chart for different trading styles:
Trend Toolkit: Focuses on EMAs, SMAs, and Supertrend.
Volatility Toolkit: Prioritizes Bollinger Bands and ATR levels.
Momentum Toolkit: Maximizes the visibility of RSI and MACD data.
Everything Mode : Activates the full power of the suite for comprehensive analysis.
7M Multi-Factor Momentum ScoreboardThe 7M Scoreboard is more than just a collection of indicators; it is a Real-Time Scoring Engine designed for momentum traders and quant-focused analysts. While many scripts simply "mash up" indicators, the 7M Dashboard provides a weighted analytical framework that filters market noise into a single, actionable 7M Score.
It evaluates seven distinct dimensions of market health: Price Action, Relative Volume (Time-specific and Daily), Capital Structure (Float), and Multi-timeframe Trend alignment (VWAP, VWMA, MACD).
Make sure to enable Extended Trading Hours in the TradingView settings.
What makes it original?
The core innovation lies in the 7M Scoring & Alerting logic. Instead of a trader manually checking eight different parameters, the script performs a logical "Pass/Fail" assessment on every bar.
Dynamic Time-Anchored Change: Unlike standard change percentages, this script allows you to anchor the "Starting Price" to the Pre-market (4:00 AM), Regular Open (9:30 AM), or Post-market (4:00 PM).
Relative Volume (RVOL) at Time: It compares the current 5-minute volume not just to recent bars, but to the historical average for that specific time of day, filtering out the standard "lunchtime lull."
Capital Structure Integration: It incorporates a "Float" filter, essential for identifying low-float momentum vs. heavy-cap institutional moves.
How it works
The script calculates a total score out of 9 points based on the following criteria:
Momentum: Is price change > X percent from your chosen time anchor?
Liquidity: Is the 5-minute volume > X million?
Relative Strength: Is Daily RVOL and Time-specific RVOL > X?
Trend Alignment: Is price above VWAP and the 20-period VWMA?
Momentum Convergence: Is the MACD histogram positive?
Volatility Health: Is RSI between 30 and 70 (avoiding extreme over-extension)?
Step-by-Step Guide to Use
Set your Market Type: Open the settings and choose your Price Change Anchor.
Use Pre-Market if you trade the morning "Gap and Go."
Use Regular Open if you are a day-trader focused on the 9:30 AM bell.
Configure Thresholds: Set your Min % Move (e.g., 1.5%) and Min 5m Vol.
Monitor the 7M Score: Look at the bottom row.
Score < 5: High-risk, no clear momentum.
Score 7+: High-probability "7M Pass" setup.
Alerts (Great with TV's Watchlist Alerts)
Right-click the chart and "Add Alert." Select the 7M Dashboard and choose the "🚀 7M PASS" condition to be notified the moment a ticker hits your momentum criteria.
Recommended Settings for Different Assets
Small-Cap Momentum Pre-Market - 4.0% (Change) - 500k (5m Vol) - 50M (Float)
Mega-Cap / Tech Regular - 1.0% (Change) - 1.5M (5m Vol) - 30,000M (Float)
Crypto Intraday Regular - 2.5% (Change) - 1M (5m Vol) - 10,000M (Foat)
Technical Details
Pine Script Version: v6
Visuals: Features a high-contrast UI with adaptive text sizing for the final 7M Score.
Alerting: Includes an optimized alert() function for real-time momentum detection.
Disclaimer
The "7M Multi-Factor Momentum Scoreboard" is a technical analysis tool provided for educational and informational purposes only. Nothing contained in this script, its outputs, or the 7M Score constitutes financial, investment, or trading advice. Trading stocks, futures, and cryptocurrencies involves significant risk of loss and is not suitable for every investor.
No Guarantees: Past performance as displayed by historical indicators is not indicative of future results.
Model Limitations: The 7M Score is based on mathematical calculations of price and volume; it does not account for fundamental news, earnings surprises, or broader macroeconomic shifts.
Personal Responsibility: You are solely responsible for your own trading decisions. Always perform your own due diligence and consult with a licensed financial advisor before putting capital at risk.
Mine Shaft + Drift + Ore Pocket Detector (Gap+Touch)Mine Shaft + Drift + Ore Pocket Detector (Gap+Touch) — Full Description (v1.6.1, Pine v6)
*Experimental - *Test Phase*
1) What this indicator is intended to do
This indicator attempts to algorithmically discover “mine shaft” price structure on a chart by:
Collecting structural anchor points (gaps and optionally pivots),
Generating candidate trend “rails” (centerline + parallel upper/lower borders) from pairs of anchors,
Fitting an optimal channel width around each candidate centerline,
Scoring candidates based on how well price action conforms to the channel (touches + containment),
Selecting and rendering:
the main shaft channel (primary),
additional drifts (secondary shafts per direction),
And then detecting Ore Pockets: time locations where multiple selected lines intersect (time confluence / intersection clustering).
The conceptual model is:
A shaft = a best-fit channel that price respects over time (the “main tunnel”).
Drifts = alternate channels close in quality to the main shaft (secondary tunnels).
Ore pockets = future/past time coordinates where multiple channels’ centerlines intersect densely (confluence in time, not necessarily in price).
2) What it is doing right now (current behavior)
In its current form, the script does a bounded, performance-limited scan:
It stores a limited number of anchor points in arrays.
It only considers a bounded number of recent anchors per direction.
It constructs candidate lines from anchor pairs and evaluates channel fitness using sampled bars.
On the last bar, it selects top candidates per direction and draws:
a “main” channel per mode (single best overall, or separate up/down),
plus optional drift channels,
plus ore pocket markers.
It is producing meaningful channels and drifts, but it is currently more likely to lock onto a strong “local” shaft than the one macro shaft spanning the entire market structure.
3) Core mechanics (how the script finds shafts)
3.1 Anchor generation (what points it uses)
Anchors are the “support points” used to build candidate shaft centerlines.
Two anchor families are supported:
A) Gap anchors (from your selected gap mode)
These attempt to capture “displacement events” and their boundaries/mids.
B) Pivot anchors (optional structural anchors)
These use pivots to inject macro structure points that are not strictly gap-based.
All anchors are stored as:
anchorX: bar_index of anchor
anchorY: price of anchor
anchorD: direction flag (+1 for up, -1 for down)
Anchors are capped by maxAnchors with FIFO trimming.
3.2 Candidate generation (how it produces centerlines)
For each direction (+1 and -1):
Collect “recent” anchors of that direction within lookbackBars (bounded to maxDirAnchors).
For each pair of anchors (x1,y1) and (x2,y2) that satisfy:
spacing within ,
slope sign consistent with direction,
Construct the line equation:
slope m and intercept b
Fit a channel width w around that line (via width mode).
Score it (touches + inside count minus width penalty).
Keep the top K rails (K = driftCount+1 typically).
3.3 Scoring model (what “best” means right now)
For a candidate centerline:
At sampled bars (stride sampling), compute:
channel top = y(x) + w
channel bot = y(x) - w
Evaluate:
Inside: candle range fits within the channel ± tolerance
Touches: high near top border, low near bottom border (within tolerance)
Score formula:
score = insideCount * insideWeight
+ touchCount * touchWeight
- (w / ATR) * widthPenalty
So:
Higher inside and touch counts increase score
Wider channels are penalized (in ATR units) to avoid “cheating” via enormous width
3.4 Width fitting (how the channel thickness is chosen)
Width is either:
Fit (scan widths): scans widths between a min width and a max deviation cap and selects the best scoring width.
Fixed ATR Envelope: uses a fixed width derived from ATR (currently hard-coded to a 2.0 ATR envelope in your present draft).
Fixed Max Deviation: width is max observed deviation from line in sampled window.
This matters because “macro shaft” detection is strongly influenced by whether the width-fitting is allowed to expand enough to contain large historical moves, without being penalized into losing to a smaller local shaft.
3.5 Rendering (what gets drawn)
For any selected rail, it draws:
Upper border line (top rail)
Lower border line (bottom rail)
Optional centerline (main only)
Optional fill between borders (main only)
Label at current bar with touches and inside count
Drifts render similarly but without main-only features (depending on flags).
3.6 Ore Pocket detection (time confluence)
Ore pockets are not “price zones” directly.
They are computed as follows:
Collect selected centerlines (m,b) for:
the main selected shaft(s),
and all drift centerlines (both directions if present)
For each pair of selected lines, compute intersection x-coordinate:
x* = (b2 - b1) / (m1 - m2)
Only keep intersections within:
Cluster intersections by time proximity (clusterBars)
Mark the strongest clusters (highest counts) as “Ore Pocket” vertical dotted lines with labels.
Interpretation:
A dense cluster indicates many selected rails converge around a similar time coordinate.
It is a “time confluence” hypothesis point.
4) Full settings reference (what each setting is for)
01) Gap Anchors
Gap Mode
FVG (3-candle)
Uses a classic 3-candle fair value gap pattern:
Up gap if low > high
Down gap if high < low
Anchors are derived from the gap boundaries.
Candle Gap (open-close)
Gap based on open vs close of the same bar with a tick threshold.
Candle Gap (open-prev close)
Gap based on open vs close with a tick threshold.
Gap Threshold (ticks)
Only used for the candle gap modes.
Controls the minimum gap size required to register an anchor.
Anchor Price
Boundary: anchors at one gap boundary (more “structural edge”)
Mid: anchors at midpoint of the gap (more “center of displacement”)
Include Pivot Anchors (structure)
When enabled, adds pivots as additional anchors to stabilize macro detection.
Pivot Length
Pivot sensitivity (how many bars left/right define a pivot).
Larger values = fewer, more structural pivots.
02) Channel Fit + Touch Scoring
Lookback Bars
The historical window used to:
filter which anchors are considered “recent enough”
evaluate channel fitness (sampled evaluation)
Larger lookback tends to favor macro shafts, but also increases computational risk (mitigated by evalBars and stride).
ATR Length
ATR period used for tolerance and width penalty scaling.
Tolerance (ATR mult)
Defines how close price must be to a rail to count as “touch” and how strict the “inside channel” containment is.
Higher tolerance = easier to score high on touch/inside.
Min Border Touches (keep rail)
Minimum number of border touches required before a candidate is even eligible.
Score: Inside Weight
Weight of inside count in score.
Score: Border Touch Weight
Weight of border touches in score.
This is a strong driver of “shaft-like” behavior.
Score: Width Penalty (in ATRs)
Penalizes wide channels relative to ATR.
Higher penalty biases toward narrow/local shafts.
03) Performance Controls
Max Stored Anchors (global)
Maximum anchor points kept in memory arrays.
Too low can cause loss of macro structure; too high increases candidate noise.
Max Anchors / Direction (scan)
Hard cap on how many anchors are used in candidate generation per direction.
Critical: this strongly influences whether macro shaft can be found, because if you only keep the most recent anchors, you lose the early-structure anchor points.
Eval Bars (max)
Maximum historical bars actually evaluated for scoring.
Even if lookbackBars is large, evaluation is capped here.
Eval Stride (sample every N bars)
Sampling step for evaluation.
Larger stride = faster but less accurate scoring.
04) Candidate Generation
Min Anchor Spacing (bars)
Minimum distance between the two anchors used to define a candidate line.
Prevents micro-noise lines from being evaluated.
Max Anchor Spacing (bars)
Maximum distance between the two anchors used to define a candidate line.
If this is too low, you cannot generate truly macro candidate lines.
05) Shaft + Drift Display
Main Shaft Mode
Best Overall (Single Shaft): chooses one best rail among Up/Down and draws it as main.
Up Only: show only the best upward rail.
Down Only: show only the best downward rail.
Up + Down: show both main up rail and main down rail simultaneously.
Show Ascending Shaft
Toggles rendering for the “up” main shaft (when mode allows it).
Show Descending Shaft
Toggles rendering for the “down” main shaft (when mode allows it).
Drifts per Direction
Number of additional top-ranked rails to draw per direction (after the best one).
Extend Lines
Right: extend lines to the right only.
Both: extend both left and right.
Fill Main Shaft Channel
Fill between upper and lower borders for main shaft.
Main Shaft Fill Transparency
Transparency level for main fill.
Show Main Shaft Centerline
Draw the dashed centerline for the main shaft.
06) Ore Pocket (Intersection-Time Confluence)
Show Ore Pockets (Time Confluence)
Enables ore pocket discovery and rendering.
Intersection Window Forward (bars)
How far into the future intersections are considered.
Intersection Window Backward (bars)
How far into the past intersections are considered.
Cluster Radius (bars)
How close in time intersections must be to merge into a cluster.
Min Intersections per Cluster
Minimum cluster count required before a pocket is shown.
Max Pocket Markers
Limit how many pocket clusters are drawn.
07) Visual Controls
Show Gap Anchors
Displays the gap anchor dots for debugging.
Show Pivot Anchors
Displays pivot anchor dots for debugging.
5) How to use it (practical workflow)
Step A — Confirm anchor behavior
Turn on Show Gap Anchors.
Choose your Gap Mode.
Verify you are seeing anchors where you expect (displacement boundaries).
If anchors are sparse:
Reduce gap threshold (ticks) for candle-gap modes
Enable pivots to inject structure
Increase lookbackBars and maxAnchors so early anchors are not dropped
Step B — Get stable main shaft candidate discovery
Enable Include Pivot Anchors with a medium pivotLen.
Use Fit (scan widths) initially.
Increase Max Anchors / Direction (scan) so you’re not only using recent anchors.
Increase Max Anchor Spacing so macro pairs are eligible.
If you keep getting only local shafts:
That is usually because the candidate pool does not include enough old anchors, or the maxSpacing prevents long-span lines.
Step C — Tune scoring so the “whole-structure” shaft wins
If the script picks a small local channel instead of the macro channel:
Increase insideWeight relative to touchWeight (macro channels tend to contain longer structure even with fewer perfect “touches”)
Reduce widthPenalty, because macro channels may need to be wider to accommodate historical volatility
Increase lookbackBars and evalBars to make “whole-structure fit” matter
Step D — Drifts as secondary shafts
Once main shaft is good:
Increase Drifts per Direction
Validate that drifts represent meaningful alternate sub-shafts rather than noisy duplicates.
If drifts look too similar:
This is expected if many candidates differ only slightly; future refinements should diversify drift selection (see “what still needs done”).
Step E — Ore pockets interpretation
Ore pockets indicate time confluence of multiple rails.
Use them as:
“Time windows to watch”
Not as deterministic price levels
Tune:
clusterBars (cluster tightness)
minClusterSize (signal strength)
6) What still needs done (explicit backlog)
The macro “main mining shaft channel” spanning the entire market structure, and
Smaller shafts/drifts nested inside the macro structure.
To accomplish that, the current algorithm needs additional architecture. Concretely:
A) True multi-scale / hierarchical discovery (primary missing feature)
Right now: one pass, one lookback, one score objective.
Still Needed:
Macro pass: discover a primary shaft using a very long evaluation window and anchor set.
Micro pass(es): discover drifts/secondary shafts using:
residuals (distance from macro centerline),
or segmented time windows (regime partitions),
or anchor subsets constrained to local regions.
This is the single biggest reason we are not consistently getting the full-structure shaft.
B) Anchor retention strategy for macro detection
Right now:
anchors are FIFO capped and direction scanning uses “recent anchors only.”
To reliably find 10-year shafts we need:
an option to store/retain representative anchors across the entire history, not only the most recent ones.
Examples of necessary improvements:
“Stratified anchor sampling” across time (keep some old anchors even when maxAnchors is hit)
“Macro anchor bank” (separate storage for pivots or major gaps)
C) Candidate generation constraints must support macro lines
If we want a shaft spanning the whole structure:
maxSpacing must allow it
the candidate pool must contain anchors far apart in time
So the algorithm needs:
better selection of anchor pairs for long-span candidates (e.g., include earliest/oldest anchors + newest anchors deliberately, not accidentally)
D) Drift diversification
Right now drifts are “next best by score,” which often yields near-duplicates.
We want:
“diverse” secondary shafts:
enforce minimum angular difference,
enforce minimum offset difference,
or penalize candidates too similar to the already-selected shaft.
E) Width fitting logic for macro channels
Macro channels often require:
either a higher width cap,
or a different penalty profile.
Current width penalty is simple and can bias against macro channels.
Needed:
width penalty that scales by timescale or by total evaluated bars,
or separate macro/micro scoring.
F) Ore pocket semantics enhancement (optional but aligned)
Currently pockets are time intersections only.
If you want “pocket zones,” improvements could include:
projecting intersection price and drawing a zone box,
clustering in (time, price) space instead of only time,
adding “importance” weighting based on which lines intersect (macro line intersections weighted higher).
7) Known limitations (current version)
Heavy compute only runs on last bar (good for performance), but means:
changes in anchors/parameters can reselect rails abruptly
Candidate set is bounded; macro shaft can be missed if not in pool
Drift selection can be redundant
Ore pockets are time clusters, not price clusters
Quantitative Trend and Sector DashboardQuantitative Trend and Sector Dashboard
Overview
The QTS Dashboard is a visual market context tool that summarizes relative strength, benchmark comparison, volatility normalization, and sector participation in a compact on-chart display.
It is designed for analysis and situational awareness rather than trading signals or automated decisions.
What makes it different
Most relative strength tools compare symbols only to a broad index.
This dashboard automatically assigns a relevant sector or industry benchmark based on ticker membership, enabling like-for-like comparison with similar instruments.
The result is a multi-factor view of trend participation rather than a single metric.
Core components
• Benchmark Detection
Maps symbols to sector or industry ETFs to improve comparison relevance.
• Beta Normalization (252 bars)
Beta is calculated using covariance and variance to scale thresholds according to typical volatility.
• Dual Range Tracking
Measures distance from 52-week highs and lows to show position within the yearly cycle.
• Sector Participation Scan
Evaluates major SPDR sectors and lists those currently meeting configurable strength criteria.
• ATR Extension
Quantifies price distance from midpoint using ATR to highlight statistically extended moves.
Math summary
• Relative Spread = Benchmark %BelowHigh − Symbol %BelowHigh
• Beta = Covariance / Variance
• Adjusted Threshold = Base × Beta
• Extension = (Price − Midpoint) / ATR
All calculations use confirmed bars. No intentional repaint logic.
Status states
• Leader — stronger relative performance
• Neutral — in line with benchmark
• Lagging — weaker relative performance
• Extended — large volatility stretch
States describe context only.
How to use
• Compare Spread and Beta for relative positioning
• Monitor sector list for participation breadth
• Use extension values to gauge stretch conditions
• Adjust timeframe and thresholds to match your workflow
• Show, hide, or reposition the dashboard as needed
Example charts
Disclaimer
Educational and informational only.
This indicator does not provide buy or sell signals or investment advice.
Trading involves risk.
KI Power signaleManus Machiene Learning Beast – Indicator Description
Overview
Manus Machiene Learning Beast is an advanced TradingView indicator that combines Machine Learning (Lorentzian Classification) with trend, volatility, and market regime filters to generate high-quality long and short trade signals.
The indicator is designed for rule-based, disciplined trading and works especially well for set-and-forget, semi-automated, or fully automated execution workflows.
⸻
Core Concept
At its core, the indicator uses a machine-learning model based on a modified K-Nearest Neighbors (KNN) approach.
Instead of standard Euclidean distance, it applies Lorentzian distance, which:
• Reduces the impact of outliers
• Accounts for market distortions caused by volatility spikes and major events
• Produces more robust predictions in real market conditions
The model does not attempt to predict exact tops or bottoms.
Instead, it estimates the probable price direction over the next 4 bars.
⸻
Signal Logic
Long Signals
A long signal is generated when:
• The ML model predicts a positive directional bias
• All enabled filters are satisfied
• A new directional change is detected (non-repainting)
• Optional trend filters (EMA / SMA) confirm the direction
• Optional kernel regression confirms bullish momentum
📍 Displayed as a green label below the bar
Short Signals
A short signal is generated when:
• The ML model predicts a negative directional bias
• Filters confirm bearish conditions
• A new directional change occurs
• Trend and kernel filters align
📍 Displayed as a red label above the bar
⸻
Filters & Components
All filters are modular and can be enabled or disabled individually.
1. Volatility Filter
• Avoids trading during extremely low or chaotic volatility conditions
2. Regime Filter (Trend vs Range)
• Attempts to filter out sideways markets
• Especially important for ML-based systems
3. ADX Filter (Optional)
• Trades only when sufficient trend strength is present
4. EMA / SMA Trend Filters
• Classic trend confirmation (e.g., 200 EMA / 200 SMA)
• Ensures trades are aligned with the higher-timeframe trend
5. Kernel Regression (Nadaraya-Watson)
• Smooths price behavior
• Acts as a momentum and trend confirmation filter
• Can be used in standard or smoothed mode
⸻
Moving Average Overlays
For visual market context, the indicator includes optional overlays:
• ✅ SMA 200
• ✅ HMA 200
Both can be toggled via checkboxes and are visual aids only, unless explicitly enabled as filters.
⸻
Exit Logic
Two exit methods are available:
1. Fixed Exit
• Trades close after 4 bars
• Matches the ML model’s training horizon
2. Dynamic Exit
• Uses kernel regression and signal changes
• Designed to let profits run in strong trends
⚠️ Recommended only when no additional trend filters are active.
⸻
Backtesting & Trade Statistics
The indicator includes an on-chart statistics panel showing:
• Win rate
• Total trades
• Win/Loss ratio
• Early signal flips (useful for identifying choppy markets)
⚠️ This is intended for calibration and optimization only, not as a replacement for full strategy backtesting.
⸻
Typical Use Cases
• Swing trading (M15 – H4)
• Rule-based discretionary trading
• Set-and-forget trading
• TradingView alerts → MT4/MT5 → EA execution
• Prop-firm trading (e.g. FTMO), with proper risk management
⸻
Important Disclaimer
This indicator:
• ❌ does not guarantee profits
• ❌ is not a “holy grail”
• ✅ is a decision-support and structure tool
It performs best when:
• Combined with strict risk management (e.g. ATR-based stops)
• Used in trending or expanding markets
• Executed with discipline and consistency
Accurate Swing Trading + Support Resistance MTF (EN)Swing trading setup based on volume and support restistance. use buy main signal for large trend change and for swing trade use buy
Auto-DCF and Margin of Safety SetupDescription
Overview This indicator provides a dual-layered approach to stock valuation by combining a Discounted Cash Flow (DCF) model with Technical Momentum filters. It is designed for investors who seek to align fundamental "Fair Value" with high-probability technical entry points.
How It Works The script automates the valuation process by fetching real-time financial data directly from TradingView’s database.
Fundamental Valuation (DCF):
FCF Projections: It retrieves Free Cash Flow (TTM) and Total Shares Outstanding to calculate FCF per share.
Growth & Discounting: It projects FCF forward for 10 years based on your "Expected Annual Growth Rate" and discounts those values back to the present using the "Discount Rate" (WACC).
Terminal Value: A terminal value is calculated using a exit multiple (P/FCF) at Year 10 to account for the company's value beyond the projection period.
Intrinsic Value: The sum of all discounted cash flows and the terminal value represents the Intrinsic (Fair) Value, plotted as gray circles.
Margin of Safety (MoS):
A "Buy Limit" line (green) is plotted at a user-defined percentage below the Intrinsic Value. This represents the "Margin of Safety" popularized by Benjamin Graham to account for errors in estimation.
Technical Filters (The "Buy Setup"):
A visual Buy Zone appears only when three conditions align:
Value: Price is trading below the Margin of Safety.
Momentum: The RSI is in "Oversold" territory (default < 35).
Price Action: The stock is in a "Deep Pullback" (defined as a 15% drop from its 50-bar high).
How to Use
Settings: You must adjust the Growth Rate and Discount Rate based on the specific company’s historical performance and risk profile.
Visuals: When a setup occurs, the script draws a green box, a technical Stop Loss (based on a buffer below the low), and a Tech Target (a 50% retracement of the recent drop).
Limitations: This script requires request.financial data. It is intended for Stocks only. If no financial data is available for a ticker (e.g., Crypto or Forex), an error label will appear.
Disclaimer This script is for educational purposes only and does not constitute financial advice. DCF models are highly sensitive to input variables; small changes in growth or discount rates can significantly alter the Fair Value.
Herramienta Risk:Reward Pro - MECTRADEROverview: This is an advanced Risk/Reward management tool specifically designed for traders who execute based on Ticks (perfect for Futures like NQ/ES, Gold, or Forex). The main focus of this script is visual clarity and precision.
Key Features:
✅ Clean Visuals (No Dimming): Built using linefill technology with a 92% transparency rate. This ensures the price action remains vibrant and clear. Unlike standard boxes, this tool does not darken or "muddy" the candles when the price enters the zone.
✅ Tick-Based Calculation: Define your Stop Loss and up to 5 Take Profit levels using Ticks for maximum precision.
✅ Toggleable TP Levels: You can enable or disable TP1 through TP5 individually to match your scaling-out strategy.
✅ Dynamic Labels: Automatically displays the level name (Entry, SL, TP) along with the exact price value on the right-side scale.
✅ Long/Short Toggle: Switch between buy and sell setups instantly with a single drop-down selection.
How to use:
Add the script to your chart.
Open Settings and choose your Mode (LONG or SHORT).
Use the Precision Crosshair icon next to "Price Entry" to pick your execution level directly from the chart.
Adjust your Stop Loss and Profit Ticks.
The tool will project your risk zones professionally without interfering with your technical analysis.
Stochastic Momentum Index - SMI🎯 Overview
This is a Stochastic Momentum Index (SMI) indicator that combines stochastic momentum with moving average smoothing to identify trend direction and momentum strength in financial markets. The SMI measures where the current price closes relative to the midpoint of its recent trading range, providing enhanced sensitivity to price momentum.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.stoch() function
📈 Range-Based: Compares closing price to high-low range over specified period
🎯 Scale: Oscillates between 0-100 with 50 as neutral midpoint
2. 🎛️ Configuration Parameters
📏 SMI Length: Default 101 periods (long-term smoothing)
📊 Source Price: Customizable (default = Close)
📈 MA Length: 30-period moving average applied to SMI
🔄 MA Type: 6 options (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes (Classic, Modern, Robust, Accented, Monochrome)
📈 Signal Interpretation:
🟢 BULLISH: SMI > 50 (price closing in upper half of range)
🔴 BEARISH: SMI < 50 (price closing in lower half of range)
🎯 Neutral Zone: Around 50 indicates balanced momentum
👁️ Visual Features
📈 Signal Line (MA):
Yellow moving average of SMI
Smooths momentum for clearer trend identification
🎯 Reference Lines:
50-level midpoint (white dashed line)
0-100 scale boundaries
🎨 Fill Zones:
🟢 Upper Zone : Bullish momentum area
🔴 Lower Zone : Bearish momentum area
Gradient fills enhance visual clarity
📋 Dashboard Display:
Content: "⬆️ Bullish" or "⬇️ Bearish" indicator
Purpose: Quick market bias assessment
⚡ Trading Applications
📈 Primary Uses:
🎯 Trend Identification
SMI > 50 = Uptrend momentum
SMI < 50 = Downtrend momentum
📊 Momentum Strength
Values near 100 = Strong bullish momentum
Values near 0 = Strong bearish momentum
Values around 50 = Neutral/consolidation
🔄 Mean Reversion
Extreme readings (near 0 or 100) may indicate overbought/oversold conditions
⏰ Timeframe Compatibility:
📅 Long-term: 101-period default suits swing/position trading
📊 Medium-term: Adjust lengths for daily/weekly analysis
⚡ Short-term: Reduce periods for intraday trading
🎨 Customization Options
🔄 Moving Average Types:
📉 EMA: Exponential - responsive to recent changes
📊 SMA: Simple - equal weight to all periods
📈 RMA: Relative - TradingView's special moving average
⚖️ WMA: Weighted - emphasizes recent data
💎 VWMA: Volume-weighted - incorporates volume
🚀 HMA: Hull - reduces lag significantly
🎨 Visual Themes:
🎨 Classic: Green/Red (traditional trading colors)
🚀 Modern: Cyan/Purple (modern aesthetic)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when SMI crosses above 50
🔴 SHORT Alert: Triggers when SMI crosses below 50
📧 Format: Includes ticker symbol for easy identification
⚡ Key Advantages
✅ Strengths:
🎯 Clear Signals: Simple >50/<50 threshold for easy interpretation
📊 Range-Bound: Always oscillates 0-100 (no divergence issues)
👁️ Visual Clarity: Color-coded zones make analysis intuitive
🔄 Customizable: Multiple MA types and visual themes
📱 Professional: Clean, organized display suitable for all traders
AVSL - XAUUSD M1 OptimizedCredit to Rafka.
This script is optimized for XAUUSDT.P 1-minute trading based on AVSL Indicator from Rafka.
EMA 9 & 26 Crossover By SN TraderEMA 9 & 26 Crossover – Trend & Momentum Indicator For Scalpers
The EMA 9 & EMA 26 Crossover Indicator is a simple yet powerful trend-following tool designed to identify high-probability buy and sell signals based on short-term and medium-term momentum shifts.
This indicator is widely used by scalpers, intraday traders, and swing traders across Forex, Crypto, Stocks, Indices, and Commodities.
🔹 Indicator Logic
EMA 9 (Green) → Fast momentum
EMA 26 (Red) → Trend direction
BUY Signal
When EMA 9 crosses above EMA 26
Indicates bullish momentum and possible trend reversal or continuation
SELL Signal
When EMA 9 crosses below EMA 26
Indicates bearish momentum and potential downside movement
Clear BUY / SELL labels are plotted directly on the chart for easy visual confirmation.
📈 How to Trade Using This Indicator
✔ Enter BUY trades after EMA 9 crosses above EMA 26
✔ Enter SELL trades after EMA 9 crosses below EMA 26
✔ Use higher timeframes (15m, 1H, 4H) for stronger signals
✔ Combine with RSI, MACD, UT Bot, VWAP, Support & Resistance for confirmation
✅ Best Use Cases
Trend reversal identification
Momentum-based entries
Scalping & intraday strategies
Swing trading trend confirmation
Works on all timeframes
⚙️ Features
✔ Lightweight & fast
✔ Beginner-friendly
✔ Non-repainting signals
✔ Pine Script v6 compatible
✔ Clean visual design
⚠️ Disclaimer
This indicator is for educational purposes only and should not be considered financial advice. Always apply proper risk management and confirm signals with additional analysis.
Pivots Double Top/Bottom - NancyPsTitsOriginal script taken and converted from HeWhoMustNotBeNamed excellent original script. converted from pine v4 to pine v6 and added alerts for LL, LH, HH, HL for any time frame
// Modified to include HH/HL/LH/LL alerts with timeframe selection
Shadow Mode Simulator ELITE🎮 SHADOW MODE SIMULATOR — FEATURE GUIDE
Think of this as GTA with rules instead of random driving.
🏆 1. A / A+ SETUP GRADING (QUALITY CONTROL)
Every entry is graded automatically:
✅ A+ Setup (best XP)
Must have:
• HTF trend aligned
• Liquidity sweep OR perfect pullback
• High confidence (4–5)
✅ A Setup (acceptable)
Must have:
• HTF trend aligned
• ONE valid strategy condition
⚠️ B Setup (allowed but low reward)
Everything else
❌ Invalid
Bad RR or no strategy → XP penalty
👉 This trains selectivity (most traders fail here)
🗺️ 2. AUTO SESSION HEATMAP
Background turns green during your trading session.
This teaches:
✔ When liquidity is real
✔ When NOT to trade
No more random midnight scalping.
😵 3. TILT DETECTOR
Triggers when:
• 2 losses in a row
• Or cooldown active
Shows:
⚠️ TILT WARNING
This is your psychology guardian.
(Pros stop trading here. Retail blows accounts here.)
🧠 4. STRATEGY-SPECIFIC VALIDATORS
You can toggle:
✅ Liquidity sweep trades
✅ Trend pullback trades
If you enter without one → ❌ punished.
This builds:
➡️ mechanical discipline
➡️ no random clicking
⏳ 5. EMOTIONAL COOLDOWN SYSTEM
After a loss:
• You are “locked” for X candles
• No rushing back in
This rewires revenge trading.
📊 6. LIVE PERFORMANCE ENGINE
Tracks:
• XP
• Level
• Win rate
• Win/loss streak
• Trade count
• Tilt state
• HTF bias
• Setup grade
You level up by:
👉 discipline — not profit
📈 LEVEL MEANING (IMPORTANT)
Level Skill State
1–2 Impulsive
3–4 Learning patience
5–6 Controlled
7–8 Consistent
9+ Pro-ready
You should NOT trade real money seriously before level 7.
🧪 FULL LIVE TUTORIAL — HOW TO USE IT
STEP 1 — SETUP
Open TradingView
Open chart you scalp (NIFTY/BTC/etc)
Add the Shadow Mode indicator
Set:
• Session time
• HTF timeframe
• Max trades
STEP 2 — MARKET OPENS
Your job first 10–15 mins:
❌ Do nothing
👀 Just watch structure
(This alone fixes overtrading)
STEP 3 — WHEN YOU SEE A SETUP
Ask:
✔ HTF aligned?
✔ Liquidity sweep or pullback?
✔ RR good?
If yes:
👉 Click 📥 ENTRY
You’ll see:
• Grade (A / A+)
• Entry marker
STEP 4 — MANAGE LIKE A ROBOT
Do NOT interfere.
Let:
• TP
• SL
• or invalidation happen
STEP 5 — EXIT
Click:
📤 EXIT when trade is done
System:
• Awards XP
• Updates streaks
• Tracks win rate
STEP 6 — IF YOU MESSED UP
Click:
❌ RULE BREAK
(Takes XP + activates cooldown)
This hurts — on purpose.
📆 PERFECT TRAINING DAY LOOKS LIKE:
✅ 1–2 A/A+ trades
✅ maybe 1 loss
✅ stop after cooldown
✅ XP positive
Even if P&L is flat.
That’s winning.
🚫 COMMON MISTAKES (DON’T DO THESE)
❌ Clicking entry emotionally
❌ Ignoring HTF bias
❌ Overtrading
❌ Chasing candles
❌ Skipping cooldown
The simulator is designed to punish these.
🧠 WHY THIS WORKS (SCIENCE SIDE)
This trains:
• Pattern recognition
• impulse control
• delayed gratification
• process over money
Same principles used in pilot & athlete simulators.
🎯 OPTIONAL HARD MODE (WHEN READY)
• Max 1 trade/day
• Only A+ setups
• Higher RR minimum
This accelerates mastery.
Borna High/Low📌 Borna High/Low
Borna High/Low is a clean and precise indicator that automatically plots the Asian session High and Low levels on GER40 (DAX) directly on the price chart.
It is designed for traders who use the Asian range as a liquidity zone and as a key reference for Frankfurt and London open trading strategies.
🔍 What this indicator does
Automatically calculates Asia High and Asia Low
Draws levels directly on the price chart (overlay)
Optional line extension to the right or both sides
Optional mid-line between High and Low
Session-end labels for clear visual reference
Stable plotting that does not shift when zooming
⏰ Session Settings
Default Asian session: 00:00 – 07:00
Fully customizable time window (e.g. 00:30 – 07:00)
Timezone support (recommended: Europe/Berlin for GER40)
⚙️ Customization
Line style: Solid / Dashed / Dotted
Line width
Extend mode: Right / Both / None
Toggle mid-line
Toggle session labels
📈 How to use
Use Asia High / Low as:
Liquidity targets
Range boundaries for London breakouts
Premium / Discount reference levels
Ideal for scalping and intraday trading on GER40
Relative Strength Table (Spring)This indicator helps traders quickly understand the relative strength of different groups and different stocks.






















