Price Heat Meter [ChartPrime]⯁ OVERVIEW
Price Heat Meter visualizes where price sits inside its recent range and turns that into an intuitive “temperature” read. Using rolling extremes, candles fade from ❄️ aqua (cold) near the lower bound to 🔥 red (hot) near the upper bound. The tool also trails recent extreme levels, tags unusually persistent extremes with a % “heat” label, and shows a bottom gauge (0–100%) with a live arrow so you can read market heat at a glance.
⯁ KEY FEATURES
Rolling Heat Map (0–100%):
The script measures where the close sits between the current Lowest Low and Highest High over the chosen Length (default 50).
Candles use a two-stage gradient: aqua → yellow (0–50%), then yellow → red (50–100%). This makes “how stretched are we?” instantly visible.
Dynamic Extremes with Time Decay:
When a new rolling High or Low is set, the script starts a faint horizontal trail at that price. Each bar that passes without a new extreme increases a counter; the line’s color gradually fades over time and fully disappears after ~100 bars, keeping the chart clean.
Persistent-Extreme Tags (Reversal Hints):
If an extreme persists for 40 bars (i.e., price hasn’t reclaimed or surpassed it), the tool stamps the original extreme pivot with its recorded Heat% at the moment the extreme formed.
• Upper extremes print a red % label (possible exhaustion/resistance context).
• Lower extremes print an aqua % label (possible exhaustion/support context).
Bottom Heat Gauge (0–100% Scale):
A compact, gradient bar renders at the bottom center showing the current Heat% with an arrow/label. ❄️ anchors the left (0%), 🔥 anchors the right (100%). The arrow adopts the same candle heat color for consistency.
Minimal Inputs, Clear Theme:
• Length (lookback window for H/L)
• Heat Color set (Cold / Mid / Hot)
The defaults give a balanced, legible gradient on most assets/timeframes.
Signal Hygiene by Design:
The meter doesn’t “call” reversals. Instead, it contextualizes price within its range and highlights the aging of extremes. That keeps it robust across regimes and assets, and ideal as a confluence layer with your existing triggers.
⯁ HOW IT WORKS (UNDER THE HOOD)
Range Model:
H = Highest(High, Length), L = Lowest(Low, Length). Heat% = 100 × (Close − L) / (H − L).
Extreme Tracking & Fade:
When High == H , we record/update the current upper extreme; same for Low == L on the lower side. If the extreme doesn’t change on the next bar, a counter increments and the plotted line’s opacity shifts along a 0→100 fade scale (visual decay).
40-Bar Persistence Labels:
On the bar after the extreme forms, the code stores the bar_index and the contemporaneous Heat% . If the extreme survives 40 bars, it places a % label at the original pivot price and index—flagging levels that were meaningfully “tested by time.”
Unified Color Logic:
Both candles and the gauge use the same two-stage gradient (Cold→Mid, then Mid→Hot), so your eye reads “heat” consistently across all elements.
⯁ USAGE
Treat >80% as “hot” and <20% as “cold” context; combine with your trigger (e.g., structure, OB, div, breakouts) instead of acting on heat alone.
Watch persistent extreme labels (40-bar marks) as reference zones for reaction or liquidity grabs.
Use the fading extreme lines as a memory map of where price last stretched—levels that slowly matter less as they decay.
Tighten Length for intraday sensitivity or increase it for swing stability.
⯁ WHY IT’S UNIQUE
Rather than another oscillator, Price Heat Meter translates simple market geometry (rolling extremes) into a readable temperature layer with time-aware extremes and a synchronized gauge . You get a continuously updated sense of stretch, persistence, and potential reversal context—without clutter or overfitting.
Trend
Long Elite Squeeze (LES) — H.H 22 Lindsay (AI)LES (Long Elite Squeeze)
LES (Long Elite Squeeze) is a trading framework designed to capture the highest-probability long setups. It’s not just another signal script — it’s a structured system built to filter noise, manage risk, and keep you aligned with real momentum.
🔹 Core Logic
Breakout Confirmation – Ensures moves have structure, not just random spikes.
Relative Volume (RVOL) – Confirms participation and fuel behind the move.
RSI Alignment – Avoids overextended traps and fakeouts.
Squeeze Momentum – The backbone of LES. Signals fire only after a defined squeeze pattern shift (6+ dark green bars followed by a light green bar).
🔹 Trade Management Built In
Automated Sell Signals – Trigger on either:
2 consecutive dark green bars on Squeeze Momentum
WaveTrend cross down
(only valid after a Buy signal — no random shorts)
HUD Entry Checklist – Live conditions shown on chart.
Status Tracker HUD – Flips between “Waiting for Entry” and “In Trade” for clear context.
🔹 Flexibility
3 switchable squeeze versions (V1, V2, V3) for different market conditions.
Customizable EMA & ATR settings (with color options).
Session-aware logic — filter signals to prime trading hours.
🔹 Blueprint & Credits
LES is a fusion of proven concepts, standing on the shoulders of respected creators:
-Squeeze Momentum – LazyBear
-WaveTrend Oscillator – LazyBear
-Relative Volume – LonesomeTheBlue
Breakout/structural logic – refined from classic frameworks
Their work laid the foundation — LES expands and integrates them into a complete trading system.
⚡ Why LES Stands Out
LES wasn’t coded overnight. It’s the result of countless hours of live testing, rebuilding, and refining. Every feature earned its place by proving value in real trading, not theory.
LES is more than an indicator. It’s a disciplined framework — crafted to turn chaos into structure, randomness into probability, and noise into clarity.
⚠️ Disclaimer: This is a trading framework, not financial advice. Performance depends on trader discipline, risk management, and market conditions.
Retail Herd Index (RSI + MACD + Stoch) [mqsxn]The Retail Herd Index is a sentiment-style indicator that tracks how many of the “classic retail indicators”: RSI, MACD, and Stochastic are screaming the same thing at once.
Instead of following each tool separately, this script unifies them into a single index score ranging from strongly bearish to strongly bullish. The more they agree, the stronger the signal.
This gives you an immediate snapshot of when retail-favorite signals are aligned (high probability of “herd” behavior), versus when they’re mixed and uncertain.
-----
🔎 How It Works
RSI contributes bullish when it’s oversold (and optionally rising), bearish when it’s overbought (and optionally falling).
MACD contributes bullish when MACD is above Signal (and optionally histogram > 0), bearish when MACD is below Signal (and optionally histogram < 0).
Stochastic contributes bullish on a %K > %D cross in the oversold zone, bearish on a %K < %D cross in the overbought zone.
Each module can be weighted individually, disabled, or tuned with custom thresholds. The total is combined into the Herd Index, plotted as columns above/below zero. Extreme zones can trigger bar coloring, labels, and alerts.
-----
⚙️ Inputs & Settings
Modules
Use RSI / Use MACD / Use Stochastic → Toggle each component on or off.
RSI
RSI Length → Period length for RSI calculation.
RSI Overbought / Oversold → Thresholds that trigger bearish/bullish conditions.
RSI Slope Confirmation → Requires RSI to be rising when oversold or falling when overbought.
RSI Source → Input price source for RSI.
MACD
MACD Fast / Slow / Signal → Standard MACD settings.
Require MACD hist above/below zero → Adds an extra filter: bullish only if histogram > 0, bearish only if histogram < 0.
Stochastic
%K Length / Smoothing / %D Length → Standard stochastic parameters.
Overbought / Oversold → Band levels for extreme signals.
Only count crosses inside bands → Restricts signals to crosses that occur fully inside the OB/OS zones.
Weights
Weight: RSI / MACD / Stoch → Adjust each module’s importance. Setting a weight to 0 disables its contribution.
Display
Color Bars By Herd Index → Colors candles when index is extreme.
Show Extremes Labels → Labels bars when the Herd Index reaches extreme bullish or bearish.
Extreme Threshold → Absolute value at which the index is considered “extreme” (default = 2).
(LES/SES) Compliment Net Volume(LES/SES) Compliment Net Volume
(LES/SES) Compliment Net Volume is a volume-based confirmation tool designed to show whether buyers or sellers are truly in control behind the candles. It acts as a compliment to the Long Elite Squeeze (LES) and Short Elite Squeeze (SES) frameworks, giving traders a clearer view of momentum strength.
Note! {Short Elite Squeeze (SES) Will be released in the Future}
-Designed to take shorts opposite of the long trades from LES
🔹 Core Logic
Net Volume Calculation – Positive volume when price closes higher, negative when price closes lower.
Cumulative Smoothing – Uses a rolling SMA of cumulative differences to remove noise.
Color Coding –
Green → Buyer dominance
Red → Seller dominance
Gray → Neutral pressure
🔹 How to Use
Above zero (green) → Buyers dominate → supports long setups (LES).
Below zero (red) → Sellers dominate → supports short setups (SES).
Flat/gray → No clear pressure → signals caution or chop.
This makes it easier to confirm when market participation aligns with a potential entry or exit.
🔹 Credit
The Compliment Net Volume was developed by Hunter Hammond (Elite x FineFir) as part of the LES/SES system.
The concept builds on classic Net Volume and cumulative volume analysis principles shared by the TradingView community, but has been uniquely adapted into the LES/SES framework.
⚠️ Disclaimer: This is a framework tool, not financial advice. Use with proper risk management.
Ichimoku Cloud Strategy (Pro Edition) Catch the Trend Before the Crowd Does.
The Ichimoku Cloud Strategy (Pro Edition) is a powerful, all-in-one trading tool designed for traders who want to capitalize on clear trend breakouts using one of the most time-tested systems in technical analysis.
This script combines cloud-based price action with classic Ichimoku logic to identify high-probability entries in trending markets — whether you're trading crypto, forex, stocks, or indices.
✅ Features:
✔️ Full Ichimoku system: Tenkan-sen, Kijun-sen, Senkou Spans A & B, and Chikou Span.
✔️ Strategy logic for bullish and bearish breakouts based on cloud position and line crossovers.
✔️ Clean, shaded Kumo cloud for visual trend zones.
✔️ Built-in alerts for real-time automation (Webhook-ready).
🎯 Strategy Logic:
Long Entry: Price above cloud + Tenkan-sen > Kijun-sen
Short Entry: Price below cloud + Tenkan-sen < Kijun-sen
Use it for trend following, breakout confirmation, or as a foundation for your own custom Ichimoku-based strategy.
Accumulation / Manipulation / Distribution [mqsxn]Spot, box, and label classic A→M→D market structure in real time.
This tool objectively classifies price action into Accumulation, Manipulation, and Distribution phases, draws a box around each qualifying segment, and (optionally) only reveals clean, direct A→M→D triplets. It works on any symbol and timeframe, and supports nested triplets (smaller AMD sequences appearing inside larger ones).
Accumulation (A) — Compression bars: range is small vs ATR and body is relatively small.
Manipulation (M) — Stop-run + rejection: takes out a prior swing (high or low), shows a long wick, and (optionally) closes back inside the prior range.
Distribution (D) — Expansion + drive: range expands vs ATR, close is near an extreme and aligns with EMA slope.
Contiguous bars with the same phase form a segment. Each finalized segment becomes a box spanning that segment’s high/low and first/last bars. Segments below your minimum bar thresholds are discarded (no box). Labels are plain text at the top-center of each visible box; label color matches the box fill, and you can nudge it upward by a configurable tick offset.
When three consecutive segments form A→M→D, the indicator can (optionally) draw an outline around their combined span and, if you enable the filter, hide everything that isn’t part of such a direct triplet (no border, no label on non-triplet segments).
Key features
- Objective AMD detection (ATR, wick fraction, EMA slope, swing breaks)
- Minimum bars per phase (default 3/3/3) to avoid micro noise
- Only show direct A→M→D filter to keep charts clean
- Triplet outline box (configurable history length)
- Top-center labels (plain text, no background; color = box fill; configurable vertical offset)
- Optional A/M/D dots at the top of the chart for quick bar-by-bar debugging
- Works on any timeframe; supports nested AMD sequences
Inputs
Core
- ATR Lookback (14)
- Trend EMA (21)
- Swing Ref (10)
Accumulation
- Range < ATR × (0.55)
- Body / Range ≤ (0.45)
Manipulation
- Min Wick Fraction (0.6)
- Close Back Inside Prior Range (On)
Distribution
- Range ≥ ATR × (1.2)
- Close near extreme ≤ (0.25)
Minimum Candles per Section
- Min bars for Accumulation (3)
- Min bars for Manipulation (3)
- Min bars for Distribution (3)
Visualization
- Phase fill colors (A / M up / M down / D up / D down)
- Box Border color
- Extend boxes right (bars)
- Show Phase Labels (On)
- Label Font Size
- Label Offset (ticks above box top)
Filters
- Only show boxes that are part of a direct A→M→D sequence (On by default)
AMD Triplet Outline
- Draw outline (On)
- Outline Border color
- Keep last N outlines (20)
Debug / Markers
- Show A/M/D dots at top (Off by default)
Advanced
- Priority: Manipulation overrides others (On)
- Carry last phase through “None” bars (On)
Follow @mqsxn for updates on this indicator, and find my strategies and more in my paid Discord: whop.com
Buy/Sell Signals - Confluence Engine v1 [mqsxn]The Confluence Signal Engine is a multi-factor indicator designed to highlight high-probability BUY and SELL opportunities.
Instead of relying on a single tool, this script combines trend, momentum, structure, volatility, volume, and higher timeframe agreement into a unified scoring system. Signals are only triggered when enough conditions align, helping filter out weak trades.
The indicator is flexible: you can adjust the importance (weight) of each module, change thresholds, or even simplify with Easy Mode for more frequent signals. Labels and background cues make entries impossible to miss, while optional risk/target lines help visualize potential exits.
This tool is not financial advice. Always backtest and combine with your own strategy and risk management.
⚙️ How it Works
- Trend Module: Checks EMA fast/slow alignment and price relative to EMAs.
- Momentum Module: RSI bias (above/below configurable thresholds).
- Structure Module: Break of structure using highest high / lowest low lookback.
- Volatility Module: Expansion when Bollinger Band width rises above average.
- Volume Module: Detects spikes above volume SMA.
- Higher Timeframe Filter: Optional trend confirmation from a larger timeframe.
- Filters: Session time, ATR rising condition, and cooldown between signals.
- Signals: Appear as giant BUY/SELL labels (Cross, Raw, Filtered) plus optional small labels.
- Risk Lines: Draws stoploss at swing + configurable risk:reward target lines.
📊 Inputs & Settings
Timeframes
- Use Higher Timeframe Filter: Enable confirmation from a larger timeframe.
- Higher Timeframe: Choose the timeframe (set to “Chart” to use the active chart).
Core Settings
- EMA Fast/Slow: Moving averages for trend direction.
- RSI Length: Period for RSI calculation.
- RSI Long/Short Thresholds: Define bullish/bearish momentum bias.
- Structure Lookback: Bars to check for breakouts/breakdowns.
- Bollinger Band Length & Multiplier: For volatility expansion.
- Volume SMA Length: Period for average volume.
- Volume Spike Factor: Multiplier for detecting spikes.
- Cooldown (bars): Minimum bars between filtered signals.
- Min Score to Signal: How strong the confluence must be before signaling.
- Module Weights (0 = ignore)
- Trend: EMA Stack
- HTF Trend Agreement
- Momentum: RSI Bias
- Structure: Breakout/Breakdown
- Volatility: Expansion from Squeeze
- Volume: Spike vs SMA
Filters
- Filter: Only when ATR Rising: Require ATR uptrend.
- ATR Length: Period for ATR.
- Filter: Session Time Only: Restrict to intraday session.
- Session: Default is 09:30–16:00 (U.S. equities).
Visuals & Alerts
- Color Bars by Bias: Paints candles by trend bias.
- Background Stripe for HTF Bias: Subtle background shading.
- Show Small Labels: Compact labels near bars.
- Show CROSS Labels: Signals when score crosses threshold.
- Show FILTERED Labels: Signals with all filters + cooldown (main mode).
- Show RAW Labels: Simple threshold signals (no filters).
Risk Lines
- Show Risk/Target Lines: Draw stop at recent swing + 1R/2R target lines.
- Stop at Recent Swing (bars): Swing lookback for SL.
- Target RR #1 & #2: Risk:Reward multiples to project.
Debug
- Easy Mode: Lower thresholds and disable filters for more frequent testing signals.
- Show Debug Plots: Overlay raw scores vs threshold.
✅ Best Practices
Start with Easy Mode to confirm labels plot, then raise thresholds and re-enable filters.
Use higher thresholds + HTF agreement for cleaner, rarer signals.
Adjust weights to prioritize the modules you trust most.
Combine with your own support/resistance, order flow, or risk management.
⚠️ Disclaimer: This script is for educational purposes only. It does not guarantee profitability. Always test on demo accounts or paper trading before applying to live capital.
Following me @mqsxn on TradingView for more, and gain access to the source code through my paid Discord (7 day free trial): whop.com
HyperTrend - [SuperTrend + More Confluences Engine] [mqsxn]HyperTrend is a next-generation trend detection and confluence engine that combines multiple proven methods into one powerful tool. Instead of relying on a single indicator, HyperTrend creates a weighted "confidence score" that shows whether the market is favoring UP or DOWN direction.
🔎 How it works
HyperTrend blends together several modules:
- Trend Bias — EMA stack, SuperTrend, Donchian slope, structural breakouts (BOS).
- Momentum — RSI pivot vs 50, MACD histogram sign, ADX (+DI/−DI).
- Volume Flow — Chaikin Money Flow (CMF), On-Balance Volume (OBV) slope.
- Volatility Regime — ATR expansion and Bollinger Band width.
- Multi-Timeframe Alignment — Optional higher-timeframe confirmation (e.g., 1H, 4H, Daily).
Each module can be weighted in importance, allowing you to fine-tune how much each factor contributes to the directional consensus.
📊 Features
- Confidence Scores — See UP vs DOWN percentages (0–100) in real time.
- Background Heatmap — Market bias shading (strong uptrend / strong downtrend).
- Confluence Table — Easy breakdown of how each module is voting.
- Visual Signals — Arrows on trend shifts, SuperTrend trail for context.
- Alerts — Turned UP / Turned DOWN / Strong Trend alerts ready to go.
⚡ How to Use
- Directional Filter — Use HyperTrend to confirm whether the bias is bullish or bearish before taking trades.
- Confidence Levels — Strong UP or DOWN signals suggest higher conviction setups, while weaker readings mean caution.
- Multi-Timeframe Confluence — Enable HTF mode to only confirm direction when the higher timeframe agrees.
🚀 Why HyperTrend?
Most tools only tell you one thing — HyperTrend merges multiple perspectives into one consensus engine. The result is a simple but powerful answer: Is the market leaning UP or DOWN?
📩 Follow @mqsxn to get notified when new tools and strategies drop.
🔔 Don’t forget to set alerts for "Turned UP" and "Turned DOWN" so you never miss a shift.
Gain access to my paid Discord for access to the full source code (paid users only) (7 day free trial): whop.com
Better Pivot Points [LuminoAlgo]Overview
The Better Pivot Points indicator is an advanced trend analysis tool that combines Supertrend methodology with automated pivot point identification and zigzag visualization. This indicator helps traders identify significant price turning points and visualize market structure through dynamic pivot labeling and connecting lines.
How It Works
This indicator utilizes a Supertrend-based algorithm to detect meaningful pivot points in price action. Unlike traditional pivot point indicators that rely on fixed time periods, this tool dynamically identifies pivots based on trend changes, providing more relevant and timely signals.
The algorithm tracks trend changes using ATR-based Supertrend crossovers to determine when significant highs and lows have formed. When a trend reversal is detected, the indicator marks the pivot point and draws connecting lines to visualize price flow and market structure progression.
Key Features
• Dynamic Pivot Detection: Automatically identifies high and low pivot points using Supertrend crossovers
• Market Structure Labeling: Labels pivots as HH (Higher High), LH (Lower High), HL (Higher Low), or LL (Lower Low)
• Zigzag Visualization: Connects pivot points with customizable lines to clearly show price flow and market structure
• Color-Coded Analysis: Uses distinct colors to indicate bullish trends (green), bearish trends (red), and neutral conditions (yellow)
• Customizable Parameters: Adjustable ATR period, factor, line width, and line style
Input Settings
• ATR Length: Controls the sensitivity of the Supertrend calculation (default: 21)
• Factor: Multiplier for the ATR-based Supertrend bands (default: 2.0)
• Zigzag Line Width: Customize the thickness of connecting lines (1-4)
• Zigzag Line Style: Choose between Solid, Dashed, or Dotted line styles
What Makes This Original
This indicator combines several analytical concepts into a cohesive tool that differentiates it from standard pivot point indicators:
1. Uses Supertrend crossovers as the trigger for pivot detection rather than traditional high/low lookback periods
2. Automatically categorizes market structure using HH/LH/HL/LL labeling system based on pivot relationships
3. Provides real-time zigzag visualization with intelligent color coding that reflects trend direction
4. Integrates trend direction analysis with structural pivot identification in a single comprehensive tool
The underlying calculations use custom logic for tracking trend states, validating pivot points, and determining appropriate color coding based on market structure analysis.
How to Use
1. Trend Identification: Green lines indicate bullish market structure, red lines show bearish structure, yellow indicates transitional periods
2. Support/Resistance: Pivot points often act as future support and resistance levels for price action
3. Market Structure Analysis: HH and HL patterns suggest uptrends, while LH and LL patterns indicate downtrends
4. Entry/Exit Planning: Use pivot points and trend changes to plan potential trade entries and exits
Important Limitations and Warnings
• This indicator is a technical analysis tool and should not be used as the sole basis for trading decisions
• Pivot points are identified after price moves occur, meaning this indicator has inherent lag and cannot predict future pivots
• False signals can occur during ranging or choppy market conditions where trends are unclear
• Past performance of any indicator does not guarantee future results or trading success
• The indicator works best in clearly trending markets and may produce less reliable signals in sideways price action
• This tool requires interpretation and should be combined with other forms of analysis
• Always use proper risk management and position sizing strategies when trading
Why This Script Is Protected
This indicator uses proprietary algorithms for pivot detection timing, trend state management, and market structure analysis that represent original research and development. The specific logic for pivot validation, color-coding methodology, and structural relationship calculations contains unique approaches that differentiate it from standard pivot point indicators available in the public library.
Disclaimer
This indicator is for educational and analysis purposes only and does not constitute investment advice. Trading involves substantial risk and is not suitable for all investors. Past results are not indicative of future performance. The future is fundamentally unknowable and past results in no way guarantee future performance. Always conduct your own research and consider your risk tolerance before making any trading decisions.
Ichimoku HorizonIchimoku Horizon – Multi-Timeframe Analysis
A multi-timeframe Ichimoku faithful to Hosoda, with authentic real-time calculations.
Ichimoku Horizon is an indicator based on the original method developed by Goichi Hosoda in the 1930s. It strictly respects the authentic formulas and prioritizes mathematical fidelity.
Key Features
Intelligent Multi-Timeframe
Native chart: Ichimoku from your trading timeframe
3 higher timeframes: Daily (1D), Weekly (1W), Monthly (1M) by default
Automatic projection: only higher timeframes relative to the chart are displayed
Precise offsets: displacement adapted to each timeframe
Guaranteed Authenticity
Hosoda’s original formulas fully respected
lookahead_off exclusively: lines calculated in real time with the current candle
Traditional displacement: 26 periods for cloud projection and Chikou shift
Why lookahead_off?
lookahead_off is the calculation mode that respects Hosoda’s logic:
Tenkan, Kijun, SSA and SSB all include the current candle and move in real time.
Chikou is the only exception: shifted 26 periods but calculated only with confirmed closes.
This way, what you see always matches the actual market as it is forming.
What is the no repaint approach?
A no repaint indicator displays values exactly as they exist in the present moment:
Lines update in real time during the formation of a candle.
Once the candle closes, they remain permanently fixed.
This ensures that the plots reflect the true construction of the market.
Main Parameters
Tenkan: 9 periods (short term)
Kijun: 26 periods (medium term)
SSB: 52 periods (long term)
Displacement: 26 periods (+26 for the cloud, −26 for the Chikou)
Timeframe Selection
TF1: Daily (structure aligned with trading activity)
TF2: Weekly (intermediate trend)
TF3: Monthly (macro vision)
Example Configurations
Scalping: Chart 1m → TF1: 5m, TF2: 15m, TF3: 1H
Intraday: Chart 5m → TF1: 15m, TF2: 1H, TF3: 4H
The indicator automatically hides inconsistent timeframes (lower than the chart).
Natural Line Display
Some lines will sometimes appear flat or straight: this is the normal behavior of Ichimoku, directly reflecting the highs and lows of their calculation windows.
Conclusion
Ichimoku Horizon is designed to remain true to Hosoda’s vision while offering the clarity of a modern multi-timeframe tool.
It delivers authentic, real-time calculations with no compromise.
Trend Shift Histogram By Clarity ChartsTrend Shift Histogram – A Brand New Formula by Clarity Charts
The Trend Shift Histogram is a brand-new mathematical formula designed to capture market momentum shifts with exceptional clarity.
Unlike traditional histograms, this indicator focuses on detecting early changes in market direction by analyzing underlying trend strength and momentum imbalances.
Key Features:
New Formula – Built from scratch to highlight momentum reversals and hidden trend shifts.
Visual Clarity – Green and red histogram bars make it easy to identify bullish and bearish phases, and grey area as trend reversal or sideways zone.
Trend Detection – Helps traders spot when the market is about to shift direction, often before price reacts strongly.
Scalable Settings –
Use smaller lengths for scalping and short-term trades.
Use larger lengths for swing trading and longer trend analysis.
Every Timeframe Ready – Whether you’re scalping on 1m or analyzing weekly charts, the histogram adapts seamlessly.
Power of Combining with the Fear Index
The Trend Shift Histogram becomes even more powerful when combined with Fear Index by Clarity Charts :
Fear Index by Clarity Charts
Together:
Fear Index highlights market fear & exhaustion levels, showing when traders are capitulating.
Trend Shift Histogram confirms the direction of the new trend once fear has peaked.
How to Use:
📈 Long Entry Condition
A long position is triggered when the following conditions align:
The Fear Index Bulls are showing upward momentum, indicating strengthening bullish sentiment.
The Fear Index Bears are simultaneously declining, signaling weakening bearish pressure.
The Trend Shift Histogram transitions from a short bias to a long bias, confirming a structural shift in market direction.
When all three conditions occur together, it provides a strong confluence to initiate a long trade entry.
📉 Short Entry Condition
A short position is triggered when the opposite conditions align:
The Fear Index Bears are showing upward momentum, indicating strengthening bearish sentiment.
The Fear Index Bulls are simultaneously declining, signaling weakening bullish pressure.
The Trend Shift Histogram transitions from a long bias to a short bias, confirming a structural shift in market direction.
When all three conditions occur together, it provides a strong confluence to initiate a short trade entry.
🔄 Bullish Trend Cycle
During a bullish phase as per the Fear Index, you can capture the entire cycle by:
Entry: Taking entries when the Trend Shift Histogram begins printing green bars, which mark the start of a bullish trend shift.
Exit: Closing the position when the histogram transitions to grey bars, signaling exhaustion or a potential pause in the bullish cycle.
This approach allows you to ride the bullish momentum effectively while respecting market cycle shifts.
🔻 Bearish Trend Cycle
During a bearish phase as per the Fear Index, you can capture the entire cycle by:
Entry: Taking entries when the Trend Shift Histogram begins printing red bars, which mark the start of a bearish trend shift.
Exit: Closing the position when the histogram transitions to grey bars, signaling exhaustion or a potential pause in the bearish cycle.
This approach ensures that bearish trends are traded with precision, avoiding late entries and capturing maximum move potential.
Watch for histogram color changes (green = bullish, red = bearish, grey = sideways).
Adjust length settings based on your style:
Small = intraday & scalping precision.
Large = swing & positional confidence.
Combine signals with Fear Index peaks for high-probability reversal zones.
Apply across any timeframe for flexible strategy building.
Who Can Use This
Scalpers – Catch quick intraday shifts.
Swing Traders – Ride bigger moves with confidence.
Long-Term Investors – Spot early warning signs of market trend reversals.
Contact & Support
For collaboration, premium indicators, or custom strategy building:
theclaritycharts@gmail.com
DM Impulse Enhanced [BackQuant]DM Impulse Enhanced
What this is (and what it isn’t)
DM Impulse Enhanced is a signal-driven overlay that classifies market action into two practical regimes: Long (risk-on) and Cash (risk-off). It’s built around a proprietary impulse model from the directional-movement family, wrapped in a persistence test and a state machine. Because this script is private, the core mechanics are intentionally abstracted here; what follows explains how to read and use it without revealing the protected calculation.
Why traders use it
Many tools oscillate or describe “how stretched” price is; fewer make a firm, operational call that you can automate. DM Impulse Enhanced aims to do exactly that declare when upside pressure is broad and durable enough to justify a long bias, and when deterioration is strong enough to stand aside (cash/short discretion). The emphasis is on impulse persistence rather than one-off spikes.
What you see on the chart
• Long / Cash markers – Green up-triangles (Long) and red down-triangles (Cash) plot at the bar where the regime changes.
• Regime-tinted bars (optional) – Candles can be softly shaded green during Long and red during Cash for at-a-glance context.
• Trend ribbon (context only) – A narrow ribbon (fast/slow moving averages) is tinted by the current regime to show trend alignment; it does not generate signals on its own.
• No separate sub-pane – Signals are intended to sit directly on price for immediate decision-making.
How the logic behaves (high-level)
Impulse core – A directional-movement–based engine estimates the strength of buying vs. selling pressure over a user-defined horizon.
Persistence gate – Instead of reacting to a single reading, the model evaluates how consistently that impulse dominates across a configurable lookback range.
State machine – When persistence clears (or fails) a pair of thresholds, the model flips and stays in that regime until evidence justifies a change. This “stickiness” is intentional; it reduces whipsaws in choppy tape.
Inputs & controls
Calculation Settings
• DM Length – The base horizon for the impulse engine. Longer = smoother/steadier; shorter = quicker/more reactive.
• Start / End – Defines the span of the persistence check. Expanding the span asks the market to prove itself against more history before changing regime.
Signal Settings
• Long Threshold – The persistence level required to promote the model into Long.
• Short Threshold – The level that, once crossed to the downside, demotes the model into Cash. Using a cross-under event for risk-off helps avoid premature exits on noise.
Visual Settings
• Long / Short colours – Customize marker and shading hues.
• Color Bars? – Toggle candle tinting by regime (off if you prefer a clean chart).
Reading the signals
• Long prints only when the model observes sustained upside pressure across the configured span. Treat this as permission to engage with pullbacks, breakouts, or your preferred setups in the direction of the trend.
• Cash prints when downside deterioration is strong enough to invalidate the prior regime. It’s a risk-off directive—flatten, hedge, or switch to short strategies according to your plan.
• Regime persistence is a feature: once Long, the model won’t flip on minor dips; once Cash, it won’t re-arm on minor bounces. If you want more flips, shorten the spans and relax thresholds; if you want fewer, do the opposite.
Practical tuning guide
Match DM Length to your timeframe
– Intraday: smaller length for timely response.
– Swing/Position: larger length to filter desk-noise and track higher-timeframe flows.
Size the persistence span to your goal
– Narrow span: faster regime changes, more trades, more noise.
– Wide span: fewer, higher-conviction calls, longer holds.
Set realistic thresholds
– The Long threshold should be reachable with your chosen span; the Short threshold should be low enough to catch genuine deterioration but not so tight that it flips on every dip.
Decide on cosmetics
– Turn on bar tinting for discretionary reading, or keep it off when exporting screenshots or running other overlays.
Suggested workflows
• Trend-following with discipline – Trade only in the Long regime; use structure (higher lows, anchored VWAP, or pullbacks to your MA stack) for entries and the Cash flip as a portfolio-level exit.
• Risk overlay – Keep your normal strategy, but: reduce size when Cash appears; re-enable full risk only after Long reasserts.
• Multi-timeframe gating – Require Long on a higher timeframe (e.g., 4H or 1D), then take entries on a lower one. If the high-TF posts Cash, stand down.
How the ribbon fits in
The ribbon visualizes short- vs. intermediate-term trend in the same colour as the regime. It’s deliberately “dumb”: it does not change the signal, it just helps you see when price action and regime are in harmony (e.g., pullbacks during Long that hold above the ribbon).
Alerts included
• DM Impulse LONG – Triggers as the persistence measure clears the Long threshold.
• DM Impulse CASH – Triggers when deterioration crosses the Short threshold from above.
Configure alerts to fire on bar close if you want final (non-intrabar) decisions.
Strengths
• Actionable binary output – Long/Cash is unambiguous and easy to automate.
• Persistence-aware – Focuses on runs that endure, not one-bar excitement.
• Asset/timeframe agnostic – Works anywhere you trust directional-movement concepts (equities, futures, crypto, FX).
Limitations & cautions
• Not a reversal caller – It’s a regime classifier. If you need early bottoms/tops, pair it with your own exhaustion or liquidity tools.
• Parameter feasibility matters – If your thresholds are set beyond what your span can reasonably achieve, signals may rarely (or never) trigger.
• Chop happens – In mean-reverting or news-driven tape, expect more frequent flips unless you widen spans and thresholds.
• Intrabar movement – Like any responsive model, provisional intrabar states can appear before the bar closes. Use “bar close” alerts for finality.
Getting started (safe defaults you can adapt)
• Intraday bias – Shorter DM Length, modest span, moderately tight thresholds.
• Swing filter – Longer DM Length, wider span, stricter Long and sufficiently low Short.
• Conservative overlay – Keep thresholds firm and spans wide; use signals to scale risk rather than flip directions frequently.
Summary
DM Impulse Enhanced is a persistence-focused regime classifier built on directional-movement concepts. It answers a narrow question clearly “Risk-on or risk-off?” and stays with that answer until the evidence meaningfully changes. Use it as a bias switch, a portfolio risk overlay, or a gate for your existing entry logic, and size its spans/thresholds to the cadence of the market you trade.
Hammer Candle Finder [MQSXN]This script automatically scans your chart for hammer candlestick patterns and highlights them with fully customizable labels and markers. Hammers are classic price action signals that can suggest potential reversals or exhaustion in the current trend.
How it works:
- Detects candles with a small body near the top of the range, a long lower wick, and minimal upper wick.
- Separates bullish hammers (green close above open) from bearish hammers (red close below open).
- You can choose to display either type—or both—depending on your trading style.
Customizable options:
- Adjustable detection sensitivity (body % of range, wick-to-body ratio, top wick allowance).
- Toggle to show/hide bullish or bearish signals.
- Custom text, colors, label style, and positioning for the markers.
- Option to anchor labels above bars automatically or offset them by a set number of ticks.
Usage:
This tool is designed for traders who want a clear, visual way to spot hammer candles in real time or during historical chart analysis. Combine it with your own support/resistance zones, volume analysis, or confirmation indicators to build complete strategies.
Note:
This indicator does not provide buy/sell signals on its own—it’s meant to assist with candlestick recognition. Always confirm with your broader trading plan and risk management rules.
ZLEMA Trend IndexZTI — ZLEMA Trend Index (0–100, 20/80 Bands)
Overview
ZTI is a trend-following oscillator built on the Zero‑Lag EMA (ZLEMA) and displayed in a consistent 0–100 pane. It’s designed to help prepare for participation in developing trends: readings below 20 highlight conditions to prepare for longs; readings above 80 highlight conditions to prepare for shorts. Color coding clarifies state at a glance: yellow inside the 20–80 band, maroon above 80, teal below 20.
How it works
Core: ZLEMA length 20 (configurable) reduces lag versus classic moving averages while maintaining smoothness.
Centering/scale: the ZLEMA line is recentered and scaled to fit a 0–100 view without distorting direction.
Bands: 80/20 act as trend preparation zones, not automatic reversal triggers.
Variables accessible in your scripts: overbought, oversold, zti, 0 - 100, center line is always 50
How to use it
Trend preparation:
Below 20 (teal): prepare to go long. Look for follow‑through back into the band (e.g., a hook up or a close returning above 20) before committing risk.
Above 80 (maroon): prepare to go short. Look for follow‑through back into the band (e.g., a hook down or a close returning below 80).
Example:
bullish_crossing_1 := ta.crossover(zti, overbought)
bullish_crossing_2 := ta.crossunder(zti, 70)
bullish_crossing_3 := ta.crossunder(zti, 60)
bullish_crossing_4 := ta.crossunder(zti, 50)
bearish_crossing_1 := ta.crossunder(zti, oversold)
bearish_crossing_2 := ta.crossover(zti, 30)
bearish_crossing_3 := ta.crossover(zti, 40)
bearish_crossing_4 := ta.crossover(zti, 50)
The zti line mirrors the flow of price action which is ideal if you need to follow trend snapshots between the overbough and oversold lines.
Continuation entries:
In uptrends, favor pullbacks where ZTI dips toward 20–40 and turns up again.
In downtrends, favor bounces where ZTI rises toward 60–80 and turns down again.
Exits and risk management:
Consider scaling out when maroon/teal fades back to yellow.
Use a return through the opposite band as a de‑risk or stop signal per system rules.
Multi‑timeframe workflow:
Define bias with a higher timeframe ZTI (e.g., H4/D1).
Execute on a lower timeframe only when it aligns with the higher timeframe’s 20/80 context.
Settings guidance:
ZLEMA length: 20 default. Lower (14–16) = faster, more sensitive; higher (24–30) = smoother, slower.
Center/scale windows: Larger = steadier amplitude; smaller = more responsive visualization.
Bands: 80/20 default. For very strong trenders, try 85/15; for choppier assets, 70/30.
Best practices
Treat 20/80 as preparation zones and require a confirm trigger (price structure, momentum cross, or a candle close back inside the band).
Avoid counter‑trend entries when the line is firmly maroon/teal; wait for a state change back into yellow with a confirming hook.
Combine with risk controls: predefined stop, trailing logic, and partial profit rules.
Limitations
As a moving‑average‑based tool, ZTI will still exhibit some lag and can compress/expand in extreme volatility. Tune length and windows to the instrument and timeframe.
Credits
ZLEMA techniques widely attributed to John Ehlers.
Disclaimer
This tool is for educational purposes only and is not financial advice. Backtest and forward‑test before live use, and always manage risk.
POC + OB/Breaker + IFVG + More Confluence 93%WR [STRATEGY]This strategy is designed for traders who rely on confluence-based setups to improve entry precision and risk management. It integrates multiple institutional concepts into a single, adaptive framework with dozens of inputs:
When ran on the 5m timeframe with default inputs over August 2024 - August 2025, this strategy produces 159 trades with a:
- 93.71% winrate
- 0.927 average profit factor
With the amount of inputs continuously added to customize this strategy, there's a place to use it everywhere.
🔑 Core Features
Volume Profile POC: Dynamically plots the Point of Control (POC) with customizable lookback and bin sizes. Zones near the POC are prioritized for higher-probability setups.
Market Structure & Order Blocks: Automatically detects Break of Structure (BOS), marks order blocks, and tracks their validity across bars.
Breaker Blocks: Converts invalidated order blocks into breaker zones, providing additional reactive levels.
Inversion Fair Value Gaps (IFVGs): Identifies and tracks classic FVGs and flips them into support/resistance zones when breached.
📈 Filters & Confirmations
Trend Filter: Optional EMA cross and ADX filter to align trades with higher-timeframe momentum.
Volume Filter: Confirms trades only when volume exceeds a user-defined threshold.
RSI Confirmation: Ensures momentum is turning in favor before entry.
⚖️ Risk Management
Structure-Based Stops: Uses OBs, breakers, or FVG boundaries as protective stops (with ATR fallback).
Adaptive R:R: Targets scale dynamically based on volatility, trend strength, and momentum.
Trailing Stop System: Activates after reaching a defined R multiple and adjusts with price action while locking in profits.
One-Trade-Per-Zone Option: Prevents over-trading the same level repeatedly.
------
Inputs are constantly being added, these are the current inputs as of 8/23/25:
📊 Volume Profile (POC)
VP Lookback (bars) (vpLookbackBars) – How many bars back to calculate the rolling Volume Profile.
VP Number of Price Bins (vpBins) – Number of price levels/buckets used to build the histogram.
Price Near POC (ticks) (pocNearTicks) – How close price must be to the POC (in ticks) to count as “near POC.”
POC–Reaction Confluence (ticks) (pocZoneNearTicks) – Maximum distance (in ticks) between the POC and a reaction zone to qualify as confluence.
🏗 Structure (Pivots & OB)
Pivot Left/Right (swLen) – Swing length used to detect highs and lows for market structure.
Max bars to keep latest OB/Breaker active (maxObBars) – How long (in bars) an order block or breaker zone remains valid.
📐 Fair Value Gaps (FVGs)
Use Inversion FVG (useIFVG) – If enabled, FVGs flip into support/resistance zones once breached.
Min FVG Size (ticks) (minFvgTicks) – Minimum gap size (in ticks) required for an FVG to be considered.
📈 Trend Filter
Use Trend Filter (useTrendFilter) – Enables/disables EMA + ADX filtering for trade direction.
Fast EMA Length (emaFastLen) – Length of the fast EMA.
Slow EMA Length (emaSlowLen) – Length of the slow EMA.
ADX Length (adxLen) – Period length for ADX calculation.
ADX Threshold (adxThreshold) – Minimum ADX value to consider a trend strong enough to filter entries.
🔊 Volume Confirmation
Use Volume Filter (useVolFilter) – Enables/disables volume confirmation filter.
Volume SMA Length (volSmaLen) – Period of the moving average for volume comparison.
Volume Threshold Multiplier (volMultiplier) – How much higher than average volume must be to confirm a setup.
✅ Entry Confirmation
Use Entry Confirmation (useConfirmation) – Enables/disables RSI-based confirmation.
RSI Length (rsiLen) – RSI calculation period.
RSI Buy Threshold (rsiBuyThreshold) – RSI level below which long entries can be confirmed (oversold).
RSI Sell Threshold (rsiSellThreshold) – RSI level above which short entries can be confirmed (overbought).
Wait for Candle Close (waitForClose) – If enabled, signals only confirm after candle close.
🛡 Risk / Exits
Use structure-based stops (useStructureStops) – Stops are placed at OB/Breaker/FVG boundaries, with ATR fallback.
ATR Len (fallback) (atrLen) – ATR period used for fallback stop-loss calculation.
ATR Mult (fallback) (atrMult) – Multiplier applied to ATR when using fallback stops.
Use Adaptive R:R (useAdaptiveRR) – Enables adaptive Risk:Reward calculation based on volatility and momentum.
Base R:R Multiple (baseRR) – Default risk/reward multiplier.
Min R:R Multiple (minRR) – Minimum allowed R:R.
Max R:R Multiple (maxRR) – Maximum allowed R:R.
Only one trade per newly detected zone (onlyOneTradePerZone) – Prevents multiple entries off the same zone.
📉 Trailing Stop
Use Trailing Stop (useTrailingStop) – Enables trailing stop logic.
Activate at R:R (trailTriggerRR) – R multiple at which the trailing stop activates.
Trail Distance in R (trailStopRR) – Distance (in R units) that the trailing stop trails behind price.
Vantage-XVANTAGE-X – The Market. Decoded.
Your vantage point between bull & bear — clarity, precision, and high-probability trading signals.
VANTAGE-X is a high-probability trading system designed to cut through the noise and deliver clarity at a glance.
🔹 What It Does
• EMA 20 (1H), EMA 50 (4H), EMA 200 (chart timeframe) → Instant bullish/bearish signals
• VWAP → Bullish/Bearish/Neutral, based on last 5 candles for precision
• Daily Bias → Bullish or Bearish without switching charts
• Chop Filter → Detects if market is trending or choppy (last 10 candles)
• Works across all assets on TradingView — futures, forex, stocks, crypto, options
🔹 Why Traders Use It
• Eliminates chart clutter and analysis paralysis
• No more flipping timeframes — dashboard updates automatically
• Clear signals = faster decisions, cleaner trades
🚨 Subscription Access Only – Invite-Only Script
This indicator is available exclusively to subscribed members of VANTAGE-X. Access is tied to your TradingView username and managed manually by our team.
👉 Website coming soon
SAR Oscillator [Bellsz]Converts Parabolic SAR into a normalized oscillator with crossover signals, gradient fills, and trend strength levels. A cleaner way to read SAR momentum. Making it easier to read momentum shifts, trend strength, and reversals directly in the sub-chart. Instead of dots on price only, this tool converts SAR dynamics into a smooth oscillator that highlights bias and turning points.
What it shows
Normalized Price Line — scaled view of price relative to SAR.
Normalized SAR Line — SAR value normalized across the high/low range.
SAR Dots — visual cue when crossovers occur (potential reversal or trend acceleration).
Gradient Fill — color-coded background for quick read of momentum direction/intensity.
Guide Levels — ±50 baseline to track trend strength and overextension.
Why use it
Converts SAR into an oscillator format, easier to compare across instruments & timeframes.
Highlights momentum shifts early (crossovers, gradient flips).
Adds structure with gradient fill and baselines, making SAR more actionable than standard dot plots.
Works as a trend bias filter or confirmation tool alongside other indicators.
Inputs
Acceleration / Increment / Maximum — adjust SAR sensitivity.
Custom Colors — choose your scheme for price, SAR, and gradients.
Best practices
Use on intraday or swing TFs as a trend bias filter.
Look for Normalized Price crossing Normalized SAR as potential entry signals.
Watch how SAR dots cluster near ±100 for exhaustion or reversal signals.
Notes
This is a visual enhancement of SAR; it does not repaint.
Combine with volume, FVGs, or session models for added context.
OrderVibe indicator (Invite-Only)What it is
OrderVibe is a closed-source tool that visualizes market structure and volatility. It does not generate trade calls or manage orders. It draws zones/levels and optional alerts so traders can build their own process.
How it works - technical overview (conceptual)
* Trend regime filter (optional). Uses a sloped moving-average baseline to qualify trend and can require higher-timeframe (HTF) agreement.
* Momentum gate. A smoothed, rate-of-change–style momentum must align with the trend and exceed a configurable strength threshold.
* Volatility filter. ATR-based bounds suppress setups when volatility is unusually low or high for the instrument.
* Order-block zones (SMC element). Marks candidate OB zones derived from pre-break structure and uses them for confluence; zones invalidate on decisive closes.
* Support/Resistance. Clusters recent pivots into zones using ATR-relative distance, keeping the most relevant areas by recency/proximity.
* Informational entry label. Prints on controlled retests of active zones when trend/momentum/volatility conditions are met. Labels are informational only.
* Baseline stop suggestion. Suggests a protective distance based on ATR or recent swing, whichever is more conservative.
* ATR TP ladder (TP1-TP10). Optional multi-level targets built from ATR multiples; per-level toggles and alerts.
* Cooldown. After a label, a short cooldown prevents duplicates; invalid zones are removed automatically.
* Alerts (optional). New S/R zone, new OB zone, TP reached, and related events.
Why it’s not a simple mashup
* Dual qualification (trend + momentum) with optional HTF agreement.
* Volatility-aware suppression and ATR-normalized zone clustering.
* Integrated ATR TP ladder with per-level controls and cooldown in one workflow.
* Provides clear value beyond classic MA/ATR combinations by combining HTF-aware gating, ATR-relative zone clustering, and structured multi-target management.
How to use
* Works on any symbol; defaults are calibrated for intraday XAUUSD.
* Adjust ATR lengths/ranges and TP multipliers to your instrument.
* Hide unused TP levels; forward-test before using live.
* Educational analytics only; no signals or advice.
Disclaimer
Analytical tool only. This is not financial advice and outcomes are not guaranteed. Use independent judgment and risk management.
Access
Access is invite-only and granted manually on TradingView. For contact details, see my Signature.
Advanced Trend Momentum [Alpha Extract]The Advanced Trend Momentum indicator provides traders with deep insights into market dynamics by combining exponential moving average analysis with RSI momentum assessment and dynamic support/resistance detection. This sophisticated multi-dimensional tool helps identify trend changes, momentum divergences, and key structural levels, offering actionable buy and sell signals based on trend strength and momentum convergence.
🔶 CALCULATION
The indicator processes market data through multiple analytical methods:
Dual EMA Analysis: Calculates fast and slow exponential moving averages with dynamic trend direction assessment and ATR-normalized strength measurement.
RSI Momentum Engine: Implements RSI-based momentum analysis with enhanced overbought/oversold detection and momentum velocity calculations.
Pivot-Based Structure: Identifies and tracks dynamic support and resistance levels using pivot point analysis with configurable level management.
Signal Integration: Combines trend direction, momentum characteristics, and structural proximity to generate high-probability trading signals.
Formula:
Fast EMA = EMA(Close, Fast Length)
Slow EMA = EMA(Close, Slow Length)
Trend Direction = Fast EMA > Slow EMA ? 1 : -1
Trend Strength = |Fast EMA - Slow EMA| / ATR(Period) × 100
RSI Momentum = RSI(Close, RSI Length)
Momentum Value = Change(Close, 5) / ATR(10) × 100
Pivot Support/Resistance = Dynamic pivot arrays with configurable lookback periods
Bullish Signal = Trend Change + Momentum Confirmation + Strength > 1%
Bearish Signal = Trend Change + Momentum Confirmation + Strength > 1%
🔶 DETAILS
Visual Features:
Trend EMAs: Fast and slow exponential moving averages with dynamic color coding (bullish/bearish)
Enhanced RSI: RSI oscillator with color-coded zones, gradient fills, and reference bands at overbought/oversold levels
Trend Fill: Dynamic gradient between EMAs indicating trend strength and direction
Support/Resistance Lines: Horizontal levels extending from pivot-based calculations with configurable maximum levels
Momentum Candles: Color-coded candlestick overlay reflecting combined trend and momentum conditions
Divergence Markers: Diamond-shaped signals highlighting bullish and bearish momentum divergences
Analysis Table: Real-time summary of trend direction, strength percentage, RSI value, and momentum reading
Interpretation:
Trend Direction: Bullish when Fast EMA crosses above Slow EMA with strength confirmation
Trend Strength > 1%: Strong trending conditions with institutional participation
RSI > 70: Overbought conditions, potential selling opportunity
RSI < 30: Oversold conditions, potential buying opportunity
Momentum Divergence: Price and momentum moving opposite directions signal potential reversals
Support/Resistance Proximity: Dynamic levels provide optimal entry/exit zones
Combined Signals: Trend changes with momentum confirmation generate high-probability opportunities
🔶 EXAMPLES
Trend Confirmation: Fast EMA crossing above Slow EMA with trend strength exceeding 1% and positive momentum confirms strong bullish conditions.
Example: During institutional accumulation phases, EMA crossovers with momentum confirmation have historically preceded significant upward moves, providing optimal long entry points.
15min
4H
Momentum Divergence Detection: RSI reaching overbought levels while momentum decreases despite rising prices signals potential trend exhaustion.
Example: Bearish divergence signals appearing at resistance levels have marked major market tops, allowing traders to secure profits before corrections.
Support/Resistance Integration: Dynamic pivot-based levels combined with trend and momentum signals create high-probability trading zones.
Example: Bullish trend changes occurring near established support levels offer optimal risk-reward entries with clearly defined stop-loss levels.
Multi-Dimensional Confirmation: The indicator's combination of trend, momentum, and structural analysis provides comprehensive market validation.
Example: When trend direction aligns with momentum characteristics near key structural levels, the confluence creates institutional-grade trading opportunities with enhanced probability of success.
🔶 SETTINGS
Customization Options:
Trend Analysis: Fast EMA Length (default: 12), Slow EMA Length (default: 26), Trend Strength Period (default: 14)
Support & Resistance: Pivot Length for level detection (default: 10), Maximum S/R Levels displayed (default: 3), Toggle S/R visibility
Momentum Settings: RSI Length (default: 14), Oversold Level (default: 30), Overbought Level (default: 70)
Visual Configuration: Color schemes for bullish/bearish/neutral conditions, transparency settings for fills, momentum candle overlay toggle
Display Options: Analysis table visibility, divergence marker size, alert system configuration
The Advanced Trend Momentum indicator provides traders with comprehensive insights into market dynamics through its sophisticated integration of trend analysis, momentum assessment, and structural level detection. By combining multiple analytical dimensions into a unified framework, this tool helps identify high-probability opportunities while filtering out market noise through its multi-confirmation approach, enabling traders to make informed decisions across various market cycles and timeframes.
Tide Tracker ZonesTide Tracker Zones – Advanced Trend & Pullback Visualizer
Overview
Tide Tracker Zones is a sophisticated trading tool designed for traders who require clarity, precision, and actionable insights in real time. The indicator converts price action into dynamic trend zones, allowing users to instantly recognize market direction, potential reversals, and low-risk entry opportunities. By visualizing the market in this way, traders can focus on execution rather than deciphering complex charts.
Unlike static indicators, Tide Tracker Zones adapts to market volatility, providing a clear picture of bullish and bearish pressure across multiple timeframes. Its visual design, including color-coded trend zones, a prominent guide line, and carefully placed signals, ensures that market behavior is easy to interpret, making it suitable for scalping, swing trading, and longer-term strategies alike.
How It Works
The indicator relies on dynamic upper and lower bands derived from recent price ranges and a configurable multiplier. These bands expand during volatile periods and contract when price action stabilizes, creating flexible zones that reflect the dominant market tide.
A guide line tracks the active band, serving as a continuous reference for trend direction. Unlike traditional moving averages, the guide line does not clutter the chart but instead provides a subtle, intuitive indication of whether the market is in a bullish or bearish phase. Background shading reinforces this trend visually, highlighting bullish zones in one color and bearish zones in another, so the prevailing market flow is immediately clear.
The system continuously evaluates price relative to the bands to determine trend direction and detect potential reversals. When price crosses a band and flips the trend, the guide line updates, and signals are generated, providing traders with actionable information without overwhelming the chart.
Signals and Pullbacks
Tide Tracker Zones offers visual cues that make entry points more obvious and less speculative. Trend reversal arrows are plotted when the market changes direction: BUY arrows indicate a shift from bearish to bullish, and SELL arrows indicate a shift from bullish to bearish.
The indicator also highlights first pullbacks within an active trend. These pullback dots mark low-risk opportunities to enter a trend in progress, filtered to ensure that only the most relevant signals are displayed. The system uses ATR-based spacing to place arrows and dots vertically on the chart, preventing visual clutter and ensuring readability even during periods of high volatility.
Color-coded zones enhance situational awareness. Bullish zones are displayed in a customizable orange, while bearish zones are shown in green. Transparency is dynamically adjusted to maintain chart clarity while still providing a clear indication of trend strength.
Strategy Integration
Tide Tracker Zones can be used effectively for both trend-following and pullback strategies. Traders may enter positions in the direction of the guide line and colored zone, using trend reversal arrows for confirmation. First pullback dots offer tactical entries with reduced risk, allowing traders to enter a trend after a brief retracement.
Stop-loss levels can be placed just beyond the opposing trend zone, while take-profit targets may be determined using the width of the bands to account for market volatility. The indicator adapts seamlessly across multiple timeframes. Higher timeframes provide context and filter noise, while lower timeframes allow traders to refine entry timing. This makes it a versatile tool for scalping, swing trading, or longer-term positions.
Advanced Techniques
For traders seeking greater precision, Tide Tracker Zones can be combined with volume or momentum indicators to validate signals. Observing the sequence of trend arrows and pullback dots allows users to develop a systematic approach to entries and exits. Monitoring the width and behavior of the bands over time can also provide insights into periods of expanding or contracting volatility, helping traders anticipate market shifts.
Adjustments to the spread length and multiplier allow the indicator to be tuned for different assets and market conditions. By understanding the interaction between the guide line, trend zones, and pullback signals, traders can create a robust framework for decision-making, reducing guesswork and improving consistency.
Why Use Tide Tracker Zones
Tide Tracker Zones provides instant clarity and actionable insight in any market. Its dynamic zones and guide line give a clear visual understanding of trend direction, while trend reversal arrows and pullback dots highlight potential entry points. Unlike traditional indicators, it adapts to volatility and changing conditions, making it reliable across multiple asset classes and timeframes.
By combining trend detection, pullback analysis, and intuitive visual guidance, Tide Tracker Zones equips traders with a complete framework for disciplined, confident trading, transforming complex price action into a visual map of opportunity.
SigmoidCycle Oscillator [LuminoAlgo]Purpose:
The SineCycle Oscillator measures price momentum using sigmoid function mathematics (S-curve transformation) borrowed from neural network theory. It generates an oscillator that fluctuates around 1.0, identifying momentum shifts and potential reversal points.
Mathematical Foundation:
This indicator applies the sigmoid logistic function concept: y = 1/(1+e^-x) , which creates an S-shaped curve. In financial markets context, this transformation:
- Maps price changes to a bounded range (-1 to +1)
- Provides non-linear sensitivity (high near zero, low at extremes)
- Naturally filters outliers without lag penalty
Calculation Process:
1. Statistical Normalization: Price deviations are measured from a moving average baseline and scaled by recent volatility (standard deviation over N periods)
2. Sigmoid Transformation: Normalized values undergo S-curve transformation, which weights small movements linearly but compresses large movements logarithmically
3. Dual Timeframe Analysis:
• Short window: User-defined period (N)
• Long window: Double period (2N)
• Ratio calculation: Short sigmoid average ÷ Long sigmoid average
4. Volatility-Weighted Smoothing: Final values use exponential smoothing where the smoothing factor adjusts based on the coefficient of variation (volatility/mean ratio)
What Makes This Different:
Unlike linear momentum oscillators (RSI, Stochastic) that use fixed mathematical relationships, the sigmoid transformation creates variable sensitivity zones. This mimics how professional traders mentally weight price movements.
Trading Application:
Signal Types:
- Momentum: Green (>1.0) = bullish, Red (<1.0) = bearish
- Reversals: 1.0 line crosses with volume confirmation
- Divergence: Price makes new high/low, oscillator doesn't
- Exhaustion: Extended readings (>1.2 or <0.8) suggest overextension
Optimal Conditions:
- Works best: Trending markets with clear swings
- Avoid: Low volume, ranging markets under 1% daily movement
- Timeframes: 4H and above for reliability
Parameter Guidelines:
- Length 8-10: Day trading (expect more whipsaws)
- Length 14-20: Swing trading (balanced signals)
- Length 25-30: Position trading (fewer, stronger signals)
Limitations:
- Lag increases with higher length settings
- Can give false signals during news-driven spikes
- Requires additional confirmation in choppy markets
Trading Framework:
Based on momentum persistence theory - assumes trends continue until sigmoid curve flattens (indicating momentum exhaustion). The mathematical model captures both mean reversion (extreme readings) and trend following (mid-range readings) characteristics.
VWAP For Loop [BackQuant]VWAP For Loop
What this tool does—in one sentence
A volume-weighted trend gauge that anchors VWAP to a calendar period (day/week/month/quarter/year) and then scores the persistence of that VWAP trend with a simple for-loop “breadth” count; the result is a clean, threshold-driven oscillator plus an optional VWAP overlay and alerts.
Plain-English overview
Instead of judging raw price alone, this indicator focuses on anchored VWAP —the market’s average price paid during your chosen institutional period. It then asks a simple question across a configurable set of lookback steps: “Is the current anchored VWAP higher than it was i bars ago—or lower?” Each “yes” adds +1, each “no” adds −1. Summing those answers creates a score that reflects how consistently the volume-weighted trend has been rising or falling. Extreme positive scores imply persistent, broad strength; deeply negative scores imply persistent weakness. Crossing predefined thresholds produces objective long/short events and color-coded context.
Under the hood
• Anchoring — VWAP using hlc3 × volume resets exactly when the selected period rolls:
Day → session change, Week → new week, Month → new month, Quarter/Year → calendar quarter/year.
• For-loop scoring — For lag steps i = , compare today’s VWAP to VWAP .
– If VWAP > VWAP , add +1.
– Else, add −1.
The final score ∈ , where N = (end − start + 1). With defaults (1→45), N = 45.
• Signal logic (stateful)
– Long when score > upper (e.g., > 40 with N = 45 → VWAP higher than ~89% of checked lags).
– Short on crossunder of lower (e.g., dropping below −10).
– A compact state variable ( out ) holds the current regime: +1 (long), −1 (short), otherwise unchanged. This “stickiness” avoids constant flipping between bars without sufficient evidence.
Why VWAP + a breadth score?
• VWAP aggregates both price and volume—where participants actually traded.
• The breadth-style count rewards consistency of the anchored trend, not one-off spikes.
• Thresholds give you binary structure when you need it (alerts, automation), without complex math.
What you’ll see on the chart
• Sub-pane oscillator — The for-loop score line, colored by regime (long/short/neutral).
• Main-pane VWAP (optional) — Even though the indicator runs off-chart, the anchored VWAP can be overlaid on price (toggle visibility and whether it inherits trend colors).
• Threshold guides — Horizontal lines for the long/short bands (toggle).
• Cosmetics — Optional candle painting and background shading by regime; adjustable line width and colors.
Input map (quick reference)
• VWAP Anchor Period — Day, Week, Month, Quarter, Year.
• Calculation Start/End — The for-loop lag window . With 1→45, you evaluate 45 comparisons.
• Long/Short Thresholds — Default upper=40, lower=−10 (asymmetric by design; see below).
• UI/Style — Show thresholds, paint candles, background color, line width, VWAP visibility and coloring, custom long/short colors.
Interpreting the score
• Near +N — Current anchored VWAP is above most historical VWAP checkpoints in the window → entrenched strength.
• Near −N — Current anchored VWAP is below most checkpoints → entrenched weakness.
• Between — Mixed, choppy, or transitioning regimes; use thresholds to avoid reacting to noise.
Why the asymmetric default thresholds?
• Long = score > upper (40) — Demands unusually broad upside persistence before declaring “long regime.”
• Short = crossunder lower (−10) — Triggers only on downward momentum events (a fresh breach), not merely being below −10. This combination tends to:
– Capture sustained uptrends only when they’re very strong.
– Flag downside turns as they occur, rather than waiting for an extreme negative breadth.
Tuning guide
Choose an anchor that matches your horizon
– Intraday scalps : Day anchor on intraday charts.
– Swing/position : Month or Quarter anchor on 1h/4h/D charts to capture institutional cycles.
Pick the for-loop window
– Larger N (bigger end) = stronger evidence requirement, smoother oscillator.
– Smaller N = faster, more reactive score.
Set achievable thresholds
– Ensure upper ≤ N and lower ≥ −N ; if N=30, an upper of 40 can never trigger.
– Symmetric setups (e.g., +20/−20) are fine if you want balanced behavior.
Match visuals to intent
– Enabling VWAP coloring lets you see regime directly on price.
– Background shading is useful for discretionary reading; turn it off for cleaner automation displays.
Playbook examples
• Trend confirmation with disciplined entries — On Month anchor, N=45, upper=38–42: when the long regime engages, use pullbacks toward anchored VWAP on the main pane for entries, with stops just beyond VWAP or a recent swing.
• Downside transition detection — Keep lower around −8…−12 and watch for crossunders; combine with price losing anchored VWAP to validate risk-off.
• Intraday bias filter — Day anchor on a 5–15m chart, N=20–30, upper ~ 16–20, lower ~ −6…−10. Only take longs while score is positive and above a midline you define (e.g., 0), and shorts only after a genuine crossunder.
Behavior around resets (important)
Anchored VWAP is hard-reset each period. Immediately after a reset, the series can be young and comparisons to pre-reset values may span two periods. If you prefer within-period evaluation only, choose end small enough not to bridge typical period length on your timeframe, or accept that the breadth test intentionally spans regimes.
Alerts included
• VWAP FL Long — Fires when the long condition is true (score > upper and not in short).
• VWAP FL Short — Fires on crossunder of the lower threshold (event-driven).
Messages include {{ticker}} and {{interval}} placeholders for routing.
Strengths
• Simple, transparent math — Easy to reason about and validate.
• Volume-aware by construction — Decisions reference VWAP, not just price.
• Robust to single-bar noise — Needs many lags to agree before flipping state (by design, via thresholds and the stateful output).
Limitations & cautions
• Threshold feasibility — If N < upper or |lower| > N, signals will never trigger; always cross-check N.
• Path dependence — The state variable persists until a new event; if you want frequent re-evaluation, lower thresholds or reduce N.
• Regime changes — Calendar resets can produce early ambiguity; expect a few bars for the breadth to mature.
• VWAP sensitivity to volume spikes — Large prints can tilt VWAP abruptly; that behavior is intentional in VWAP-based logic.
Suggested starting profiles
• Intraday trend bias : Anchor=Day, N=25 (1→25), upper=18–20, lower=−8, paint candles ON.
• Swing bias : Anchor=Month, N=45 (1→45), upper=38–42, lower=−10, VWAP coloring ON, background OFF.
• Balanced reactivity : Anchor=Week, N=30 (1→30), upper=20–22, lower=−10…−12, symmetric if desired.
Implementation notes
• The indicator runs in a separate pane (oscillator), but VWAP itself is drawn on price using forced overlay so you can see interactions (touches, reclaim/loss).
• HLC3 is used for VWAP price; that’s a common choice to dampen wick noise while still reflecting intrabar range.
• For-loop cap is kept modest (≤50) for performance and clarity.
How to use this responsibly
Treat the oscillator as a bias and persistence meter . Combine it with your entry framework (structure breaks, liquidity zones, higher-timeframe context) and risk controls. The design emphasizes clarity over complexity—its edge is in how strictly it demands agreement before declaring a regime, not in predicting specific turns.
Summary
VWAP For Loop distills the question “How broadly is the anchored, volume-weighted trend advancing or retreating?” into a single, thresholded score you can read at a glance, alert on, and color through your chart. With careful anchoring and thresholds sized to your window length, it becomes a pragmatic bias filter for both systematic and discretionary workflows.
Scalp Sense AI# Scalp Sense AI (No Repaint)
**Adaptive trend & reversal detector with an AI-driven score, multi-timeframe confirmations, robust volume filters, and a purpose-built Scalping Mode.**
Signals are generated **only on bar close** (no repaint), include structured alert payloads for webhooks, and come with optional ATR-based TP/SL visualization for study and validation.
---
## What it is (in one paragraph)
**Scalp Sense AI** combines classic market structure (DI/ADX, EMA, SMA, Keltner, ATR) with a continuous **AI Score** that fuses RSI normalization, EMA distance (in ATR units), and DI edge into a single, volatility-aware signal. It adaptively gates **trend** and **reversal** entries, applies **HTF confirmation** without lookahead, and enforces **guard rails** (e.g., strong-trend reversal blocking) unless a high-confidence AI override and volume confirmation are present. **Scalping Mode** compresses reaction times and adds micro price-action cues (wick rejections, micro-EMA crosses, small engulfing) to surface more—but disciplined—opportunities.
---
## Non-Repainting Design
* All signals, markers, state, and alerts are computed **after bar close** using `barstate.isconfirmed`.
* HTF data are requested with `lookahead_off`.
* No “future-peeking” constructs are used.
* Result: signals do **not** change after the candle closes.
---
## How the engine works (pipeline overview)
1. **Base metrics**
* **RSI**, **EMA**, **ATR** (+ ATR SMA for regime/volatility), **SMA long & short**, **Keltner** (EMA ± ATR×mult).
* **Manual DI/ADX** for fine control (DM+, DM−, true range smoothing).
2. **Volatility regime**
* Compares ATR to its SMA and scales thresholds by √(ATR/ATR\_SMA) → robust “high\_vol” gating.
3. **Volume & flow**
* **Volume Z-score**, **OBV slope**, and **MFI** (all computed manually) to confirm impulses and filter weak reversals.
4. **Higher-Timeframe confirmation (optional)**
* Imports HTF **PDI/MDI/ADX** and **SMA** (no lookahead) to require alignment when enabled.
5. **AI Score**
* Weighted fusion of **RSI (normalized around 0)**, **EMA distance (in ATR)**, and **DI edge**.
* Smoothed; then its **mean (μ)** and **volatility (σ)** are estimated to form **adaptive bands** (hi/lo), with optional **hysteresis**.
* **Debounce** (M in N bars) avoids flicker; **bias state** persists until truly invalidated.
6. **Signal logic**
* **Trend entries** require AI bias + trend confirmations (DI/ADX/SMA, HTF if enabled), volatility OK, and **anti-breakout** filter.
* **Reversal entries** come in **core**, **early**, and **scalp** flavors (progressively more frequent), guarded by strong-trend blocks that an **AI+volume+ADX-cooling override** can bypass.
7. **Scalping Mode**
* Adaptive parameter contraction (shorter lengths), gentler guards, micro-patterns (wick/engulf/micro-EMA cross), and reduced cooldown to increase high-quality opportunities.
8. **Cooldown & state**
* One signal per side after a configurable spacing in bars; internal “last direction” avoids clustering.
9. **Visualization & alerts**
* **Triangles** for trend, **circles** for reversals (offset by ATR to avoid overlap).
* **Single-line alert payload** (BUY/SELL, reason, AI, volZ, ADX) ready for webhooks.
---
## Signals & visualization
* **Trend Long/Short** → triangle markers (above/below) when:
* AI bias aligns with trend confirmations (DI edge, ADX above threshold, price vs long SMA, optional HTF alignment).
* Volatility regime agrees; **anti-breakout** prevents entries exactly at lookback highs/lows.
* **Reversal Long/Short** → circular markers when:
* **Core**: AI near “loose” band, OBV/MFI/volZ supportive, ADX cooling, DI spread relaxed, PA confirms (crosses/div).
* **Early**: anticipatory patterns (Keltner exhaustion, simple RSI “quasi-divergence”).
* **Scalp**: micro-EMA cross, wick rejection, mini-engulfing, with relaxed guards but AI/volume still in the loop.
* **Markers appear only on the bar that actually emitted the signal** (no repaint); offsets use ATR so shapes don’t overlap.
---
## Alerts (ready for webhooks)
Enable “**Any alert() function call**” and you’ll receive compact, single-line payloads once per bar:
```
action=BUY;reason=reversal-early;ai=0.1375;volZ=0.82;adx=27.5
action=SELL;reason=trend;ai=-0.2210;volZ=0.43;adx=31.9
```
* `action`: BUY / SELL
* `reason`: `trend` | `reversal-core` | `reversal-early` | `reversal-scalp`
* `ai`: current smoothed AI Score at signal bar
* `volZ`: volume Z-score
* `adx`: current ADX
---
## Inputs (exhaustive)
### 1) Core Inputs
* **RSI Length (Base)** (`rsi_length_base`, int)
Base RSI lookback. Shorter = more reactive; longer = smoother.
* **RSI Overbought Threshold** (`rsi_overbought`, int)
Informational for context; RSI is used normalized in the AI fusion.
* **RSI Oversold Threshold** (`rsi_oversold`, int)
Informational; complements visual context.
* **EMA Length (Base)** (`ema_length_base`, int)
Primary adaptive mean; also used for Keltner mid and distance metric.
* **ATR Length (Base)** (`atr_length_base`, int)
Volatility unit for Keltner, SL/TP (debug), and regime detection.
* **ATR SMA Length** (`atr_sma_len`, int)
Smooth baseline for ATR regime; supports “high\_vol” logic.
* **ATR Multiplier Base** (`atr_mult_base`, float)
Scales volatility gating (sqrt-scaled); higher = tighter high-vol requirement.
* **Disable Volatility Filter** (`disable_volatility_check`, bool)
Bypass volatility gating if true.
* **Price Change Period (bars)** (`price_change_period_base`, int)
Simple momentum check (+/−% over N bars) used in trend validation.
* **Base Cooldown Bars Between Signals** (`signal_cooldown_base`, int ≥ 0)
Minimum bars to wait between signals (per side).
* **Trend Confirmation Bars** (`trend_confirm_bars`, int ≥ 1)
Require persistence above/below long SMA for this many bars.
* **Use Higher Timeframe Confirmation** (`use_higher_tf`, bool)
Turn on/off HTF alignment (no repaint).
* **Higher Timeframe for Confirmation** (`higher_tf`, timeframe)
E.g., “60” to confirm M15 with H1; used for HTF PDI/MDI/ADX and SMA.
* **TP as ATR Multiple** (`tp_atr_mult`, float)
For **visual debug** only (drawn after entries); not an order manager.
* **SL as ATR Multiple** (`sl_atr_mult`, float)
For visual debug only.
* **Enable Scalping Mode** (`scalping_mode`, bool)
Compresses lengths/thresholds, unlocks micro-PA modules, reduces cooldown.
* **Show Debug Lines** (`show_debug`, bool)
Plots AI bands, DI/ADX, EMA/SMA, Keltner, vol metrics, and TP/SL (debug).
### 2) AI Score & Thresholds
* **AI Score Smooth Len** (`ai_len`, int)
EMA smoothing over the raw fusion.
* **AI Volatility Window** (`ai_sigma_len`, int)
Window to estimate AI mean (μ) and standard deviation (σ).
* **K High (sigma)** (`ai_k_hi`, float)
Upper band width (σ multiplier) for strong threshold.
* **K Low (sigma)** (`ai_k_lo`, float)
Lower band width (σ multiplier) for loose threshold.
* **Debounce Window (bars)** (`ai_debounce_m`, int ≥ 1)
Rolling window length used by the confirm counter.
* **Min Bars>Thr in Window** (`ai_debounce_n`, int ≥ 1)
Minimum confirmations inside the debounce window to validate a state.
* **Use Hysteresis Thresholds** (`ai_hysteresis`, bool)
Requires crossing back past a looser band to exit bias → fewer whipsaws.
* **Weight DI Edge (0–1)** (`ai_weight_di`, float)
Importance of DI edge within the fusion.
* **Weight EMA Dist (0–1)** (`ai_weight_ema`, float)
Importance of EMA distance (in ATR units).
* **Weight RSI Norm (0–1)** (`ai_weight_rsi`, float)
Importance of normalized RSI.
* **Sensitivity (0–1)** (`sensitivity`, float)
Contracts/expands bands (higher = more sensitive).
### 3) Volume Filters
* **Volume MA Length** (`vol_ma_len`, int)
Baseline for volume Z-score.
* **Volume Z-Score Window** (`vol_z_len`, int)
Std-dev window for Z-score; larger = fewer volume “spikes”.
* **Reversal: Min Volume Z for confirm** (`vol_rev_min_z`, float)
Minimum Z required to validate reversals (adaptively relaxed in scalping).
* **OBV Slope Lookback** (`obv_slope_len`, int)
Rising/falling OBV over this window supports bull/bear confirmations.
* **MFI Length** (`mfi_len`, int)
Money Flow Index lookback (manual calculation).
### 4) Filters (Breakout / ADX / Reversal)
* **Enable Breakout Filter** (`enable_breakout_fil`, bool)
Avoid trend entries at lookback highs/lows.
* **Breakout Lookback Bars** (`breakout_lookback`, int ≥ 1)
Window for the anti-breakout guard.
* **Base ADX Length** (`adx_length_base`, int)
Lookback for DI/ADX smoothing (also adapted in Scalping Mode).
* **Base ADX Threshold** (`adx_threshold_base`, float)
Minimum ADX to validate trend context (scaled in Scalping Mode).
* **Enable Reversal Filter** (`enable_rev_filter`, bool)
Master switch for reversal logic.
* **Max ADX for Reversal** (`rev_adx_max`, float)
Hard cap: above this ADX, reversals are blocked (unless overridden by AI if allowed in Guards).
### 5) Reversal Guard (regime protection & overrides)
* **Strong Trend: ADX add-above Thr** (`guard_adx_add`, float)
Extra ADX above `adx_threshold` to mark “strong” trend.
* **Strong Trend: min DI spread** (`guard_spread_min`, float)
Minimum DI separation to consider a trend “dominant”.
* **Require ADX drop from window max (%)** (`guard_adx_drop_min_pct`, float 0–1)
ADX must drop at least this fraction from its window maximum to consider “cooling”.
* **Regime Window (bars)** (`guard_regime_len`, int ≥ 10)
Window over which ADX max is measured for the “cooling” check.
* **EMA Slope Lookback** (`guard_slope_len`, int ≥ 2)
EMA slope horizon used alongside Keltner for strong-trend identification.
* **Keltner Mult (ATR)** (`guard_kc_mult`, float)
Keltner width for strong trend bands and exhaustion checks.
* **HTF Reversal Block Mode** (`htf_block_mode`, string: `Off` | `On` | `AI-controlled`)
* `Off`: never block by HTF.
* `On`: block reversals whenever HTF is strong.
* `AI-controlled`: block **unless** AI+volume+ADX-cooling override criteria are met.
* **AI-controlled: allow AI override** (`ai_htf_override`, bool)
Enables the override mechanism in `AI-controlled` mode.
* **AI override multiplier (vs band\_hi)** (`ai_override_mult`, float)
Strength needed beyond the high band to count as “strong AI”.
* **AI override: min bars beyond strong thr** (`ai_override_min_bars`, int ≥ 1)
Debounce on the override itself.
### 6) Markers
* **Reversal Circle ATR Offset** (`rev_marker_offset_atr`, float ≥ 0)
Vertical offset for reversal circles; trend triangles use a separate (internal) offset.
### 7) Scalping Mode Tuning
* **Reversal aggressiveness (0–1)** (`scalp_rev_aggr`, float)
Higher = looser guards and stronger AI sensitivity.
* **Wick: body multiple (bull/bear)** (`scalp_wick_body_mult`, float)
Wick must be at least this multiple of body to count as rejection.
* **Wick: ATR multiple (min)** (`scalp_wick_atr_mult`, float)
Minimal wick length in ATR units.
* **Micro EMA factor (vs EMA base)** (`scalp_ema_fast_factor`, float 0.2–0.9)
Fast EMA length = base EMA × factor (rounded/int).
* **Relax breakout filter in scalping** (`scalp_breakout_relax`, bool)
Lets more trend entries through in scalping context.
### 8) ICT-style SMA (bases)
* **ICT SMA Long Length (Base)** (`sma_long_len_base`, int)
Long-term baseline for regime/trend.
* **ICT SMA Short1 Length (Base)** (`sma_short1_len_base`, int)
Short baseline for price-action crosses.
* **ICT SMA Short2 Length (Base)** (`sma_short2_len_base`, int)
Companion short baseline used in PA cross checks.
> **Adaptive “effective” values:** When **Scalping Mode** is ON, the script internally shortens multiple lengths (RSI/EMA/ATR/ADX/μσ windows, SMAs) and gently relaxes guards (ADX drop %, DI spread, volume Z, override thresholds), reduces cooldown/confirm bars, and optionally relaxes the breakout filter—so you get **more frequent but still curated** signals.
---
## Plots & debug (optional)
* DI+/DI−, ADX (curr + HTF), EMA, long SMA, Keltner up/down (when strong), AI Score, AI mean, AI bands (hi/lo; low plots only when hysteresis is on), Volume MA and Z-score, and ATR-based TP/SL guide (after entries).
* These are **study aids**; the indicator does not manage trades.
---
## Recommended use
* **Timeframes**:
* Scalping Mode: M1–M15.
* Standard Mode: M15–H1 (or higher).
* **Markets**: Designed for liquid FX, indices, metals, and large-cap crypto.
* **Chart type**: Standard candles recommended (Heikin-Ashi alters inputs and hence signals).
* **Alerts**: Use “Any alert() function call”. Parse the key/value payloads server-side.
---
## Good to know
* **Why some alerts don’t draw shapes retroactively**: markers are drawn **only on** the bar that emitted the signal (no repaint by design).
* **Why a reversal didn’t fire**: strong-trend guards + HTF block may have been active; check ADX, DI spread, Keltner position, EMA slope, and whether AI override criteria were met.
* **Too many / too few signals**: tune **Scalping Mode**, `signal_cooldown_base`, AI bands (`ai_k_hi/lo`, `sensitivity`), volume Z (`vol_rev_min_z`), and guards (`rev_adx_max`, `guard_*`).
---
## Disclaimer
This is an **indicator**, not a strategy or an execution system. It does not place, modify, or manage orders. Markets carry risk—validate on historical data and demo before any live decisions. No performance claims are made.
---
### Version
**Scalp Sense AI v11.5** — Adaptive AI bands with hysteresis/debounce, HTF no-lookahead confirmations, guarded reversal logic with AI override, full volume suite (Z, OBV slope, MFI), anti-breakout filter, and a dedicated Scalping Mode with micro-PA cues.